mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for "ineum" ineum is the global object used by the Instana Website Monitoring API (https://docs.instana.io/products/website_monitoring/api/) to collect different kinds of information from websites/apps. * Added tests and fixed header lint issue * Fixed test file and added minimum TS version * Merged definitions with same signature, added dummy version number * Made userName and userEmail optional * Removed unnecessary type reference
18 lines
1.0 KiB
TypeScript
18 lines
1.0 KiB
TypeScript
// Type definitions for non-npm package ineum-browser 1.0
|
|
// Project: https://docs.instana.io/products/website_monitoring/api/
|
|
// Definitions by: Enzo Volkmann <https://github.com/evolkmann>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.2
|
|
|
|
// Website Monitoring API from Instana (status: 2019-09-10)
|
|
|
|
declare function ineum(command: 'key' | 'reportingUrl' | 'page' | 'traceId', value: string): void;
|
|
declare function ineum(command: 'user', userId: string, userName?: string, userEmail?: string): void;
|
|
declare function ineum(command: 'meta', key: string, value: string): void;
|
|
declare function ineum(command: 'autoClearResourceTimings' | 'wrapEventHandlers' | 'wrapTimers', enable: boolean): void;
|
|
declare function ineum(command: 'getPageLoadId'): string | undefined;
|
|
declare function ineum(command: 'reportError', error: string, opts?: {
|
|
componentStack: string
|
|
}): void;
|
|
declare function ineum(command: 'ignoreUrls' | 'ignoreErrorMessages' | 'whitelistedOrigins', values: RegExp[]): void;
|