DefinitelyTyped/types/pg-escape/index.d.ts
2017-09-08 14:43:41 +10:00

18 lines
536 B
TypeScript

// Type definitions for pg-escape 0.2
// Project: https://github.com/segmentio/pg-escape
// Definitions by: Cameron Yan <https://github.com/khell>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
export = escape;
declare function escape(fmt: string, ...args: any[]): string;
declare namespace escape {
function string(val: string): string;
function dollarQuotedString(val: string): string;
function ident(val: string): string;
function literal(val: string): string;
}