UNPKG

prettier-sql

Version:

Format whitespace in a SQL query to make it more readable

22 lines (21 loc) 619 B
import type { Token } from './token'; export declare type ParamItems = { [k: string]: string; }; /** * Handles placeholder replacement with given params. */ export default class Params { /** * @param {ParamItems} params */ params: ParamItems | string[] | undefined; index: number; constructor(params: ParamItems | string[] | undefined); /** * Returns param value that matches given placeholder with param key. * @param {Token} token * @return {string} param or token.value when params are missing */ get({ key, value }: Token): string; }