@sigi/core
Version:
Sigi core library
23 lines (22 loc) • 1.08 kB
TypeScript
import type { EffectOptions } from './decorators';
declare const actionEnum: {
DefineAction: string;
Reducer: string;
ImmerReducer: string;
Effect: string;
};
export type ActionType = keyof typeof actionEnum;
export declare function getDecoratedActions(prototype: any, type: ActionType, defaultValue?: string[]): string[] | undefined;
export declare function createActionDecorator(type: ActionType): () => (prototype: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare const getSSREffectMeta: (prototype: any, defaultValue?: {
action: string;
payloadGetter?: EffectOptions["payloadGetter"];
}[] | undefined) => {
action: string;
payloadGetter?: EffectOptions["payloadGetter"];
}[] | undefined, addSSREffectMeta: (prototype: any, meta: {
action: string;
payloadGetter?: EffectOptions["payloadGetter"];
}) => void;
export declare const getActionsToSkip: (prototype: any, defaultValue?: string[] | undefined) => string[] | undefined, addActionToSkip: (prototype: any, meta: string) => void;
export {};