@gjsify/perf_hooks 0.4.29 → 0.4.31

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,13 +1,13 @@
1
1
  declare let performance: Performance;
2
2
  declare class PerformanceObserverStub {
3
3
  private _callback;
4
- constructor(callback: (list: any, observer: any) => void);
4
+ constructor(callback: (list: unknown, observer: unknown) => void);
5
5
  observe(_options?: {
6
6
  entryTypes?: string[];
7
7
  type?: string;
8
8
  }): void;
9
9
  disconnect(): void;
10
- takeRecords(): any[];
10
+ takeRecords(): unknown[];
11
11
  }
12
12
  declare class PerformanceEntryStub {
13
13
  readonly name: string;
@@ -22,9 +22,9 @@ declare class PerformanceEntryStub {
22
22
  };
23
23
  }
24
24
  declare class PerformanceObserverEntryListStub {
25
- getEntries(): any[];
26
- getEntriesByName(_name: string): any[];
27
- getEntriesByType(_type: string): any[];
25
+ getEntries(): unknown[];
26
+ getEntriesByName(_name: string): unknown[];
27
+ getEntriesByType(_type: string): unknown[];
28
28
  }
29
29
  declare const PerformanceObserver: typeof PerformanceObserverStub;
30
30
  declare const PerformanceEntry: typeof PerformanceEntryStub;
@@ -32,13 +32,13 @@ declare const PerformanceObserverEntryList: typeof PerformanceObserverEntryListS
32
32
  declare const PerformanceMark: typeof PerformanceEntryStub;
33
33
  declare const PerformanceMeasure: typeof PerformanceEntryStub;
34
34
  /** Stub: event loop utilization metrics (not available in GJS). */
35
- declare function eventLoopUtilization(_utilization1?: any, _utilization2?: any): {
35
+ declare function eventLoopUtilization(_utilization1?: unknown, _utilization2?: unknown): {
36
36
  idle: number;
37
37
  active: number;
38
38
  utilization: number;
39
39
  };
40
40
  /** Stub: wraps a function to measure its execution time. */
41
- declare function timerify<T extends (...args: any[]) => any>(fn: T): T;
41
+ declare function timerify<T extends (...args: unknown[]) => unknown>(fn: T): T;
42
42
  /** Stub: monitor event loop delay. */
43
43
  declare function monitorEventLoopDelay(_options?: {
44
44
  resolution?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/perf_hooks",
3
- "version": "0.4.29",
3
+ "version": "0.4.31",
4
4
  "description": "Node.js perf_hooks module for Gjs",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -33,8 +33,8 @@
33
33
  "perf_hooks"
34
34
  ],
35
35
  "devDependencies": {
36
- "@gjsify/cli": "^0.4.29",
37
- "@gjsify/unit": "^0.4.29",
36
+ "@gjsify/cli": "^0.4.31",
37
+ "@gjsify/unit": "^0.4.31",
38
38
  "@types/node": "^25.9.1",
39
39
  "typescript": "^6.0.3"
40
40
  }