From 5d7de9dd11dd822255a5e54b5e6157088ba2cfab Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Tue, 6 May 2025 11:11:18 +0200 Subject: [PATCH] add missing type for "encoder" option to index.d.ts --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 30b8f48..0697b45 100644 --- a/index.d.ts +++ b/index.d.ts @@ -193,7 +193,7 @@ declare module "flexsearch" { commit?: boolean; // Language-specific Options and Encoding - encoder?: typeof Charset | Encoders | EncoderOptions; + encoder?: typeof Charset | Encoders | EncoderOptions | Encoder; encode?: (text: string) => string[], rtl?: boolean; };