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.

[v4] Generated types not compatible with storyblokEditable #240

@drakir

Description

@drakir

Current behavior:
When I generate types i get an output of a blok like:

export interface CompanyInformation {
  logo?: StoryblokAsset;
  header: string;
  component: "companyInformation";
  _uid: string;
  [k: string]: unknown;
}

And the [k: string]: unknown is not compatible with what the storyblokEditable function is expecting.

The error is:

Argument of type 'CompanyInformation' is not assignable to parameter of type 'SbBlokData'.
  'string' index signatures are incompatible.
    Type 'unknown' is not assignable to type 'SbBlokKeyDataTypes'

Looking into SbBlokData, we see this definition:

[index: string]: SbBlokKeyDataTypes

Expected behavior:
Expected to get the right types, so maybe

export interface CompanyInformation {
  logo?: StoryblokAsset;
  header: string;
  component: "companyInformation";
  _uid: string;
  [k: string]: SbBlokKeyDataTypes;
}

Steps to reproduce:

Other information:

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