UNPKG

479 BTypeScriptView Raw
1import { TypeConstant, ResolveType, ActionCreatorTypeMetadata } from './type-helpers';
2/**
3 * @description create custom action-creator using constructor function with injected type argument
4 */
5export declare function createCustomAction<TType extends TypeConstant, TArgs extends any[] = [], TReturn extends any = {}>(type: TType, createHandler?: (...args: TArgs) => TReturn): ((...args: TArgs) => ResolveType<{
6 type: TType;
7} & TReturn>) & ActionCreatorTypeMetadata<TType>;
8
\No newline at end of file