dasDaniel / svelte-table

A svelte table implementation that allows sorting and filtering
https://dasdaniel.github.io/svelte-table/
MIT License
535 stars 40 forks source link

Adding small change to the types #107

Closed alexz12948 closed 2 years ago

alexz12948 commented 2 years ago

This change would allow the Example6.svelte to function properly when adding typescript to the mix. Currently, since value field of TableColumns<T> is non-nullable, Example6.svelte does not work since it is missing the value field for either button. I added in the question mark to the value field to allow it to be nullable and fix this issue.

Also, this is my first time contributing to an open source project so please let me know if I am doing anything weird. Thanks!