Skip to content

Always imports values as string #110

Open
@pattiereaves

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

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