1 | "use strict";
|
2 |
|
3 |
|
4 | Object.defineProperty(exports, "__esModule", { value: true });
|
5 | exports.DocHeading = void 0;
|
6 | const tsdoc_1 = require("@microsoft/tsdoc");
|
7 |
|
8 |
|
9 |
|
10 | class DocHeading extends tsdoc_1.DocNode {
|
11 | |
12 |
|
13 |
|
14 |
|
15 | constructor(parameters) {
|
16 | super(parameters);
|
17 | this.title = parameters.title;
|
18 | this.level = parameters.level !== undefined ? parameters.level : 1;
|
19 | if (this.level < 1 || this.level > 5) {
|
20 | throw new Error('IDocHeadingParameters.level must be a number between 1 and 5');
|
21 | }
|
22 | }
|
23 |
|
24 | get kind() {
|
25 | return "Heading" ;
|
26 | }
|
27 | }
|
28 | exports.DocHeading = DocHeading;
|
29 |
|
\ | No newline at end of file |