mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
feat: extend navigationHistory API (#42014)
* feat: extend navigationHistory API * refactor: simplify index checking * refactor: rename 'getHistory' and 'replaceHistory' methods of navigationHistory * refactor: rename delete*() methods to remove*() * feat: remove navigationHistory.replaceHistory() * tests: add tests for removeEntryAtIndex and getAllEntries
This commit is contained in:
4
typings/internal-electron.d.ts
vendored
4
typings/internal-electron.d.ts
vendored
@@ -87,7 +87,7 @@ declare namespace Electron {
|
||||
_print(options: any, callback?: (success: boolean, failureReason: string) => void): void;
|
||||
_getPrintersAsync(): Promise<Electron.PrinterInfo[]>;
|
||||
_init(): void;
|
||||
_getNavigationEntryAtIndex(index: number): Electron.EntryAtIndex | null;
|
||||
_getNavigationEntryAtIndex(index: number): Electron.NavigationEntry | null;
|
||||
_getActiveIndex(): number;
|
||||
_historyLength(): number;
|
||||
_canGoBack(): boolean;
|
||||
@@ -97,6 +97,8 @@ declare namespace Electron {
|
||||
_goForward(): void;
|
||||
_goToOffset(index: number): void;
|
||||
_goToIndex(index: number): void;
|
||||
_removeNavigationEntryAtIndex(index: number): boolean;
|
||||
_getHistory(): Electron.NavigationEntry[];
|
||||
_clearHistory():void
|
||||
canGoToIndex(index: number): boolean;
|
||||
destroy(): void;
|
||||
|
||||
Reference in New Issue
Block a user