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] Types generate singe/multi option fields with unknown #209

@alvarosabu

Description

@alvarosabu

Current behavior:

When generating the types of a component with single/multiple option fields, they are all typed as 'unknown'

Expected behavior:

It should make a union type of the string values

export interface ComponentWithOptionFields {
  single_option?: unknown;
  multi_option?: unknown;
  component: "component-with-option-fields";
  _uid: string;
  [k: string]: unknown;
}

Should be

export interface ComponentWithOptionFields {
  single_option?: 'option-a' | 'option-b';
  multi_option?: 'option-a' | 'option-b';
  component: "component-with-option-fields";
  _uid: string;
  [k: string]: unknown;
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp3-significant[Priority] Moderate issues, major enhancementsv4

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions