@kintone/dts-gen
Version:
Types for kintone js api and Types generating tools
19 lines • 585 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Namespace = void 0;
class Namespace {
constructor(namespace, typeDefinition, savedTypeDefinition) {
this.namespace = namespace;
this.typeDefinition = typeDefinition;
this.savedTypeDefinition = savedTypeDefinition;
}
tsExpression() {
return `
declare namespace ${this.namespace} {
${this.typeDefinition.tsExpression()}
${this.savedTypeDefinition.tsExpression()}
}`.trim();
}
}
exports.Namespace = Namespace;
//# sourceMappingURL=namespace.js.map