0.1.2 • Published 3 years ago
@bem-modules/ts-plugin v0.1.2
@bem-modules/ts-plugin
npm --save-dev i @bem-modules/ts-plugin
TypeScript plugin to enable type messages in IDE.
Add these lines to tsconfig.json
to use:
{
"compilerOptions": {
"plugins": [
{
"name": "@bem-modules/ts-plugin"
}
]
}
}
Transforms *.bem.css
files to (never seen by user) *.d.ts
when TypeScript language service resolves imports.
Unfortunately, doesn't work with tsc
(feature request).
See root package for documentation. See example package for full usage example.