1 | import { VNode, VNodeData } from './vnode';
|
2 | export interface ThunkData extends VNodeData {
|
3 | fn: () => VNode;
|
4 | args: Array<any>;
|
5 | }
|
6 | export interface Thunk extends VNode {
|
7 | data: ThunkData;
|
8 | }
|
9 | export interface ThunkFn {
|
10 | (sel: string, fn: Function, args: Array<any>): Thunk;
|
11 | (sel: string, key: any, fn: Function, args: Array<any>): Thunk;
|
12 | }
|
13 | export declare const thunk: ThunkFn;
|
14 | export default thunk;
|