Comparing version 1.1.2 to 1.1.3
import { EventEmitter } from 'eventemitter3'; | ||
export declare class List<T> extends EventEmitter<'update'> implements RelativeIndexable<T> { | ||
export declare class List<T> extends EventEmitter<{ | ||
update: []; | ||
add: [T]; | ||
}> implements RelativeIndexable<T> { | ||
readonly [Symbol.toStringTag] = "List"; | ||
@@ -4,0 +7,0 @@ constructor(values?: readonly T[] | Iterable<T> | null); |
@@ -81,2 +81,3 @@ import { EventEmitter } from 'eventemitter3'; | ||
this.emit('update'); | ||
this.emit('add', value); | ||
return this; | ||
@@ -83,0 +84,0 @@ } |
{ | ||
"name": "utilium", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Typescript utilities", | ||
@@ -5,0 +5,0 @@ "funding": { |
import { EventEmitter } from 'eventemitter3'; | ||
export class List<T> extends EventEmitter<'update'> implements RelativeIndexable<T> { | ||
export class List<T> | ||
extends EventEmitter<{ | ||
update: []; | ||
add: [T]; | ||
}> | ||
implements RelativeIndexable<T> | ||
{ | ||
public readonly [Symbol.toStringTag] = 'List'; | ||
@@ -104,2 +110,3 @@ | ||
this.emit('update'); | ||
this.emit('add', value); | ||
return this; | ||
@@ -106,0 +113,0 @@ } |
88162
2561