import { isLiteralOf } from "https://deno.land/x/unknownutil@v3.13.0/mod.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
literal: T
import { isLiteralOf } from "https://deno.land/x/unknownutil@v3.13.0/mod.ts";
Return a type predicate function that returns true
if the type of x
is a literal type of pred
.