From b67dd46f66478e4792f2baf268b72575b02de4b2 Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Sun, 15 Jan 2023 10:24:12 +0100 Subject: [PATCH] (#455) Fix parameter type for text query helper methods --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 96ad7e4..b171e1a 100644 --- a/index.ts +++ b/index.ts @@ -71,7 +71,7 @@ const imageResource = (fileName: string) => fileName ); -const singleWord = (word: string | RegExp): WordQuery => { +const singleWord = (word: string): WordQuery => { return { type: "text", id: `word-query-${word}`, @@ -80,7 +80,7 @@ const singleWord = (word: string | RegExp): WordQuery => { }, }; }; -const textLine = (line: string | RegExp): LineQuery => { +const textLine = (line: string): LineQuery => { return { type: "text", id: `line-query-${line}`,