fix: Resolve TypeScript build errors with type imports and assertion

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-05 15:56:32 -07:00
parent 2ef3a1392f
commit b195bf65ee
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import {
type DocumentRef, type DocumentRef,
type IndexedDocument, type IndexedDocument,
type ResultNote, type ResultNote,
type SearchMatch,
} from '../globals' } from '../globals'
import { import {

View File

@@ -1,4 +1,4 @@
import type { QueryCombination } from 'minisearch' import type { Query, QueryCombination } from 'minisearch'
import { BRACKETS_AND_SPACE, chsRegex, SPACE_OR_PUNCTUATION } from '../globals' import { BRACKETS_AND_SPACE, chsRegex, SPACE_OR_PUNCTUATION } from '../globals'
import { logVerbose, splitCamelCase, splitHyphens } from '../tools/utils' import { logVerbose, splitCamelCase, splitHyphens } from '../tools/utils'
import type OmnisearchPlugin from '../main' import type OmnisearchPlugin from '../main'
@@ -102,7 +102,7 @@ export class Tokenizer {
return { return {
combineWith: 'OR', combineWith: 'OR',
queries: uniqueQueries, queries: uniqueQueries as Query[],
} }
} }