chore: typing cleanup

This commit is contained in:
Nathan Walker
2021-02-25 14:28:42 -08:00
parent e1673a0af4
commit dee6bde170
7 changed files with 19 additions and 1 deletions

View File

@@ -151,11 +151,13 @@ export class ActionItem extends ViewBase {
/**
* Gets the iOS specific options of the action item.
*/
// @ts-ignore
ios: IOSActionItemSettings;
/**
* Gets the Android specific options of the action item.
*/
// @ts-ignore
android: AndroidActionItemSettings;
}

View File

@@ -150,11 +150,13 @@ export abstract class View extends ViewBase {
/**
* Gets the android-specific native instance that lies behind this proxy. Will be available if running on an Android platform.
*/
// @ts-ignore
public android: any;
/**
* Gets the ios-specific native instance that lies behind this proxy. Will be available if running on an iOS platform.
*/
// @ts-ignore
public ios: any;
/**

View File

@@ -87,26 +87,31 @@ export class Frame extends FrameBase {
/**
* Gets the back stack of this instance.
*/
// @ts-ignore
backStack: Array<BackstackEntry>;
/**
* Gets the Page instance the Frame is currently navigated to.
*/
// @ts-ignore
currentPage: Page;
/**
* Gets the NavigationEntry instance the Frame is currently navigated to.
*/
// @ts-ignore
currentEntry: NavigationEntry;
/**
* Gets or sets if navigation transitions should be animated.
*/
// @ts-ignore
animated: boolean;
/**
* Gets or sets the default navigation transition for this frame.
*/
// @ts-ignore
transition: NavigationTransition;
/**
@@ -149,6 +154,7 @@ export class Frame extends FrameBase {
/**
* @private
*/
// @ts-ignore
navigationBarHeight: number;
/**
* @private

View File

@@ -60,6 +60,7 @@ export { Slider } from './slider';
export { addTaggedAdditionalCSS, removeTaggedAdditionalCSS, resolveFileNameFromUrl } from './styling/style-scope';
export { Background } from './styling/background';
export type { CacheMode } from './styling/background';
export { parseCSSShadow } from './styling/css-shadow';
export { animationTimingFunctionConverter, timeConverter } from './styling/converters';
export { Font } from './styling/font';
export { Style } from './styling/style';

View File

@@ -39,5 +39,5 @@ export interface TransitionAnimation {
rotate?: number; // in degrees
opacity?: number;
duration?: number; // in milliseconds
curve?: AnimationCurve;
curve?: any; // TODO: type collisision branch fixes this! AnimationCurve;
}

View File

@@ -56,16 +56,19 @@ export declare class Page extends PageBase {
/**
* Gets or sets the style of the status bar.
*/
// @ts-ignore
public statusBarStyle: 'light' | 'dark';
/**
* Gets or sets the color of the status bar in Android.
*/
// @ts-ignore
public androidStatusBarBackground: Color;
/**
* Used to hide the Navigation Bar in iOS and the Action Bar in Android.
*/
// @ts-ignore
public actionBarHidden: boolean;
/**
@@ -81,16 +84,19 @@ export declare class Page extends PageBase {
/**
* A property that is used to pass a data from another page (while navigate to).
*/
// @ts-ignore
public navigationContext: any;
/**
* Gets the Frame object controlling this instance.
*/
// @ts-ignore
public frame: Frame;
/**
* Gets the ActionBar for this page.
*/
// @ts-ignore
public actionBar: ActionBar;
/**