mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
add declarations for unidecode
This commit is contained in:
parent
73607eed34
commit
b8ac2c066c
8
types/unidecode/index.d.ts
vendored
Normal file
8
types/unidecode/index.d.ts
vendored
Normal 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
types/unidecode/tsconfig.json
Normal file
23
types/unidecode/tsconfig.json
Normal 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
types/unidecode/tslint.json
Normal file
1
types/unidecode/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
3
types/unidecode/unidecode-tests.ts
Normal file
3
types/unidecode/unidecode-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import unidecode = require("unidecode");
|
||||
|
||||
const text: string = unidecode("Hello, World");
|
||||
Loading…
Reference in New Issue
Block a user