Skip to content

Commit

Permalink
fix: type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 30, 2021
1 parent c380993 commit d8c671d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion async-disposable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface AsyncDisposable {
[symbolAsyncDispose](): Promise<void>;
}

export declare namespace AsyncDisposable {
declare namespace AsyncDisposable {
/**
* An async disposable object aggregating multiple resources
*
Expand Down
2 changes: 1 addition & 1 deletion disposable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface Disposable {
[symbolDispose](): void;
}

export declare namespace Disposable {
declare namespace Disposable {
/**
* A disposable object aggregating multiple resources
*
Expand Down
3 changes: 3 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { Disposable } from "./disposable.js";
export { AsyncDisposable } from "./async-disposable.js";
export { symbolDispose, symbolAsyncDispose } from "./symbols.js";
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 2 additions & 0 deletions polyfill.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ declare global {
var Disposable: typeof import("./index.js").Disposable;
var AsyncDisposable: typeof import("./index.js").AsyncDisposable;
}

export {};

0 comments on commit d8c671d

Please sign in to comment.