UNPKG

@codethread/tstl-validate

Version:

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

12 lines (11 loc) 422 B
/** @noSelfInFile */ import type { ParseResult } from "../../types"; /** * Creates a transformation function that sets a string, number or date to a * maximum value. * * @param requirement The maximum value. * * @returns A transformation function. */ export declare function toMaxValue<TInput extends string | number, TRequirement extends TInput>(requirement: TRequirement): (input: TInput) => ParseResult<TInput>;