Closed PiotrPisz closed 1 year ago
I made a mistake suggesting a solution without a declaration. Of course, TS won't allow it. But I hope my message will be understood. Maybe use LiteralUnion?
Hi, @PiotrPisz sorry my late reply. Im working on a different project which get most of my time. So, if you have a better solution to that case would be very great to take a look at.
Thank you in advance.
The application can make calls to many endpoints that are not listed here, and listing each of them may turn out to be a constant battle with windmills - it will require updating each time you change/add/remove each endpoint. Currently, the library does not allow calls to, for example, 'products/attributes', 'orders/', 'data/countries' or 'products//variations'. My suggestion is to remove the declaration of allowable values, define the type as a string, and if you want it to be declared, convert it to a class, which will allow you to declare dynamic data.