UNPKG

mana-common

Version:

Common utils for mana

13 lines (12 loc) 437 B
export declare type Mutable<T> = { -readonly [P in keyof T]: T[P]; }; export declare type RecursivePartial<T> = { [P in keyof T]?: T[P] extends (infer I)[] ? RecursivePartial<I>[] : RecursivePartial<T[P]>; }; export declare type MaybeArray<T> = T | T[]; export declare type MaybePromise<T> = T | PromiseLike<T>; export declare type Newable<T> = new (...args: any[]) => T; export declare type Abstract<T> = { prototype: T; };