function isRole
isRole(value: unknown): value is Role

Checks whether value is a Role, as the role endpoint and the row guards must before trusting one.

Parameters

value: unknown

Return Type

value is Role

Usage

import { isRole } from "shared/user.ts";