UNPKG

@secam/pgsql-ast-parser

Version:

Fork of pgsql-ast-parser Simple Postgres SQL parser/modifier for pg-mem

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