Skip to content

Commit 69ecf7d

Browse files
committed
Fix type-check and add readonly to document inferrence
1 parent 2a3ecbe commit 69ecf7d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/webdoc-parser/src/transformer/symbol-to-doc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export default function symbolToDoc(symbol: Symbol): ?Doc {
138138
options.access = symbol.meta.access;
139139
options.dataType = symbol.meta.dataType;
140140
options.defaultValue = symbol.meta.defaultValue;
141+
options.readonly = symbol.meta.readonly;
141142
options.scope = symbol.meta.scope;
142143
options.loc = symbol.loc;
143144

packages/webdoc-parser/src/types/Symbol.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type SymbolSignature = {
3030
implements?: ?Array<string | Symbol>,
3131
object?: ?string,
3232
params?: ?Array<$Shape<Param>>,
33+
readonly?: boolean,
3334
returns?: ?Array<$Shape<Return>>,
3435
scope?: ?string,
3536
value?: ?string,

0 commit comments

Comments
 (0)