Update konva.d.ts for getRGB

getRGB returns an object with RGB values, not a string. I've set up a type RGB. 

Feel free to edit to your heart's content.
This commit is contained in:
cyrilmesvayn
2018-12-12 12:56:27 -05:00
committed by GitHub
parent 3ce9457b0a
commit 1d39f5293a

10
konva.d.ts vendored
View File

@@ -11,7 +11,7 @@ declare namespace Konva {
currentTarget: Konva.Node;
cancelBubble: boolean;
}
type HandlerFunc<E = Event> = (e: KonvaEventObject<E>) => void;
enum KonvaNodeEvent {
@@ -85,10 +85,16 @@ declare namespace Konva {
| 'saturation'
| 'color'
| 'luminosity';
export interface RGB {
r: number;
g: number;
b: number;
}
export class Util {
static getRandomColor(): string;
static getRGB(color: string): string;
static getRGB(color: string): RGB;
}
type EasingFn = (