Open machty opened 4 months ago
I was able to easily reproduce the issue you mentioned in discord in the test suite.
Here is what the tests look like to see how to test this sort of stuff https://github.com/NullVoxPopuli/fix-bad-declaration-output/pull/10
it seems this is the issue: https://github.com/facebook/jscodeshift/issues/539
after some more digging, it seems the types are wrong -- how are they generated?
a d.ts file should have declare
if a const
is not going to have an initializer
.
Attempt to fix #564
Currently running into issues with jscodeshift/babel failing to parse
export const foo = ...
in.d.ts
files indeclaration
.cc @nullvoxpopuli