LatestMapArguments Interface
Arguments that are passed to the StateFactory.latestMap function.
To use, import via @fluidframework/presence/beta.
For more information about our API support guarantees, see here.
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
| Parameter | Constraint | Default | Description |
|---|---|---|---|
| T | |||
| Keys | string | string |
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| keyValidator | Beta | optional | KeySchemaValidator<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. |
| validator | Beta | StateSchemaValidator<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.
For more information about our API support guarantees, see here.
Signature
keyValidator?: KeySchemaValidator<Keys>;
Type: KeySchemaValidator<Keys>
See Also
validator
An optional function that will be called at runtime to validate data value under a key. A runtime validator is strongly recommended.
For more information about our API support guarantees, see here.
Signature
validator: StateSchemaValidator<T>;
Type: StateSchemaValidator<T>