Add decode-entities type definitions

This commit is contained in:
Nicolas
2018-12-21 11:49:02 -05:00
parent f91a63c5e3
commit afa0c1e93a
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import decodeEntities = require('decode-entities');
// $ExpectType string
decodeEntities('!');

8
types/decode-entities/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definition for decode-entities v1.0.4
// Project: https://github.com/waspothegreat/decode-entities#readme
// Definitions by: waspothegreat <https://github.com/waspothegreat/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function decode(encodedString: string): string;
export = decode;

View File

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

View File

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