@signiant/media-shuttle-sdk-base
Version:
The base parent sdk behind other media shuttle sdks (e.g. media-shuttle-sdk)
28 lines (27 loc) • 883 B
JavaScript
/* eslint @typescript-eslint/no-empty-function: 0 */
/* eslint @typescript-eslint/no-unused-vars: 0 */
import SystemImpl from '../../internal/system/SystemImpl';
/**
* Note: we cannot use the System class to create a System instance because this creates
* a cyclical dependency which is not permitted in Typescript.
*/
/**
* Used to fetch the Singleton reference to the {@link System} interface.
*/
var SystemContext = /** @class */ (function () {
function SystemContext() {
}
Object.defineProperty(SystemContext, "instance", {
/**
* The Singleton {@link System} instance.
*/
get: function () {
return SystemContext.systemInstance;
},
enumerable: false,
configurable: true
});
SystemContext.systemInstance = new SystemImpl();
return SystemContext;
}());
export default SystemContext;