Improved TypeScript definitions #543
Labels
dx
[Issue] Improvement or fix with impact on the developer experience.
improvement
[Issue][PR] Refactor or code improvement
pending-author
[Issue] Awaiting further information or action from the issue author
typescript
Description
As a developer I'd like to have better TypeScript definitions for the SDK. Currently a lot of things are just typed to
any
.Eg.
That just returns a
Promise<any>
rather than an indication of the type of data it returns. At the very least making it a generic would allow us to manually define the Story schema we're expecting.Suggested solution or improvement
Better TypeScript definitions. I can see from this project that there are underlying definitions used in the project but they're not exposed:
https://github.com/storyblok/storyblok-js-client/blob/main/src/interfaces.ts
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: