change type name

This commit is contained in:
doronbrikman
2017-09-14 00:22:20 +03:00
parent b3e0e23662
commit 8a97be7ecf

View File

@@ -1,13 +1,13 @@
import { ComponentClass, StatelessComponent } from "react";
import { HSLColor, RGBColor, ColorChangeHandler, Color, ColorResult } from "react-color";
export type CustomColorChangeHandler = (color: Color | ColorResult) => void;
export type ColorWrapChangeHandler = (color: Color | ColorResult) => void;
export interface InjectedColorProps {
hex?: string;
hsl?: HSLColor;
rgb?: RGBColor;
onChange?: CustomColorChangeHandler;
onChange?: ColorWrapChangeHandler;
}
export interface ExportedColorProps {