@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
10 lines • 356 B
TypeScript
import type { IsLengthOptions } from '../types';
/**
* Check if the string is Length
*
* @param str - The string to check
* @param options - Options object
* @returns True if the string matches the validation, false otherwise
*/
/* eslint-disable prefer-rest-params */
export declare function isLength(str: string, options: IsLengthOptions): boolean;