Skip to content

Commit

Permalink
feat(type): MaybeArray
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Mar 16, 2023
1 parent 96b49ab commit 0c61708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/type/src/type-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export type Constructor<T> = new (...args: any[]) => T;

export type MaybePromise<T> = T | Promise<T>;
export type MaybeArray<T> = T | Array<T>;

export type OmitFirstParam<F> = F extends (x: any, ...args: infer A) => infer R ? (...args: A) => R : never;

Expand Down

0 comments on commit 0c61708

Please sign in to comment.