0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00
Commit Graph

3 Commits

Author SHA1 Message Date
Hofer Ivan
bb02a22d3e
[feat] add convenience type for ComponentEvents (#7702) 2022-07-25 21:09:03 +02:00
Simon H
0fa0a38d51
[fix] export CompileOptions (#7658)
It's used by SvelteKit and in order to properly use it under the new TS moduleResolution NodeNext it needs to be part of a file that is defined in the exports map
2022-07-06 11:58:43 +02:00
Simon H
6f57571507
[feat] add convenience types ComponentType and ComponentProps (#6770)
ComponentType eases typing "this is a variable that expects a Svelte component constructor (of a certain shape)". Removes the need for SvelteComponentTyped to be an extra type so it can be deprecated in v4 and removed in v5, and SvelteComponent(Dev) can receive the same generic typings as SvelteComponetTyped in v4.

ComponentProps eases typing "give me the props this component expects". Closes #7584


Co-authored-by: Simon Holthausen <simon.holthausen@accso.de>
Co-authored-by: Hofer Ivan <ivan.hofer@outlook.com>
Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
2022-07-01 14:48:10 +02:00