Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#31597 from waspothegreat/master
Browse files Browse the repository at this point in the history
Add type definitions for decode-entities
  • Loading branch information
sandersn authored Dec 21, 2018
2 parents 3e59101 + d215b47 commit dc8bb4b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/decode-entities/decode-entities-tests.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import decodeEntities = require('decode-entities');

// $ExpectType string
decodeEntities('© !');
8 changes: 8 additions & 0 deletions types/decode-entities/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Type definitions for decode-entities 1.0
// 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;
23 changes: 23 additions & 0 deletions types/decode-entities/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
1 change: 1 addition & 0 deletions types/decode-entities/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }

0 comments on commit dc8bb4b

Please sign in to comment.