Open mattapperson opened 1 year ago
Hey @mattapperson, thanks for opening the issue!
Can you provide the error that you receive by tsc? I don't understand how changing the variable name to the type would make any difference (unless the error is elsewhere). I will arrange some time to replicate it myself, but with the error message I could probably see the underlying problem.
TS2307. The issue is TSC won't add an import, and it's not smart enough to infer types that do not match naming.
Describe the bug
When using
xata codegen
in a project that is compiled as a library with"declaration": true
, this results in an error TS18046xata codegen
to create the client codeExpected behavior
the project to compile with emitted declaration files
Software version @xata.io/cli@0.11.8
Fix In: /packages/codegen/src/codegen.ts
Change:
to