]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): make `ForIteratorExpression`'s `returns` property optional (...
authorRay <i@mk1.io>
Mon, 27 May 2024 08:15:54 +0000 (16:15 +0800)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 08:15:54 +0000 (16:15 +0800)
packages/compiler-core/src/ast.ts

index 3f92a99fcbbd6c7ee0b1e1e2aafaaeb8eab05012..91354b1b40bf1e3a3eb9039773f7c046d530586e 100644 (file)
@@ -571,7 +571,7 @@ export interface ForRenderListExpression extends CallExpression {
 }
 
 export interface ForIteratorExpression extends FunctionExpression {
-  returns: BlockCodegenNode
+  returns?: BlockCodegenNode
 }
 
 // AST Utilities ---------------------------------------------------------------