Change PerformanceObserver to be compatible with new Node types (#44884)

This commit is contained in:
Ron Buckton 2021-07-03 21:26:56 -07:00 committed by GitHub
parent 09406524b3
commit 069650f602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace ts {
export interface PerformanceObserver {
disconnect(): void;
observe(options: { entryTypes: readonly string[] }): void;
observe(options: { entryTypes: readonly ("mark" | "measure")[] }): void;
}
export type PerformanceObserverConstructor = new (callback: (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void) => PerformanceObserver;

View File

@ -256,7 +256,7 @@ namespace ts.server {
/* eslint-enable no-restricted-globals */
if (typeof global !== "undefined" && global.gc) {
sys.gc = () => global.gc();
sys.gc = () => global.gc!();
}
sys.require = (initialDir: string, moduleName: string): RequireResult => {