UNPKG

stnl

Version:

A simple, opinionated type validator built for performance

9 lines (8 loc) 315 B
import type { StandardSchemaV1 } from "@standard-schema/spec"; import type { TLoadedType, TInfer } from "../type.js"; /** * Convert stnl schema to standard schema * @param t * @param errorMessage */ export declare const toV1: <T extends TLoadedType>(t: T, errorMessage: string) => StandardSchemaV1<any, TInfer<T>>;