mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
Add database for library
This commit is contained in:
@@ -5,6 +5,7 @@ import { Settings } from '../Settings.js'
|
||||
import { Download, DownloadProgress } from './download.interface.js'
|
||||
import { ThemeColors } from './theme.interface.js'
|
||||
import { UpdateProgress } from './update.interface.js'
|
||||
import { ChartData } from './search.interface.js'
|
||||
|
||||
export interface ContextBridgeApi {
|
||||
invoke: IpcInvokeHandlers
|
||||
@@ -50,6 +51,22 @@ export interface IpcInvokeEvents {
|
||||
input: string
|
||||
output: ThemeColors | null
|
||||
}
|
||||
addChart: {
|
||||
input: ChartData
|
||||
output: ChartData
|
||||
}
|
||||
removeChart: {
|
||||
input: string
|
||||
output: void
|
||||
}
|
||||
removeCharts: {
|
||||
input: ChartData[]
|
||||
output: void
|
||||
}
|
||||
getChartsBySearchTerm: {
|
||||
input?: string
|
||||
output: ChartData[]
|
||||
}
|
||||
}
|
||||
|
||||
export type IpcInvokeHandlers = {
|
||||
@@ -75,6 +92,7 @@ export interface IpcToMainEmitEvents {
|
||||
showFolder: string
|
||||
showFile: string
|
||||
scanIssues: void
|
||||
removeAllCharts: void
|
||||
}
|
||||
|
||||
export type IpcToMainEmitHandlers = {
|
||||
|
||||
Reference in New Issue
Block a user