From b7973616d40f9f67fbb09cbd5fc7f3aa8817fb4b Mon Sep 17 00:00:00 2001 From: YUDIEL CURBELO Date: Sat, 20 Feb 2016 00:57:52 -0500 Subject: [PATCH] path function to allow (string | number)[] It is totally legal to have something like this: paper.path(['M' + (startX), (startY), 'L' + (startX), (startY)]); --- raphael/raphael.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raphael/raphael.d.ts b/raphael/raphael.d.ts index 80419302ad..38d6c53654 100644 --- a/raphael/raphael.d.ts +++ b/raphael/raphael.d.ts @@ -210,7 +210,7 @@ interface RaphaelPaper { getFont(family: string, weight?: number, style?: string, stretch?: string): RaphaelFont; height: number; image(src: string, x: number, y: number, width: number, height: number): RaphaelElement; - path(pathString?: string): RaphaelPath; + path(pathString?: string | (string | number)[]): RaphaelPath; print(x: number, y: number, str: string, font: RaphaelFont, size?: number, origin?: string, letter_spacing?: number): RaphaelPath; rect(x: number, y: number, width: number, height: number, r?: number): RaphaelElement; remove(): void;