From 1012ebed0ea4a8b37dd5c816016bdbde452b226c Mon Sep 17 00:00:00 2001 From: voximplant Date: Mon, 19 Oct 2015 00:14:17 +0300 Subject: [PATCH] Error fixes and optimizations Use VoxImplant namespace and rename module to voximplant-websdk (like npm module) --- voximplant-websdk/voximplant-websdk.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/voximplant-websdk/voximplant-websdk.d.ts b/voximplant-websdk/voximplant-websdk.d.ts index 1609b6e707..2e715d7701 100644 --- a/voximplant-websdk/voximplant-websdk.d.ts +++ b/voximplant-websdk/voximplant-websdk.d.ts @@ -3,7 +3,7 @@ // Definitions by: Alexey Aylarov // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module VoxImplant { +declare namespace VoxImplant { module Events { @@ -727,7 +727,7 @@ declare module VoxImplant { * * @param config Client configuration options */ - init(config: Config): void; + init(config?: Config): void; /** * Check if WebRTC support is available */ @@ -1163,3 +1163,7 @@ declare module VoxImplant { function version(): String; } + +declare module "voximplant-websdk" { + export = VoxImplant; +}