Skip to main content
Module

x/ts_matches/src/parsers/dictionary-parser.ts>DictionaryShaped

Being able to pattern match in typescript
Latest
type alias DictionaryShaped
import { type DictionaryShaped } from "https://deno.land/x/ts_matches@v5.4.0/src/parsers/dictionary-parser.ts";
definition: T extends [] | readonly [] ? IParser<unknown, any> : T extends [infer A] | readonly [infer A] ? DictionaryTuple<A> : T extends [infer A, ...infer B] | readonly [infer A, ...infer B] ? DictionaryTuple<A> & DictionaryShaped<B> : never