hyperbrew / bolt-cep

A lightning-fast boilerplate for building Adobe CEP Extensions in React, Vue, or Svelte built on Vite + TypeScript + Sass
MIT License
315 stars 40 forks source link

removeEventListener obj parameter not set as optional #109

Open galaddirie opened 1 year ago

galaddirie commented 1 year ago

The current type definition for removeEventListener in js/lib/cep/CSInterface.removeEventListener does not mark the obj parameter as optional.

The method documentation indicates that the obj parameter is optional (similar to addEventListener). suggesting the correct definition should look like this:

removeEventListener(type: any, listener: any, obj?: any): void;

Currently, the method is defined as:

removeEventListener(type: any, listener: any, obj: any):