Skip to main content
Module

x/fuzzy_octo_guacamole/mod.ts>P.infer

A playground for testing CI setup that deploys on Deno and NPM
Go to Latest
type alias P.infer
import { type P } from "https://deno.land/x/fuzzy_octo_guacamole@v2.0.0/mod.ts";
const { infer } = P;

P.infer<typeof somePattern> will return the type of the value matched by this pattern.

Read P.infer documentation on GitHub

Examples

const userPattern = { name: P.string } type User = P.infer

Type Parameters

p extends Pattern<any>
definition: InvertPattern<p>