mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(core): zero circulars + esm ready (#10770)
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
// Types
|
||||
import { View } from '../core/view';
|
||||
import { Page } from '../page';
|
||||
import { Transition } from '../transition';
|
||||
import { Observable } from '../../data/observable';
|
||||
import type { View } from '../core/view';
|
||||
import type { Page } from '../page';
|
||||
import type { Transition } from '../transition';
|
||||
import type { Observable, EventData } from '../../data/observable';
|
||||
|
||||
export enum NavigationType {
|
||||
back,
|
||||
@ -53,6 +52,47 @@ export interface NavigationTransition {
|
||||
curve?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents an entry in the back stack of a Frame object.
|
||||
*/
|
||||
export interface BackstackEntry {
|
||||
entry: NavigationEntry;
|
||||
resolvedPage: Page;
|
||||
|
||||
//@private
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
navDepth: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
fragmentTag: string;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
fragment?: any;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
viewSavedState?: any;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
frameId?: number;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
recreated?: boolean;
|
||||
//@endprivate
|
||||
}
|
||||
|
||||
export interface NavigationData extends EventData {
|
||||
entry?: BackstackEntry;
|
||||
fromEntry?: BackstackEntry;
|
||||
isBack?: boolean;
|
||||
}
|
||||
|
||||
export interface TransitionState {
|
||||
enterTransitionListener: any;
|
||||
exitTransitionListener: any;
|
||||
|
||||
Reference in New Issue
Block a user