UNPKG

dts-gen

Version:
12 lines 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDTName = getDTName; function getDTName(s) { if (s.indexOf("@") === 0 && s.indexOf("/") !== -1) { // we have a scoped module, e.g. @bla/foo // which should be converted to bla__foo s = s.substr(1).replace("/", "__"); } return s; } //# sourceMappingURL=names.js.map