Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate typescript types from space #8

Closed
1 of 6 tasks
eyn opened this issue Aug 24, 2020 · 2 comments · Fixed by #79
Closed
1 of 6 tasks

Generate typescript types from space #8

eyn opened this issue Aug 24, 2020 · 2 comments · Fixed by #79
Assignees

Comments

@eyn
Copy link

eyn commented Aug 24, 2020

The feature would affect: (check one with "x")

  • app.storyblok.com (CMS - Interface)
  • api.storyblok.com (CMS - Content Delivery API)
  • mapi.storyblok.com (CMS - Management API)
  • capi.storyblok.com (Commerce - API)
  • Commerce - Interface
  • Other

Is your feature request related to a problem? Please describe.
It would be great to have a typed api from storyblok making it much easier to implement components that match the schema

Describe the solution you'd like
storyblok generate --typescript which generates typings based off the current storyblok's spaceid

Describe alternatives you've considered

Additional context
We've hacked together an initial version of this for our own internal usage that we will extend as/when required for our internal usage but would be great to see this in the full storyblok cli. It would be nice if the API (get/getAll etc) could end up with nice typings too.

https://gist.github.com/eyn/b9dd0956b2fa6f783b9898b6ffaeb192

@lisilinhart lisilinhart transferred this issue from storyblok/storyblok Dec 16, 2022
@jackmaders
Copy link

This package seems to do the job, if anyone else is looking for something similar

@Edo-San Edo-San self-assigned this Jul 10, 2024
@Edo-San
Copy link
Contributor

Edo-San commented Jul 10, 2024

We released first-party Typescript support quite some time ago 🤗
You can find additional info on the README file

Time to close this issue! 🚀

@Edo-San Edo-San closed this as completed Jul 10, 2024
@Edo-San Edo-San linked a pull request Jul 10, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants