diff --git a/types/is-odd/index.d.ts b/types/is-odd/index.d.ts index 07d7164ff2..e912f69557 100644 --- a/types/is-odd/index.d.ts +++ b/types/is-odd/index.d.ts @@ -6,6 +6,6 @@ /** * Return true if a given number is odd or not. */ -declare function isOdd(value: number): boolean; +declare function isOdd(value: number|string): boolean; export = isOdd; diff --git a/types/is-odd/is-odd-tests.ts b/types/is-odd/is-odd-tests.ts index 215a2ba8d6..0717501894 100644 --- a/types/is-odd/is-odd-tests.ts +++ b/types/is-odd/is-odd-tests.ts @@ -1,3 +1,4 @@ import isOdd = require("is-odd"); isOdd(5); +isOdd("5");