1 | import { Observer, Observable } from "rxjs";
|
2 | import { ExtractProps } from "./connect";
|
3 | export declare type FunctionPropertyNames<T> = {
|
4 | [K in keyof T]: T[K] extends Function ? K : never;
|
5 | }[keyof T];
|
6 | export declare type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;
|
7 | export declare type UnaryFunction<T> = (t: T, ...args: any[]) => any;
|
8 | export declare type ActionFunction = (...args: any[]) => any;
|
9 | export declare type ActionMap<TComponentOrProps> = {
|
10 | [P in keyof FunctionProperties<ExtractProps<TComponentOrProps>>]?: ActionFunction | Observer<FunctionProperties<ExtractProps<TComponentOrProps>>[P] extends UnaryFunction<infer A> ? A : never>;
|
11 | };
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare type UnpackMap<TComponentState> = {
|
22 | [P in keyof TComponentState]?: Observable<TComponentState[P]>;
|
23 | };
|
24 | export declare function assembleActionProps<TOriginalProps>(actionMap: ActionMap<TOriginalProps>): Partial<TOriginalProps>;
|