Fix className
types in engine-core
#4104
Labels
enhancement
typescript
Typescript related bugs
Up for grabs
Issues that are relatively small, self-contained, and ready for implementation
If you set a breakpoint in this function:
lwc/packages/@lwc/engine-core/src/framework/modules/computed-class-attr.ts
Line 23 in 3665f31
and run the Karma tests, you'll find that
className
can be a string, null, undefined, a number... Lots of things. But TypeScript thinks it can only be a string or undefined. We should fix these types to reflect reality.The text was updated successfully, but these errors were encountered: