mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use typescript optional properties.
This commit is contained in:
@ -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> {
|
||||
|
@ -16,7 +16,7 @@ export interface WebRTCStats {
|
||||
fps: number
|
||||
width: number
|
||||
height: number
|
||||
muted: boolean | undefined
|
||||
muted?: boolean
|
||||
}
|
||||
|
||||
export interface ICEServer {
|
||||
|
Reference in New Issue
Block a user