export type Optional = { [key in keyof T]?: T[key]; }; export type nil = undefined | null; type Impossible = { [P in K]: never; }; export type NoExtraProperties = U & Impossible>; export type ReplaceReturnType = T extends (...a: any) => any ? (...a: Parameters) => TNewReturn : never; export declare class NotSupported extends Error { constructor(what?: string); static never(value: never, msg?: string): NotSupported; } export declare function trimNullish(value: T, depth?: number): T; export {}; //# sourceMappingURL=utils.d.ts.map