typewiz
typewiz copied to clipboard
Type added in wrong place
Steps to reproduce:
- Use demo exmaple for Webpack.
- Remove definition and usage of
displayTypeInfofunction. - Run
apply-typestask.
Actual results:
string type is put in wrong place. See attachment.

Expected Type is located in correct place.
Thanks for reporting!
Basically, if I understand correctly, you ran apply-types, and then removed the definition of displayTypeInfo, and then ran apply-types again using the collected type information from the first run?
If so, then this is same as #36 - basically, after running applyTypes once, the source code has already been modified, so the offsets in the collected JSON files are no longer valid. This should improve once #34 is implemented.