Is it acceptable to use a number in the width attribute of a Quasar drawer component?
<q-drawer v-model="leftDrawer" side="left" bordered content-class="bg-grey-2" width=100>
</q-drawer>
I've been using the width attribute from , and every time I change the number value, the component adjusts its size accordingly. However, TypeScript in VSCode keeps throwing an error.
https://i.sstatic.net/Om8oM.png
Type 'string' is not assignable to type 'number'.ts(2322)
index.d.ts(3934, 3): The expected type comes from property 'width' which is declared here on type 'VNodeProps & AllowedComponentProps & ComponentCustomProps & QDrawerProps & Record<string, unknown>'
(property) QDrawerProps.width?: number | undefined
Width of drawer (in pixels) Default value: 300
How can I input a valid "number" to satisfy TypeScript's requirements?
100
Is just typing "100" considered a number by TypeScript?
"100"
What about this format - {100}?
{100}
When it comes to TypeScript, what exactly defines a "number"?