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

4.0.4 • Public • Published

Installation

npm install --save @types/preact-custom-element

Summary

This package contains type definitions for preact-custom-element (https://github.com/preactjs/preact-custom-element#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/preact-custom-element.

index.d.ts

import { ComponentClass, FunctionalComponent, FunctionComponent } from "preact";
declare function register(
    componentDefinition: FunctionComponent<any> | ComponentClass<any> | FunctionalComponent<any>,
    tagName?: string,
    observedAttributes?: string[],
    options?: { shadow: boolean },
): void;

export = register;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: preact

Credits

These definitions were written by Nicolai Kasper.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/preact-custom-element

    Weekly Downloads

    4,867

    Version

    4.0.4

    License

    MIT

    Unpacked Size

    3.37 kB

    Total Files

    5

    Last publish

    Collaborators

    • types