import { Http } from './http';
const singleton = Symbol();
const singletonEnforcer = Symbol();
export class HttpService extends Http {
    constructor(enforcer) {
        super();
        if (enforcer !== singletonEnforcer) {
            throw new Error('Cannot construct singleton');
        }
        this._type = 'HttpService';
    }
    static get instance() {
        if (!this[singleton]) {
            this[singleton] = new HttpService(singletonEnforcer);
        }
        return this[singleton];
    }
    get type() {
        return this._type;
    }
    set type(value) {
        this._type = value;
    }
}
//# sourceMappingURL=http-service.js.map