You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be coded into type-writer as a pattern. If a response exists in the interface, then use that as a return. Otherwise unknown.
🩻 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
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
The text was updated successfully, but these errors were encountered:
🪤 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
The text was updated successfully, but these errors were encountered: