UNPKG

@microsoft.azure/autorest.incubator

Version:
27 lines 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Import { constructor(importStatement) { this.importStatement = importStatement; } get implementation() { return `using ${this.importStatement};`; } } exports.Import = Import; /** An Alias adds a using statement to a namespace, and can then be used as a type declaration too. */ class Alias extends Import { constructor(aliasName, typeDeclaration) { super(`${aliasName} = ${typeDeclaration.declaration}`); this.aliasName = aliasName; this.typeDeclaration = typeDeclaration; } get fullDefinition() { return this.typeDeclaration; } get declaration() { return this.aliasName; } } exports.Alias = Alias; //# sourceMappingURL=import.js.map