Open yxliang01 opened 5 years ago
There are some properties of ASTNode types declared as optional via adding ? to `PROPERTY_NAME (PROPERTY_NAME?). However, marking optional in this way results in saying such property having value TYPE | undefined | null while they are in fact of type TYPE | null (or correct me if wrong). e.g. https://github.com/federicobond/solidity-parser-antlr/blob/f0ef77034c467c06c383b621aa305093af3a0621/index.d.ts#L201
ASTNode
?
`PROPERTY_NAME
PROPERTY_NAME?
TYPE | undefined | null
TYPE | null
CC: @Leeleo3x
It is true. Will this introduce any side effect?
I see. Side effect as in? @Leeleo3x
There are some properties of
ASTNode
types declared as optional via adding?
to`PROPERTY_NAME
(PROPERTY_NAME?
). However, marking optional in this way results in saying such property having valueTYPE | undefined | null
while they are in fact of typeTYPE | null
(or correct me if wrong). e.g. https://github.com/federicobond/solidity-parser-antlr/blob/f0ef77034c467c06c383b621aa305093af3a0621/index.d.ts#L201CC: @Leeleo3x