Skip to content

Exclude stories from dts generations#32905

Merged
florianduros merged 1 commit intodevelopfrom
florianduros/error-dts-sc
Mar 24, 2026
Merged

Exclude stories from dts generations#32905
florianduros merged 1 commit intodevelopfrom
florianduros/error-dts-sc

Conversation

@florianduros
Copy link
Copy Markdown
Member

Exclude storybook stories from dts generation:

  1. It's useless
  2. Generate error like:
[vite:dts] Start generate declaration files...
src/resize/separator/SeparatorView.stories.tsx:117:37 - error TS2339: Property 'toMatchImageSnapshot' does not exist on type 'Assertion<HTMLElement>'.

117         await expect(canvasElement).toMatchImageSnapshot();
                                        ~~~~~~~~~~~~~~~~~~~~
src/resize/separator/SeparatorView.stories.tsx:150:37 - error TS2339: Property 'toMatchImageSnapshot' does not exist on type 'Assertion<HTMLElement>'.

150         await expect(canvasElement).toMatchImageSnapshot();
                                        ~~~~~~~~~~~~~~~~~~~~

@florianduros florianduros added the T-Task Tasks for the team like planning label Mar 24, 2026
@florianduros florianduros changed the title chore: exclude stories from dts generations Exclude stories from dts generations Mar 24, 2026
@florianduros florianduros marked this pull request as ready for review March 24, 2026 15:17
@florianduros florianduros requested a review from a team as a code owner March 24, 2026 15:17
@florianduros florianduros added this pull request to the merge queue Mar 24, 2026
Merged via the queue into develop with commit f1058cf Mar 24, 2026
56 of 60 checks passed
@florianduros florianduros deleted the florianduros/error-dts-sc branch March 24, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants