Skip to content

Commit

Permalink
types(props): fix typo on prototype (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
pikax authored Jun 11, 2020
1 parent f3eac11 commit 4c4f39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {
Expand Down

0 comments on commit 4c4f39b

Please sign in to comment.