mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Added type string for isOdd param
This commit is contained in:
Vendored
+1
-1
@@ -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,3 +1,4 @@
|
||||
import isOdd = require("is-odd");
|
||||
|
||||
isOdd(5);
|
||||
isOdd("5");
|
||||
|
||||
Reference in New Issue
Block a user