* refactor: deprecate invokers * refactor: define routes and auto proxying routes * refactor: declare types for APIs, avoid making dynamic calls to any functions from the web * chore: deprecate route handling from preload script * refactor: deprecate unused apis
18 lines
358 B
TypeScript
18 lines
358 B
TypeScript
import { APIFunctions } from '@janhq/core'
|
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
export {}
|
|
|
|
declare global {
|
|
declare const PLUGIN_CATALOG: string
|
|
declare const VERSION: string
|
|
interface Core {
|
|
api: APIFunctions
|
|
events: EventEmitter
|
|
}
|
|
interface Window {
|
|
core?: Core | undefined
|
|
electronAPI?: any | undefined
|
|
}
|
|
}
|