Closed SrZorro closed 11 months ago
Did you get an error or something?
Here are the explanations:
Generic extends type Row
relying on your data input. It gives autocompletion and error alerts.
Did you get an error or something?
Nop, I was just wondering from where that $$Generic
type was comming from while reading the code. Im trying to make your library scroll to load more content instead of pagination and while reading the source code I saw that type but didn't know what it does
Now that I think it this issue should had been a discussion Q&A instead of an issue
Generic extends type Row relying on your data input. It gives autocompletion and error alerts.
Oh I see, $$Generic
its a magic type from Svelte, I searched the svelte docs but there is no reference to that type, but checking the language-tools from Svelte there is the code that handles the $$Generic
type
Thanks for the aclaration 👍
I was going to make the suggestion to change the handler
from props to context so its not needed to pass {handler}
everywhere, but I guess its needed like that to make the generic work in cases like Th
and ThFilter
Prop drilling seems acceptable to me at the moment. I don't know of an easier way, but very open to suggestions that improve the design. thank you for your feedback
There are 15 files that have the following code:
15 results - 15 files src/lib/local/Datatable.svelte: 3 4: type T = $$GenericWhat is
$$Generic
for?Why its not:
Directly without the T?