2.3.2 • Published 2 months ago

@types/react-tagcloud v2.3.2

Weekly downloads
305
License
MIT
Repository
github
Last release
2 months ago

Installation

npm install --save @types/react-tagcloud

Summary

This package contains type definitions for react-tagcloud (https://github.com/madox2/react-tagcloud).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-tagcloud.

index.d.ts

// Type definitions for react-tagcloud v1.1.0
// Project: https://github.com/madox2/react-tagcloud
// Definitions by: wassname <https://github.com/wassname>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

///<reference types="react"/>

declare namespace ReactTagCloud {
    interface TagCloudProps {
        children?: React.ReactNode;
        ref?: React.LegacyRef<void> | undefined;
        tags: any[];
        maxSize: number;
        minSize: number;
        shuffle?: boolean | undefined;
        colorOptions?: object | undefined;
        renderer?: Function | undefined;
        className?: string | undefined;
        onClick?: Function | undefined;
        disableRandomColor?: boolean | undefined;
    }
    interface TagCloudClass extends React.ComponentClass<TagCloudProps> { }

    interface DefaultRendererFactoryOptions {
        tagRenderer?: Function | undefined;
        colorOptions?: any;
        props?: any;
    }
    interface RendererFunction {
        (tag: any, size: number, key: string | number, handlers: any): any;
    }
    interface DefaultRendererFactory {
        new (_ref?: DefaultRendererFactoryOptions): RendererFunction;
        (_ref?: DefaultRendererFactoryOptions): RendererFunction;
    }
}


// export = TagCloud
declare module reactTagCloud {
    const TagCloud: ReactTagCloud.TagCloudClass;
    const DefaultRenderer: ReactTagCloud.DefaultRendererFactory;
}

declare module "react-tagcloud" {
    export = reactTagCloud
}

Additional Details

  • Last updated: Thu, 21 Oct 2021 23:01:43 GMT
  • Dependencies: @types/react
  • Global values: reactTagCloud

Credits

These definitions were written by wassname.

2.3.2

2 months ago

2.3.1

5 months ago

1.1.9

7 months ago

1.1.8

9 months ago

2.3.0

6 months ago

1.1.11

6 months ago

1.1.10

7 months ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

5 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

0.4.16

7 years ago

0.4.15

8 years ago

0.4.14

8 years ago

0.4.13-alpha

8 years ago

0.4.12-alpha

8 years ago

0.4.11-alpha

8 years ago

0.4.10-alpha

8 years ago

0.4.9-alpha

8 years ago

0.4.8-alpha

8 years ago

0.4.3-alpha

8 years ago

0.4.2-alpha

8 years ago