Undefined is complained when bind :style to an array #7955
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
scope: types
Vue version
3.2.47
Link to minimal reproduction
https://github.com/yuwu9145/vue-StyleValue-type
Steps to reproduce
npx vue-tsc --noEmit
What is expected?
No type error
What is actually happening?
System Info
Any additional comments?
[undefined, {...other style object}]
works perfectly fine in runtime. check linkIn addition,
undefined
can be directly assigned to:style
without type errorTherefore,
[undefined]
should not be type complainedThe text was updated successfully, but these errors were encountered: