Installation
npm install --save @types/hyperscript
Summary
This package contains type definitions for hyperscript (https://github.com/dominictarr/hyperscript).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hyperscript.
index.d.ts
declare module "hyperscript" {
interface HyperScript {
/** Creates an Element */
<T extends keyof ElementTagNameMap>(tagName: T, attrs?: Object, ...children: any[]): ElementTagNameMap[T];
<T extends Element>(tagName: string, attrs?: Object, ...children: any[]): T;
/** Cleans up any event handlers created by this hyperscript context */
cleanup(): void;
/** Creates a new hyperscript context */
context(): HyperScript;
}
const h: HyperScript;
export = h;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Mike Linkovich, and Justin Firth.