]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types(props): fix typo on prototype (#1334)
authorCarlos Rodrigues <carlos@hypermob.co.uk>
Thu, 11 Jun 2020 21:34:21 +0000 (22:34 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 21:34:21 +0000 (17:34 -0400)
packages/runtime-core/src/componentProps.ts

index aaaa569b3c34941dec5145e347d3c8d788a9bbdd..5d3cef7e39d42a091698e0c1182061e95e2addfc 100644 (file)
@@ -53,8 +53,8 @@ type PropConstructor<T = any> =
   | { (): T }
   | PropMethod<T>
 
-type PropMethod<T> = T extends (...args: any) => any // if is function with args
-  ? { new (): T; (): T; readonly proptotype: Function } // Create Function like constructor
+type PropMethod<T, TConstructor = any> = T extends (...args: any) => any // if is function with args
+  ? { new (): TConstructor; (): T; readonly prototype: TConstructor } // Create Function like constructor
   : never
 
 type RequiredKeys<T, MakeDefaultRequired> = {