# @types/hyper-function-component

> TypeScript definitions for hyper-function-component

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

## Install

```sh
npm install @types/hyper-function-component
pnpm add @types/hyper-function-component
yarn add @types/hyper-function-component
bun add @types/hyper-function-component
```

## 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 | 2.1.3 |
| Published | 2023-11-07 |
| First published | 2021-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51430 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hyper-function-component
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hyper-function-component
- npm.io page: https://npm.io/package/@types/hyper-function-component

## Recent versions

- 2.1.3 (latest) — 2023-11-07
- 2.1.0 (ts4.1) — 2022-09-20
- 2.0.0 (ts4.0) — 2022-07-24
- 1.0.0 (ts3.7) — 2021-09-14
- 2.1.2 — 2023-10-18
- 2.1.1 — 2023-09-16
- 1.4.0 — 2022-07-20
- 1.3.0 — 2022-07-11
- 1.2.0 — 2022-07-05
- 1.1.0 — 2022-06-20

## README

# Installation
> `npm install --save @types/hyper-function-component`

# Summary
This package contains type definitions for hyper-function-component (https://hyper-function.com/ponent).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hyper-function-component.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hyper-function-component/index.d.ts)
````ts
type HyperFunctionComponent =
    & ((
        container: Element,
        props: HfcProps,
    ) => {
        changed: (props: HfcProps) => void;
        disconnected: () => void;
    })
    & {
        tag: string;
        hfc: string;
        ver: string;
        // [AttrNames, EventNames, SlotNames]
        names: [string[], string[], string[]];
    };

interface HfcProps {
    attrs: { [k: string]: any };
    events: { [k: string]: (args?: { [k: string]: any }) => any };
    slots: {
        [k: string]: (
            container: Element,
            args?: { key?: string; [k: string]: any },
        ) => void;
    };
    others: { [k: string]: any };
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [terry-fei](https://github.com/terry-fei).

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