Skip to content

Commit

Permalink
fix(Charts): Fix type definitions for chart themes (#2062)
Browse files Browse the repository at this point in the history
Fixes #2061
  • Loading branch information
TheRealJon authored and redallen committed May 23, 2019
1 parent f8961fa commit 63ff308
Showing 1 changed file with 10 additions and 6 deletions.
@@ -1,15 +1,19 @@
export const ChartBaseTheme = any;
export const ChartDonutTheme = any;
import { VictoryThemeInterface, VictoryThemeDefinition } from "victory";

export interface ChartThemeColor {
interface ChartBaseThemeInterface extends VictoryThemeDefinition {}
interface ChartDonutThemeInterface extends VictoryThemeDefinition {}

interface ChartThemeColorInterface {
blue: string;
default: string;
green: string;
multi: string;
};
}

export interface ChartThemeVariant {
interface ChartThemeVariantInterface {
dark: string;
default: string;
light: string;
};
}

export declare const ChartThemeColor: ChartThemeColorInterface, ChartThemeVariant: ChartThemeVariantInterface, ChartBaseTheme: ChartBaseThemeInterface, ChartDonutTheme: ChartDonutThemeInterface;

0 comments on commit 63ff308

Please sign in to comment.