Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Storyblok import faulty when generating type definitions #185

@derennio

Description

@derennio

Current behavior:
When generating type definitions using the CLI's generate-typescript-typedefs command, the generated file contains a faulty import. The import is always set to:
import type { ISbStoryData } from "storyblok";
This "storyblok" package does not exist by installing storyblok via npm i @storyblok/js, however.

Expected behavior:
The import should instead use the correct import: import type { ISbStoryData } from "storyblok-js-client"; or be updated to use types form @storyblok/js

Steps to reproduce:
Install current CLI via npm
Generate typescript type definitions from any JSON specification
Check generated type file for imports

Other information:
The import is currently set in this typescript util file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions