also looking at this
chore(deps): update all non-major dependencies
#2997
29 files
+1047
-444
moved, unchanged · 11 hidden lines
| @@ -1,3 +1,11 @@ moved, unchanged | ||
| 1 | /** | |
| 2 | * Logger interface for dependency injection | |
| 3 | */ | |
| 4 | declare interface Logger { | |
| 5 | info(message: string, ...args: any[]): void | |
| 6 | warn(message: string, ...args: any[]): void | |
| 7 | error(message: string, error?: Error): void | |
| 8 | } | |
| 1 | 9 | /** |
| 2 | 10 | * Application events definition |
| 3 | 11 | */ |
| @@ -14,21 +22,13 @@ export declare interface Serializable { | ||
| 14 | 22 | serialize(): string |
| 15 | 23 | deserialize(data: string): void |
| 16 | 24 | } |
| 17 | /** | |
| 18 | * Logger interface for dependency injection | |
| 19 | */ | |
| 20 | declare interface Logger { | |
| 21 | info(message: string, ...args: any[]): void | |
| 22 | warn(message: string, ...args: any[]): void | |
| 23 | error(message: string, error?: Error): void | |
| 24 | } | |
| 25 | 25 | /** |
| 26 | 26 | * Base event emitter class |
| 27 | 27 | */ |
| 28 | 28 | export declare abstract class EventEmitter<Events extends Record<string, any[]>> { |
| 29 | 29 | on<K extends keyof Events>(event: K, listener: (...args: Events[K]) => void): this; |
| 30 | 30 | off<K extends keyof Events>(event: K, listener: (...args: Events[K]) => void): this; |
| 31 | protected emit<K extends keyof Events>(event: K, args: Events[K]): void; | |
| 31 | protected emit<K extends keyof Events>(event: K, ...args: Events[K]): void; | |
| 32 | 32 | abstract dispose(): void; |
| 33 | 33 | } |
| 34 | 34 | /** |
| @@ -47,9 +47,8 @@ export declare class Application extends EventEmitter<AppEvents> { | ||
| 47 | 47 | * Generic container with static factory methods |
| 48 | 48 | */ |
| 49 | 49 | export declare class Container<T> { |
| 50 | constructor(items?: T[]); | |
| 51 | 50 | static empty<T>(): Container<T>; |
| 52 | static of<T>(items: T[]): Container<T>; | |
| 51 | static of<T>(...items: T[]): Container<T>; | |
| 53 | 52 | static from<T>(iterable: Iterable<T>): Container<T>; |
| 54 | 53 | add(item: T): this; |
| 55 | 54 | map<U>(fn: (item: T) => U): Container<U>; |
| @@ -62,6 +61,7 @@ export declare class Container<T> { | ||
| 62 | 61 | * Class implementing interface with index signature |
| 63 | 62 | */ |
| 64 | 63 | export declare class DataStore implements Serializable { |
| 64 | [key: string]: unknown; | |
| 65 | 65 | serialize(): string; |
| 66 | 66 | deserialize(data: string): void; |
| 67 | 67 | } |