Skip to content

Typescript definition of filter missing argument #363

@oraknabo

Description

@oraknabo

I have an Interactions.OlInteractionSelect with a filter. In an older version (2.0.1), it was allowing the feature to pass like below:

const selectInteactionFilter = (feature:any) => { return feature.values_.name !== undefined; }; 

After upgrading, I'm getting the following error:
Type '(feature: any) => boolean' is not assignable to type '() => boolean'.

on OlInteractionSelect.vue.d.ts(23, 5), this is how the filter is defined:
filter?: (() => boolean) | undefined;

Shouldn't the definition include passing a filter argument through to the function?

├── vue@3.3.4
└── vue3-openlayers@10.0.2

It's happening in VSCode, not related to OS or Browser, but I'm using:

  • OS: Manjaro Linux
  • Firefox & Chromium

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions