jstd-web/node_modules/snabbdom/build/thunk.d.ts

14 lines
405 B
TypeScript
Raw Normal View History

2025-11-25 15:23:22 +08:00
import { VNode, VNodeData } from "./vnode";
export interface ThunkData extends VNodeData {
fn: () => VNode;
args: any[];
}
export interface Thunk extends VNode {
data: ThunkData;
}
export interface ThunkFn {
(sel: string, fn: (...args: any[]) => any, args: any[]): Thunk;
(sel: string, key: any, fn: (...args: any[]) => any, args: any[]): Thunk;
}
export declare const thunk: ThunkFn;