Deprecated
Use isUnionOf
instead.
import { isOneOf } from "https://dotland.deno.dev/x/unknownutil@v3.18.0/is.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://dotland.deno.dev/x/unknownutil@v3.18.0/is.ts";
Return a type predicate function that returns true
if the type of x
is UnionOf<T>
.