From 7c1a87938996d44024fe999d96e49f1d13f6c117 Mon Sep 17 00:00:00 2001 From: AntoineC Date: Fri, 18 Jan 2019 12:51:00 +0100 Subject: [PATCH] Fix type of insert property from true to 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 5709826f6a..68c97ff690 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -1790,7 +1790,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.