UNPKG

760 BTypeScriptView Raw
1import { SQLFragment } from '../generic/sql-fragment';
2/**
3 * Joins an array with a single space, auto trimming when needed.
4 *
5 * Certain elements do not get leading/trailing spaces.
6 *
7 * @param {SQLFragment[]} array The array to be joined. Falsy values are skipped. If an
8 * element is another array, this function will be called recursively on that array.
9 * Otherwise, if a non-string, non-falsy value is present, a TypeError will be thrown.
10 *
11 * @returns {string} The joined string.
12 *
13 * @private
14 */
15export declare function joinSQLFragments(array: SQLFragment[]): string;
16export declare class JoinSQLFragmentsError extends TypeError {
17 args: SQLFragment[];
18 fragment: any;
19 constructor(args: SQLFragment[], fragment: any, message: string);
20}