diff --git a/packages/lib/src/event-queue.ts b/packages/lib/src/event-queue.ts index ac20c9d..44fc033 100644 --- a/packages/lib/src/event-queue.ts +++ b/packages/lib/src/event-queue.ts @@ -2,7 +2,10 @@ export class EventQueue { #queue: T[] #processPromise: Promise | null = null - constructor(initialQueue: T[], private onQueueChanged: (events: T[]) => void) { + constructor( + initialQueue: T[], + private onQueueChanged: (events: T[]) => void, + ) { this.#queue = initialQueue } diff --git a/packages/lib/src/server.ts b/packages/lib/src/server.ts index eeb2746..4b1d03b 100644 --- a/packages/lib/src/server.ts +++ b/packages/lib/src/server.ts @@ -14,7 +14,10 @@ interface ServerDeps { export class Server { clients = new Map() - constructor(private $d: ServerDeps, public isAuthenticated: boolean) {} + constructor( + private $d: ServerDeps, + public isAuthenticated: boolean, + ) {} connectClient(client: ServerClientConnection) { const clientId = createId() diff --git a/packages/lib/src/shopping-list.ts b/packages/lib/src/shopping-list.ts index 87f86e3..4841a4f 100644 --- a/packages/lib/src/shopping-list.ts +++ b/packages/lib/src/shopping-list.ts @@ -5,7 +5,10 @@ type OnChange = (list: ShoppingListItem[]) => void export class ShoppingList { items: ShoppingListItem[] - constructor(initialItems: ShoppingListItem[], private onChange: OnChange) { + constructor( + initialItems: ShoppingListItem[], + private onChange: OnChange, + ) { this.items = initialItems }