DEV Community

Discussion on: Type safety in JavaScript with JSDoc and VSCode

Collapse
 
t7yang profile image
t7yang

If you want to define class method, please see the "Type class and this" section, you should not define the method when assigning value.

If you use prototype based paradigm rather than class, you can check this page. The generic type definition remain same.