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

x/ts_matches/src/parsers/deferred-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/deferred-parser.ts";

Classes

This is needed when the typescript has a recursive, mutual types type Things = string | [OtherThings] type OtherThings = {type: 'other', value:Things }

Functions

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