cnf
2025-09-17 2565d78042b7cc5ac500c4bac5edefdb7a046af5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Polyfills for the explicit resource management types added in TypeScript 5.2.
// TODO: remove once this package no longer supports TS 5.1, and replace with a
// <reference> to TypeScript's disposable library in index.d.ts.
 
interface SymbolConstructor {
    readonly dispose: unique symbol;
    readonly asyncDispose: unique symbol;
}
 
interface Disposable {
    [Symbol.dispose](): void;
}
 
interface AsyncDisposable {
    [Symbol.asyncDispose](): PromiseLike<void>;
}