(#455) Fix parameter type for text query helper methods

This commit is contained in:
Simon Hofmann
2023-01-15 10:24:12 +01:00
parent 3058567bec
commit b67dd46f66
+2 -2
View File
@@ -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}`,