import { isLiteralOf } from "https://deno.land/x/unknownutil@v3.7.0/is.ts";
Return a type predicate function that returns true
if the type of x
is a literal type of pred
.
Type Parameters
T extends Primitive
Parameters
pred: T
import { isLiteralOf } from "https://deno.land/x/unknownutil@v3.7.0/is.ts";
Return a type predicate function that returns true
if the type of x
is a literal type of pred
.