From 6ca9e0355ef34616a1c9bb8e06d05398fbbd7fba Mon Sep 17 00:00:00 2001 From: kutoman Date: Mon, 12 Aug 2024 15:51:31 +0200 Subject: [PATCH] fix(types): clear cache parameter in search module is optional Complies with respective JSDoc and it works like that --- types/fomantic-ui-search.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/fomantic-ui-search.d.ts b/types/fomantic-ui-search.d.ts index e40cf3bfbb..9215ec7379 100644 --- a/types/fomantic-ui-search.d.ts +++ b/types/fomantic-ui-search.d.ts @@ -75,7 +75,7 @@ declare namespace FomanticUI { /** * Clears value from cache, if no parameter passed clears all cache. */ - (behavior: 'clear cache', query: string): JQuery; + (behavior: 'clear cache', query?: string): JQuery; /** * Writes cached results for query.