Function defineExoClassKit
- defineExoClassKit<I, F>(tag, interfaceGuardKit, init, methodsKit, options?): ((...args: Parameters<I>) => GuardedKit<F>)
Type Parameters
- I extends ((...args: any[]) => any)
- F extends Record<string, Methods>
Parameters
- tag: string
- interfaceGuardKit: undefined | ExoClassInterfaceGuardKit<F>
- init: I
- methodsKit: ExoClassKitMethods<F, I>
Optional
options: FarClassOptions<KitContext<ReturnType<I>, GuardedKit<F>>, GuardedKit<F>>
Returns ((...args: Parameters<I>) => GuardedKit<F>)
- (...args): GuardedKit<F>
Parameters
Rest
...args: Parameters<I>
Returns GuardedKit<F>