mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
24 lines
653 B
TypeScript
24 lines
653 B
TypeScript
declare module "ui/frame" {
|
|
import view = require("ui/core/view");
|
|
|
|
// There is a cyclic reference here (pages module requires frame) but it is intented and needed.
|
|
import pages = require("ui/pages");
|
|
|
|
export class Frame extends view.View {
|
|
goBack();
|
|
canGoBack(): boolean;
|
|
goForward();
|
|
canGoForward(): boolean;
|
|
navigate(entry: PageNavigationEntry);
|
|
|
|
currentPage: pages.Page;
|
|
|
|
backStack: Array<PageNavigationEntry>;
|
|
forwardStack: Array<PageNavigationEntry>;
|
|
}
|
|
|
|
export interface PageNavigationEntry {
|
|
pageModuleName: string;
|
|
context?: any;
|
|
}
|
|
}
|