Node.js minimum versions is now 18.18.0.
Updated other dependencies and run linting fixes.
This commit is contained in:
@@ -9,15 +9,13 @@ import { cn } from '../lib/utils';
|
||||
// Format: { THEME_NAME: CSS_SELECTOR }
|
||||
const THEMES = { light: '', dark: '.dark' } as const;
|
||||
|
||||
export type ChartConfig = {
|
||||
[k in string]: {
|
||||
export type ChartConfig = Record<string, {
|
||||
label?: React.ReactNode;
|
||||
icon?: React.ComponentType;
|
||||
} & (
|
||||
| { color?: string; theme?: never }
|
||||
| { color?: never; theme: Record<keyof typeof THEMES, string> }
|
||||
);
|
||||
};
|
||||
)>;
|
||||
|
||||
type ChartContextProps = {
|
||||
config: ChartConfig;
|
||||
|
||||
Reference in New Issue
Block a user