mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: typing cleanup
This commit is contained in:
1
packages/core/accessibility/index.d.ts
vendored
1
packages/core/accessibility/index.d.ts
vendored
@@ -1,3 +1,4 @@
|
||||
import type { Page } from '../ui/page';
|
||||
import { View } from '../ui/core/view';
|
||||
import { AndroidAccessibilityEvent } from './accessibility-types';
|
||||
|
||||
|
||||
2
packages/core/ui/action-bar/index.d.ts
vendored
2
packages/core/ui/action-bar/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
2
packages/core/ui/core/view/index.d.ts
vendored
2
packages/core/ui/core/view/index.d.ts
vendored
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
6
packages/core/ui/frame/index.d.ts
vendored
6
packages/core/ui/frame/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
6
packages/core/ui/page/index.d.ts
vendored
6
packages/core/ui/page/index.d.ts
vendored
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user