Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ElectronAPI } from '@electron-toolkit/preload'

import type { api } from './index'
declare global {
interface Window {
electron: ElectronAPI
api: unknown
api: api
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { electronAPI } from '@electron-toolkit/preload'

// Custom APIs for renderer
const api = {}

export type api = typeof api
// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
// just add to the DOM global.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ElectronAPI } from '@electron-toolkit/preload'
import type { api } from './index'

declare global {
interface Window {
electron: ElectronAPI
api: unknown
api: api
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { electronAPI } from '@electron-toolkit/preload'

// Custom APIs for renderer
const api = {}
export type api = typeof api

// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ElectronAPI } from '@electron-toolkit/preload'
import type { api } from './index'

declare global {
interface Window {
electron: ElectronAPI
api: unknown
api: api
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { electronAPI } from '@electron-toolkit/preload'

// Custom APIs for renderer
const api = {}
export type api = typeof api

// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ElectronAPI } from '@electron-toolkit/preload'
import type { api } from './index'

declare global {
interface Window {
electron: ElectronAPI
api: unknown
api: api
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { electronAPI } from '@electron-toolkit/preload'

// Custom APIs for renderer
const api = {}
export type api = typeof api

// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { ElectronAPI } from '@electron-toolkit/preload'
import type { api } from './index'

declare global {
interface Window {
electron: ElectronAPI
api: unknown
api: api
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { electronAPI } from '@electron-toolkit/preload'

// Custom APIs for renderer
const api = {}
export type api = typeof api

// Use `contextBridge` APIs to expose Electron APIs to
// renderer only if context isolation is enabled, otherwise
Expand Down