Function defineVirtualExoClassKit
- defineVirtualExoClassKit<I, T>(tag, interfaceGuardKit, init, facets, options?): ((...args: Parameters<I>) => GuardedKit<T>)
Type Parameters
- I extends InitState
- T extends Record<string, Record<PropertyKey, CallableFunction>>
Parameters
- tag: string
- 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