Add typings for sqlstring

This commit is contained in:
Marvin Hagemeister
2017-07-11 20:23:04 +02:00
parent 737e62220e
commit f0228785a5
4 changed files with 63 additions and 0 deletions

9
types/sqlstring/index.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type definitions for sqlstring 2.2
// Project: https://github.com/mysqljs/sqlstring
// Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
export function format(sql: string, args: object | any[]): string;
export function escape(value: any): string;
export function escapeId(value: any, dotQualifier?: boolean): string;