Added types for js-string-escape

This commit is contained in:
Jamie Davies
2018-03-06 15:30:19 +00:00
parent 716c8476f3
commit c7dac52513
4 changed files with 35 additions and 0 deletions

8
types/js-string-escape/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for js-string-escape 1.0
// Project: https://github.com/joliss/js-string-escape
// Definitions by: Jamie Davies <https://github.com/viralpickaxe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function jsStringEscape(str: string): string;
export = jsStringEscape;

View File

@@ -0,0 +1,3 @@
import jsStringEscape = require('js-string-escape');
jsStringEscape('hello world');

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"strictFunctionTypes": true
},
"files": [
"index.d.ts",
"js-string-escape-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }