mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed a bunch of typo's and minor errors in TypeScript definition files. (#4707)
* Fix a bunch of typo's and minor errors in TypeScript definition files. * Implemented the requested change by @hshristov
This commit is contained in:
committed by
Hristo Hristov
parent
121ad5de01
commit
6e06eba218
4
tns-core-modules/ui/gestures/gestures.d.ts
vendored
4
tns-core-modules/ui/gestures/gestures.d.ts
vendored
@@ -44,7 +44,7 @@ export enum GestureTypes {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines an enum with supported gesture types.
|
||||
* Defines an enum with supported gesture states.
|
||||
*/
|
||||
export enum GestureStateTypes {
|
||||
/**
|
||||
@@ -196,7 +196,7 @@ export interface Pointer {
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides gesture event data for pinch gesture.
|
||||
* Provides gesture event data.
|
||||
*/
|
||||
export interface GestureEventDataWithState extends GestureEventData {
|
||||
state: number;
|
||||
|
||||
2
tns-core-modules/ui/html-view/html-view.d.ts
vendored
2
tns-core-modules/ui/html-view/html-view.d.ts
vendored
@@ -19,7 +19,7 @@ export class HtmlView extends View {
|
||||
/**
|
||||
* Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: any /* UILabel */;
|
||||
ios: any /* UITextView */;
|
||||
|
||||
/**
|
||||
* Gets or sets html string for the HtmlView.
|
||||
|
||||
2
tns-core-modules/ui/image/image.d.ts
vendored
2
tns-core-modules/ui/image/image.d.ts
vendored
@@ -31,7 +31,7 @@ export class Image extends View {
|
||||
src: any;
|
||||
|
||||
/**
|
||||
* Gets a value indicating if the image is currently loading
|
||||
* Gets a value indicating if the image is currently loading.
|
||||
*/
|
||||
readonly isLoading: boolean;
|
||||
|
||||
|
||||
@@ -9,12 +9,12 @@ import { LayoutBase, View, Property } from "../layout-base";
|
||||
*/
|
||||
export class DockLayout extends LayoutBase {
|
||||
/**
|
||||
* Gets the value of the Left property from a given View.
|
||||
* Gets the value of the Dock property from a given View.
|
||||
*/
|
||||
static getDock(view: View): Dock;
|
||||
|
||||
/**
|
||||
* Sets the value of the Left property from a given View.
|
||||
* Sets the value of the Dock property from a given View.
|
||||
*/
|
||||
static setDock(view: View, value: Dock): void;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export class ItemSpec {
|
||||
isAuto: boolean;
|
||||
|
||||
/**
|
||||
* Returns true if this ItemSpec instance holds weighted propertion
|
||||
* Returns true if this ItemSpec instance holds weighted proportion
|
||||
* of available space.
|
||||
*/
|
||||
isStar: boolean;
|
||||
@@ -107,7 +107,7 @@ export class GridLayout extends LayoutBase {
|
||||
public removeColumn(itemSpec: ItemSpec): void;
|
||||
|
||||
/**
|
||||
* Removes all columns specification from a GridLayout.
|
||||
* Removes all column specifications from a GridLayout.
|
||||
*/
|
||||
public removeColumns(): void;
|
||||
|
||||
@@ -117,7 +117,7 @@ export class GridLayout extends LayoutBase {
|
||||
public removeRow(itemSpec: ItemSpec): void;
|
||||
|
||||
/**
|
||||
* Removes all rows specification from a GridLayout.
|
||||
* Removes all row specifications from a GridLayout.
|
||||
*/
|
||||
public removeRows(): void;
|
||||
|
||||
|
||||
2
tns-core-modules/ui/list-view/list-view.d.ts
vendored
2
tns-core-modules/ui/list-view/list-view.d.ts
vendored
@@ -61,8 +61,8 @@ export class ListView extends View {
|
||||
/**
|
||||
* A function that returns the appropriate ket template based on the data item.
|
||||
*/
|
||||
|
||||
itemTemplateSelector: string | ((item: any, index: number, items: any) => string);
|
||||
|
||||
/**
|
||||
* Gets or set the items separator line color of the ListView.
|
||||
*/
|
||||
|
||||
@@ -324,7 +324,7 @@ backgroundSpanUnderStatusBarProperty.register(PageBase);
|
||||
|
||||
/**
|
||||
* Dependency property used to control if swipe back navigation in iOS is enabled.
|
||||
* This property is iOS sepecific. Default value: true
|
||||
* This property is iOS specific. Default value: true
|
||||
*/
|
||||
export const enableSwipeBackNavigationProperty = new Property<PageBase, boolean>({ name: "enableSwipeBackNavigation", defaultValue: true, valueConverter: booleanConverter });
|
||||
enableSwipeBackNavigationProperty.register(PageBase);
|
||||
|
||||
4
tns-core-modules/ui/page/page.d.ts
vendored
4
tns-core-modules/ui/page/page.d.ts
vendored
@@ -104,7 +104,7 @@ export class Page extends ContentView {
|
||||
public actionBarHidden: boolean;
|
||||
|
||||
/**
|
||||
* Used to control if swipe back navigation in iOS is enabled. This property is iOS sepecific. Default value: true
|
||||
* Used to control if swipe back navigation in iOS is enabled. This property is iOS specific. Default value: true
|
||||
*/
|
||||
public enableSwipeBackNavigation: boolean;
|
||||
|
||||
@@ -278,7 +278,7 @@ export const actionBarHiddenProperty: Property<Page, boolean>;
|
||||
|
||||
/**
|
||||
* Dependency property used to control if swipe back navigation in iOS is enabled.
|
||||
* This property is iOS sepecific. Default value: true
|
||||
* This property is iOS specific. Default value: true
|
||||
*/
|
||||
export const enableSwipeBackNavigationProperty: Property<Page, boolean>;
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ export class SearchBar extends View {
|
||||
on(event: "close", callback: (args: EventData) => void, thisArg?: any);
|
||||
|
||||
/**
|
||||
* Hides the soft input method, ususally a soft keyboard.
|
||||
* Hides the soft input method, usually a soft keyboard.
|
||||
*/
|
||||
dismissSoftInput(): void;
|
||||
}
|
||||
|
||||
2
tns-core-modules/ui/tab-view/tab-view.d.ts
vendored
2
tns-core-modules/ui/tab-view/tab-view.d.ts
vendored
@@ -130,5 +130,5 @@ export const tabTextColorProperty: CssProperty<Style, Color>;
|
||||
export const tabBackgroundColorProperty: CssProperty<Style, Color>;
|
||||
export const selectedTabTextColorProperty: CssProperty<Style, Color>;
|
||||
export const androidSelectedTabHighlightColorProperty: CssProperty<Style, Color>;
|
||||
export const androidOffscreenTabLimitProperty: Property<TabView, number>
|
||||
export const androidOffscreenTabLimitProperty: Property<TabView, number>;
|
||||
export const iosIconRenderingModeProperty: Property<TabView, "automatic" | "alwaysOriginal" | "alwaysTemplate">;
|
||||
|
||||
4
tns-core-modules/ui/web-view/web-view.d.ts
vendored
4
tns-core-modules/ui/web-view/web-view.d.ts
vendored
@@ -70,7 +70,7 @@ export class WebView extends View {
|
||||
goForward();
|
||||
|
||||
/**
|
||||
* Reload the current url.
|
||||
* Reloads the current url.
|
||||
*/
|
||||
reload();
|
||||
|
||||
@@ -101,10 +101,12 @@ export interface LoadEventData extends EventData {
|
||||
* Gets the url of the web-view.
|
||||
*/
|
||||
url: string;
|
||||
|
||||
/**
|
||||
* Gets the navigation type of the web-view.
|
||||
*/
|
||||
navigationType: NavigationType;
|
||||
|
||||
/**
|
||||
* Gets the error (if any).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user