-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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(types): allow undefined in StyleValue
#7954
Conversation
a5d5116
to
21690e4
Compare
21690e4
to
a791dd3
Compare
a791dd3
to
a001a20
Compare
StyleValue
packages/vue/jsx-runtime/dom.d.ts
Outdated
@@ -234,7 +234,7 @@ interface AriaAttributes { | |||
} | |||
|
|||
// Vue's style normalization supports nested arrays | |||
export type StyleValue = string | CSSProperties | Array<StyleValue> | |||
export type StyleValue = undefined | string | CSSProperties | Array<StyleValue> |
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 we can also support all the falsy value, like null
, false
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.
Thanks, it makes sense.
But falsy value 0
should be excluded as it is also a number
Edit: it was just my personal opinion
6263cfd
to
924059d
Compare
fix #7955