Skip to content

Commit

Permalink
run prettier on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
lpgera committed Feb 9, 2024
1 parent 1cb5d8f commit 2ca6558
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
14 changes: 2 additions & 12 deletions src/api/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ export default (got: Got) => {
return await got.get(`rooms/${id}`).json<Room>()
},

async create({
name,
icon,
color,
}: Pick<Room, 'name' | 'icon' | 'color'>) {
async create({ name, icon, color }: Pick<Room, 'name' | 'icon' | 'color'>) {
return await got
.post(`rooms`, {
json: {
Expand Down Expand Up @@ -44,13 +40,7 @@ export default (got: Got) => {
.json()
},

async moveDevices({
id,
deviceIds,
}: {
id: string
deviceIds: string[]
}) {
async moveDevices({ id, deviceIds }: { id: string; deviceIds: string[] }) {
await got
.patch(`rooms/${id}/devices`, {
json: {
Expand Down
4 changes: 4 additions & 0 deletions src/mdns-server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ declare module 'mdns-server' {

interface MdnsServer {
on(event: 'ready', handler: () => void): MdnsServer

on(event: 'response', handler: (response: Response) => void): MdnsServer

on(event: 'error', handler: (e: Error) => void): MdnsServer

initServer(): void

query(options: Question[]): void

destroy(): void
}

Expand Down
4 changes: 2 additions & 2 deletions test/events/deviceStateChanged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const event3: DeviceStateChangedEvent = {
deviceType: 'gateway',
lastSeen: '2000-01-01T00:00:00.000Z',
deviceSet: [],
remoteLinks: []
}
remoteLinks: [],
},
}

event3

0 comments on commit 2ca6558

Please sign in to comment.