Преглед изворни кода

fix(compiler-sfc): type-only defineProps does not recognize Promise (fix #5941) (#5943)

Yunyoung LEE пре 4 година
родитељ
комит
991d62322f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      packages/compiler-sfc/src/compileScript.ts

+ 1 - 0
packages/compiler-sfc/src/compileScript.ts

@@ -1810,6 +1810,7 @@ function inferRuntimeType(
           case 'WeakSet':
           case 'WeakMap':
           case 'Date':
+          case 'Promise':
             return [node.typeName.name]
           case 'Record':
           case 'Partial':