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.
This API is provided as a beta preview and may change without notice.
To use, import via @fluidframework/presence/beta
.
For more information about our API support guarantees, see here.
Signature
export type StateSchemaValidator<T> = (
unvalidatedData: unknown) => JsonDeserialized<T> | undefined;
Type Parameters
Parameter | Description |
---|---|
T |