UNPKG

@devmore/vanilact

Version:
36 lines (32 loc) 732 B
export type Route = { path: string; component: any, alias?: string, middlewares?: CallableFunction[]; }; export type Component = { willMount?: () => void, render: () => any, onMount?: () => void, setDom?: ( dom: HTMLElement | Node | null ) => void; }; export type statusCodeComp = { code: number | string, component: any; params?: { [ k: string ]: any; }; }; export type Reference = { current: any; instance?: any; }; export type ComponentElement = { type: any, props?: {} | null, hooks?: any[]; effects?: any[]; hookIndex?: number; container?: HTMLElement | Node | null; instance?: any; __id?: number; __dom?: HTMLElement | Node | null; };