Skip to content
File

Blob: types/defines/disposable.d.ts

typescript8 lines
1// `Disposable` was added to TypeScript's standard lib types in version 5.2.
2// To support older TypeScript versions, define an empty `Disposable` interface.
3// Users won't be able to use `using`/`Symbol.dispose` without upgrading to 5.2,
4// but this will ensure type checking on older versions still passes.
5// TypeScript's interface merging will ensure our empty interface is effectively
6// ignored when `Disposable` is included in the standard lib.
7interface Disposable {}