Skip to content

Commit 392f7dd

Browse files
committed
fix(type): import ISbStoryData from storyblok-js package
- Added an import statement for the Storyblok type to the generated types file, enhancing type safety and ensuring proper type definitions are utilized in the generated output.
1 parent b2eb3fe commit 392f7dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/types/generate/actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ export const generateStoryblokTypes = async (options: SaveTypesOptions = {}) =>
406406
const typeDefs = [
407407
'// This file was generated by the Storyblok CLI.',
408408
'// DO NOT MODIFY THIS FILE BY HAND.',
409+
`import type { ${STORY_TYPE} } from '@storyblok/js';`,
409410
storyblokTypesContent,
410411
].join('\n');
411412

0 commit comments

Comments
 (0)