2.1.3 • Published 6 months ago

@types/hyper-function-component v2.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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 definitions for hyper-function-component 1.0
// Project: https://hyper-function.com/ponent
// Definitions by: terry-fei <https://github.com/terry-fei>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class HyperFunctionComponent {
    static propTypes?: HfcPropTypes;
    constructor(props: HfcProps);

    connected(container: HTMLDivElement): void;
    changed?(type: 'attr' | 'event' | 'slot', name: string, oldValue: any, newValue: any): void;
    disconnected?(): void;
}

interface HfcProps {
    attrs: { [k: string]: any };
    events: { [k: string]: (args?: { [k: string]: any }) => any };
    slots: {
        [k: string]: (container: HTMLElement, args?: { [k: string]: any }) => void;
    };
}

interface HfcPropTypes {
    attrs?: { [k: string]: HfcPropTypeDef };
    events?: { [k: string]: { [k: string]: HfcPropTypeDef } };
    slots?: { [k: string]: { [k: string]: HfcPropTypeDef } };
}

type HfcPropTypeDef = any;

interface Int {
    valueOf(): 'HFC_TYPE_INT';
}
interface Float {
    valueOf(): 'HFC_TYPE_FLOAT';
}
interface Any {
    valueOf(): 'HFC_TYPE_ANY';
}

Additional Details

  • Last updated: Tue, 14 Sep 2021 22:31:21 GMT
  • Dependencies: none
  • Global values: HyperFunctionComponent

Credits

These definitions were written by terry-fei.

2.1.2

7 months ago

2.1.1

8 months ago

2.1.3

6 months ago

2.1.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.4.0

2 years ago

2.0.0

2 years ago

1.3.0

2 years ago

1.0.0

3 years ago