From 96db521df7e6b5cddcbcb3ba5f119c2fa303d02c Mon Sep 17 00:00:00 2001 From: Rodrigo Luglio Date: Thu, 26 Sep 2024 12:06:09 -0300 Subject: [PATCH] fix type error --- src/lib/utils/export.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/export.ts b/src/lib/utils/export.ts index 50a1bf0..c15add7 100644 --- a/src/lib/utils/export.ts +++ b/src/lib/utils/export.ts @@ -1,9 +1,11 @@ -import type { UIColors, SyntaxColors, AnsiColors } from '@/lib/types/colors' +import type { ColorAliases } from './themeColors' +import type { SyntaxColors } from './syntaxColors' +import type { AnsiColors } from './ansiColors' import Color from 'color' export function generateSemanticThemeJSON( - colors: UIColors, + colors: ColorAliases, syntaxColors: SyntaxColors, ansiColors: AnsiColors ): string { @@ -1830,7 +1832,7 @@ export function generateSemanticThemeJSON( 'type.defaultLibrary': syntaxColors.type, //type typeParameter: syntaxColors.typeParameter, //typeParameter interface: syntaxColors.type, //type - class: colors.class, //class + class: syntaxColors.class, //class 'class.declaration': syntaxColors.class, //class enum: syntaxColors.class, //class, enumMember: colors.FG2, //FG2