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 .