From: Carlos Rodrigues Date: Thu, 11 Jun 2020 21:34:21 +0000 (+0100) Subject: types(props): fix typo on prototype (#1334) X-Git-Tag: v3.0.0-beta.15~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c4f39b6ead3638aa3a313a9de476ee01be6c5f1;p=thirdparty%2Fvuejs%2Fcore.git types(props): fix typo on prototype (#1334) --- diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index aaaa569b3c..5d3cef7e39 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -53,8 +53,8 @@ type PropConstructor = | { (): T } | PropMethod -type PropMethod = T extends (...args: any) => any // if is function with args - ? { new (): T; (): T; readonly proptotype: Function } // Create Function like constructor +type PropMethod = T extends (...args: any) => any // if is function with args + ? { new (): TConstructor; (): T; readonly prototype: TConstructor } // Create Function like constructor : never type RequiredKeys = {