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

Always imports values as string #110

Open
pattiereaves opened this issue Nov 15, 2017 · 0 comments
Open

Always imports values as string #110

pattiereaves opened this issue Nov 15, 2017 · 0 comments

Comments

@pattiereaves
Copy link

pattiereaves commented Nov 15, 2017

When I do this:

/* foo.css */
@value numberOfColumns: 5;

/* foo.js */
import { numberOfColumns } from foo.css

the value of numberOfColumns will be a string ("5") instead of a number. Is there a better way to make it a number than having to add

/* foo.js continued */
const numberOfColumnsAsARealNumber = parseInt(numberOfColumns);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant