From 4c4f39b6ead3638aa3a313a9de476ee01be6c5f1 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Thu, 11 Jun 2020 22:34:21 +0100 Subject: [PATCH] types(props): fix typo on prototype (#1334) --- packages/runtime-core/src/componentProps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index aaaa569b..5d3cef7e 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 = {