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

This commit is contained in:
Zhong 2025-08-23 21:32:53 +08:00 committed by GitHub
parent 952886e299
commit 0f916d8c39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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