StatesWorkspaceEntries TypeAlias
Map of State objects registered with StatesWorkspace.
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.
Sealed
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
/** @sealed */
export type StatesWorkspaceEntries<TSchema extends StatesWorkspaceSchema> = {
/**
* Registered State objects.
*/
readonly [Key in keyof TSchema]: ReturnType<TSchema[Key]>["manager"] extends InternalTypes.StateValue<infer TManager> ? TManager : never;
};
Type Parameters
Parameter | Constraint | Description |
---|---|---|
TSchema | StatesWorkspaceSchema |