-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
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
Labels
No labels