@hazae41/disposer
Advanced tools
Comparing version 2.0.15 to 2.0.17
@@ -0,1 +1,3 @@ | ||
import { PromiseOrPromiseLike } from '../../libs/promises/index.js'; | ||
declare class Disposer<T> implements Disposable { | ||
@@ -6,6 +8,6 @@ readonly inner: T; | ||
static from<T>(disposable: T & Disposable): Disposer<T & Disposable>; | ||
await<T>(this: Disposer<PromiseLike<T>>): Promise<void>; | ||
[Symbol.dispose](): void; | ||
dispose(): void; | ||
get(): T; | ||
await<T>(this: Disposer<PromiseOrPromiseLike<T>>): Promise<void>; | ||
} | ||
@@ -17,8 +19,8 @@ declare class AsyncDisposer<T> implements AsyncDisposable { | ||
static from<T>(disposable: T & AsyncDisposable): AsyncDisposer<T & AsyncDisposable>; | ||
await<T>(this: AsyncDisposer<PromiseLike<T>>): Promise<void>; | ||
[Symbol.asyncDispose](): Promise<void>; | ||
dispose(): Promise<void>; | ||
get(): T; | ||
await<T>(this: AsyncDisposer<PromiseOrPromiseLike<T>>): Promise<void>; | ||
} | ||
export { AsyncDisposer, Disposer }; |
{ | ||
"type": "module", | ||
"name": "@hazae41/disposer", | ||
"version": "2.0.15", | ||
"version": "2.0.17", | ||
"description": "Helpers for Disposable", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/disposer", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12382
13
150