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

fix: use const types and update property descriptions [] #1019

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

Chaoste
Copy link
Contributor

@Chaoste Chaoste commented Feb 25, 2025

When using constants from our core package, it's hard to figure out information like the actual id of a Heading. The exported types just state string or string[] while we're actually exporting fixed strings that won't change. To improve transparency of our constants and make it easier to look up that kind of information, I added the as const suffix.

Additionally, I noticed that most property descriptions contained typos as they were just copy&pasta from previous definitions. I updated those as well.

Screen.Recording.2025-02-25.at.14.35.04.mov

@Chaoste Chaoste requested review from a team as code owners February 25, 2025 13:36
Copy link

vercel bot commented Feb 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextjs-marketing-demo-bug-test ❌ Failed (Inspect) Feb 25, 2025 2:12pm
3 Skipped Deployments
Name Status Preview Updated (UTC)
experience-builder-test-app ⬜️ Ignored (Inspect) Feb 25, 2025 2:12pm
studio-nextjs-marketing-demo ⬜️ Ignored (Inspect) Feb 25, 2025 2:12pm
studio-react-vite-template ⬜️ Ignored (Inspect) Feb 25, 2025 2:12pm

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 this pull request may close these issues.

1 participant