Added type string for isOdd param

This commit is contained in:
Adam Zerella
2019-02-23 13:25:20 +11:00
parent 209841578a
commit 3c7f7a0ece
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;
+1
View File
@@ -1,3 +1,4 @@
import isOdd = require("is-odd");
isOdd(5);
isOdd("5");