function createTypeGuard
createTypeGuard<T extends string>(values: readonly T[])

Create a type guard from a readonly array of string literal values

Type Parameters

T extends string

Parameters

values: readonly T[]

Return Type

Usage

import { createTypeGuard } from "docs/config.ts";