easysql/node_modules/sql-formatter/dist/cjs/utils.d.ts
2025-12-29 18:35:04 +08:00

9 lines
511 B
TypeScript

export declare const dedupe: (arr: string[]) => string[];
export declare const last: <T>(arr: T[]) => T | undefined;
export declare const sortByLengthDesc: (strings: string[]) => string[];
/** Get length of longest string in list of strings */
export declare const maxLength: (strings: string[]) => number;
export declare const equalizeWhitespace: (s: string) => string;
export declare const isMultiline: (text: string) => boolean;
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;