UNPKG

@dash0/sdk-web

Version:

Dash0's Web SDK to collect telemetry from end-users' web browsers

6 lines (5 loc) 206 B
/** * Triggers the `fn` when the HTML document is getting unloaded * (or when it looks like it might be). Useful to flush batch activities. */ export declare function onLastChance(fn: () => void): void;