diff --git a/declarations.d.ts b/declarations.d.ts new file mode 100644 index 0000000..8bbea8c --- /dev/null +++ b/declarations.d.ts @@ -0,0 +1,4 @@ +declare module "*.module.scss" { + const classes: { [key: string]: string }; + export default classes; +} diff --git a/tsconfig.json b/tsconfig.json index 1a53809..1d0ac1e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,12 @@ "jsx": "preserve", "incremental": true }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + "declarations.d.ts" + ], "exclude": ["node_modules"] }