@codethread/tstl-validate
Version:
Fork and adaptation of valibot for use in typescript-to-lua
15 lines (14 loc) • 405 B
TypeScript
/** @noSelfInFile */
import type { Pipe, PipeAsync } from "../../types";
/**
* Returns error and pipe from dynamic arguments.
*
* @param arg1 First argument.
* @param arg2 Second argument.
*
* @returns The error and pipe.
*/
export declare function getErrorAndPipe<TPipe extends Pipe<any> | PipeAsync<any>>(arg1?: string | TPipe, arg2?: TPipe): {
error: string | undefined;
pipe: TPipe;
};