import { type Pattern } from "https://deno.land/x/fuzzy_octo_guacamole@v5.0.1/patterns.ts";
Pattern<a>
is the generic type for patterns matching a value of type a
. A pattern can be any (nested) javascript value.
They can also be wildcards, like P._
, P.string
, P.number
,
or other matchers, like P.when(predicate)
, P.not(pattern)
, etc.
definition: unknown extends a ? UnknownPattern : KnownPattern<a>