import { isMatching } from "https://deno.land/x/fuzzy_octo_guacamole@v2.0.0/is-matching.ts";
isMatching
takes pattern and returns a type guard function, cheching if a value matches this pattern.
Type Parameters
p extends Pattern<any>
Parameters
pattern: p
Returns
(value: any) => value is MatchedValue<any, P.infer<p>>
isMatching
takes pattern and a value and checks if the value matches this pattern.
Type Parameters
p extends Pattern<any>
Parameters
pattern: p
Returns
value is MatchedValue<any, P.infer<p>>