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:
@@ -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 {
|
||||||
|
|||||||
@@ -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[],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user