function getArrayType(model: ArrayType) { return `${type.call(model.elementType)}[]`; }
| TypeOperatorType ) { if (this instanceof ReferenceType && (this.reflection || (this.name && this.typeArguments))) { return getReferenceType(this); if (this instanceof ArrayType && this.elementType) { return getArrayType(this); if (this instanceof UnionType && this.types) { return getUnionType(this); if (this instanceof IntersectionType && this.types) { return getIntersectionType(this); if (this instanceof TupleType && this.elements) { return getTupleType(this); if (this instanceof IntrinsicType && this.name) { return getIntrinsicType(this); if (this instanceof StringLiteralType && this.value) { return getStringLiteralType(this);
export function typeAndParent(this: ArrayType | ReferenceType) { if (this instanceof ReferenceType && this.reflection) { const md = []; if (this.reflection instanceof SignatureReflection) { if (this.reflection.parent.parent.url) { md.push( `[${this.reflection.parent.parent.name}](${MarkdownTheme.handlebars.helpers.relativeURL( this.reflection.parent.parent.url, )})`, ); } else { md.push(this.reflection.parent.parent.name); if (this.reflection.parent.url) { md.push( `[${this.reflection.parent.name}](${MarkdownTheme.handlebars.helpers.relativeURL( this.reflection.parent.url, )})`, ); } else { md.push(this.reflection.parent.name); if (this.reflection.url) { md.push(`[${this.reflection.name}](${MarkdownTheme.handlebars.helpers.relativeURL(this.reflection.url)})`); } else { md.push(this.reflection.name);