Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a lib user I would like to see a better typing in the most used functions #18

Open
impe93 opened this issue Aug 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@impe93
Copy link
Owner

impe93 commented Aug 23, 2021

What

Good typing in the return type of s() function, which is one of the most important functions for the user. This function should show the possibles classes that the library offer (the default one and not the customizations) and should have a correct return type too.

Why

The function s(), at the moment, gets strings as parameters and returns any. In this way, we cannot prevent the user to wrongly type some classes and the user doesn't get any suggestions about the supported classes. About the return type user, at the moment, cannot understand if the returned style is supported by the element where the style is applied.

@impe93 impe93 added the enhancement New feature or request label Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant