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:
Eddy Verbruggen
2017-08-21 10:22:04 +02:00
committed by Hristo Hristov
parent 121ad5de01
commit 6e06eba218
17 changed files with 71 additions and 52 deletions

View File

@@ -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;

View File

@@ -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.

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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.
*/

View File

@@ -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);

View File

@@ -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>;

View File

@@ -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;
}

View File

@@ -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">;

View File

@@ -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).
*/