@axonkit/client-sdk-js 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,5 +70,4 @@ export interface RoomOptions {
70
70
  /**
71
71
  * Options for Room.connect()
72
72
  */
73
- export interface RoomConnectOptions extends Partial<InternalRoomConnectOptions> {
74
- }
73
+ export type RoomConnectOptions = Partial<InternalRoomConnectOptions>;
@@ -16,5 +16,5 @@ export declare class LocalAudioTrack extends LocalTrack {
16
16
  constructor(mediaStreamTrack: MediaStreamTrack, constraints?: MediaTrackConstraints);
17
17
  mute(): Promise<void>;
18
18
  unmute(): Promise<void>;
19
- setDeviceId(deviceId: string): Promise<void>;
19
+ setDeviceId(deviceId: string, exact?: boolean): Promise<void>;
20
20
  }
@@ -31,5 +31,5 @@ export declare class LocalVideoTrack extends LocalTrack {
31
31
  * an RTP sender is available).
32
32
  */
33
33
  setDegradationPreference(preference: RTCDegradationPreference): Promise<void>;
34
- setDeviceId(deviceId: string): Promise<void>;
34
+ setDeviceId(deviceId: string, exact?: boolean): Promise<void>;
35
35
  }
@@ -10,7 +10,7 @@ import { EventEmitter } from 'events';
10
10
  * Runtime behaviour is 100% `EventEmitter`; this class adds zero runtime
11
11
  * code.
12
12
  */
13
- export declare class TypedEmitter<T extends Record<string, (...args: any[]) => void> = {}> extends EventEmitter {
13
+ export declare class TypedEmitter<T extends Record<string, (...args: any[]) => void> = Record<string, never>> extends EventEmitter {
14
14
  emit: <E extends string | number>(event: E, ...args: E extends keyof T ? Parameters<T[E]> : any[]) => boolean;
15
15
  on: <E extends string | number>(event: E, listener: E extends keyof T ? T[E] : (...args: any[]) => void) => this;
16
16
  once: <E extends string | number>(event: E, listener: E extends keyof T ? T[E] : (...args: any[]) => void) => this;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0";
1
+ export declare const VERSION = "0.1.1";
2
2
  export declare const PROTOCOL_VERSION = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axonkit/client-sdk-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "AxonKit JS/TS Client SDK based on mediasoup-client",
5
5
  "main": "dist/axonkit-client.umd.js",
6
6
  "module": "dist/axonkit-client.esm.js",