@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
9 lines • 364 B
TypeScript
import type { NumericOptions } from '../types';
/**
* Check if the string contains only numbers.
*
* @param str - The string to check
* @param options - Optional parameters to control validation behavior
* @returns True if the string contains only numbers, false otherwise
*/
export declare function isNumeric(str: string, options?: NumericOptions): boolean;