]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(compiler-sfc): add explicit return type to genModelProps (#13441) main
authorZhong <cszhjh@gmail.com>
Sat, 23 Aug 2025 13:32:53 +0000 (21:32 +0800)
committerGitHub <noreply@github.com>
Sat, 23 Aug 2025 13:32:53 +0000 (21:32 +0800)
packages/compiler-sfc/src/script/defineModel.ts

index 05082800284667a63c61466fd83950eb898e8de2..a0b5e11fe4f805ef4545e9841ae0a59a5650ff5c 100644 (file)
@@ -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