UNPKG

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