UNPKG

1.28 kBTypeScriptView Raw
1import { DocNodeKind, DocNode, IDocNodeParameters, IDocNodeParsedParameters } from './DocNode';
2import { DocSection } from './DocSection';
3import { DocBlockTag } from './DocBlockTag';
4/**
5 * Constructor parameters for {@link DocBlock}.
6 */
7export interface IDocBlockParameters extends IDocNodeParameters {
8 blockTag: DocBlockTag;
9}
10/**
11 * Constructor parameters for {@link DocBlock}.
12 */
13export interface IDocBlockParsedParameters extends IDocNodeParsedParameters {
14 blockTag: DocBlockTag;
15}
16/**
17 * Represents a section that is introduced by a TSDoc block tag.
18 * For example, an `@example` block.
19 */
20export declare class DocBlock extends DocNode {
21 private readonly _blockTag;
22 private readonly _content;
23 /**
24 * Don't call this directly. Instead use {@link TSDocParser}
25 * @internal
26 */
27 constructor(parameters: IDocBlockParameters | IDocBlockParsedParameters);
28 /** @override */
29 get kind(): DocNodeKind | string;
30 /**
31 * The TSDoc tag that introduces this section.
32 */
33 get blockTag(): DocBlockTag;
34 /**
35 * The TSDoc tag that introduces this section.
36 */
37 get content(): DocSection;
38 /** @override */
39 protected onGetChildNodes(): ReadonlyArray<DocNode | undefined>;
40}
41//# sourceMappingURL=DocBlock.d.ts.map
\No newline at end of file