Skip to main content

LatestMapArguments Interface

Arguments that are passed to the StateFactory.latestMap function.

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.

Input

This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.

Signature

export interface LatestMapArguments<T, Keys extends string = string> extends LatestMapArgumentsRaw<T, Keys>

Extends: LatestMapArgumentsRaw<T, Keys>

Type Parameters

ParameterConstraintDefaultDescription
T
Keysstringstring

Properties

PropertyAlertsModifiersTypeDescription
keyValidatorBetaoptionalKeySchemaValidator<Keys>An optional function that will be called at runtime to validate the presence data key. A runtime validator is strongly recommended when key type is not simply string.
validatorBetaStateSchemaValidator<T>An optional function that will be called at runtime to validate data value under a key. A runtime validator is strongly recommended.

Property Details

keyValidator

An optional function that will be called at runtime to validate the presence data key. A runtime validator is strongly recommended when key type is not simply string.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

keyValidator?: KeySchemaValidator<Keys>;

Type: KeySchemaValidator<Keys>

See Also

KeySchemaValidator.

validator

An optional function that will be called at runtime to validate data value under a key. A runtime validator is strongly recommended.

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

validator: StateSchemaValidator<T>;

Type: StateSchemaValidator<T>

See Also

StateSchemaValidator.