@lokalise/fastify-extras
Version:
Opinionated set of fastify plugins, commonly used in Lokalise
14 lines (13 loc) • 548 B
TypeScript
import type { AmplitudeReturn, BaseEvent, Result } from '@amplitude/analytics-types';
export declare class Amplitude {
private readonly isEnabled;
constructor(isEnabled: boolean);
/**
* Sends the given event to Amplitude
*
* @param event Event to send to amplitude. Please check
* [this](https://amplitude.github.io/Amplitude-TypeScript/interfaces/_amplitude_analytics_node.Types.BaseEvent.html)
* to get more info about the BaseEvent type
*/
track(event: BaseEvent): AmplitudeReturn<Result | null>;
}