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