Skip to content

Commit

Permalink
fix(compiler-sfc): type-only defineProps does not recognize Promise (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lseeker committed May 18, 2022
1 parent 7c8f457 commit 991d623
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -1810,6 +1810,7 @@ function inferRuntimeType(
case 'WeakSet':
case 'WeakMap':
case 'Date':
case 'Promise':
return [node.typeName.name]
case 'Record':
case 'Partial':
Expand Down

0 comments on commit 991d623

Please sign in to comment.