@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
10 lines • 372 B
TypeScript
import type { IsByteLengthOptions } from '../types';
/**
* Check if the string is ByteLength
*
* @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 isByteLength(str: string, options: IsByteLengthOptions): boolean;