Files
DefinitelyTyped/jsesc/jsesc.d.ts
2016-03-17 21:06:54 +09:00

26 lines
538 B
TypeScript

// Type definitions for jsesc 0.4.3
// Project: https://github.com/mathiasbynens/jsesc
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'jsesc' {
function jsesc(str: string, opts?: any): string;
namespace jsesc {
var version: string;
interface Opts {
quotes?: string;
wrap?: boolean;
es6?: boolean;
escapeEverything?: boolean;
compact?: boolean;
indent?: string;
json?: boolean;
}
}
export = jsesc;
}