mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Change PerformanceObserver to be compatible with new Node types (#44884)
This commit is contained in:
parent
09406524b3
commit
069650f602
@ -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;
|
||||
|
||||
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user