Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing
optional
property to types
(was missing from #185)
- Loading branch information
e2f758e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am getting this error when I build with tsc :
node_modules/jsep/typings/tsd.d.ts:56:4 - error TS2411: Property 'optional' of type 'boolean | undefined' is not assignable to 'string' index type 'baseTypes | Expression | (baseTypes | Expression)[]'.
56 optional?: boolean;
~~~~~~~~
e2f758e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove this error, I have removed the question mark of line 56
e2f758e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pchaneyo ! I've created Issue #200 and PR #202 to hopefully address this. The
optional
property isn't set to false for MemberExpression in order to maintain some backward compatibility, which is why it's defined asoptional?: boolean
. Hopefully the PR's fix works for you as well?e2f758e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.