I can make use of this type throughout the application by inferring i.e.
type LoginPayload = typeof loginPayload.infer;
type LoginPayload = typeof loginPayload.infer;
What would be the best way of sharing this type with the other (separate) application? I've previously been able to use
tsc
tsc
to correctly compile the types into a single file, but with recent versions of ArkType/TS (I'm not sure which updated to impact this), the types compile to
any
any
.
I came across the following approach in another thread which results in correctly compiled types