We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ecf7d commit 93dfca5Copy full SHA for 93dfca5
packages/webdoc-parser/test/parse-ts.js
@@ -12,7 +12,7 @@ class Example {
12
/**
13
* Field description
14
*/
15
- protected field: boolean = true;
+ protected readonly field: boolean = true;
16
}
17
`,
18
path: ".ts",
@@ -27,6 +27,7 @@ class Example {
27
expect(fieldDoc.access).to.equal("protected");
28
expect(fieldDoc.dataType && fieldDoc.dataType[0]).to.equal("boolean");
29
expect(fieldDoc.defaultValue).to.equal(true);
30
+ expect(fieldDoc.readonly).to.equal(true);
31
32
// TODO: Fix this. No space should be there (added/not-fixed b/c this was
33
// in a PR for different issue)
0 commit comments