diff --git a/async-disposable.d.ts b/async-disposable.d.ts index 14c21a5..ab324a5 100644 --- a/async-disposable.d.ts +++ b/async-disposable.d.ts @@ -8,7 +8,7 @@ export interface AsyncDisposable { [symbolAsyncDispose](): Promise; } -export declare namespace AsyncDisposable { +declare namespace AsyncDisposable { /** * An async disposable object aggregating multiple resources * diff --git a/disposable.d.ts b/disposable.d.ts index 6f14e3e..38ec8d8 100644 --- a/disposable.d.ts +++ b/disposable.d.ts @@ -7,7 +7,7 @@ export interface Disposable { [symbolDispose](): void; } -export declare namespace Disposable { +declare namespace Disposable { /** * A disposable object aggregating multiple resources * diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..77522e5 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,3 @@ +export { Disposable } from "./disposable.js"; +export { AsyncDisposable } from "./async-disposable.js"; +export { symbolDispose, symbolAsyncDispose } from "./symbols.js"; diff --git a/index.js b/index.js index 37a1e86..77522e5 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ -export { symbolDispose, symbolAsyncDispose } from "./symbols.js"; - export { Disposable } from "./disposable.js"; export { AsyncDisposable } from "./async-disposable.js"; +export { symbolDispose, symbolAsyncDispose } from "./symbols.js"; diff --git a/polyfill.d.ts b/polyfill.d.ts index e64dd96..2723cb8 100644 --- a/polyfill.d.ts +++ b/polyfill.d.ts @@ -17,3 +17,5 @@ declare global { var Disposable: typeof import("./index.js").Disposable; var AsyncDisposable: typeof import("./index.js").AsyncDisposable; } + +export {};