mondaycom / monday-sdk-js

Node.js and JavaScript SDK for developing over the monday.com platform
https://monday.com
MIT License
87 stars 39 forks source link

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

Open dziomek-soldevelo opened 5 months ago

dziomek-soldevelo commented 5 months ago

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.