Interface IUseInfoFactory<I, T, A, M>
Type Parameters
-
-
-
-
M extends Record<string, AnyFunction> = {}
Methods
actions
- actions<A2>(...actions: A2): IUseInfoFactory<IUseInfoBase<T, A | A2[number]>, T, A | A2[number], {}>
-
apply
- apply(handler: UseInfoHandler<I & {
methods: M;
}, T, A>): default<I, A, M, T>
-
Returns default<I, A, M, T>
method
- method<METHOD_NAME, METHOD_ARGS, METHOD_RETURN>(name: METHOD_NAME, method: UseInfoMethod<I & {
methods: M;
}, T, A, METHOD_ARGS, METHOD_RETURN>): IUseInfoFactory<I, T, A, M & { [ key in string]: ((...args: METHOD_ARGS) => METHOD_RETURN) }>
-
Type Parameters
-
METHOD_NAME extends string
-
METHOD_ARGS extends any[]
-
METHOD_RETURN
Parameters
-
name: METHOD_NAME
-
method: UseInfoMethod<I & {
methods: M;
}, T, A, METHOD_ARGS, METHOD_RETURN>
Returns IUseInfoFactory<I, T, A, M & { [ key in string]: ((...args: METHOD_ARGS) => METHOD_RETURN) }>