dgeni-packages
Version:
A collection of dgeni packages for generating documentation from source code
15 lines • 774 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypeParametersText = exports.getTypeParameters = void 0;
const getDeclarationTypeText_1 = require("./getDeclarationTypeText");
function getTypeParameters(declaration) {
const typeParameters = declaration.typeParameters;
return typeParameters && typeParameters.map(typeParameter => (0, getDeclarationTypeText_1.getDeclarationTypeText)(typeParameter));
}
exports.getTypeParameters = getTypeParameters;
function getTypeParametersText(declaration) {
const typeParameters = getTypeParameters(declaration);
return typeParameters ? `<${typeParameters.join(', ')}>` : '';
}
exports.getTypeParametersText = getTypeParametersText;
//# sourceMappingURL=getTypeParametersText.js.map