UNPKG

393 BTypeScriptView Raw
1import { VNode, VNodeData } from 'snabbdom';
2export interface ThunkData extends VNodeData {
3 fn(): VNode;
4 args: Array<any>;
5}
6export interface Thunk extends VNode {
7 data: ThunkData;
8}
9export declare function thunk(sel: string, fn: Function, args: Array<any>): Thunk;
10export declare function thunk(sel: string, key: any, fn: Function, args: Array<any>): Thunk;
11export default thunk;