{"version":3,"sources":["src/common/Events.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,MAAM;IACf,OAAO,CAAC,MAAM,CAAC,YAAY,CAAiE;IAE5F,OAAc,cAAc,qDAM3B;oBAEiB,QAAQ,EAAI,YAAY,CAAC,aAAa,CAAC;CAG5D","file":"Events.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\nimport { ArgumentNullError } from \"./Error\";\nimport { EventSource } from \"./EventSource\";\nimport { IEventSource } from \"./IEventSource\";\nimport { PlatformEvent } from \"./PlatformEvent\";\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"]}