mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 19:13:28 +00:00
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
// Polyfills for the explicit resource management types added in TypeScript 5.2.
|
|
|
|
interface SymbolConstructor {
|
|
readonly dispose: unique symbol;
|
|
readonly asyncDispose: unique symbol;
|
|
}
|
|
|
|
interface Disposable {
|
|
[Symbol.dispose](): void;
|
|
}
|
|
|
|
interface AsyncDisposable {
|
|
[Symbol.asyncDispose](): PromiseLike<void>;
|
|
}
|