From 234b204e8c0204407a31ab71e64c8c99b820dfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veikko=20Lintuj=C3=A4rvi?= Date: Wed, 29 Apr 2026 21:21:29 +0300 Subject: [PATCH] Add scss decralarations --- declarations.d.ts | 4 ++++ tsconfig.json | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 declarations.d.ts 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"] }