@types/hyperscript
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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.

/@types/hyperscript/

    Package Sidebar

    Install

    npm i @types/hyperscript

    Weekly Downloads

    655

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    3.81 kB

    Total Files

    5

    Last publish

    Collaborators

    • types