forked from vuejs/vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(TypeScript): Force ArrayConstructor to be a any[] typescript type
When using an Array prop in a Vue component with TypeScript, typescript breaks because the JavaScript arrayconstructor is transpiled to a {}[] typescript type that is for some reason more general than any[]. Since the type is more general, the component is not using the correct component overload function declaration. The idea here is to force the JavaScript ArrayConstructor to be transpiled to any[] type. fix vuejs#9935
- Loading branch information
1 parent
06d4ad4
commit 791f5aa
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters