typewiz icon indicating copy to clipboard operation
typewiz copied to clipboard

Running apply-types twice makes the project explode

Open MadaraUchiha opened this issue 7 years ago • 1 comments

Running apply-types twice makes it attempt to actually apply the types twice.

Proposal: remove the collected-types.json file after running apply-types once. (Or something similar)

#goodnessSquad

MadaraUchiha avatar Mar 21 '18 17:03 MadaraUchiha

Seems like #34 can fix that - if we update collected-types whenever we apply a type, and mark this type as applied (or simply remove it from the list), it should do the trick.

Another thing we can do is to save the hash of each of the source file inside collected-types.json, so we can detect if the files have been changed since we collected the types (and warn the user about that).

urish avatar Mar 23 '18 23:03 urish