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
Express allows you to extend the Request interface using generics, i.e. Request<Paths.CreateSubscription.PathParameters, {}, Paths.CreateSubscription.RequestBody>
The PathParameters interface this script currently generates does not play nicely with it however. You will get a typing error Index signature is missing in type 'PathParameters'.
This is solved if you change the interface the generator produces to a type instead since types infer the index signature: type PathParameters = {...}
The text was updated successfully, but these errors were encountered:
Express allows you to extend the Request interface using generics, i.e.
Request<Paths.CreateSubscription.PathParameters, {}, Paths.CreateSubscription.RequestBody>
The PathParameters interface this script currently generates does not play nicely with it however. You will get a typing error
Index signature is missing in type 'PathParameters'
.This is solved if you change the interface the generator produces to a type instead since types infer the index signature:
type PathParameters = {...}
The text was updated successfully, but these errors were encountered: