Skip to content

Commit b67dd46

Browse files
committed
(#455) Fix parameter type for text query helper methods
1 parent 3058567 commit b67dd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const imageResource = (fileName: string) =>
7171
fileName
7272
);
7373

74-
const singleWord = (word: string | RegExp): WordQuery => {
74+
const singleWord = (word: string): WordQuery => {
7575
return {
7676
type: "text",
7777
id: `word-query-${word}`,
@@ -80,7 +80,7 @@ const singleWord = (word: string | RegExp): WordQuery => {
8080
},
8181
};
8282
};
83-
const textLine = (line: string | RegExp): LineQuery => {
83+
const textLine = (line: string): LineQuery => {
8484
return {
8585
type: "text",
8686
id: `line-query-${line}`,

0 commit comments

Comments
 (0)