UNPKG

@dynatrace/js-runtime

Version:

This package provides the Dynatrace JavaScript runtime used by the [Dynatrace App Toolkit](https://www.npmjs.com/package/dt-app).

17 lines (13 loc) 473 B
// Polyfills for the explicit resource management types added in TypeScript 5.2. // TODO: remove once this package no longer supports TS 5.1, and replace with a // <reference> to TypeScript's disposable library in index.d.ts. interface SymbolConstructor { readonly dispose: unique symbol; readonly asyncDispose: unique symbol; } interface Disposable { [Symbol.dispose](): void; } interface AsyncDisposable { [Symbol.asyncDispose](): PromiseLike<void>; }