UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

8 lines 275 B
/** * Check if the string is IPRange * * @param str - The string to check * @param version - IP version (4 or 6) * @returns True if the string matches the validation, false otherwise */ export declare function isIPRange(str: string, version?: number | string): boolean;