Skip to content

Commit

Permalink
fix(compile-sfc): Support define Error as prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
zhmushan committed Oct 20, 2023
1 parent e3c2d69 commit 843d58b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/script/resolveType.ts
Expand Up @@ -1391,6 +1391,7 @@ export function inferRuntimeType(
case 'WeakMap':
case 'Date':
case 'Promise':
case 'Error':
return [node.typeName.name]

// TS built-in utility types
Expand Down

0 comments on commit 843d58b

Please sign in to comment.