UNPKG

1.05 kBTypeScriptView Raw
1import { ActionCreator, ActionCreatorTypeMetadata, TypeConstant } from '../type-helpers';
2export declare function checkIsEmpty(arg: unknown): boolean;
3export declare function throwIsEmpty(argPosition: number): never;
4export declare function checkValidActionCreator(arg: unknown): arg is ActionCreator<TypeConstant>;
5export declare function checkInvalidActionCreator(arg: unknown): boolean;
6export declare function throwInvalidActionCreator(argPosition: number): never;
7export declare function checkInvalidActionCreatorInArray(arg: ActionCreator<TypeConstant> & ActionCreatorTypeMetadata<TypeConstant>, idx: number): void | never;
8export declare function checkValidActionType(arg: unknown): arg is string | symbol;
9export declare function checkInvalidActionType(arg: unknown): boolean;
10export declare function throwInvalidActionType(argPosition: number): never;
11export declare function checkInvalidActionTypeInArray(arg: TypeConstant, idx: number): void | never;
12export declare function throwInvalidActionTypeOrActionCreator(argPosition: number): never;