Merge pull request #28280 from vfernandestoptal/unidecode

add declarations for unidecode
This commit is contained in:
Daniel Rosenwasser
2018-08-24 16:00:19 -07:00
committed by GitHub
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for unidecode 0.1
// Project: https://github.com/FGRibreau/node-unidecode
// Definitions by: Vitor Fernandes <https://github.com/vfernandestoptal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = unidecode;
declare function unidecode(str: string): string;
+23
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",
"unidecode-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }
+3
View File
@@ -0,0 +1,3 @@
import unidecode = require("unidecode");
const text: string = unidecode("Hello, World");