UNPKG

typedoc-theme-yaf

Version:

A fresh, opinionated and standalone front-end documentation application consuming Typedoc generated data.

16 lines 718 B
import { needsParenthesis, makeIntrinsicSpan, makeSymbolSpan, } from '../../../yafElement.js'; import { YafHTMLElement } from '../../../index.js'; export class YafContentSignatureIntrinsic extends YafHTMLElement { onConnect() { const { name: typeName } = this.props; const HTMLElements = [makeIntrinsicSpan(typeName)]; if (needsParenthesis(this)) { HTMLElements.unshift(makeSymbolSpan('(')); HTMLElements.push(makeSymbolSpan(')')); } this.appendChildren(HTMLElements.flat()); } } const componentName = 'yaf-signature-intrinsic'; customElements.define(componentName, YafContentSignatureIntrinsic); //# sourceMappingURL=YafSignatureIntrinsic.js.map