UNPKG

jay-js

Version:

Jay is a framework for creating a single page application.

19 lines (18 loc) 548 B
declare type SectionType = { id?: string; tag?: string; style?: Partial<CSSStyleDeclaration>; events?: Array<{ name: string; callback: (e: Event) => void; }>; content?: string | Function | Node | any; className?: string | Function; attributes?: Array<[string, string]>; }; interface SectionInterface extends HTMLElement { set: (value: Node | Function | string) => void; clear: () => void; } export declare const Section: (props: SectionType) => SectionInterface; export {};