mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +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 ? "..." : ""}"`; |         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; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran