Function defineVirtualExoClass
- defineVirtualExoClass<I, T>(tag, interfaceGuard, init, methods, options?): ((...args: Parameters<I>) => Guarded<T>)
Parameters
- tag: string
- interfaceGuard: undefined | InterfaceGuard
- init: I
- methods: T & ThisType<{
self: T;
state: StateResult<I>;
}> Optional
options: DefineKindOptions<{
self: T;
state: StateResult<I>;
}>
Returns ((...args: Parameters<I>) => Guarded<T>)
- (...args): Guarded<T>
Parameters
Rest
...args: Parameters<I>
Returns Guarded<T>
init state function