UNPKG

@difizen/mana-common

Version:

16 lines 636 B
export type Mutable<T> = { -readonly [P in keyof T]: T[P]; }; export type RecursivePartial<T> = { [P in keyof T]?: T[P] extends (infer I)[] ? RecursivePartial<I>[] : RecursivePartial<T[P]>; }; export type MaybeArray<T> = T | T[]; export type MaybePromise<T> = T | PromiseLike<T>; export type Newable<T> = new (...args: any[]) => T; export type Abstract<T> = { prototype: T; }; export declare function toArray<T>(v: MaybeArray<T>): T[]; export declare function isPromise(obj: any): obj is Promise<any>; export declare function isPromiseLike<T>(obj: MaybePromise<T>): obj is PromiseLike<T>; //# sourceMappingURL=types.d.ts.map