diete-design / diete.design

https://diete.design
MIT License
0 stars 0 forks source link

Remove unnecessary `class` type definition #67

Closed vojtechsimetka closed 2 weeks ago

vojtechsimetka commented 3 weeks ago

All of our components extend at minimim HTMLAttributes<HTMLElement> which already includes the common props like style, class etc. However, in our codebase we often redefine these attributes in the Props type definition.

interface Props extends HTMLAttributes<HTMLElement> {
    ...
    class?: string
}

We should remove the class definition and check if there are any other type attributes that don't need to be re-defined.