Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ts_matches/src/matches.ts>deferred

Being able to pattern match in typescript
Go to Latest
function deferred
Re-export
import { deferred } from "https://deno.land/x/ts_matches@v5.4.1/src/matches.ts";

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

Type Parameters

optional
B = never