Skip to content

Always imports values as string #110

Description

@pattiereaves

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions