function isCategoryKind
isCategoryKind(value: unknown): value is CategoryKind

Checks whether value is one of the CATEGORY_KINDS, for the category validator and the rows the category service reads.

Parameters

value: unknown

Return Type

value is CategoryKind

Usage

import { isCategoryKind } from "shared/category.ts";