@dynatrace/dtrum-api-types
Advanced tools
Comparing version 1.223.5 to 1.225.8
@@ -221,3 +221,4 @@ /** | ||
* @param actionId ID of the action to leave. must be the value returned by enterAction | ||
* @param stopTime Timestamp in milliseconds | ||
* @param stopTime Timestamp in milliseconds. | ||
* Note that, when providing a stop time, it will force stop the action and prevent visually complete from extending it. | ||
* @param startTime Optional start time in milliseconds (necessary if start time should be modified). | ||
@@ -224,0 +225,0 @@ * Note that, when providing a start time, it mustn't be longer than an hour in the past, otherwise the |
{ | ||
"name": "@dynatrace/dtrum-api-types", | ||
"version": "1.223.5", | ||
"version": "1.225.8", | ||
"description": "Typescript types for Dynatrace jsagents dtrum api.", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -5,3 +5,3 @@ # Dynatrace Dtrum Api Types | ||
Keep in mind that when the javascript agent is updated, this type package might not provide accurate types. | ||
Version: 1.223.5 | ||
Version: 1.225.8 | ||
@@ -11,6 +11,11 @@ ## Installation | ||
## Configuration | ||
Make sure to add these paths to `"typeRoots"` in tsconfig.json under `"compilerOptions"` | ||
``` | ||
"typeRoots": ["./node_modules/@types", "./node_modules/@dynatrace/"], | ||
``` | ||
## Usage examples | ||
Type inference works out of the box for dtrum calls. | ||
``` | ||
import "@dynatrace/dtrum-api-types"; | ||
if (window.dtrum) { | ||
@@ -23,4 +28,4 @@ window.dtrum.identifyUser("exampleId"); | ||
In case some specific types or enums are needed, you can import them from `dtrum` types library. | ||
``` | ||
import "@dynatrace/dtrum-api-types"; | ||
import { ResourceSummaryTypes } from '@dynatrace/dtrum-api-types'; | ||
@@ -33,2 +38,2 @@ | ||
} | ||
``` | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29490
544
36