@types/react-coinhive
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Installation

npm install --save @types/react-coinhive

Summary

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

Details

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

index.d.ts

import * as React from "react";

export interface CoinHiveProps {
    autoThreads?: boolean | undefined;

    run?: boolean | undefined;

    siteKey: string;

    src?: string | undefined;

    threads?: number | undefined;

    throttle?: number | undefined;

    userName?: string | undefined;

    onInit?: ((callback: any) => void) | undefined;

    onStart?: ((callback: any) => void) | undefined;

    onStop?: ((callback: any) => void) | undefined;
}

export default class CoinHive extends React.Component<CoinHiveProps, any> {
    static getMinerData(miner: any): any;

    static src: {
        authedmine: string;
        coinhive: string;
    };

    onInit(miner: any): any;

    onStart(miner: any): any;

    onStop(miner: any): any;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-coinhive

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types