Skip to content

Commit d44fce6

Browse files
🤖 Merge PR DefinitelyTyped#72082 feat(unidecode): Update definition to support extra parameter by @chedabob
Co-authored-by: Adam Thompson-Sharpe <[email protected]>
1 parent 7a62a1d commit d44fce6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎types/unidecode/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export = unidecode;
22

3-
declare function unidecode(str: string): string;
3+
declare function unidecode(str: string, sub?: string | null): string;

‎types/unidecode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/unidecode",
4-
"version": "0.1.9999",
4+
"version": "1.1.9999",
55
"projects": [
66
"https://github.com/FGRibreau/node-unidecode",
77
"http://blog.fgribreau.com/2012/05/unidecode-for-javascript-nodejs.html"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import unidecode = require("unidecode");
22

3-
const text: string = unidecode("Hello, World");
3+
const oneParam: string = unidecode("Hello, World");
4+
const twoParam: string = unidecode("Hello, World", "placeholder");

0 commit comments

Comments
 (0)