Просмотр исходного кода

types(compiler-sfc): add explicit return type to genModelProps (#13441)

Zhong 8 месяцев назад
Родитель
Сommit
0f916d8c39
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/compiler-sfc/src/script/defineModel.ts

+ 1 - 1
packages/compiler-sfc/src/script/defineModel.ts

@@ -114,7 +114,7 @@ export function processDefineModel(
   return true
 }
 
-export function genModelProps(ctx: ScriptCompileContext) {
+export function genModelProps(ctx: ScriptCompileContext): string | undefined {
   if (!ctx.hasDefineModelCall) return
 
   const isProd = !!ctx.options.isProd