diff --git a/types/decode-entities/decode-entities-tests.ts b/types/decode-entities/decode-entities-tests.ts new file mode 100644 index 0000000000..9fece87667 --- /dev/null +++ b/types/decode-entities/decode-entities-tests.ts @@ -0,0 +1,4 @@ +import decodeEntities = require('decode-entities'); + +// $ExpectType string +decodeEntities('!'); \ No newline at end of file diff --git a/types/decode-entities/index.d.ts b/types/decode-entities/index.d.ts new file mode 100644 index 0000000000..7773a5cd45 --- /dev/null +++ b/types/decode-entities/index.d.ts @@ -0,0 +1,8 @@ +// Type definition for decode-entities v1.0.4 +// Project: https://github.com/waspothegreat/decode-entities#readme +// Definitions by: waspothegreat +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function decode(encodedString: string): string; + +export = decode; diff --git a/types/decode-entities/tsconfig.json b/types/decode-entities/tsconfig.json new file mode 100644 index 0000000000..3a3967c92c --- /dev/null +++ b/types/decode-entities/tsconfig.json @@ -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" + ] +} \ No newline at end of file diff --git a/types/decode-entities/tslint.json b/types/decode-entities/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/decode-entities/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file