UNPKG

prettier-sql

Version:

Format whitespace in a SQL query to make it more readable

11 lines (10 loc) 642 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; /** Make all strings in list the same length by appending spaces */ export declare const tabulateLines: (...columns: string[][]) => string[];