mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Added types for js-string-escape
This commit is contained in:
8
types/js-string-escape/index.d.ts
vendored
Normal file
8
types/js-string-escape/index.d.ts
vendored
Normal 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;
|
||||
3
types/js-string-escape/js-string-escape-tests.ts
Normal file
3
types/js-string-escape/js-string-escape-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import jsStringEscape = require('js-string-escape');
|
||||
|
||||
jsStringEscape('hello world');
|
||||
23
types/js-string-escape/tsconfig.json
Normal file
23
types/js-string-escape/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/js-string-escape/tslint.json
Normal file
1
types/js-string-escape/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user