Skip to content

Commit 069650f

Browse files
authored
Change PerformanceObserver to be compatible with new Node types (microsoft#44884)
1 parent 0940652 commit 069650f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/performanceCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace ts {
3232

3333
export interface PerformanceObserver {
3434
disconnect(): void;
35-
observe(options: { entryTypes: readonly string[] }): void;
35+
observe(options: { entryTypes: readonly ("mark" | "measure")[] }): void;
3636
}
3737

3838
export type PerformanceObserverConstructor = new (callback: (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void) => PerformanceObserver;

src/tsserver/nodeServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ namespace ts.server {
256256
/* eslint-enable no-restricted-globals */
257257

258258
if (typeof global !== "undefined" && global.gc) {
259-
sys.gc = () => global.gc();
259+
sys.gc = () => global.gc!();
260260
}
261261

262262
sys.require = (initialDir: string, moduleName: string): RequireResult => {

0 commit comments

Comments
 (0)