Function defineDurableExoClassKit
- defineDurableExoClassKit<I, T>(kindHandle, interfaceGuardKit, init, facets, options?): ((...args: Parameters<I>) => GuardedKit<T>)
Type Parameters
- I extends InitState
- T extends Record<string, Record<PropertyKey, CallableFunction>>
Parameters
- kindHandle: DurableKindHandleClass
- interfaceGuardKit: undefined | InterfaceGuardKit
- init: I
- facets: T & ThisType<{
facets: GuardedKit<T>;
state: StateResult<I>;
}> Optional
options: DefineKindOptions<{
facets: T;
state: StateResult<I>;
}>
Returns ((...args: Parameters<I>) => GuardedKit<T>)
- (...args): GuardedKit<T>
Parameters
Rest
...args: Parameters<I>
Returns GuardedKit<T>
init state function