From 87716e82d4b72acb1c7534391053ffbbdb930dc6 Mon Sep 17 00:00:00 2001 From: AntoineC Date: Thu, 24 Jan 2019 13:27:58 +0100 Subject: [PATCH] Fix type of insert options in importSVG function Type of insert was true instead of boolean. --- types/paper/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index 4de9e9d967..6c1f2979fb 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -4243,7 +4243,7 @@ declare module paper { * @param options.insert: Boolean — whether the imported items should be added to the item that importSVG() is called on. * @param options.applyMatrix Boolean — whether the imported items should have their transformation matrices applied to their contents or not. */ - importSVG(svg: SVGElement | string, options?: { expandShapes?: boolean; onLoad?: (item: Item, svg: string) => void; onError?: (message: string, status: number) => void; insert?: true; applyMatrix?: Matrix; }): Item; + importSVG(svg: SVGElement | string, options?: { expandShapes?: boolean; onLoad?: (item: Item, svg: string) => void; onError?: (message: string, status: number) => void; insert?: boolean; applyMatrix?: Matrix; }): Item; /** * Converts the provided SVG content into Paper.js items and adds them to the active layer of this project.