mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
568 B
TypeScript
20 lines
568 B
TypeScript
// Type definitions for hyperscript
|
|
// Project: https://github.com/dominictarr/hyperscript
|
|
// Definitions by: Mike Linkovich <https://github.com/spacejack>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module 'hyperscript' {
|
|
|
|
interface HyperScript {
|
|
/** Creates an HTML element */
|
|
(tagName: string, ...args: any[]): HTMLElement;
|
|
/** Cleans up any event handlers created by this hyperscript context */
|
|
cleanup(): void;
|
|
/** Creates a new hyperscript context */
|
|
context(): HyperScript;
|
|
}
|
|
|
|
const h: HyperScript;
|
|
export = h;
|
|
}
|