@opentok/client 2.35.0-alpha.23 → 2.35.0-alpha.25

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.
@@ -28,7 +28,7 @@ declare namespace OT {
28
28
 
29
29
  export function checkScreenSharingCapability(
30
30
  callback: (response: ScreenSharingCapabilityResponse) => void
31
- ): void;
31
+ ): Promise<ScreenSharingCapabilityResponse>;
32
32
 
33
33
  export function checkSystemRequirements(): number;
34
34
 
@@ -67,7 +67,7 @@ declare namespace OT {
67
67
 
68
68
  export function getDevices(
69
69
  callback: (error: OTError | undefined, devices?: Device[]) => void
70
- ): void;
70
+ ): Promise<Device[]>;
71
71
 
72
72
  export function getAudioOutputDevices(): Promise<AudioOutputDevice[]>;
73
73
 
@@ -485,6 +485,15 @@ declare namespace OT {
485
485
  callback?: (error?: OTError) => void
486
486
  ): Publisher;
487
487
 
488
+ export namespace initPublisher {
489
+ var promise: (
490
+ targetElement?: HTMLElement | string,
491
+ properties?: PublisherProperties,
492
+ callback?: (error?: OTError) => void
493
+ ) =>
494
+ Promise<Publisher>;
495
+ }
496
+
488
497
  export function log(message: string): void;
489
498
 
490
499
  export function off(
@@ -845,7 +854,7 @@ declare namespace OT {
845
854
  version: number
846
855
  ): void;
847
856
 
848
- export function reportIssue(callback: (error?: OTError, reportId?: string) => void): void;
857
+ export function reportIssue(callback: (error?: OTError, reportId?: string) => void): Promise<string>;
849
858
 
850
859
  export function setAudioOutputDevice(deviceId: string): Promise<void>;
851
860