From 3584299fcb677fbc0a04d19b2ff4ce2cf33bf3a3 Mon Sep 17 00:00:00 2001 From: SPWizard01 Date: Fri, 1 Feb 2019 16:38:36 +0200 Subject: [PATCH] filtering function passes HTMLElement argument --- types/isotope-layout/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/isotope-layout/index.d.ts b/types/isotope-layout/index.d.ts index 5e1f0623e4..66d4a21d52 100644 --- a/types/isotope-layout/index.d.ts +++ b/types/isotope-layout/index.d.ts @@ -2,6 +2,7 @@ // Project: http://isotope.metafizzy.co/ // Definitions by: Anže Videnič // Mălin Brândușe +// SPWizard01 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -30,7 +31,7 @@ declare namespace Isotope { * If set to a string, that value is used as a selector. * If filter is set to a function, that function checks each item and returns true or false if the item should be shown or hidden. */ - filter?: string | (() => boolean); + filter?: string | ((itemElement: HTMLElement) => boolean); /** * Items are arranged into rows. Rows progress vertically. Similar to what you would expect from a layout that uses CSS floats. fitRows works well for items that have the same height. */