@hahnpro/ms-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 1.15 kB
Source Map (JSON)
{"version":3,"sources":["src/common/Events.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,MAAM;IACf,OAAO,CAAC,MAAM,CAAC,YAAY,CAAiE;WAE9E,cAAc,CAAC,WAAW,EAAE,YAAY,CAAC,aAAa,CAAC,GAAG,IAAI;IAQ5E,WAAkB,QAAQ,IAAI,YAAY,CAAC,aAAa,CAAC,CAExD;CACJ","file":"Events.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { ArgumentNullError } from \"./Error.js\";\nimport { EventSource } from \"./EventSource.js\";\nimport { IEventSource } from \"./IEventSource.js\";\nimport { PlatformEvent } from \"./PlatformEvent.js\";\n\nexport class Events {\n private static privInstance: IEventSource<PlatformEvent> = new EventSource<PlatformEvent>();\n\n public static setEventSource(eventSource: IEventSource<PlatformEvent>): void {\n if (!eventSource) {\n throw new ArgumentNullError(\"eventSource\");\n }\n\n Events.privInstance = eventSource;\n }\n\n public static get instance(): IEventSource<PlatformEvent> {\n return Events.privInstance;\n }\n}\n"]}