Skip to content

TypeGuard<T>

A function deciding whether a value is a T.

Import:

import type { TypeGuard } from '@mnaoumov/typescript-lib/type-guards';

Signature:

export type TypeGuard<T>

Signature:

type TypeGuard<T> = (value: unknown) => value is T

Type: (value: unknown) => value is T


Links to this page: