typedoc-theme-yaf
Version:
A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.
23 lines • 851 B
JavaScript
import { YafHTMLElement } from '../../../index.js';
import { makeSymbolSpan, needsParenthesis, renderSignatureType, } from '../../../yafElement.js';
export class YafSignatureArray extends YafHTMLElement {
constructor() {
super(...arguments);
this.array = 'array';
}
onConnect() {
const { elementType } = this.props;
const HTMLElements = [
renderSignatureType(elementType, 'arrayElement'),
makeSymbolSpan('[]'),
];
if (needsParenthesis(this)) {
HTMLElements.unshift(makeSymbolSpan('('));
HTMLElements.push(makeSymbolSpan(')'));
}
this.appendChildren(HTMLElements);
}
}
const yafSignatureArray = 'yaf-signature-array';
customElements.define(yafSignatureArray, YafSignatureArray);
//# sourceMappingURL=YafSignatureArray.js.map