1.0.5 • Published 6 months ago
@types/react-coinhive v1.0.5
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
// Type definitions for react-coinhive 1.0
// Project: https://github.com/dragma/react-coinhive
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 23 Dec 2021 23:35:34 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by DefinitelyTyped.