UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

14 lines 718 B
export type Maybe<T> = T | undefined | null; export type StringList<T> = T | (string & NonNullable<unknown>); export type ElementOf<T> = T extends (infer E)[] ? E : never; export type ValueOf<T> = T[keyof T]; export type Modify<T, R> = Omit<T, keyof R> & R; export type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]>; }; export declare function isNullish<T>(v: T | undefined | null): v is null | undefined; export declare function isNotNullish<T>(v: T | undefined | null): v is T; export declare function isNotString<T>(v: T | string): v is T; export declare function isNotBoolean<T>(v: T | boolean): v is T; export declare function isNotNumber<T>(v: T | number): v is T; //# sourceMappingURL=types.d.ts.map