Skip to main content
Go to Latest
function matches.recursive
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.ts";
const { recursive } = matches;

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

Type Parameters

optional
B = never

Parameters

fn: EnsurredType<B>

This should be a function that takes a parser, basically the self in a type recursion, and return a parser that is the combination of the recursion.