# @types/react-amplitude

> TypeScript definitions for react-amplitude

Latest version **0.1.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-amplitude
pnpm add @types/react-amplitude
yarn add @types/react-amplitude
bun add @types/react-amplitude
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2023-11-07 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-amplitude
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-amplitude
- npm.io page: https://npm.io/package/@types/react-amplitude

## Recent versions

- 0.1.2 (latest) — 2023-11-07
- 0.1.0 (ts2.0) — 2018-06-21
- 0.1.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/react-amplitude`

# Summary
This package contains type definitions for react-amplitude (https://github.com/rorygarand/react-amplitude).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-amplitude.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-amplitude/index.d.ts)
````ts
export interface AmplitudeInstance {
    init(apiKey: string, userId?: string, config?: any, cb?: () => void): void;
    amplitude(): void;
    clearUserProperties(): void;
    getSessionId(): void;
    identify(idObj: any, cb: () => void): void;
    isNewSession(): void;
    logEvent(eventType: string, eventProperties: {}, cb: () => void): void;
    logEventWithTimestamp(eventType: string, eventProperties: {}, timestamp: number, cb: () => void): void;
    resetUserId(): void;
    setUserId(userId: string): void;
    setUserProperties(userProps: any): void;
}

declare const Amplitude: AmplitudeInstance;

export default Amplitude;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Raymond Ho](https://github.com/rayzor65).

---
_Source: https://npm.io/package/@types/react-amplitude · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
