# @types/preact-custom-element

> TypeScript definitions for preact-custom-element

Latest version **4.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/preact-custom-element
pnpm add @types/preact-custom-element
yarn add @types/preact-custom-element
bun add @types/preact-custom-element
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.4 |
| Published | 2023-11-07 |
| First published | 2020-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/preact-custom-element
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/preact-custom-element
- npm.io page: https://npm.io/package/@types/preact-custom-element

## Dependencies (1)

- [preact](https://npm.io/package/preact.md) ^10.0.0

## Recent versions

- 4.0.4 (latest) — 2023-11-07
- 4.0.2 (ts4.5) — 2023-09-24
- 4.0.1 (ts3.9) — 2021-06-29
- 4.0.3 — 2023-10-18
- 4.0.0 — 2020-09-21

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/preact-custom-element/index.d.ts)
````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](https://npmjs.com/package/preact)

# Credits
These definitions were written by [Nicolai Kasper](https://github.com/paull39).

---
_Source: https://npm.io/package/@types/preact-custom-element · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
