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

x/ts_matches/src/parsers/recursive-parser.ts

Being able to pattern match in typescript
Go to Latest
import * as tsMatches from "https://deno.land/x/ts_matches@v5.2.0/src/parsers/recursive-parser.ts";

Classes

This parser is used when trying to create parsers that user their own definitions in their types, like interface Tree { [key: string]: Tree | Leaf; }

Functions

Must pass the shape that we expect since typescript as of this point can't infer with recursive functions like this.