fourtune-org / realm-js

MIT License
0 stars 0 forks source link

Beware: output of dts plugin can vary #3

Open eXory2024 opened 1 month ago

eXory2024 commented 1 month ago

For example if you get

someFile.mts(5,18): error TS7006: Parameter 'path' implicitly has an 'any' type.
someFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.

and then suddenly something else like

anotherFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.

This is because the order of the processing is not deterministic:

run 1:

someFile.mts(5,18): error TS7006: Parameter 'path' implicitly has an 'any' type.
someFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.
<plugin aborts execution here>
anotherFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.

run 2:

anotherFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.
<plugin aborts execution here>
someFile.mts(5,18): error TS7006: Parameter 'path' implicitly has an 'any' type.
someFile.mts(9,7): error TS18046: 'error' is of type 'unknown'.