Deprecated
Use isUnionOf
instead.
import { isOneOf } from "https://deno.land/x/unknownutil@v3.18.0/mod.ts";
Return a type predicate function that returns true
if the type of x
is UnionOf<T>
.
Parameters
preds: T
Use isUnionOf
instead.
import { isOneOf } from "https://deno.land/x/unknownutil@v3.18.0/mod.ts";
Return a type predicate function that returns true
if the type of x
is UnionOf<T>
.