Skip to content

Instantly share code, notes, and snippets.

@neo
Created April 25, 2020 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neo/1f395d4bbbab7aa63e80a58c79499834 to your computer and use it in GitHub Desktop.
Save neo/1f395d4bbbab7aa63e80a58c79499834 to your computer and use it in GitHub Desktop.
CSS/SCSS module definition files for TypeScript
declare module "*.module.css" {
const classNameMap: {
[className: string]: string;
};
export default classNameMap;
}
declare module "*.module.scss" {
const classNameMap: {
[className: string]: string;
};
export default classNameMap;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment