DefinitelyTyped/types/ineum/index.d.ts
Enzo Volkmann f574f4aa13 Added type definitions for "ineum" (#38275)
* 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
2019-09-13 08:51:07 -07:00

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;