types(props): fix typo on prototype (#1334)

This commit is contained in:
Carlos Rodrigues 2020-06-11 22:34:21 +01:00 committed by GitHub
parent f3eac11058
commit 4c4f39b6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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