@types/hyper-function-component
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hyper-function-component

Weekly Downloads

1

Version

2.1.3

License

MIT

Unpacked Size

3.98 kB

Total Files

5

Last publish

Collaborators

  • types