From 68cfee7bb55dcc2a36e3ea6482b01b7775d4f0e0 Mon Sep 17 00:00:00 2001 From: Keksi Date: Wed, 4 Dec 2024 11:15:56 +0100 Subject: [PATCH] fix(tailwind.config.ts): add TypeScript error suppression for flattenColorPalette import and remove unused types declaration file --- src/types.d.ts | 4 ---- tailwind.config.ts | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 src/types.d.ts diff --git a/src/types.d.ts b/src/types.d.ts deleted file mode 100644 index 310c575..0000000 --- a/src/types.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'tailwindcss/lib/util/flattenColorPalette' { - const flattenColorPalette: (colors: any) => Record - export default flattenColorPalette -} diff --git a/tailwind.config.ts b/tailwind.config.ts index b0e8d8b..8fda69f 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,5 +1,6 @@ import type { Config } from 'tailwindcss' import svgToDataUri from 'mini-svg-data-uri' +// @ts-expect-error tailwindcss/lib/util/flattenColorPalette is not typed import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette' import animate from 'tailwindcss-animate'