nipplejs icon indicating copy to clipboard operation
nipplejs copied to clipboard

Fix type declarations for 'shape' and 'mode' for typescript

Open drannex42 opened this issue 3 years ago • 0 comments

The type declaration file had issues when handling, well, types on the options 'shape' and 'mode'. Before the element would not be able to render without either ignoring (so they are set to their default) or directly modifying the type declaration file in your modules directory. This moves them to using 'string' as the type instead of unknown types (such as 'circle' or 'static' for example).

This small fix should make it easier for the typescript users out there.

drannex42 avatar May 09 '21 02:05 drannex42