Skip to content

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

@dziomek-soldevelo

Description

@dziomek-soldevelo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions