Skip to main content

DataAssertionFn()<T>

type DataAssertionFn<T>: (data) => T;

Represents a function used to assert the type of data. This function takes an unknown data and returns a specified type.

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
dataunknown

Returns

T