UNPKG

sql-formatter

Version:

Format whitespace in a SQL query to make it more readable

10 lines (9 loc) 554 B
export declare const dedupe: (arr: string[]) => string[]; export declare const trimSpacesEnd: (str: string) => string; export declare const last: <T extends unknown>(arr: T[]) => T; export declare const isEmpty: (arr: any[]) => boolean; export declare const escapeRegExp: (string: string) => string; 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 isNumber: (value: any) => value is number;