UNPKG

@codethread/tstl-validate

Version:

Fork and adaptation of valibot for use in typescript-to-lua

12 lines (11 loc) 463 B
/** @noSelfInFile */ import type { ParseResult, ValidateInfo } from "../../types"; /** * Creates a validation functions that validates a pattern does not match against a string * * @param requirement The pattern to be matched. * @param error The error message. * * @returns A validation function. */ export declare function notMatches<TInput extends string>(requirement: string, error?: string): (input: TInput, info: ValidateInfo) => ParseResult<TInput>;