This should be friendly towards the creation of external helper libraries that want to supplement types. Don't want to collect types from every integration as part of this repo. This could let another repo merge the types, and publish that as a package. Someone wanting to use them can do
main.ts
import "@cool-person/helper-types";
// helpers available anywhere in project now
Might require some tweaks to the proposed types workflow above, want a minimum number of helper types
🪤 Context
Right now it's only possible to associate types with a service call response manually (per-call), or have it hard coded in type-writer.
It'd be nice if there were an interface that could store these responses, and be friendly towards declaration merging to append to.
This can be coded into
type-writer
as a pattern. If a response exists in the interface, then use that as a return. Otherwiseunknown
.🩻 Additional details
This should be friendly towards the creation of external helper libraries that want to supplement types. Don't want to collect types from every integration as part of this repo. This could let another repo merge the types, and publish that as a package. Someone wanting to use them can do
Might require some tweaks to the proposed types workflow above, want a minimum number of helper types