Compiling to JavaScript results in `any` type
I have a TypeScript library that compiles down into JavaScript, and one of the
d.ts
files looks like this:
In this example, Address
is of type any
, whereas when I'm in TypeScript it's of type string
3 Replies
To reproduce:
Can you log an issue for this? It's something I'm interested in investigating and supporting but it's not trivial to ensure this never happens transitively and there are not tests for it yet
hmm I'm still getting this issue with latest ArkType
Seed
is correctly type string
here. Compiled to JavaScript:
Seed
is now type any
Using:
It gets worse, anything returned by MorphType
is any
Ok I got it working. I needed to have arktype versions matching in both packages, even though arktype is set as a peer dependency