Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Being able to pattern match in typescript
Go to Latest
type alias DictionaryTuple
import { type DictionaryTuple } from "https://deno.land/x/ts_matches@v5.2.0/src/parsers/dictionary-parser.ts";
definition: A extends [Parser<unknown, infer Keys>, Parser<unknown, infer Values>] ? Keys extends string | number ? [key in Keys]: Values : never : never