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.