Description:
The TypeScript type declaration for the Controller class in "@beyond-js/widgets" seems to be missing the attributes property. When trying to access the attributes property on an instance of Controller, TypeScript throws an error:
Property 'attributes' does not exist on type 'Controller'.ts(2339)
However, when inspecting the generated JavaScript, the attributes property clearly exists on the Controller class.
Expected Behavior:
The attributes property should be correctly typed in the TypeScript declaration file for the Controller class.
Actual Behavior:
The TypeScript type declaration for the Controller class does not include the attributes property, resulting in a TypeScript error when trying to access it.
Steps to Reproduce:
- Create an instance or extend the
Controller class from "@beyond-js/widgets".
- Try to access the
attributes property.
- TypeScript error is thrown.
Recommendation:
Please adjust the TypeScript type declaration for the Controller class in "@beyond-js/widgets" to correctly include the attributes property. This will ensure that developers can confidently access and use this property without facing type errors.
I hope this helps! Let me know if you need any further adjustments.
Description:
The TypeScript type declaration for the
Controllerclass in "@beyond-js/widgets" seems to be missing theattributesproperty. When trying to access theattributesproperty on an instance ofController, TypeScript throws an error:However, when inspecting the generated JavaScript, the
attributesproperty clearly exists on theControllerclass.Expected Behavior:
The
attributesproperty should be correctly typed in the TypeScript declaration file for theControllerclass.Actual Behavior:
The TypeScript type declaration for the
Controllerclass does not include theattributesproperty, resulting in a TypeScript error when trying to access it.Steps to Reproduce:
Controllerclass from "@beyond-js/widgets".attributesproperty.Recommendation:
Please adjust the TypeScript type declaration for the
Controllerclass in "@beyond-js/widgets" to correctly include theattributesproperty. This will ensure that developers can confidently access and use this property without facing type errors.I hope this helps! Let me know if you need any further adjustments.