UNPKG

440 BTypeScriptView Raw
1/**
2 * Returns true if given string contains only digits, and optionally, a sign
3 * prefix.
4 *
5 * @param x -
6 */
7export declare const isNumericInt: (x: string) => boolean;
8/**
9 * Returns true if given string only contains an integer or floating point
10 * number, optionally in scientific notiation (e.g. `-123.45e-6`).
11 *
12 * @param x -
13 */
14export declare const isNumericFloat: (x: string) => boolean;
15//# sourceMappingURL=is-numeric.d.ts.map
\No newline at end of file