@wixc3/patterns
Advanced tools
Comparing version
@@ -9,7 +9,7 @@ /** | ||
}; | ||
export type DisposeFunction = () => unknown; | ||
export type Disposable = { | ||
export declare type DisposeFunction = () => unknown; | ||
export declare type Disposable = { | ||
dispose: DisposeFunction; | ||
} | DisposeFunction; | ||
export type Disposables = ReturnType<typeof createDisposables>; | ||
export declare type Disposables = ReturnType<typeof createDisposables>; | ||
//# sourceMappingURL=create-disposables.d.ts.map |
@@ -53,3 +53,3 @@ import { Signal } from './signal'; | ||
} | ||
export type IEventEmitter<T extends Record<string, any>> = Pick<EventEmitter<T>, keyof EventEmitter<T>>; | ||
export declare type IEventEmitter<T extends Record<string, any>> = Pick<EventEmitter<T>, keyof EventEmitter<T>>; | ||
//# sourceMappingURL=event-emitter.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export type Listener<T> = (data: T) => void; | ||
export declare type Listener<T> = (data: T) => void; | ||
/** | ||
@@ -3,0 +3,0 @@ * Signal is a simple event emitter for one type of event. |
@@ -9,7 +9,7 @@ /** | ||
}; | ||
export type DisposeFunction = () => unknown; | ||
export type Disposable = { | ||
export declare type DisposeFunction = () => unknown; | ||
export declare type Disposable = { | ||
dispose: DisposeFunction; | ||
} | DisposeFunction; | ||
export type Disposables = ReturnType<typeof createDisposables>; | ||
export declare type Disposables = ReturnType<typeof createDisposables>; | ||
//# sourceMappingURL=create-disposables.d.ts.map |
@@ -53,3 +53,3 @@ import { Signal } from './signal'; | ||
} | ||
export type IEventEmitter<T extends Record<string, any>> = Pick<EventEmitter<T>, keyof EventEmitter<T>>; | ||
export declare type IEventEmitter<T extends Record<string, any>> = Pick<EventEmitter<T>, keyof EventEmitter<T>>; | ||
//# sourceMappingURL=event-emitter.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export type Listener<T> = (data: T) => void; | ||
export declare type Listener<T> = (data: T) => void; | ||
/** | ||
@@ -3,0 +3,0 @@ * Signal is a simple event emitter for one type of event. |
{ | ||
"name": "@wixc3/patterns", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "A utility for saving objects to be disposed", | ||
@@ -21,5 +21,5 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@wixc3/common": "^6.0.0", | ||
"@wixc3/common": "^7.0.0", | ||
"promise-assist": "^1.3.0" | ||
} | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
93789
0.04%+ Added
+ Added
- Removed
Updated