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

[Bug] Property 'appFeatures' does not exist on type 'BaseContext' #144

Open
dziomek-soldevelo opened this issue May 15, 2024 · 0 comments
Open

Comments

@dziomek-soldevelo
Copy link

Describe the bug
The SDK doesn't have a type for BaseContext -> property named 'appFeature'.

Steps to reproduce

  1. Embed the SDK in an app
  2. Call monday.listen('context').then(res => ...);
  3. IDE throws an error:

Property 'appFeatures' does not exist on type 'BaseContext | AppFeatureBoardViewContext | AppFeatureAiBoardMainMenuHeaderContext | ... 10 more ... | AppFeatureDocActionsContext'.
Property 'appFeatures' does not exist on type 'BaseContext'.ts(2339)

Expected behavior
BaseContext contains typed 'appFeature' property.

Additional information
The appFeature property is accessible from returned context and looks like this:

{
  name: "Some feature name - v1",
  type: "AppFeatureItemMenuAction"
}

Tested for AppFeatureItemMenuActionContext and AppFeatureItemBatchActionContext.

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