Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor Interface "Controls" type missing field object #2367

Open
heyitstowler opened this issue Jul 22, 2024 · 0 comments
Open

Editor Interface "Controls" type missing field object #2367

heyitstowler opened this issue Jul 22, 2024 · 0 comments

Comments

@heyitstowler
Copy link

Summary

Typescript types on the sdk.editorInterface.controls are missing the field key. They are defined here in the CMA types: https://github.com/contentful/contentful-management.js/blob/c6197e559169f5a0121fb219079674983525d498/lib/entities/editor-interface.ts#L96C1-L97C1

Here, Control is defined as WidgetConfig with an additional fieldId, whereas in practice, logging the sdk.editor.editorInterface.controls shows a field key that contains various field settings, including localization and disabled settings

I would expect those fields to included in the typescript so I do not receive errors when accessing them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant