- defineExoClass<I, M>(tag, interfaceGuard, init, methods, options?): ((...args: Parameters<I>) => Guarded<M>)
Type Parameters
- I extends ((...args: any[]) => any)
- M extends Methods
Parameters
- tag: string
- interfaceGuard: undefined | ExoClassInterfaceGuard<M>
- init: I
- methods: ExoClassMethods<M, I>
Optional
options: FarClassOptions<ClassContext<ReturnType<I>, M>>
Returns ((...args: Parameters<I>) => Guarded<M>)
- (...args): Guarded<M>
Parameters
Rest
...args: Parameters<I>
Returns Guarded<M>