feat: introduce platform defs for adding additional spotlight searchers (#3631)
This commit is contained in:
10
packages/hoppscotch-common/src/platform/spotlight.ts
Normal file
10
packages/hoppscotch-common/src/platform/spotlight.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Service } from "dioc"
|
||||
import { SpotlightSearcher } from "~/services/spotlight"
|
||||
|
||||
export type SpotlightPlatformDef = {
|
||||
additionalSearchers?: Array<
|
||||
typeof Service<unknown> & { ID: string } & {
|
||||
new (): Service & SpotlightSearcher
|
||||
}
|
||||
>
|
||||
}
|
||||
Reference in New Issue
Block a user