-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
NEXT theme type improvements #2549
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@AdrianGonz97 @ryceg @Hugos68 tagging you for review on this as you guys are our resident Typescript pros. The changes are fairly simple, so hopefully nothing too egregious here! Just FYI I do expect us to add a few additional properties between now and launch. But I'll do my best to ensure those are addressed evenly between all v3 themes. As well as take care to update the type along the way. I also have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted one more thing that wasn't needed anymore, but the rest LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -1,4 +1,4 @@ | |||
import type { PresetTheme } from '../index.js'; | |||
// import type { Theme } from '../index.js'; | |||
|
|||
const goldNouveau = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an extension of Theme that had lines 6 through 19 would be a good idea, so that the themes are typechecked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think GitHub is aligning this message in the right place, but if you're referring to the properties_dark
and enhancements
- those aren't carrying over to v3!
Co-authored-by: Rhys <[email protected]>
Was asleep but looks good 😁 |
Linked Issue
#2360
Description
Consolidates the preset and custom theme types into a single
Theme
type. Removesproperties_dark
andenhancements
from the type. Updates theproperties
to match the current v3 structure.