solidity-parser-antlr
solidity-parser-antlr copied to clipboard
type: ASTNode types have incorrect optional properties
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 | nullwhile 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
CC: @Leeleo3x
It is true. Will this introduce any side effect?
I see. Side effect as in? @Leeleo3x