Skip to main content
Module

x/ok_computer/parser.ts>ObjParserResult

λ "Functions all the way down" data validation for JavaScript and TypeScript.
Latest
type alias ObjParserResult
import { type ObjParserResult } from "https://deno.land/x/ok_computer@v2.0.2/parser.ts";

Type Parameters

Parsers extends Record<keyof Parsers, (value: any) => any>
Value extends Partial<Record<keyof Parsers, any>>
definition: [P in keyof Parsers]: ReturnType<Parsers[P]> | (Value extends { } ? Value[P] extends { } ? Value[P] : undefined : undefined)