use typescript optional properties.

This commit is contained in:
Miroslav Šedivý
2021-07-17 14:08:25 +02:00
parent ad7e3d47c5
commit 2c70093d77
5 changed files with 29 additions and 29 deletions

View File

@ -34,10 +34,10 @@ export interface NekoEvents {
['session.updated']: (id: string) => void
// room events
['room.control.host']: (hasHost: boolean, hostID: string | undefined) => void
['room.control.host']: (hasHost: boolean, hostID?: string) => void
['room.screen.updated']: (width: number, height: number, rate: number) => void
['room.clipboard.updated']: (text: string) => void
['room.broadcast.status']: (isActive: boolean, url: string | undefined) => void
['room.broadcast.status']: (isActive: boolean, url?: string) => void
}
export class NekoMessages extends EventEmitter<NekoEvents> {

View File

@ -16,7 +16,7 @@ export interface WebRTCStats {
fps: number
width: number
height: number
muted: boolean | undefined
muted?: boolean
}
export interface ICEServer {