UNPKG

@codethread/tstl-validate

Version:

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

13 lines (12 loc) 510 B
/** @noSelfInFile */ import type { BaseSchema, BaseSchemaAsync, Output, ParseInfo } from '../../types'; /** * Parses unknown input based on a schema. * * @param schema The schema to be used. * @param input The input to be parsed. * @param info The optional parse info. * * @returns The parsed output. */ export declare function parseAsync<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, input: unknown, info?: Pick<ParseInfo, 'abortEarly' | 'abortPipeEarly'>): Promise<Output<TSchema>>;