mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
chore(client): solve TypeScript errors after upgrade
This commit is contained in:
parent
e90e6d2dad
commit
03dbf1a4f7
@ -83,7 +83,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
|
||||
return `"${startIndex !== 0 ? "..." : ""}${searchContext.originalQuery.substr(startIndex, endIndex - startIndex)}${endIndex !== searchContext.originalQuery.length ? "..." : ""}"`;
|
||||
}
|
||||
|
||||
function resolveConstantOperand() {
|
||||
const resolveConstantOperand = () => {
|
||||
const operand = tokens[i];
|
||||
|
||||
if (!operand.inQuotes
|
||||
@ -136,7 +136,7 @@ function getExpression(tokens: TokenData[], searchContext: SearchContext, level
|
||||
return date.format(format);
|
||||
}
|
||||
|
||||
function parseNoteProperty(): Expression | undefined | null {
|
||||
const parseNoteProperty: () => Expression | undefined | null = () => {
|
||||
if (tokens[i].token !== '.') {
|
||||
searchContext.addError('Expected "." to separate field path');
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user