buildtypedefs
Version:
This is a utility that transforms code documented with getdocs-style doc comments into TypeScript definition files
16 lines • 603 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
let knownTypes = ["string", "bool", "number", "any", "T"];
function default_1(type, items, imports, additionalTypes) {
if (knownTypes.indexOf(type) == -1 && imports.indexOf(type) == -1 && !items[type]) {
if (additionalTypes[type]) {
if (imports.indexOf(additionalTypes[type].replacement) == -1) {
imports.push(additionalTypes[type].replacement);
}
}
else
imports.push(type);
}
}
exports.default = default_1;
//# sourceMappingURL=import.js.map