mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
refactor: Port inspector to TypeScript (#16943)
* refactor: Port inspector to TypeScript * refactor: Add another type to inspector * refactor: Use correct paths * Update lib/renderer/inspector.ts Co-Authored-By: felixrieseberg <felix@felixrieseberg.com> * refactor: Implement feedback <3 * refactor: Don't define blob at all * fix: Correct type
This commit is contained in:
committed by
Samuel Attard
parent
ddcebb096f
commit
7f007109c3
15
typings/internal-ambient.d.ts
vendored
15
typings/internal-ambient.d.ts
vendored
@@ -48,4 +48,19 @@ declare module NodeJS {
|
||||
declare interface Window {
|
||||
ELECTRON_DISABLE_SECURITY_WARNINGS?: boolean;
|
||||
ELECTRON_ENABLE_SECURITY_WARNINGS?: boolean;
|
||||
InspectorFrontendHost?: {
|
||||
showContextMenuAtPoint: (x: number, y: number, items: any[]) => void
|
||||
};
|
||||
DevToolsAPI?: {
|
||||
contextMenuItemSelected: (id: number) => void;
|
||||
contextMenuCleared: () => void
|
||||
};
|
||||
UI?: {
|
||||
createFileSelectorElement: (callback: () => void) => HTMLSpanElement
|
||||
};
|
||||
Persistence?: {
|
||||
FileSystemWorkspaceBinding: {
|
||||
completeURL: (project: string, path: string) => string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user