From bebdfcd94179143f9ff992c8288d3129de759b27 Mon Sep 17 00:00:00 2001 From: sqwk Date: Wed, 5 Jul 2017 01:02:48 +0200 Subject: [PATCH] fix: Add Types for Match Method --- 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 197707058b..812e6d4aad 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -1382,7 +1382,7 @@ declare module 'paper' { * @param options.guides - hit-test items that have Item#guide set to true. * @param options.selected - only hit selected items. */ - hitTest(point: Point, options?: { tolerance?: number; class?: string; fill?: boolean; stroke?: boolean; segments?: boolean; curves?: boolean; handles?: boolean; ends?: boolean; bounds?: boolean; center?: boolean; guides?: boolean; selected?: boolean; }): HitResult; + hitTest(point: Point, options?: { tolerance?: number; class?: string; fill?: boolean; stroke?: boolean; segments?: boolean; curves?: boolean; handles?: boolean; ends?: boolean; bounds?: boolean; center?: boolean; guides?: boolean; selected?: boolean; match: (hit: HitResult) => boolean; }): HitResult; /** * Checks whether the item matches the criteria described by the given object, by iterating over all of its properties and matching against their values through matches(name, compare).