@univerjs-pro/telemetry 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ctor } from '@univerjs/core';
|
|
2
|
-
import { ITelemetryService } from '@univerjs/telemetry';
|
|
1
|
+
import type { Ctor } from '@univerjs/core';
|
|
2
|
+
import type { ITelemetryService } from '@univerjs/telemetry';
|
|
3
3
|
export declare const TELEMETRY_PLUGIN_CONFIG_KEY = "telemetry.config";
|
|
4
4
|
export declare const configSymbol: unique symbol;
|
|
5
5
|
export interface IUniverTelemetryConfig {
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUniverTelemetryConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverTelemetryConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, Plugin } from '@univerjs/core';
|
|
3
3
|
export declare class UniverTelemetryPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IDisposable
|
|
2
|
-
import { ITelemetryService } from '@univerjs/telemetry';
|
|
3
|
-
import { PostHog } from 'posthog-js';
|
|
1
|
+
import type { IDisposable } from '@univerjs/core';
|
|
2
|
+
import type { ITelemetryService } from '@univerjs/telemetry';
|
|
3
|
+
import type { PostHog } from 'posthog-js';
|
|
4
|
+
import { Disposable } from '@univerjs/core';
|
|
4
5
|
export declare class PosthogTelemetryService extends Disposable implements ITelemetryService, IDisposable {
|
|
5
6
|
private _performanceRecords;
|
|
6
7
|
protected _posthog: PostHog | undefined;
|