Skip to main content

StateSchemaValidator TypeAlias

A validator function that can optionally be provided to do runtime validation of the custom data stored in a presence workspace and managed by a state object.

Signature

export type StateSchemaValidator<T> = (
unvalidatedData: unknown) => JsonDeserialized<T> | undefined;

Type Parameters

ParameterDescription
T