#36488·storybook

Svelte CSF: Support typesafe CSF factories

Author: lishaduckCreated Apr 26, 2025Updated Sep 28, 2026
Labelsfeature request

Storybook 9 introduces "Typesafe CSF factories" (https://github.com/storybookjs/storybook/discussions/30112). While I acknowledge that Svelte CSF is different from normal CSF and already handles many of the issues that that RFC addresses, it would still be useful if the new `defineMain`, `definePreview` and `preview.meta` (as opposed to the current `createMeta`) chain was available both for consistency (I spent a lot of time looking for it) and typesafety.