bestguy / sveltestrap

Bootstrap 4 & 5 components for Svelte
https://sveltestrap.js.org
MIT License
1.3k stars 183 forks source link

Property 'group' does not exist on type definition of `InputProps` #415

Closed mopeneko closed 2 years ago

mopeneko commented 2 years ago

When I use group property of Input, TypeScript says:

Type '{ type: "radio"; group: number; value: string; label: string; }' is not assignable to type 'IntrinsicAttributes & InputProps'. Property 'group' does not exist on type 'IntrinsicAttributes & InputProps'.

code:

<Input type="radio" bind:group={a} value="0" label="a" />

The reason is that group property is not included in the type definition.

https://github.com/bestguy/sveltestrap/blob/096bfb3dbae03cd9665248866222a57229b3b3ad/src/Input.d.ts#L29-L41

bestguy commented 2 years ago

Thanks, will release this weekend

bestguy commented 2 years ago

Released in: https://github.com/bestguy/sveltestrap/releases/tag/v5.8.0