typedoc-theme-yaf
Version:
A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.
15 lines • 695 B
JavaScript
import { YafHTMLElement } from '../../../index.js';
import { renderSignatureType, makeSymbolSpan } from '../../../yafElement.js';
export class YafSignatureIntersection extends YafHTMLElement {
onConnect() {
const { types } = this.props;
const HTMLElements = types.map((type, i) => [
renderSignatureType(type, 'intersectionElement'),
i < types.length - 1 ? makeSymbolSpan(' & ') : undefined,
]);
this.appendChildren(HTMLElements.flat());
}
}
const yafSignatureIntersection = 'yaf-signature-intersection';
customElements.define(yafSignatureIntersection, YafSignatureIntersection);
//# sourceMappingURL=YafSignatureIntersection.js.map