npm.io
4.0.4 • Published 2 years ago

@types/preact-custom-element

Licence
MIT
Version
4.0.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: preact

Credits

These definitions were written by Nicolai Kasper.