chore(client): solve TypeScript errors after upgrade

This commit is contained in:
Elian Doran 2024-12-07 12:09:51 +02:00
parent e90e6d2dad
commit 03dbf1a4f7
No known key found for this signature in database

View File

@ -83,7 +83,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`; return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`;
} }
function resolveConstantOperand() { const resolveConstantOperand = () => {
const operand = tokens[i]; const operand = tokens[i];
if (!operand.inQuotes if (!operand.inQuotes
@ -136,7 +136,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
return date.format(format); return date.format(format);
} }
function parseNoteProperty(): Expression | undefined | null { const parseNoteProperty: () => Expression | undefined | null = () => {
if (tokens[i].token !== '.') { if (tokens[i].token !== '.') {
searchContext.addError('Expected "." to separate field path'); searchContext.addError('Expected "." to separate field path');
return; return;