0

While we have typescript to ensure (to an extend) that the project itself has cohesive types once we start requesting APIs to the backend we cannot ensure the types returned from the server would match the interface we defined in our apps. Is there a plugin where it takes typescript interface and check the data returned by the API and then allow us to replace all unmatched types with a default value (or throw an error)? If not do you think such plugin/SDK would be needed? (I could create one.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.