ManagerFactory TypeAlias
Package internal function declaration for state and notification instantiation.
This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.
For more information about our API support guarantees, see here.
Signature
type ManagerFactory<TKey extends string, TValue extends ValueDirectoryOrState<any>, TManager> = {
instanceBase: new (...args: any[]) => any;
} & ((key: TKey, datastoreHandle: StateDatastoreHandle<TKey, TValue>) => {
initialData?: {
value: TValue;
allowableUpdateLatencyMs: number | undefined;
};
manager: StateValue<TManager>;
});
Type Parameters
Parameter | Constraint | Description |
---|---|---|
TKey | string | |
TValue | ValueDirectoryOrState<any> | |
TManager |