{"library":"typescript-plugin-css-modules","type":"library","category":null,"description":"typescript-plugin-css-modules is a TypeScript language service plugin that enhances developer experience by providing type information and autocomplete for CSS Modules within IDEs. It allows developers to safely use CSS class names, including those from SCSS, Sass, Less, and Stylus files, by inferring types from their module exports. The current stable version is 5.2.0. This plugin primarily focuses on design-time support for tools that leverage TypeScript's language service, such as VS Code, rather than providing compilation-time error checking or direct CSS Module bundling/processing. Its release cadence is generally every few months for minor versions, with patch releases as needed. A key differentiator is its seamless integration with the TypeScript language service to provide strong typing and intellisense for CSS module exports, catching typos and providing auto-completion where standard TypeScript or bundler configurations might only offer generic `[key: string]: string` types.","language":"javascript","status":"active","version":"5.2.0","tags":["javascript","css","scss","sass","less","stylus","modules","plugin","postcss","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typescript-plugin-css-modules","imports":["import styles from './my-component.module.css';","import { myClass } from './my-component.module.css';","declare module '*.module.css' { const classes: { [key: string]: string }; export default classes; }"]},{"cmd":"yarn add typescript-plugin-css-modules","imports":[]},{"cmd":"pnpm add typescript-plugin-css-modules","imports":[]}],"homepage":null,"github":"https://github.com/mrmckeb/typescript-plugin-css-modules","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typescript-plugin-css-modules","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/typescript-plugin-css-modules/compatibility"}}