Skip to content

Does the plugin support SCSS :export syntax? #285

@wujekbogdan

Description

@wujekbogdan

I have an SCSS module that uses the :export syntax to share my SCSS variables with JS code.
e.g.

// hello.module.scss
:export {
  hello: "world";
}

When I import it in TS this way:

import { hello } from './hello.module.scss'
console.log(hello); // prints "world"

but I'm getting TS error TS2614.

If I do:

import myModule from './hello.module.scss'
console.log(myModule.hello); // prints "world"

There's no TS error anymore, but hello resolves as any.

Am I doing something wrong or is it simply that such a feature isn't implemented yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions