UNPKG

@microsoft.azure/autorest.incubator

Version:
22 lines 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const model_state_1 = require("../common/model-state"); class State extends model_state_1.ModelState { constructor(service, model, documentName, currentPath = new Array(), prj) { super(service, model, documentName, currentPath); this.prj = prj; } get project() { if (this.prj) return this.prj; throw new Error(); } set project(prj) { this.prj = prj; } path(...childPath) { return new State(this.service, this.model, this.documentName, [...this.currentPath, ...childPath], this.project); } } exports.State = State; //# sourceMappingURL=state.js.map