Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
jakst committed Dec 19, 2024
1 parent a7e72ec commit 5d3c671
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/lib/src/event-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ export class EventQueue<T> {
#queue: T[]
#processPromise: Promise<void> | null = null

constructor(initialQueue: T[], private onQueueChanged: (events: T[]) => void) {
constructor(
initialQueue: T[],
private onQueueChanged: (events: T[]) => void,
) {
this.#queue = initialQueue
}

Expand Down
5 changes: 4 additions & 1 deletion packages/lib/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ interface ServerDeps {
export class Server {
clients = new Map<string, ServerClientConnection>()

constructor(private $d: ServerDeps, public isAuthenticated: boolean) {}
constructor(
private $d: ServerDeps,
public isAuthenticated: boolean,
) {}

connectClient(client: ServerClientConnection) {
const clientId = createId()
Expand Down
5 changes: 4 additions & 1 deletion packages/lib/src/shopping-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5d3c671

Please sign in to comment.