Skip to main content

KeySchemaValidator TypeAlias

A validator function that can optionally be provided to do runtime validation of the custom key listed in a LatestMap.

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 KeySchemaValidator<Keys extends string> = (unvalidatedKey: string) => unvalidatedKey is Keys;

Type Parameters

ParameterConstraintDescription
Keysstring