Skip to main content
Module

x/ts_matches/src/parsers/shape-parser.ts>isShape

Being able to pattern match in typescript
Go to Latest
variable isShape
import { isShape } from "https://deno.land/x/ts_matches@v5.2.0/src/parsers/shape-parser.ts";

Good for duck typing an object

type

<A extends { }>(testShape: [key in keyof A]: Parser<unknown, A[key]>) => Parser<unknown, A>