mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 Merge PR #63518 Add @types/html-entities-decoder by @paikwiki
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import htmlEntitiesDecoder = require('html-entities-decoder');
|
||||
|
||||
htmlEntitiesDecoder("1 © 2 ""); // $ExpectType string
|
||||
18
types/html-entities-decoder/index.d.ts
vendored
Normal file
18
types/html-entities-decoder/index.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Type definitions for html-entities-decoder 1.0
|
||||
// Project: https://github.com/xinglie/html-entities-decoder
|
||||
// Definitions by: Changhyun Baek <https://github.com/paikwiki>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* Decode HTML entity string.
|
||||
*
|
||||
* @param str The string should be included encoded HTML entities
|
||||
* @return The string decoded HTML entities
|
||||
* @example
|
||||
* import decode from 'html-entities-decoder'
|
||||
* const input = '1 © 2 "'
|
||||
* const output = decode(input) // 1 © 2 "
|
||||
*/
|
||||
declare function htmlEntitiesDecoder(str: string): string;
|
||||
|
||||
export = htmlEntitiesDecoder;
|
||||
23
types/html-entities-decoder/tsconfig.json
Normal file
23
types/html-entities-decoder/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"html-entities-decoder-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/html-entities-decoder/tslint.json
Normal file
1
types/html-entities-decoder/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "@definitelytyped/dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user