WIP: Array<> stuff

This commit is contained in:
Andy Hanson
2016-11-28 11:24:05 -08:00
parent 8e2c6958a6
commit 6ba254f0ac
89 changed files with 604 additions and 611 deletions
+51 -51
View File
@@ -11964,7 +11964,7 @@ export interface TabsGroupsContentGroup {
/** Specifies the Syncfusion button and menu as gallery extra items.
* @Default {array}
*/
customGalleryItems?: Array<TabsGroupsContentGroupsCustomGalleryItem>;
customGalleryItems?: TabsGroupsContentGroupsCustomGalleryItem[];
/** Provides custom tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups. Text and HTML support are also provided for title and content.
* @Default {Object}
@@ -11989,7 +11989,7 @@ export interface TabsGroupsContentGroup {
/** Defines each gallery content.
* @Default {array}
*/
galleryItems?: Array<TabsGroupsContentGroupsGalleryItem>;
galleryItems?: TabsGroupsContentGroupsGalleryItem[];
/** Specifies the Id for button, split button, dropdown list, toggle button, gallery, custom controls in the sub groups.
* @Default {null}
@@ -12052,7 +12052,7 @@ export interface TabsGroupsContent {
/** Specifies the controls such as Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls in the subgroup of the ribbon tab .
* @Default {array}
*/
groups?: Array<TabsGroupsContentGroup>;
groups?: TabsGroupsContentGroup[];
}
export interface TabsGroupsGroupExpanderSettings {
@@ -12078,7 +12078,7 @@ export interface TabsGroup {
/** Specifies the Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls to the groups in the ribbon control.
* @Default {array}
*/
content?: Array<TabsGroupsContent>;
content?: TabsGroupsContent[];
/** Specifies the ID of custom items to be placed in the groups.
* @Default {null}
@@ -12116,7 +12116,7 @@ export interface Tab {
/** Specifies single group or multiple groups and its contents to each tab in the ribbon control.
* @Default {array}
*/
groups?: Array<TabsGroup>;
groups?: TabsGroup[];
/** Specifies the ID for each tab's content panel.
* @Default {null}
@@ -12475,7 +12475,7 @@ export interface Model {
/** Gets or sets a value that indicates whether to add customToolbarItems within the toolbar to perform any action in the Kanban.
* @Default {[]}
*/
customToolbarItems?: Array<CustomToolbarItem>;
customToolbarItems?: CustomToolbarItem[];
/** Gets or sets a value that indicates to render the Kanban with custom theme.
*/
@@ -12529,7 +12529,7 @@ export interface Model {
/** To customize the filtering behavior based on queries given.
* @Default {array}
*/
filterSettings?: Array<FilterSetting>;
filterSettings?: FilterSetting[];
/** ej Query to query database of Kanban.
* @Default {null}
@@ -12559,7 +12559,7 @@ export interface Model {
/** Gets or sets an object that indicates to managing the collection of stacked header rows for the Kanban.
* @Default {Array}
*/
stackedHeaderRows?: Array<StackedHeaderRow>;
stackedHeaderRows?: StackedHeaderRow[];
/** The tooltip allows to display card details in a tooltip while hovering on it.
*/
@@ -13604,7 +13604,7 @@ export interface EditSettings {
/** Get or sets an object that indicates whether to customize the editing fields of Kanban card.
* @Default {Array}
*/
editItems?: Array<EditSettingsEditItem>;
editItems?: EditSettingsEditItem[];
/** This specifies the id of the template which is require to be edited using the External edit form.
* @Default {null}
@@ -13736,7 +13736,7 @@ export interface StackedHeaderRow {
/** Gets or sets a value that indicates whether to add stacked header columns into the stacked header rows.
* @Default {Array}
*/
stackedHeaderColumns?: Array<StackedHeaderRowsStackedHeaderColumn>;
stackedHeaderColumns?: StackedHeaderRowsStackedHeaderColumn[];
}
export interface TooltipSettings {
@@ -15030,11 +15030,11 @@ export interface Tools {
/** Specifies the customOrderedList tools and the display order of this tool in the RTE toolbar.
*/
customOrderedList?: Array<ToolsCustomOrderedList>;
customOrderedList?: ToolsCustomOrderedList[];
/** Specifies the customUnOrderedList tools and the display order of this tool in the RTE toolbar.
*/
customUnorderedList?: Array<ToolsCustomUnorderedList>;
customUnorderedList?: ToolsCustomUnorderedList[];
}
}
@@ -20855,12 +20855,12 @@ export interface Model {
/** Gets or sets an object that indicates to managing the collection of stacked header rows for the grid.
* @Default {[]}
*/
stackedHeaderRows?: Array<StackedHeaderRow>;
stackedHeaderRows?: StackedHeaderRow[];
/** Gets or sets an object that indicates to managing the collection of summary rows for the grid.
* @Default {[]}
*/
summaryRows?: Array<SummaryRow>;
summaryRows?: SummaryRow[];
/** Gets or sets an object that indicates whether to auto wrap the grid header or content or both
*/
@@ -22713,7 +22713,7 @@ export interface Column {
/** Gets or sets an object that indicates to define a command column in the grid.
* @Default {[]}
*/
commands?: Array<ColumnsCommand>;
commands?: ColumnsCommand[];
/** Gets or sets a value that indicates to provide custom CSS for an individual column.
*/
@@ -22882,7 +22882,7 @@ export interface ContextMenuSettings {
/** Used to get or set the subMenu to the corresponding custom context menu item.
*/
subContextMenu?: Array<ContextMenuSettingsSubContextMenu>;
subContextMenu?: ContextMenuSettingsSubContextMenu[];
/** Gets or sets a value that indicates whether to disable the default context menu items in the grid.
* @Default {false}
@@ -22997,7 +22997,7 @@ export interface FilterSettings {
/** Gets or sets a value that indicates whether to define the filtered columns details programmatically at initial load
* @Default {[]}
*/
filteredColumns?: Array<FilterSettingsFilteredColumn>;
filteredColumns?: FilterSettingsFilteredColumn[];
/** This specifies the grid to show the filterBar or filterMenu to the grid records. See filterType
* @Default {ej.Grid.FilterType.FilterBar}
@@ -23235,7 +23235,7 @@ export interface SortSettings {
/** Gets or sets a value that indicates whether to define the direction and field to sort the column.
*/
sortedColumns?: Array<SortSettingsSortedColumn>;
sortedColumns?: SortSettingsSortedColumn[];
}
export interface StackedHeaderRowsStackedHeaderColumn {
@@ -23266,7 +23266,7 @@ export interface StackedHeaderRow {
/** Gets or sets a value that indicates whether to add stacked header columns into the stacked header rows
* @Default {[]}
*/
stackedHeaderColumns?: Array<StackedHeaderRowsStackedHeaderColumn>;
stackedHeaderColumns?: StackedHeaderRowsStackedHeaderColumn[];
}
export interface SummaryRowsSummaryColumn {
@@ -23332,7 +23332,7 @@ export interface SummaryRow {
/** Gets or sets a value that indicates whether to add summary columns into the summary rows.
* @Default {[]}
*/
summaryColumns?: Array<SummaryRowsSummaryColumn>;
summaryColumns?: SummaryRowsSummaryColumn[];
/** This specifies the grid to show the title for the summary rows.
*/
@@ -24863,7 +24863,7 @@ export interface DataSourceColumn {
/** Allows the user to filter the report by default using advanced filtering (excel-like) option for OLAP data source in client-mode.
* @Default {[]}
*/
advancedFilter?: Array<DataSourceColumnsAdvancedFilter>;
advancedFilter?: DataSourceColumnsAdvancedFilter[];
/** Allows the user to indicate whether the added item is a named set or not.
* @Default {false}
@@ -24946,7 +24946,7 @@ export interface DataSourceRow {
/** Allows the user to filter the report by default using advanced filtering (excel-like) option for OLAP data source in client-mode.
* @Default {[]}
*/
advancedFilter?: Array<DataSourceRowsAdvancedFilter>;
advancedFilter?: DataSourceRowsAdvancedFilter[];
/** Allows the user to indicate whether the added item is a named set or not.
* @Default {false}
@@ -25081,7 +25081,7 @@ export interface DataSource {
/** Lists out the items to be arranged in columns section of PivotGrid.
* @Default {[]}
*/
columns?: Array<DataSourceColumn>;
columns?: DataSourceColumn[];
/** Lists out the items to be arranged in rows section of PivotGrid.
* @Default {[]}
@@ -28085,7 +28085,7 @@ export interface Model {
/** Holds all the options related to the resources settings of the Schedule. It is a collection of one or more resource objects, where the levels of resources are rendered on the Schedule based on the order of the resource data provided within this collection.
* @Default {null}
*/
resources?: Array<Resource>;
resources?: Resource[];
/** When set to true, displays the all-day row cells on the Schedule.
* @Default {true}
@@ -30186,7 +30186,7 @@ export interface Model {
/** Specifies the selected cell information on rendering Gantt.
*/
selectedCellIndexes?: Array<SelectedCellIndex>;
selectedCellIndexes?: SelectedCellIndex[];
/** Specifies the sorting options for Gantt.
*/
@@ -31423,7 +31423,7 @@ export interface Model {
/** Gets or sets the list of data sources for the RDLC report.
* @Default {[]}
*/
dataSources?: Array<DataSource>;
dataSources?: DataSource[];
/** Enables or disables the page cache of report.
* @Default {false}
@@ -31451,7 +31451,7 @@ export interface Model {
/** Gets or sets the list of parameters associated with the report.
* @Default {[]}
*/
parameters?: Array<Parameter>;
parameters?: Parameter[];
/** Enables and disables the print mode.
* @Default {false}
@@ -34136,7 +34136,7 @@ export interface Model {
/** Specify the items of radial menu
*/
items?: Array<Item>;
items?: Item[];
/** Specifies the radius of radial menu
*/
@@ -36424,7 +36424,7 @@ export interface Model {
/** Gets or sets an object that indicates to customize the sheet behavior in Spreadsheet.
*/
sheets?: Array<Sheet>;
sheets?: Sheet[];
/** Gets or sets a value that indicates whether to show or hide pager in the Spreadsheet.
* @Default {true}
@@ -37876,7 +37876,7 @@ export interface Sheet {
/** Specifies the border for the cell in the Spreadsheet.
* @Default {[]}
*/
border?: Array<SheetsBorder>;
border?: SheetsBorder[];
/** Specifies the conditional formatting for the range of cell in Spreadsheet.
* @Default {[]}
@@ -37935,7 +37935,7 @@ export interface Sheet {
/** Specifies single range or multiple range settings for a sheet in Spreadsheet.
* @Default {[]}
*/
rangeSettings?: Array<SheetsRangeSetting>;
rangeSettings?: SheetsRangeSetting[];
/** Gets or sets a value that indicates to define row count in the Spreadsheet.
* @Default {20}
@@ -37945,7 +37945,7 @@ export interface Sheet {
/** Specifies the rows for a sheet in Spreadsheet.
* @Default {[]}
*/
rows?: Array<SheetsRow>;
rows?: SheetsRow[];
/** Gets or sets a value that indicates whether to show or hide grid lines in the Spreadsheet.
* @Default {true}
@@ -39010,7 +39010,7 @@ export interface Model {
/** An array of JSON objects, where each object represents a node/connector
* @Default {[]}
*/
palettes?: Array<Palette>;
palettes?: Palette[];
/** Defines the preview height of the symbols
* @Default {100}
@@ -40526,7 +40526,7 @@ export interface ScalesIndicator {
/** Specifies the state ranges in bar indicators
* @Default {Array}
*/
stateRanges?: Array<ScalesIndicatorsStateRange>;
stateRanges?: ScalesIndicatorsStateRange[];
/** Specifies the textLocation in bar indicators
* @Default {null}
@@ -43586,7 +43586,7 @@ export interface Model {
/** Options for adding and customizing annotations in Chart.
*/
annotations?: Array<Annotation>;
annotations?: Annotation[];
/** URL of the image to be used as chart background.
* @Default {null}
@@ -43607,7 +43607,7 @@ export interface Model {
/** Options to split Chart into multiple plotting areas vertically. Each object in the collection represents a plotting area in Chart.
*/
columnDefinitions?: Array<ColumnDefinition>;
columnDefinitions?: ColumnDefinition[];
/** Options for configuring the properties of all the series. You can also override the options for specific series by using series collection.
*/
@@ -43639,7 +43639,7 @@ export interface Model {
/** Options to customize the technical indicators.
*/
indicators?: Array<Indicator>;
indicators?: Indicator[];
/** Controls whether Chart has to be responsive while resizing.
* @Default {false}
@@ -43688,11 +43688,11 @@ export interface Model {
/** Options to split Chart into multiple plotting areas horizontally. Each object in the collection represents a plotting area in Chart.
*/
rowDefinitions?: Array<RowDefinition>;
rowDefinitions?: RowDefinition[];
/** Specifies the properties used for customizing the series.
*/
series?: Array<Series>;
series?: Series[];
/** Controls whether data points has to be displayed side by side or along the depth of the axis.
* @Default {false}
@@ -45982,7 +45982,7 @@ export interface CommonSeriesOptions {
/** Option to add the trendlines to chart.
*/
trendlines?: Array<CommonSeriesOptionsTrendline>;
trendlines?: CommonSeriesOptionsTrendline[];
/** Options for customizing the appearance of the series or data point while highlighting.
*/
@@ -47216,7 +47216,7 @@ export interface PrimaryXAxis {
/** Options for customizing the strip lines.
* @Default {[ ]}
*/
stripLine?: Array<PrimaryXAxisStripLine>;
stripLine?: PrimaryXAxisStripLine[];
/** Specifies the position of the axis tick lines.
* @Default {outside. See TickLinesPosition}
@@ -48553,7 +48553,7 @@ export interface PrimaryYAxis {
/** Options for customizing the strip lines.
* @Default {[ ]}
*/
stripLine?: Array<PrimaryYAxisStripLine>;
stripLine?: PrimaryYAxisStripLine[];
/** Specifies the position of the axis tick lines.
* @Default {outside. See TickLinesPosition}
@@ -49783,7 +49783,7 @@ export interface Series {
/** Option to add data points; each point should have x and y property. Also, optionally, you can customize the points color, border, marker by using fill, border and marker options.
*/
points?: Array<SeriesPoint>;
points?: SeriesPoint[];
/** Specifies the mode of the pyramid series.
* @Default {linear}
@@ -49880,7 +49880,7 @@ export interface Series {
/** Option to add trendlines to chart.
*/
trendlines?: Array<SeriesTrendline>;
trendlines?: SeriesTrendline[];
/** Options for customizing the appearance of the series or data point while highlighting.
*/
@@ -50784,7 +50784,7 @@ export interface Model {
/** Specifies the properties used for customizing the range series.
*/
series?: Array<Series>;
series?: Series[];
/** Toggles the redrawing of chart on moving the sliders.
* @Default {true}
@@ -51945,7 +51945,7 @@ export interface Model {
/** Contains property to customize the qualitative ranges.
*/
qualitativeRanges?: Array<QualitativeRange>;
qualitativeRanges?: QualitativeRange[];
/** Size of the qualitative range depends up on the specified value.
* @Default {32}
@@ -52702,7 +52702,7 @@ export interface QuantitativeScaleSettings {
/** Contains property to customize the featured measure.
*/
featureMeasures?: Array<QuantitativeScaleSettingsFeatureMeasure>;
featureMeasures?: QuantitativeScaleSettingsFeatureMeasure[];
/** Contains property to customize the fields.
*/
@@ -53156,7 +53156,7 @@ export interface Model {
/** Layer for holding the map shapes
*/
layers?: Array<Layer>;
layers?: Layer[];
/** Triggered on selecting the map markers. */
markerSelected? (e: MarkerSelectedEventArgs): void;
@@ -53548,12 +53548,12 @@ export interface LayersShapeSettingsColorMappings {
/** Specifies the range colorMappings in the shape layer of map.
* @Default {null}
*/
rangeColorMapping?: Array<LayersShapeSettingsColorMappingsRangeColorMapping>;
rangeColorMapping?: LayersShapeSettingsColorMappingsRangeColorMapping[];
/** Specifies the equalColorMapping in the shape layer of map.
* @Default {null}
*/
equalColorMapping?: Array<LayersShapeSettingsColorMappingsEqualColorMapping>;
equalColorMapping?: LayersShapeSettingsColorMappingsEqualColorMapping[];
}
export interface LayersShapeSettings {
@@ -53968,7 +53968,7 @@ export interface Model {
/** Specifies the group color mapping of the treemap
* @Default {[]}
*/
groupColorMapping?: Array<GroupColorMapping>;
groupColorMapping?: GroupColorMapping[];
/** Specifies the legend settings of the treemap
*/
+20 -20
View File
@@ -113,7 +113,7 @@ declare namespace H {
* @param opt_x2 {number=} - The X coordinate of the right edge of the capturing rectangle defaults to viewport width
* @param opt_y2 {number=} - The Y coordinate of the bottom edge of the capturing rectangle defaults to viewport height
*/
capture(callback?: (canvas: HTMLCanvasElement) => void, opt_capturables?: Array<H.util.ICapturable>, opt_x1?: number, opt_y1?: number, opt_x2?: number, opt_y2?: number): void;
capture(callback?: (canvas: HTMLCanvasElement) => void, opt_capturables?: H.util.ICapturable[], opt_x1?: number, opt_y1?: number, opt_x2?: number, opt_y2?: number): void;
/**
* This method sets the rendering engine type for the map. Rendering engine is responsible for displaying i.e tiles and data on the map.
@@ -180,7 +180,7 @@ declare namespace H {
* @param x {number} - map viewport x-axis pixel coordinate
* @param y {number} - map viewport y-axis pixel coordinate
* @returns {?H.geo.Point}
*/
*/map.
screenToGeo(x: number, y: number): H.geo.Point;
/**
@@ -207,23 +207,23 @@ declare namespace H {
/**
* This method retrieves the list of all objects which have been added to the map.
* @returns {Array<H.map.Object>} - the list of all use objects which are currently on the map.
* @returns {H.map.Object[]} - the list of all use objects which are currently on the map.
*/
getObjects(): Array<H.map.Object>;
getObjects(): H.map.Object[];
/**
* This method adds an array of objects or an object group to the map.
* @param mapObjects {Array<!H.map.Object>}
* @returns {H.Map} - the map instance
*/
addObjects(mapObjects: Array<H.map.Object>): H.Map;
addObjects(mapObjects: H.map.Object[]): H.Map;
/**
* This method removes an array of object or an object group from the map.
* @param mapObjects {(Array<H.map.Object> | H.map.Group)}
* @param mapObjects {(H.map.Object[] | H.map.Group)}
* @returns {H.Map} - the map instance
*/
removeObjects(mapObjects: (Array<H.map.Object> | H.map.Group)): H.Map;
removeObjects(mapObjects: (H.map.Object[] | H.map.Group)): H.Map;
/**
* Returns the top most z-ordered map object found under the specific screen coordinates. Coordinates are viewport pixel coordinates starting from top left corner as (0, 0) point.
@@ -239,7 +239,7 @@ declare namespace H {
* @param y {number} - map viewport y-axis pixel coordinate
* @returns {Array<!H.map.Object>}
*/
getObjectsAt(x: number, y: number): Array<H.map.Object>;
getObjectsAt(x: number, y: number): H.map.Object[];
/**
* This method will dispatch event on the event target object
@@ -284,7 +284,7 @@ declare namespace H {
* @property center {H.geo.IPoint=} - The initial center of the map, default is {lat:0, lng: 0}
* @property zoom {number=} - The initial zoom level of the map, default is 0 respectively the minimal zoom level of the base map
* @property bounds {H.geo.Rect=} - The view bounds to be displayed on the map. If provided, it takes precedence over center and zoom. and zoom if provided)
* @property layers {Array<H.map.layer.Layer>=} - A list of layers to render on top of the base map
* @property layers {H.map.layer.Layer[]=} - A list of layers to render on top of the base map
* @property engineType: {H.Map.EngineType=} - The initial engine type to use, default is P2D
* @property pixelRatio {number} - The pixelRatio to use for over-sampling in cases of high-resolution displays, default is 1
* @property imprint {H.map.Imprint.Options=} - The imprint options or null to suppress the imprint
@@ -298,7 +298,7 @@ declare namespace H {
center?: H.geo.IPoint;
zoom?: number;
bounds?: H.geo.Rect;
layers?: Array<H.map.layer.Layer>;
layers?: H.map.layer.Layer[];
engineType?: EngineType;
pixelRatio?: number;
imprint?: H.map.Imprint.Options;
@@ -676,9 +676,9 @@ declare namespace H {
/**
* Method returns collection of currently parsed, and converted to H.map.Object data objects. Method returns only currently parsed objects if parsing is ongoing.
* @returns {Array<H.map.Object>}
* @returns {H.map.Object[]}
*/
getParsedObjects(): Array<H.map.Object>;
getParsedObjects(): H.map.Object[];
/**
* Returns URL of the current file, which is either in process of fetching/parsing or file that has been already parsed.
@@ -1372,7 +1372,7 @@ declare namespace H {
* Constructor
* @param opt_layers {Array=} - array of layers to be added to the data model
*/
constructor(opt_layers?: Array<H.map.layer.Layer>);
constructor(opt_layers?: H.map.layer.Layer[]);
}
/**
@@ -1488,7 +1488,7 @@ declare namespace H {
* @param opt_recursive {boolean=} - Indicates whether objects in sub-groups are also collected .
* @returns {!Array<!H.map.Object>}
*/
getObjects(opt_recursive?: boolean): Array<H.map.Object>;
getObjects(opt_recursive?: boolean): H.map.Object[];
/**
* Method returns the bounding rectangle for the group. The rectangle is the smallest rectangle that covers all objects. If group doesn't contains objects method returns null.
@@ -1507,7 +1507,7 @@ declare namespace H {
* Appends a list of objects to this group
* @param objects {Array<!H.map.Object>}
*/
addObjects(objects: Array<H.map.Object>): void;
addObjects(objects: H.map.Object[]): void;
/**
* Removes an object from this group.
@@ -1520,7 +1520,7 @@ declare namespace H {
* Removes objects from this group.
* @param objects {!Array<!H.map.Object>} - The list of objects to remove
*/
removeObjects(objects: Array<H.map.Object>): void;
removeObjects(objects: H.map.Object[]): void;
/**
* Method removes all objects from the group.
@@ -1537,7 +1537,7 @@ declare namespace H {
* @property zIndex {number=} - The z-index value of the map object, default is 0
* @property provider {(H.map.provider.Provider | null)=} - The provider of this object. This property is only needed if a customized Implementation of ObjectProvider wants to instantiate an object.
* @property data {*} - Optional arbitrary data to be stored with this map object. This data can be retrieved by calling getData.
* @property objects {Array<H.map.Object>=} - A list of map objects to add initially to this group.
* @property objects {H.map.Object[]=} - A list of map objects to add initially to this group.
*/
export interface Options {
min?: number;
@@ -1546,7 +1546,7 @@ declare namespace H {
zIndex?: number;
provider?: H.map.provider.Provider;
data?: any;
objects?: Array<H.map.Object>;
objects?: H.map.Object[];
}
}
@@ -3343,7 +3343,7 @@ declare namespace H {
* @param x {number} - The row number of the tile
* @param y {number} - The column number of the tile
* @param z {number} - The zoom level for which the tile is requested
* @param onResponse {function((Array<H.map.Object> | HTMLImageElement | HTMLCanvasElement | ArrayBuffer | null), *=)} - function which is called after response arrives
* @param onResponse {function((H.map.Object[] | HTMLImageElement | HTMLCanvasElement | ArrayBuffer | null), *=)} - function which is called after response arrives
* @param onError {function(string=)} - function which is called in case of communication error
* @param opt_priority {H.net.Request.Priority=} - optional request priority level
* @returns {H.util.ICancelable}
@@ -3354,7 +3354,7 @@ declare namespace H {
z: number,
onResponse?: (
object: Array<H.map.Object> | HTMLImageElement | HTMLCanvasElement | ArrayBuffer,
object: H.map.Object[] | HTMLImageElement | HTMLCanvasElement | ArrayBuffer,
response: any
) => void,
+21 -21
View File
@@ -100,7 +100,7 @@ declare namespace JSData {
}
interface DSCollection<T> extends Array<T> {
fetch(params?: DSFilterArg, options?: DSConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
fetch(params?: DSFilterArg, options?: DSConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
params: DSFilterArg;
resourceName: string;
}
@@ -124,25 +124,25 @@ declare namespace JSData {
defaults: DSConfiguration;
changeHistory(resourceName: string, id: string | number): Object[];
changes(resourceName: string, id: string | number, options?: {ignoredChanges: Array<string|RegExp>}): Object;
clear<T>(): Array<T & DSInstanceShorthands<T>>;
changes(resourceName: string, id: string | number, options?: {ignoredChanges: (string|RegExp)[]}): Object;
clear<T>(): (T & DSInstanceShorthands<T>)[];
compute<T>(resourceName: string, idOrInstance: number | string | T): T & DSInstanceShorthands<T>;
create<T>(resourceName: string, attrs: Object, options?: DSConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
createCollection<T>(resourceName: string, array?: Array<T>, params?: DSFilterArg, options?: DSConfiguration): DSCollection<T & DSInstanceShorthands<T>>;
createCollection<T>(resourceName: string, array?: T[], params?: DSFilterArg, options?: DSConfiguration): DSCollection<T & DSInstanceShorthands<T>>;
createInstance<T>(resourceName: string, attrs?: Object, options?: DSConfiguration): T & DSInstanceShorthands<T>;
destroy(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
destroyAll(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
digest(): void;
eject<T>(resourceName: string, id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
ejectAll<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
filter<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
ejectAll<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
filter<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
find<T>(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
findAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
findAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
get<T>(resourceName: string, id: string | number): T & DSInstanceShorthands<T>;
getAll<T>(resourceName: string, ids?: Array<string | number>): Array<T & DSInstanceShorthands<T>>;
getAll<T>(resourceName: string, ids?: (string | number)[]): (T & DSInstanceShorthands<T>)[];
hasChanges(resourceName: string, id: string | number): boolean;
inject<TInject, U>(resourceName: string, attrs: TInject, options?: DSConfiguration): U & DSInstanceShorthands<U>;
inject<TInject, U>(resourceName: string, items: Array<TInject>, options?: DSConfiguration): Array<U & DSInstanceShorthands<U>>;
inject<TInject, U>(resourceName: string, items: TInject[], options?: DSConfiguration): (U & DSInstanceShorthands<U>)[];
is(resourceName: string, object: Object): boolean;
lastModified(resourceName: string, id?: string | number): number; // timestamp
lastSaved(resourceName: string, id?: string | number): number; // timestamp
@@ -150,11 +150,11 @@ declare namespace JSData {
previous<T>(resourceName: string, id: string | number): T & DSInstanceShorthands<T>;
reap(resourceName: string): JSDataPromise<void>;
refresh<T>(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
refreshAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
refreshAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
revert<T>(resourceName: string, id: string | number): T & DSInstanceShorthands<T>;
save<T>(resourceName: string, id: string | number, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
update<T>(resourceName: string, id: string | number, attrs: Object, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
updateAll<T>(resourceName: string, attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
updateAll<T>(resourceName: string, attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
defineResource<T>(resourceNameOrDefinition: string | DSResourceDefinitionConfiguration): DSResourceDefinition<T>;
defineResource<T, TActions>(resourceNameOrDefinition: string | DSResourceDefinitionConfiguration): DSResourceDefinition<T> & TActions;
@@ -163,25 +163,25 @@ declare namespace JSData {
interface DSResourceDefinition<T> extends DSResourceDefinitionConfiguration, DSEvents {
changeHistory(id: string | number): Object[];
changes(id: string | number, options?: {ignoredChanges: Array<string|RegExp>}): Object;
clear(): Array<T & DSInstanceShorthands<T>>;
changes(id: string | number, options?: {ignoredChanges: (string|RegExp)[]}): Object;
clear(): (T & DSInstanceShorthands<T>)[];
compute(idOrInstance: number | string | T): T & DSInstanceShorthands<T>;
create(attrs: Object, options?: DSConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
createCollection(array?: Array<T>, params?: DSFilterArg, options?: DSConfiguration): DSCollection<T & DSInstanceShorthands<T>>;
createCollection(array?: T[], params?: DSFilterArg, options?: DSConfiguration): DSCollection<T & DSInstanceShorthands<T>>;
createInstance(attrs?: Object, options?: DSConfiguration): T & DSInstanceShorthands<T>;
destroy(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
destroyAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
digest(): void;
eject(id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
ejectAll(params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
filter(params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
ejectAll(params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
filter(params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
find(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
findAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
findAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
get(id: string | number): T & DSInstanceShorthands<T>;
getAll(ids?: Array<string | number>): Array<T & DSInstanceShorthands<T>>;
getAll(ids?: (string | number)[]): (T & DSInstanceShorthands<T>)[];
hasChanges(id: string | number): boolean;
inject<TInject>(attrs: TInject, options?: DSConfiguration): T & DSInstanceShorthands<T>;
inject<TInject>(items: Array<TInject>, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
inject<TInject>(items: TInject[], options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
is(object: Object): boolean;
lastModified(id?: string | number): number; // timestamp
lastSaved(id?: string | number): number; // timestamp
@@ -189,11 +189,11 @@ declare namespace JSData {
previous(id: string | number): T & DSInstanceShorthands<T>;
reap(): JSDataPromise<void>;
refresh(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
refreshAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
refreshAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
revert(id: string | number): T & DSInstanceShorthands<T>;
save(id: string | number, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
update(id: string | number, attrs: Object, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
updateAll(attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
updateAll(attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
}
// cannot specify T at interface level because the interface is used as generic constraint itself which ends up being recursive
+13 -13
View File
@@ -35,10 +35,10 @@ declare namespace JSData {
destroy(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<any>;
destroyAll(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<any>;
find<T>(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
findAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
findAll<T>(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
loadRelations<T>(resourceName: string, idOrInstance: string | number | Object, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
update<T>(resourceName: string, id: string | number, attrs: Object, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
updateAll<T>(resourceName: string, attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
updateAll<T>(resourceName: string, attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
reap(resourceName: string, options?: DSConfiguration): JSDataPromise<any>;
refresh<T>(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
save<T>(resourceName: string, id: string | number, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
@@ -50,13 +50,13 @@ declare namespace JSData {
createInstance<T>(resourceName: string, attrs?: T, options?: DSAdapterOperationConfiguration): T & DSInstanceShorthands<T>;
digest(): void;
eject<T>(resourceName: string, id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
ejectAll<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
filter<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
ejectAll<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
filter<T>(resourceName: string, params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
get<T>(resourceName: string, id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
getAll<T>(resourceName: string, ids?: Array<string | number>): Array<T & DSInstanceShorthands<T>>;
getAll<T>(resourceName: string, ids?: (string | number)[]): (T & DSInstanceShorthands<T>)[];
hasChanges(resourceName: string, id: string | number): boolean;
inject<T>(resourceName: string, item: T, options?: DSConfiguration): T & DSInstanceShorthands<T>;
inject<T>(resourceName: string, items: Array<T>, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
inject<T>(resourceName: string, items: T[], options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
is(resourceName: string, object: Object): boolean;
lastModified(resourceName: string, id?: string | number): number; // timestamp
lastSaved(resourceName: string, id?: string | number): number; // timestamp
@@ -93,7 +93,7 @@ declare namespace JSData {
findInverseLinks?: boolean;
findStrategy?: string;
idAttribute?: string;
ignoredChanges?: Array<RegExp | string>;
ignoredChanges?: (RegExp | string)[];
keepChangeHistory?: boolean;
loadFromServer?: boolean;
log?: boolean | ((message?: any, ...optionalParams: any[]) => void);
@@ -137,10 +137,10 @@ declare namespace JSData {
destroy(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
destroyAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<void>;
find(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
findAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
findAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
loadRelations(idOrInstance: string | number | Object, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
update(id: string | number, attrs: Object, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
updateAll(attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<Array<T & DSInstanceShorthands<T>>>;
updateAll(attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise<(T & DSInstanceShorthands<T>)[]>;
reap(options?: DSConfiguration): JSDataPromise<void>;
refresh(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
save(id: string | number, options?: DSSaveConfiguration): JSDataPromise<T & DSInstanceShorthands<T>>;
@@ -152,13 +152,13 @@ declare namespace JSData {
createInstance<TInject>(attrs?: TInject, options?: DSAdapterOperationConfiguration): T & DSInstanceShorthands<T>;
digest(): void;
eject(id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
ejectAll(params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
filter(params: DSFilterArg, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
ejectAll(params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
filter(params: DSFilterArg, options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
get(id: string | number, options?: DSConfiguration): T & DSInstanceShorthands<T>;
getAll(ids?: Array<string | number>): Array<T & DSInstanceShorthands<T>>;
getAll(ids?: (string | number)[]): (T & DSInstanceShorthands<T>)[];
hasChanges(id: string | number): boolean;
inject(item: T, options?: DSConfiguration): T & DSInstanceShorthands<T>;
inject(items: Array<T>, options?: DSConfiguration): Array<T & DSInstanceShorthands<T>>;
inject(items: T[], options?: DSConfiguration): (T & DSInstanceShorthands<T>)[];
is(object: Object): boolean;
lastModified(id?: string | number): number; // timestamp
lastSaved(id?: string | number): number; // timestamp
+11 -11
View File
@@ -16,7 +16,7 @@ export declare class Producer {
constructor(client: Client);
on(eventName: string, cb: () => any): void;
on(eventName: string, cb: (error: any) => any): void;
send(payloads: Array<ProduceRequest>, cb: (error: any, data: any) => any): void;
send(payloads: ProduceRequest[], cb: (error: any, data: any) => any): void;
createTopics(topics: string[], async: boolean, cb?: (error: any, data: any) => any): void;
}
@@ -24,39 +24,39 @@ export declare class HighLevelProducer {
constructor(client: Client);
on(eventName: string, cb: () => any): void;
on(eventName: string, cb: (error: any) => any): void;
send(payloads: Array<ProduceRequest>, cb: (error: any, data: any) => any): void;
send(payloads: ProduceRequest[], cb: (error: any, data: any) => any): void;
createTopics(topics: string[], async: boolean, cb?: (error: any, data: any) => any): void;
}
export declare class Consumer {
constructor(client: Client, fetchRequests: Array<OffsetFetchRequest>, options: ConsumerOptions);
constructor(client: Client, fetchRequests: OffsetFetchRequest[], options: ConsumerOptions);
on(eventName: string, cb: (message: string) => any): void;
on(eventName: string, cb: (error: any) => any): void;
addTopics(topics: string[], cb: (error: any, added: boolean) => any): void;
addTopics(topics: Array<Topic>, cb: (error: any, added: boolean) => any, fromOffset: boolean): void;
addTopics(topics: Topic[], cb: (error: any, added: boolean) => any, fromOffset: boolean): void;
removeTopics(topics: string[], cb: (error: any, removed: boolean) => any): void;
commit(cb: (error: any, data: any) => any): void;
setOffset(topic: string, partition: number, offset: number): void;
pause(): void;
resume(): void;
pauseTopics(topics: any[] /* Array<string|Topic> */): void;
resumeTopics(topics: any[] /* Array<string|Topic> */): void;
pauseTopics(topics: any[] /* (string|Topic)[] */): void;
resumeTopics(topics: any[] /* (string|Topic)[] */): void;
close(force: boolean, cb: () => any): void;
}
export declare class HighLevelConsumer {
constructor(client: Client, payloads: Array<Topic>, options: ConsumerOptions);
constructor(client: Client, payloads: Topic[], options: ConsumerOptions);
on(eventName: string, cb: (message: string) => any): void;
on(eventName: string, cb: (error: any) => any): void;
addTopics(topics: string[], cb: (error: any, added: boolean) => any): void;
addTopics(topics: Array<Topic>, cb: (error: any, added: boolean) => any, fromOffset: boolean): void;
addTopics(topics: Topic[], cb: (error: any, added: boolean) => any, fromOffset: boolean): void;
removeTopics(topics: string[], cb: (error: any, removed: boolean) => any): void;
commit(cb: (error: any, data: any) => any): void;
setOffset(topic: string, partition: number, offset: number): void;
pause(): void;
resume(): void;
pauseTopics(topics: any[] /* Array<string|Topic> */): void;
resumeTopics(topics: any[] /* Array<string|Topic> */): void;
pauseTopics(topics: any[] /* (string|Topic)[] */): void;
resumeTopics(topics: any[] /* (string|Topic)[] */): void;
close(force: boolean, cb: () => any): void;
}
@@ -83,7 +83,7 @@ export interface ZKOptions {
export interface ProduceRequest {
topic: string;
messages: any; // string[] | Array<KeyedMessage> | string | KeyedMessage
messages: any; // string[] | KeyedMessage[] | string | KeyedMessage
partition?: number;
attributes?: number;
}
+1 -1
View File
@@ -22,7 +22,7 @@ declare module "klaw" {
interface Options extends ReadableOptions {
queueMethod?: QueueMethod;
pathSorter?: (a: Array<Item>) => Array<Item>;
pathSorter?: (a: Item[]) => Item[];
fs?: any; // fs or mock-fs
filter?: (a: Item) => boolean;
}
+1 -1
View File
@@ -10,7 +10,7 @@ import * as events from "events";
type Callback = Function;
type Client = Function;
type Value = string | number | boolean | Date | string[] | number[] | Array<Date> | boolean[] | Buffer | Knex.Raw;
type Value = string | number | boolean | Date | string[] | number[] | Date[] | boolean[] | Buffer | Knex.Raw;
type ColumnName = string | Knex.Raw | Knex.QueryBuilder;
type TableName = string | Knex.Raw | Knex.QueryBuilder;
+1 -1
View File
@@ -276,7 +276,7 @@ interface KnockoutUtils {
arrayRemoveItem(array: any[], itemToRemove: any): void;
compareArrays<T>(a: T[], b: T[]): Array<KnockoutArrayChange<T>>;
compareArrays<T>(a: T[], b: T[]): KnockoutArrayChange<T>[];
extend(target: Object, source: Object): Object;
+1 -1
View File
@@ -124,7 +124,7 @@ declare namespace KoPlus {
}
export interface EditableArrayStatic extends KnockoutObservableArrayStatic {
<T>(value?: Array<T>): EditableArray<T>;
<T>(value?: T[]): EditableArray<T>;
makeEditable(target: any): void; //>
}
+22 -22
View File
@@ -81,7 +81,7 @@ declare class Layer {
path: string;
constructor(path: string | RegExp, methods: string[], middleware: Router.IMiddleware, opts?: Layer.ILayerOptions);
constructor(path: string | RegExp, methods: string[], middleware: Array<Router.IMiddleware>, opts?: Layer.ILayerOptions);
constructor(path: string | RegExp, methods: string[], middleware: Router.IMiddleware[], opts?: Layer.ILayerOptions);
/**
* Returns whether request `path` matches route.
@@ -118,7 +118,7 @@ declare class Router {
params: Object;
stack: Array<Layer>;
stack: Layer[];
/**
* Create a new router.
@@ -132,62 +132,62 @@ declare class Router {
* sequentially, requests start at the first middleware and work their way
* "down" the middleware stack.
*/
use(...middleware: Array<Router.IMiddleware>): Router;
use(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
use(...middleware: Router.IMiddleware[]): Router;
use(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP get method
*/
get(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
get(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
get(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
get(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP post method
*/
post(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
post(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
post(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
post(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP put method
*/
put(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
put(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
put(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
put(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP delete method
*/
delete(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
delete(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
delete(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
delete(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* Alias for `router.delete()` because delete is a reserved word
*/
del(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
del(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
del(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
del(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP head method
*/
head(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
head(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
head(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
head(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP options method
*/
options(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
options(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
options(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
options(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* HTTP path method
*/
patch(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
patch(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
patch(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
patch(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* Register route with all methods.
*/
all(name: string, path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
all(path: string | RegExp, ...middleware: Array<Router.IMiddleware>): Router;
all(name: string, path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
all(path: string | RegExp, ...middleware: Router.IMiddleware[]): Router;
/**
* Set the path prefix for a Router instance that was already initialized.
+1 -1
View File
@@ -132,7 +132,7 @@ declare namespace LaunchDarkly {
* Any additional attributes associated with the user.
*/
custom?: {
[key: string]: string | boolean | number | Array<string | boolean | number>,
[key: string]: string | boolean | number | (string | boolean | number)[],
};
}
+29 -29
View File
@@ -159,7 +159,7 @@ declare namespace L {
isValid(): boolean;
}
export type LatLngBoundsLiteral = Array<LatLngTuple>;
export type LatLngBoundsLiteral = LatLngTuple[];
type LatLngBoundsExpression = LatLngBounds | LatLngBoundsLiteral;
@@ -205,7 +205,7 @@ declare namespace L {
export function point(coords: {x: number, y: number}): Point;
export type BoundsLiteral = Array<PointTuple>;
export type BoundsLiteral = PointTuple[];
export interface Bounds {
extend(point: Point): this;
@@ -233,7 +233,7 @@ declare namespace L {
export function bounds(topLeft: PointTuple, bottomRight: PointTuple): Bounds;
export function bounds(points: Array<Point>): Bounds;
export function bounds(points: Point[]): Bounds;
export function bounds(points: BoundsLiteral): Bounds;
@@ -563,52 +563,52 @@ declare namespace L {
}
interface InternalPolyline extends Path {
getLatLngs(): Array<LatLng>;
setLatLngs(latlngs: Array<LatLng>): this;
setLatLngs(latlngs: Array<LatLngLiteral>): this;
setLatLngs(latlngs: Array<LatLngTuple>): this;
getLatLngs(): LatLng[];
setLatLngs(latlngs: LatLng[]): this;
setLatLngs(latlngs: LatLngLiteral[]): this;
setLatLngs(latlngs: LatLngTuple[]): this;
isEmpty(): boolean;
getCenter(): LatLng;
getBounds(): LatLngBounds;
addLatLng(latlng: LatLng): this;
addLatLng(latlng: LatLngLiteral): this;
addLatLng(latlng: LatLngTuple): this;
addLatLng(latlng: Array<LatLng>): this; // these three overloads aren't explicitly noted in the docs
addLatLng(latlng: Array<LatLngLiteral>): this;
addLatLng(latlng: Array<LatLngTuple>): this;
addLatLng(latlng: LatLng[]): this; // these three overloads aren't explicitly noted in the docs
addLatLng(latlng: LatLngLiteral[]): this;
addLatLng(latlng: LatLngTuple[]): this;
}
export interface Polyline extends InternalPolyline {
toGeoJSON(): GeoJSON.LineString | GeoJSON.MultiLineString;
}
export function polyline(latlngs: Array<LatLng>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLng[], options?: PolylineOptions): Polyline;
export function polyline(latlngs: Array<LatLngLiteral>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLngLiteral[], options?: PolylineOptions): Polyline;
export function polyline(latlngs: Array<LatLngTuple>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLngTuple[], options?: PolylineOptions): Polyline;
export function polyline(latlngs: Array<Array<LatLng>>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLng[][], options?: PolylineOptions): Polyline;
export function polyline(latlngs: Array<Array<LatLngLiteral>>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLngLiteral[][], options?: PolylineOptions): Polyline;
export function polyline(latlngs: Array<Array<LatLngTuple>>, options?: PolylineOptions): Polyline;
export function polyline(latlngs: LatLngTuple[][], options?: PolylineOptions): Polyline;
export interface Polygon extends InternalPolyline {
toGeoJSON(): GeoJSON.Polygon | GeoJSON.MultiPolygon;
}
export function polygon(latlngs: Array<LatLng>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLng[], options?: PolylineOptions): Polygon;
export function polygon(latlngs: Array<LatLngLiteral>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLngLiteral[], options?: PolylineOptions): Polygon;
export function polygon(latlngs: Array<LatLngTuple>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLngTuple[], options?: PolylineOptions): Polygon;
export function polygon(latlngs: Array<Array<LatLng>>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLng[][], options?: PolylineOptions): Polygon;
export function polygon(latlngs: Array<Array<LatLngLiteral>>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLngLiteral[][], options?: PolylineOptions): Polygon;
export function polygon(latlngs: Array<Array<LatLngTuple>>, options?: PolylineOptions): Polygon;
export function polygon(latlngs: LatLngTuple[][], options?: PolylineOptions): Polygon;
export interface Rectangle extends Polygon {
setBounds(latLngBounds: LatLngBounds): this;
@@ -672,9 +672,9 @@ declare namespace L {
export namespace SVG {
export function create(name: string): SVGElement;
export function pointsToPath(rings: Array<Point>, close: boolean): string;
export function pointsToPath(rings: Point[], close: boolean): string;
export function pointsToPath(rings: Array<PointTuple>, close: boolean): string;
export function pointsToPath(rings: PointTuple[], close: boolean): string;
}
export function svg(options?: RendererOptions): SVG;
@@ -739,7 +739,7 @@ declare namespace L {
/**
* Returns an array of all the layers added to the group.
*/
getLayers(): Array<Layer>;
getLayers(): Layer[];
/**
* Calls setZIndex on every layer contained in this group, passing the z-index.
@@ -755,7 +755,7 @@ declare namespace L {
/**
* Create a layer group, optionally given an initial set of layers.
*/
export function layerGroup(layers: Array<Layer>): LayerGroup;
export function layerGroup(layers: Layer[]): LayerGroup;
/**
* Extended LayerGroup that also has mouse events (propagated from
@@ -787,7 +787,7 @@ declare namespace L {
/**
* Create a feature group, optionally given an initial set of layers.
*/
export function featureGroup(layers?: Array<Layer>): FeatureGroup;
export function featureGroup(layers?: Layer[]): FeatureGroup;
type StyleFunction = (feature: GeoJSON.Feature<GeoJSON.GeometryObject>) => PathOptions;
@@ -906,7 +906,7 @@ declare namespace L {
* appended to the end of the array to close the feature, only used when levelsDeep is 0.
* False by default.
*/
latLngsToCoords(latlngs: Array<LatLng>, levelsDeep?: number, closed?: boolean): [number, number] | [number, number, number];
latLngsToCoords(latlngs: LatLng[], levelsDeep?: number, closed?: boolean): [number, number] | [number, number, number];
/**
* Normalize GeoJSON geometries/features into GeoJSON features.
@@ -949,7 +949,7 @@ declare namespace L {
zoom?: number;
minZoom?: number;
maxZoom?: number;
layers?: Array<Layer>;
layers?: Layer[];
maxBounds?: LatLngBoundsExpression;
renderer?: Renderer;
+5 -5
View File
@@ -25,7 +25,7 @@ declare namespace lockr {
* @param key
* @param value
*/
set<T>(key: string, value: Array<T>): void;
set<T>(key: string, value: T[]): void;
/**
* Removes all data associated to a key.
@@ -53,7 +53,7 @@ declare namespace lockr {
* @param key
* @param value
*/
sadd<T>(key: string, value: Array<T>): void;
sadd<T>(key: string, value: T[]): void;
/**
* Returns the values of a particular set under a hash key.
@@ -65,7 +65,7 @@ declare namespace lockr {
* Returns the values of a particular set under a hash key.
* @param key
*/
smembers<T>(key: string): Array<T>;
smembers<T>(key: string): T[];
/**
* Returns whether the value exists in a particular set under a hash key.
@@ -79,7 +79,7 @@ declare namespace lockr {
* @param key
* @param value
*/
sismember<T>(key: string, value: Array<T>): boolean;
sismember<T>(key: string, value: T[]): boolean;
/**
* Removes a value from a particular set under a hash key.
@@ -93,7 +93,7 @@ declare namespace lockr {
* @param key
* @param value
*/
srem<T>(key: string, value: Array<T>): void;
srem<T>(key: string, value: T[]): void;
/**
* Returns all saved values & objects, in an Array.
+13 -13
View File
@@ -280,7 +280,7 @@ declare namespace _ {
(value: string): LoDashImplicitStringWrapper;
(value: boolean): LoDashImplicitWrapper<boolean>;
(value: number[]): LoDashImplicitNumberArrayWrapper;
<T>(value: Array<T>): LoDashImplicitArrayWrapper<T>;
<T>(value: T[]): LoDashImplicitArrayWrapper<T>;
<T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
(value: any): LoDashImplicitWrapper<any>;
@@ -532,7 +532,7 @@ declare namespace _ {
*/
difference<T>(
array: T[]|List<T>,
...values: Array<T[]|List<T>>
...values: (T[]|List<T>)[]
): T[];
}
@@ -5941,24 +5941,24 @@ declare namespace _ {
* @param items
* @return Returns the new concatenated array.
*/
concat<TItem>(...items: Array<TItem|Array<TItem>>): LoDashImplicitArrayWrapper<TItem>;
concat<TItem>(...items: (TItem|TItem[])[]): LoDashImplicitArrayWrapper<TItem>;
/**
* @see _.concat
*/
concat(...items: Array<T|Array<T>>): LoDashImplicitArrayWrapper<T>;
concat(...items: (T|T[])[]): LoDashImplicitArrayWrapper<T>;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.concat
*/
concat<TItem>(...items: Array<TItem|Array<TItem>>): LoDashExplicitArrayWrapper<TItem>;
concat<TItem>(...items: (TItem|TItem[])[]): LoDashExplicitArrayWrapper<TItem>;
/**
* @see _.concat
*/
concat(...items: Array<T|Array<T>>): LoDashExplicitArrayWrapper<T>;
concat(...items: (T|T[])[]): LoDashExplicitArrayWrapper<T>;
}
//_.prototype.plant
@@ -8551,7 +8551,7 @@ declare namespace _ {
* @return Returns the accumulated value.
**/
reduce<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult): TResult;
@@ -8583,7 +8583,7 @@ declare namespace _ {
* @see _.reduce
**/
reduce<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>): TResult;
/**
@@ -8681,7 +8681,7 @@ declare namespace _ {
* @return The accumulated value.
**/
reduceRight<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult): TResult;
@@ -8705,7 +8705,7 @@ declare namespace _ {
* @see _.reduceRight
**/
reduceRight<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>): TResult;
/**
@@ -9393,14 +9393,14 @@ declare namespace _ {
* @see _.sortBy
*/
sortBy<T>(
collection: (Array<T>|List<T>),
collection: (T[]|List<T>),
iteratees: (ListIterator<T, any>|string|Object)[]): T[];
/**
* @see _.sortBy
*/
sortBy<T>(
collection: (Array<T>|List<T>),
collection: (T[]|List<T>),
...iteratees: (ListIterator<T, boolean>|Object|string)[]): T[];
}
@@ -18271,7 +18271,7 @@ declare namespace _ {
* Checks `value` to determine whether a default value should be returned in
* its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
* or `undefined`.
*
*
* @param value The value to check.
* @param defaultValue The default value.
* @returns Returns the resolved value.
+27 -27
View File
@@ -42,7 +42,7 @@ declare namespace _ {
(value: string): LoDashImplicitStringWrapper;
(value: boolean): LoDashImplicitWrapper<boolean>;
(value: number[]): LoDashImplicitNumberArrayWrapper;
<T>(value: Array<T>): LoDashImplicitArrayWrapper<T>;
<T>(value: T[]): LoDashImplicitArrayWrapper<T>;
<T extends {}>(value: T): LoDashImplicitObjectWrapper<T>;
(value: any): LoDashImplicitWrapper<any>;
@@ -4341,24 +4341,24 @@ declare namespace _ {
* @param items
* @return Returns the new concatenated array.
*/
concat<TItem>(...items: Array<TItem|Array<TItem>>): LoDashImplicitArrayWrapper<TItem>;
concat<TItem>(...items: (TItem|TItem[])[]): LoDashImplicitArrayWrapper<TItem>;
/**
* @see _.concat
*/
concat(...items: Array<T|Array<T>>): LoDashImplicitArrayWrapper<T>;
concat(...items: (T|T[])[]): LoDashImplicitArrayWrapper<T>;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.concat
*/
concat<TItem>(...items: Array<TItem|Array<TItem>>): LoDashExplicitArrayWrapper<TItem>;
concat<TItem>(...items: (TItem|TItem[])[]): LoDashExplicitArrayWrapper<TItem>;
/**
* @see _.concat
*/
concat(...items: Array<T|Array<T>>): LoDashExplicitArrayWrapper<T>;
concat(...items: (T|T[])[]): LoDashExplicitArrayWrapper<T>;
}
//_.prototype.plant
@@ -6023,7 +6023,7 @@ declare namespace _ {
* @see _.find
**/
findWhere<T>(
collection: Array<T>,
collection: T[],
callback: ListIterator<T, boolean>,
thisArg?: any): T | undefined;
@@ -6048,7 +6048,7 @@ declare namespace _ {
* @param _.matches style callback
**/
findWhere<W, T>(
collection: Array<T>,
collection: T[],
whereValue: W): T | undefined;
/**
@@ -6072,7 +6072,7 @@ declare namespace _ {
* @param _.property style callback
**/
findWhere<T>(
collection: Array<T>,
collection: T[],
pluckValue: string): T | undefined;
/**
@@ -6103,7 +6103,7 @@ declare namespace _ {
* @return The found element, else undefined.
**/
findLast<T>(
collection: Array<T>,
collection: T[],
callback: ListIterator<T, boolean>,
thisArg?: any): T | undefined;
@@ -6128,7 +6128,7 @@ declare namespace _ {
* @param _.pluck style callback
**/
findLast<W, T>(
collection: Array<T>,
collection: T[],
whereValue: W): T | undefined;
/**
@@ -6152,7 +6152,7 @@ declare namespace _ {
* @param _.where style callback
**/
findLast<T>(
collection: Array<T>,
collection: T[],
pluckValue: string): T | undefined;
/**
@@ -7071,7 +7071,7 @@ declare namespace _ {
* @param args Arguments to invoke the method with.
**/
invoke<T extends {}>(
collection: Array<T>,
collection: T[],
methodName: string,
...args: any[]): any;
@@ -7095,7 +7095,7 @@ declare namespace _ {
* @see _.invoke
**/
invoke<T extends {}>(
collection: Array<T>,
collection: T[],
method: Function,
...args: any[]): any;
@@ -7488,7 +7488,7 @@ declare namespace _ {
* @return Returns the accumulated value.
**/
reduce<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
@@ -7515,7 +7515,7 @@ declare namespace _ {
* @see _.reduce
**/
reduce<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
@@ -7539,7 +7539,7 @@ declare namespace _ {
* @see _.reduce
**/
inject<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
@@ -7566,7 +7566,7 @@ declare namespace _ {
* @see _.reduce
**/
inject<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
@@ -7590,7 +7590,7 @@ declare namespace _ {
* @see _.reduce
**/
foldl<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
@@ -7617,7 +7617,7 @@ declare namespace _ {
* @see _.reduce
**/
foldl<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
@@ -7791,7 +7791,7 @@ declare namespace _ {
* @return The accumulated value.
**/
reduceRight<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
@@ -7818,7 +7818,7 @@ declare namespace _ {
* @see _.reduceRight
**/
reduceRight<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
@@ -7842,7 +7842,7 @@ declare namespace _ {
* @see _.reduceRight
**/
foldr<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
accumulator: TResult,
thisArg?: any): TResult;
@@ -7869,7 +7869,7 @@ declare namespace _ {
* @see _.reduceRight
**/
foldr<T, TResult>(
collection: Array<T>,
collection: T[],
callback: MemoIterator<T, TResult>,
thisArg?: any): TResult;
@@ -8847,7 +8847,7 @@ declare namespace _ {
* @return A new array of sorted elements.
**/
sortByAll<T>(
collection: Array<T>,
collection: T[],
iteratees: (ListIterator<T, any>|string|Object)[]): T[];
/**
@@ -8861,7 +8861,7 @@ declare namespace _ {
* @see _.sortByAll
**/
sortByAll<T>(
collection: Array<T>,
collection: T[],
...iteratees: (ListIterator<T, any>|string|Object)[]): T[];
/**
@@ -8876,7 +8876,7 @@ declare namespace _ {
* @param args The rules by which to sort
*/
sortByAll<T>(
collection: (Array<T>|List<T>),
collection: (T[]|List<T>),
...args: (ListIterator<T, boolean>|Object|string)[]
): T[];
}
@@ -9121,7 +9121,7 @@ declare namespace _ {
* @return A new array of elements that have the given properties.
**/
where<T, U extends {}>(
list: Array<T>,
list: T[],
properties: U): T[];
/**
+1 -1
View File
@@ -469,7 +469,7 @@ declare namespace log4javascript {
* Returns an array of the additional headers that are sent with each HTTP request. Each array item is an object with
* properties name and value.
*/
getHeaders(): Array<{ name: string; value: string; }>;
getHeaders(): { name: string; value: string; }[];
/**
* Sends all log messages in the queue. If log messages are batched then only completed batches are sent.
+8 -8
View File
@@ -109,7 +109,7 @@ declare namespace maquette {
}
// The following line is not possible in Typescript, hence the workaround in the two lines below
// export type VNodeChild = string|VNode|Array<VNodeChild>
// export type VNodeChild = string|VNode|VNodeChild[]
export interface VNodeChildren extends Array<VNodeChild> {} // A bit of a hack to create a recursive type
export type VNodeChild = string|VNode|VNodeChildren;
@@ -151,21 +151,21 @@ declare namespace maquette {
*
* @param {string} selector - Contains the tagName, id and fixed css classnames in CSS selector format. It is formatted as follows: `tagname.cssclass1.cssclass2#id`.
* @param {Object} properties - An object literal containing attributes, properties, event handlers and more be placed on the DOM node.
* @param {Array<VNodeChild>} children - An array of virtual DOM nodes and strings to add as child nodes. May contain nested arrays, null or undefined.
* @param {VNodeChild[]} children - An array of virtual DOM nodes and strings to add as child nodes. May contain nested arrays, null or undefined.
*
* @returns {VNode} A VNode object, used to render a real DOM later.
*/
export function h(selector: string, properties: VNodeProperties, children: Array<VNodeChild>): VNode;
export function h(selector: string, properties: VNodeProperties, children: VNodeChild[]): VNode;
/**
* Creates a virtual DOM node, used to render a real DOM later.
* The `h` stands for (virtual) hyperscript.
*
* @param {string} selector - Contains the tagName, id and fixed css classnames in CSS selector format. It is formatted as follows: `tagname.cssclass1.cssclass2#id`.
* @param {Array<VNodeChild>} children - An array of virtual DOM nodes and strings to add as child nodes. May contain nested arrays, null or undefined.
* @param {VNodeChild[]} children - An array of virtual DOM nodes and strings to add as child nodes. May contain nested arrays, null or undefined.
*
* @returns {VNode} A VNode object, used to render a real DOM later.
*/
export function h(selector: string, children: Array<VNodeChild>): VNode;
export function h(selector: string, children: VNodeChild[]): VNode;
/**
* Creates a virtual DOM node, used to render a real DOM later.
* The `h` stands for (virtual) hyperscript.
@@ -193,7 +193,7 @@ declare namespace maquette {
export interface VNode {
vnodeSelector: string;
properties: VNodeProperties;
children: Array<VNode>;
children: VNode[];
}
// Not used anywhere in the maquette sourcecode, but it is a widely used pattern.
@@ -235,12 +235,12 @@ declare namespace maquette {
* The array of results. These results will be synchronized with the latest array of sources that were provided using {@link Mapping#map}.
* @type {Object[]}
*/
results: Array<Target>;
results: Target[];
/**
* Maps a new array of sources and updates {@link Mapping#results}.
* @param {Object[]} newSources - The new array of sources.
*/
map(newSources: Array<Source>): void;
map(newSources: Source[]): void;
}
/**
+2 -2
View File
@@ -57,7 +57,7 @@ declare namespace MaterialDesignLite {
* @param {!Array<!Element>} elements
* The elements we wish to upgrade.
*/
upgradeElements(elements: Array<HTMLElement>): void;
upgradeElements(elements: HTMLElement[]): void;
/**
* Upgrades a specific list of elements rather than all in the DOM.
*
@@ -109,7 +109,7 @@ declare namespace MaterialDesignLite {
*
* @param {!Array<!Node>} nodes The list of nodes.
*/
downgradeElements(nodes: Array<Node>): void;
downgradeElements(nodes: Node[]): void;
/**
* Downgrade either a given node, an array of nodes, or a NodeList.
*
+1 -1
View File
@@ -922,7 +922,7 @@ declare namespace __MaterialUI {
text: string;
}
interface DialogProps extends React.DOMAttributes<{}>, React.Props<Dialog> {
actions?: Array<DialogAction | React.ReactElement<any>>;
actions?: (DialogAction | React.ReactElement<any>)[];
/** @deprecated use a custom `actions` property instead */
actionFocus?: string;
actionsContainerClassName?: string;
+1 -1
View File
@@ -357,7 +357,7 @@ declare namespace __MaterialUI {
onClick?: React.MouseEventHandler;
}
interface DialogProps extends React.Props<Dialog> {
actions?: Array<DialogAction | React.ReactElement<any>>;
actions?: (DialogAction | React.ReactElement<any>)[];
actionFocus?: string;
autoDetectWindowHeight?: boolean;
autoScrollBodyContent?: boolean;
+1 -1
View File
@@ -347,7 +347,7 @@ declare namespace __MaterialUI {
onClick?: React.MouseEventHandler;
}
interface DialogProps extends React.Props<Dialog> {
actions?: Array<DialogAction | React.ReactElement<any>>;
actions?: (DialogAction | React.ReactElement<any>)[];
actionFocus?: string;
autoDetectWindowHeight?: boolean;
autoScrollBodyContent?: boolean;
+1 -1
View File
@@ -368,7 +368,7 @@ declare namespace __MaterialUI {
onClick?: React.MouseEventHandler;
}
interface DialogProps extends React.Props<Dialog> {
actions?: Array<DialogAction | React.ReactElement<any>>;
actions?: (DialogAction | React.ReactElement<any>)[];
actionFocus?: string;
autoDetectWindowHeight?: boolean;
autoScrollBodyContent?: boolean;
+1 -1
View File
@@ -846,7 +846,7 @@ declare namespace __MaterialUI {
interface DialogProps extends React.DOMAttributes, React.Props<Dialog> {
/** @deprecated use a custom `actions` property instead */
actionFocus?: string;
actions?: Array<DialogAction | React.ReactElement<any>>;
actions?: (DialogAction | React.ReactElement<any>)[];
actionsContainerClassName?: string;
actionsContainerStyle?: React.CSSProperties;
autoDetectWindowHeight?: boolean;
+41 -41
View File
@@ -20,14 +20,14 @@ declare namespace Matter {
* @param {vertices} vertices
* @return {axes} A new axes from the given vertices
*/
static fromVertices(vertices: Array<Vector>): Array<Vector>;
static fromVertices(vertices: Vector[]): Vector[];
/**
* Rotates a set of axes by the given angle.
* @method rotate
* @param {axes} axes
* @param {number} angle
*/
static rotate(axes: Array<Vector>, angle: number): void;
static rotate(axes: Vector[], angle: number): void;
}
interface IChamfer {
@@ -126,7 +126,7 @@ declare namespace Matter {
* @param {number} [minimumArea=10]
* @return {body}
*/
static fromVertices(x: number, y: number, vertexSets: Array<Array<Vector>>, options?: IBodyDefinition, flagInternal?: boolean, removeCollinear?: number, minimumArea?: number): Body;
static fromVertices(x: number, y: number, vertexSets: Vector[][], options?: IBodyDefinition, flagInternal?: boolean, removeCollinear?: number, minimumArea?: number): Body;
}
export interface IBodyDefinition {
@@ -173,7 +173,7 @@ declare namespace Matter {
* @property axes
* @type vector[]
*/
axes?: Array<Vector>;
axes?: Vector[];
/**
* A `Bounds` object that defines the AABB region for the body.
* It is automatically calculated from the given convex hull (`vertices` array) in `Body.create` and constantly updated by `Body.update` during simulation.
@@ -416,7 +416,7 @@ declare namespace Matter {
* @property vertices
* @type vector[]
*/
vertices?: Array<Vector>;
vertices?: Vector[];
/**
* An array of bodies that make up this body.
* The first body in the array must always be a self reference to the current body instance.
@@ -428,7 +428,7 @@ declare namespace Matter {
* @property parts
* @type body[]
*/
parts?: Array<Body>;
parts?: Body[];
/**
* A self reference if the body is _not_ a part of another body.
* Otherwise this is a reference to the body that this is a part of.
@@ -644,7 +644,7 @@ declare namespace Matter {
* @param {body} body
* @param {vector[]} vertices
*/
static setVertices(body: Body, vertices: Array<Vector>): void;
static setVertices(body: Body, vertices: Vector[]): void;
/**
* Sets the parts of the `body` and updates mass, inertia and centroid.
* Each part will have its parent set to `body`.
@@ -766,7 +766,7 @@ declare namespace Matter {
* @property axes
* @type vector[]
*/
axes: Array<Vector>;
axes: Vector[];
/**
* A `Bounds` object that defines the AABB region for the body.
* It is automatically calculated from the given convex hull (`vertices` array) in `Body.create` and constantly updated by `Body.update` during simulation.
@@ -1001,7 +1001,7 @@ declare namespace Matter {
* @property vertices
* @type vector[]
*/
vertices: Array<Vector>;
vertices: Vector[];
/**
* An array of bodies that make up this body.
* The first body in the array must always be a self reference to the current body instance.
@@ -1013,7 +1013,7 @@ declare namespace Matter {
* @property parts
* @type body[]
*/
parts: Array<Body>;
parts: Body[];
/**
* A self reference if the body is _not_ a part of another body.
* Otherwise this is a reference to the body that this is a part of.
@@ -1131,7 +1131,7 @@ declare namespace Matter {
* @type body[]
* @default []
*/
bodies?: Array<Body>;
bodies?: Body[];
/**
* An array of `Composite` that are _direct_ children of this composite.
@@ -1142,7 +1142,7 @@ declare namespace Matter {
* @type composite[]
* @default []
*/
composites?: Array<Composite>;
composites?: Composite[];
/**
* An array of `Constraint` that are _direct_ children of this composite.
@@ -1153,7 +1153,7 @@ declare namespace Matter {
* @type constraint[]
* @default []
*/
constraints?: Array<Constraint>;
constraints?: Constraint[];
/**
* An integer `Number` uniquely identifying number generated in `Composite.create` by `Common.nextId`.
@@ -1229,7 +1229,7 @@ declare namespace Matter {
* @param {composite} composite
* @return {body[]} All the bodies
*/
static allBodies(composite: Composite): Array<Body>;
static allBodies(composite: Composite): Body[];
/**
* Returns all composites in the given composite, including all composites in its children, recursively.
@@ -1237,7 +1237,7 @@ declare namespace Matter {
* @param {composite} composite
* @return {composite[]} All the composites
*/
static allComposites(composite: Composite): Array<Composite>;
static allComposites(composite: Composite): Composite[];
/**
* Returns all constraints in the given composite, including all constraints in its children, recursively.
@@ -1245,7 +1245,7 @@ declare namespace Matter {
* @param {composite} composite
* @return {constraint[]} All the constraints
*/
static allConstraints(composite: Composite): Array<Composite>;
static allConstraints(composite: Composite): Composite[];
/**
* Removes all bodies, constraints and composites from the given composite.
@@ -1284,7 +1284,7 @@ declare namespace Matter {
* @param {compositeB} compositeB
* @return {composite} Returns compositeA
*/
static move(compositeA: Composite, objects: Array<Body | Composite | Constraint>, compositeB: Composite): Composite;
static move(compositeA: Composite, objects: (Body | Composite | Constraint)[], compositeB: Composite): Composite;
/**
* Assigns new ids for all objects in the composite, recursively.
@@ -1358,7 +1358,7 @@ declare namespace Matter {
* @type body[]
* @default []
*/
bodies: Array<Body>;
bodies: Body[];
/**
* An array of `Composite` that are _direct_ children of this composite.
@@ -1369,7 +1369,7 @@ declare namespace Matter {
* @type composite[]
* @default []
*/
composites: Array<Composite>;
composites: Composite[];
/**
* An array of `Constraint` that are _direct_ children of this composite.
@@ -1380,7 +1380,7 @@ declare namespace Matter {
* @type constraint[]
* @default []
*/
constraints: Array<Constraint>;
constraints: Constraint[];
/**
* An integer `Number` uniquely identifying number generated in `Composite.create` by `Common.nextId`.
@@ -2052,7 +2052,7 @@ declare namespace Matter {
* @param {engine} engine
* @param {boolean} forceUpdate
*/
static update(grid: Grid, bodies: Array<Body>, engine: Engine, forceUpdate: boolean): void;
static update(grid: Grid, bodies: Body[], engine: Engine, forceUpdate: boolean): void;
/**
* Clears the grid.
@@ -2227,7 +2227,7 @@ declare namespace Matter {
* @param {number} [rayWidth]
* @return {object[]} Collisions
*/
static ray(bodies: Array<Body>, startPoint: Vector, endPoint: Vector, rayWidth?: number): any[];
static ray(bodies: Body[], startPoint: Vector, endPoint: Vector, rayWidth?: number): any[];
/**
* Returns all bodies whose bounds are inside (or outside if set) the given set of bounds, from the given set of bodies.
@@ -2237,7 +2237,7 @@ declare namespace Matter {
* @param {bool} [outside=false]
* @return {body[]} The bodies matching the query
*/
static region(bodies: Array<Body>, bounds: Bounds, outside?: boolean): Array<Body>;
static region(bodies: Body[], bounds: Bounds, outside?: boolean): Body[];
/**
* Returns all bodies whose vertices contain the given point, from the given set of bodies.
@@ -2246,7 +2246,7 @@ declare namespace Matter {
* @param {vector} point
* @return {body[]} The bodies matching the query
*/
static point(bodies: Array<Body>, point: Vector): Array<Body>;
static point(bodies: Body[], point: Vector): Body[];
}
export interface IRenderDefinition {
@@ -2351,7 +2351,7 @@ declare namespace Matter {
/**
* Render wireframes only
* @type boolean
* @default true
* @default true
*/
wireframes?: boolean;
}
@@ -2603,7 +2603,7 @@ declare namespace Matter {
* @param {Number} [sampleLength=15]
* @return {Vector[]} points
*/
static pathToVertices(path: SVGPathElement, sampleLength: number): Array<Vector>;
static pathToVertices(path: SVGPathElement, sampleLength: number): Vector[];
}
/**
@@ -2791,7 +2791,7 @@ declare namespace Matter {
* @param {vertices} vertices
* @return {vector} The average point
*/
static mean(vertices: Array<Vector>): Array<Vector>;
static mean(vertices: Vector[]): Vector[];
/**
* Sorts the input vertices into clockwise order in place.
@@ -2799,7 +2799,7 @@ declare namespace Matter {
* @param {vertices} vertices
* @return {vertices} vertices
*/
static clockwiseSort(vertices: Array<Vector>): Array<Vector>;
static clockwiseSort(vertices: Vector[]): Vector[];
/**
* Returns true if the vertices form a convex shape (vertices must be in clockwise order).
@@ -2807,7 +2807,7 @@ declare namespace Matter {
* @param {vertices} vertices
* @return {bool} `true` if the `vertices` are convex, `false` if not (or `null` if not computable).
*/
static isConvex(vertices: Array<Vector>): boolean;
static isConvex(vertices: Vector[]): boolean;
/**
* Returns the convex hull of the input vertices as a new array of points.
@@ -2815,7 +2815,7 @@ declare namespace Matter {
* @param {vertices} vertices
* @return [vertex] vertices
*/
static hull(vertices: Array<Vector>): Array<Vector>;
static hull(vertices: Vector[]): Vector[];
/**
* Returns the area of the set of vertices.
@@ -2824,7 +2824,7 @@ declare namespace Matter {
* @param {bool} signed
* @return {number} The area
*/
static area(vertices: Array<Vector>, signed: boolean): number;
static area(vertices: Vector[], signed: boolean): number;
/**
* Returns the centre (centroid) of the set of vertices.
@@ -2832,7 +2832,7 @@ declare namespace Matter {
* @param {vertices} vertices
* @return {vector} The centre point
*/
static centre(vertices: Array<Vector>): Vector;
static centre(vertices: Vector[]): Vector;
/**
* Chamfers a set of vertices by giving them rounded corners, returns a new set of vertices.
@@ -2844,7 +2844,7 @@ declare namespace Matter {
* @param {number} qualityMin
* @param {number} qualityMax
*/
static chamfer(vertices: Array<Vector>, radius: number | number[], quality: number, qualityMin: number, qualityMax: number): void;
static chamfer(vertices: Vector[], radius: number | number[], quality: number, qualityMin: number, qualityMax: number): void;
/**
@@ -2854,7 +2854,7 @@ declare namespace Matter {
* @param {vector} point
* @return {boolean} True if the vertices contains point, otherwise false
*/
static contains(vertices: Array<Vector>, point: Vector): boolean;
static contains(vertices: Vector[], point: Vector): boolean;
/**
* Creates a new set of `Matter.Body` compatible vertices.
@@ -2871,7 +2871,7 @@ declare namespace Matter {
* @param {vector[]} points
* @param {body} body
*/
static create(points: Array<Vector>, body: Body): void;
static create(points: Vector[], body: Body): void;
/**
* Parses a string containing ordered x y pairs separated by spaces (and optionally commas),
@@ -2882,7 +2882,7 @@ declare namespace Matter {
* @param {body} body
* @return {vertices} vertices
*/
static fromPath(path: string, body: Body): Array<Vector>;
static fromPath(path: string, body: Body): Vector[];
/**
* Returns the moment of inertia (second moment of area) of the set of vertices given the total mass.
@@ -2891,7 +2891,7 @@ declare namespace Matter {
* @param {number} mass
* @return {number} The polygon's moment of inertia
*/
static inertia(vertices: Array<Vector>, mass: number): number;
static inertia(vertices: Vector[], mass: number): number;
/**
* Rotates the set of vertices in-place.
@@ -2900,7 +2900,7 @@ declare namespace Matter {
* @param {number} angle
* @param {vector} point
*/
static rotate(vertices: Array<Vector>, angle: number, point: Vector): void;
static rotate(vertices: Vector[], angle: number, point: Vector): void;
/**
* Scales the vertices from a point (default is centre) in-place.
@@ -2910,7 +2910,7 @@ declare namespace Matter {
* @param {number} scaleY
* @param {vector} point
*/
static scale(vertices: Array<Vector>, scaleX: number, scaleY: number, point: Vector): void;
static scale(vertices: Vector[], scaleX: number, scaleY: number, point: Vector): void;
/**
* Translates the set of vertices in-place.
@@ -2919,7 +2919,7 @@ declare namespace Matter {
* @param {vector} vector
* @param {number} scalar
*/
static translate(vertices: Array<Vector>, vector: Vector, scalar: number): void;
static translate(vertices: Vector[], vector: Vector, scalar: number): void;
}
interface IWorldDefinition extends ICompositeDefinition {
@@ -3057,7 +3057,7 @@ declare namespace Matter {
/**
* The collision pair
*/
pairs: Array<IPair>;
pairs: IPair[];
}
+3 -3
View File
@@ -38,7 +38,7 @@ declare namespace MDNS {
// --- Browser ---
interface BrowserOptions {
resolverSequence?: Array<(service: Service, next: () => void) => boolean>;
resolverSequence?: ((service: Service, next: () => void) => boolean)[];
interfaceIndex?: number;
networkInterface?: string;
domain?: any;
@@ -56,7 +56,7 @@ declare namespace MDNS {
interface BrowserStatic {
new(serviceType: ServiceType, options?: BrowserOptions): Browser;
defaultResolverSequence: Array<(service: Service, next: () => void) => boolean>;
defaultResolverSequence: ((service: Service, next: () => void) => boolean)[];
}
// --- Services ---
@@ -137,7 +137,7 @@ declare namespace MDNS {
function createAdvertisement(serviceType: ServiceType, port: number, options?: AdvertisementOptions, callback?: (error: DnsSdError, service: Service) => void): Advertisement;
function resolve(service: Service, sequence?: Array<(service: Service, next: () => void) => boolean>, callback?: (error: DnsSdError, service: Service) => void): void;
function resolve(service: Service, sequence?: ((service: Service, next: () => void) => boolean)[], callback?: (error: DnsSdError, service: Service) => void): void;
function browseThemAll(options: BrowserOptions): Browser;
+2 -2
View File
@@ -12,11 +12,11 @@ interface IOptions {
}
interface IMerge2Stream extends NodeJS.ReadWriteStream {
add(...args: Array<NodeJS.ReadWriteStream | IMerge2Stream | Array<NodeJS.ReadWriteStream | IMerge2Stream | IOptions>>): IMerge2Stream;
add(...args: (NodeJS.ReadWriteStream | IMerge2Stream | (NodeJS.ReadWriteStream | IMerge2Stream | IOptions)[])[]): IMerge2Stream;
}
interface IMerge2 {
(...args: Array<NodeJS.ReadWriteStream | IMerge2Stream | Array<NodeJS.ReadWriteStream | IMerge2Stream> | IOptions>): IMerge2Stream;
(...args: (NodeJS.ReadWriteStream | IMerge2Stream | (NodeJS.ReadWriteStream | IMerge2Stream)[] | IOptions)[]): IMerge2Stream;
}
declare var _tmp: IMerge2;
+4 -4
View File
@@ -355,9 +355,9 @@ interface ITinytestAssertions {
isNotUndefined(v: any, msg?: string): void;
isNan(v: any, msg?: string): void;
isNotNan(v: any, msg?: string): void;
include<T>(s: Array<T>|Object|string, value: any, msg?: string, not?: boolean): void;
include<T>(s: T[]|Object|string, value: any, msg?: string, not?: boolean): void;
notInclude<T>(s: Array<T>|Object|string, value: any, msg?: string, not?: boolean): void;
notInclude<T>(s: T[]|Object|string, value: any, msg?: string, not?: boolean): void;
length(obj: ILengthAble, expected_length: number, msg?: string): void;
_stringEqual(actual: string, expected: string, msg?: string): void;
}
@@ -674,9 +674,9 @@ declare namespace Mongo {
}
interface Cursor<T> {
count(): number;
fetch(): Array<T>;
fetch(): T[];
forEach(callback: <T>(doc: T, index: number, cursor: Mongo.Cursor<T>) => void, thisArg?: any): void;
map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): Array<U>;
map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): U[];
observe(callbacks: Object): Meteor.LiveQueryHandle;
observeChanges(callbacks: Object): Meteor.LiveQueryHandle;
}
+5 -5
View File
@@ -16,7 +16,7 @@ declare namespace Sdk {
interface IEntityCollectionView {
entityName: string;
entities: Array<IEntityView>;
entities: IEntityView[];
minActiveRowVersion: string;
moreRecords: boolean;
pagingCookie: string;
@@ -185,7 +185,7 @@ declare namespace Sdk {
* @param type The function that specifies the type.
* @param items An array of items to add to the collection.
*/
constructor( type: T, items?: Array<T> );
constructor( type: T, items?: T[] );
/**
* Gets the type defined for the collection.
@@ -248,7 +248,7 @@ declare namespace Sdk {
/**
* Gets a copy of the array of items in the collection.
*/
toArray(): Array<T>;
toArray(): T[];
/**
* Returns the number of items in the collection.
@@ -1116,7 +1116,7 @@ declare namespace Sdk {
/***
*
*/
public getEntityMetadata(): Array<Mdq.IEntityMetadata>;
public getEntityMetadata(): Mdq.IEntityMetadata[];
/***
*
@@ -2297,7 +2297,7 @@ declare namespace Sdk.Mdq {
* @param propertyNames: >An array of strings representing the metadata properties to retrieve.
*/
export class MetadataPropertiesExpression {
constructor( allProperties: boolean, propertyNames?: Array<EntityMetadataProperties|AttributeMetadataProperties|RelationshipMetadataProperties|any> );
constructor( allProperties: boolean, propertyNames?: (EntityMetadataProperties|AttributeMetadataProperties|RelationshipMetadataProperties|any)[] );
}
export enum RelationshipMetadataProperties {
+6 -6
View File
@@ -105,7 +105,7 @@ export interface ServerOptions {
ssl?: boolean;
sslValidate?: Object;
checkServerIdentity?: boolean | Function;
sslCA?: Array<Buffer | string>;
sslCA?: (Buffer | string)[];
sslCert?: Buffer | string;
sslKey?: Buffer | string;
sslPass?: Buffer | string;
@@ -126,7 +126,7 @@ export interface ReplSetOptions {
ssl?: boolean;
sslValidate?: Object;
checkServerIdentity?: boolean | Function;
sslCA?: Array<Buffer | string>;
sslCA?: (Buffer | string)[];
sslCert?: Buffer | string;
sslKey?: Buffer | string;
sslPass?: Buffer | string;
@@ -142,7 +142,7 @@ export interface MongosOptions {
ssl?: boolean;
sslValidate?: Object;
checkServerIdentity?: boolean | Function;
sslCA?: Array<Buffer | string>;
sslCA?: (Buffer | string)[];
sslCert?: Buffer | string;
sslKey?: Buffer | string;
sslPass?: Buffer | string;
@@ -251,14 +251,14 @@ export class Server extends EventEmitter {
// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html
export class ReplSet extends EventEmitter {
constructor(servers: Array<Server>, options?: ReplSetOptions);
constructor(servers: Server[], options?: ReplSetOptions);
connections(): any[];
}
// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html
export class Mongos extends EventEmitter {
constructor(servers: Array<Server>, options?: MongosOptions);
constructor(servers: Server[], options?: MongosOptions);
connections(): any[];
}
@@ -1036,7 +1036,7 @@ export interface FindOneOptions {
export interface InsertWriteOpResult {
insertedCount: number;
ops: any[];
insertedIds: Array<ObjectID>;
insertedIds: ObjectID[];
connection: any;
result: { ok: number, n: number };
}
+1 -1
View File
@@ -18,7 +18,7 @@ declare module 'mongoose' {
}
export interface PaginateResult<T> {
docs: Array<T>;
docs: T[];
total: number;
limit: number;
page?: number;
+3 -3
View File
@@ -19,14 +19,14 @@ declare namespace MsPortalTestFx {
}
export class ContentLocator extends Locator {
locators: Array<Locator>;
locators: Locator[];
constructor(innerLocators: Locator[]);
findElements(context: any): any;
toString(): string;
}
export class ChainedLocator extends Locator {
locators: Array<Locator>;
locators: Locator[];
constructor(innerLocators: Locator[]);
findElements(context: any): any;
toString(): string;
@@ -174,7 +174,7 @@ declare namespace MsPortalTestFx {
}
export class ResourceSummaryPart extends Part {
public properties: Array<PartProperty>;
public properties: PartProperty[];
public resourceGroupProperty: PartProperty;
public quickStartHotSpot: Controls.HotSpot;
public accessHotSpot: Controls.HotSpot;
+1 -1
View File
@@ -3,7 +3,7 @@
// Definitions by: Giff Song <https://github.com/pawsong/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type Data = Array<number> | Int8Array | Int16Array | Int32Array |
type Data = number[] | Int8Array | Int16Array | Int32Array |
Uint8Array | Uint16Array | Uint32Array |
Float32Array | Float64Array | Uint8ClampedArray;
+6 -6
View File
@@ -52,13 +52,13 @@ declare class NeDBDataStore {
* Add one or several document(s) to all indexes
*/
addToIndexes<T>(doc: T): void;
addToIndexes<T>(doc: Array<T>): void;
addToIndexes<T>(doc: T[]): void;
/**
* Remove one or several document(s) from all indexes
*/
removeFromIndexes<T>(doc: T): void;
removeFromIndexes<T>(doc: Array<T>): void;
removeFromIndexes<T>(doc: T[]): void;
/**
* Update one or several documents in all indexes
@@ -66,7 +66,7 @@ declare class NeDBDataStore {
* If one update violates a constraint, all changes are rolled back
*/
updateIndexes<T>(oldDoc: T, newDoc: T): void;
updateIndexes<T>(updates: Array<{oldDoc: T; newDoc: T}>): void;
updateIndexes<T>(updates: {oldDoc: T; newDoc: T}[]): void;
/**
* Return the list of candidates for a given query
@@ -98,7 +98,7 @@ declare class NeDBDataStore {
* @param {any} query MongoDB-style query
* @param {any} projection MongoDB-style projection
*/
find<T>(query: any, projection: T, callback: (err: Error, documents: Array<T>) => void): void;
find<T>(query: any, projection: T, callback: (err: Error, documents: T[]) => void): void;
find<T>(query: any, projection: T): NeDB.Cursor<T>;
/**
@@ -106,7 +106,7 @@ declare class NeDBDataStore {
* If no callback is passed, we return the cursor so that user can limit, skip and finally exec
* * @param {any} query MongoDB-style query
*/
find<T>(query: any, callback: (err: Error, documents: Array<T>) => void): void;
find<T>(query: any, callback: (err: Error, documents: T[]) => void): void;
find<T>(query: any): NeDB.Cursor<T>;
/**
@@ -174,7 +174,7 @@ declare namespace NeDB {
skip(n: number): Cursor<T>;
limit(n: number): Cursor<T>;
projection(query: any): Cursor<T>;
exec(callback: (err: Error, documents: Array<T>) => void): void;
exec(callback: (err: Error, documents: T[]) => void): void;
}
interface CursorCount {
+2 -2
View File
@@ -126,10 +126,10 @@ declare module 'angular' {
* base64 data url representation of the file(s).
* Could be used to send file in base64 format inside json to the databases
*
* @param {Array<File>}
* @param {File[]}
* @return {angular.IPromise}
*/
base64DataUrl(files: File | Array<File>): angular.IPromise<string[] | string>;
base64DataUrl(files: File | File[]): angular.IPromise<string[] | string>;
/**
* Convert the file to blob url object or base64 data url based on boolean disallowObjectUrl value
*
+2 -2
View File
@@ -8,9 +8,9 @@
* Processes each of the elements in the array and triggers a callback once every element has been processed.
* - note that the elements are called in order but are not guaranteed to finish in order.
*/
export declare function asyncEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
export declare function asyncEach<T>(array: T[], each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
/**
* Processes each of the elements in the array and triggers a callback once every element has been processed.
* - note that the elements are called in order and are guaranteed to finish in order.
*/
export declare function awaitEach<T>(array: Array<T>, each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
export declare function awaitEach<T>(array: T[], each: (i: number, element: T, done: (err?: Error) => void) => void, finish: (err?: Error) => void): void;
+2 -2
View File
@@ -62,9 +62,9 @@ declare namespace Mongo {
}
interface Cursor<T> {
count(): number;
fetch(): Array<T>;
fetch(): T[];
forEach(callback: <T>(doc: T, index: number, cursor: Mongo.Cursor<T>) => void, thisArg?: any): void;
map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): Array<U>;
map<U>(callback: (doc: T, index: number, cursor: Mongo.Cursor<T>) => U, thisArg?: any): U[];
observe(callbacks: Object): any;
observeChanges(callbacks: Object): any;
}
+2 -2
View File
@@ -7,8 +7,8 @@ declare var objectPath: ObjectPathGlobal.IObjectPathStatic;
declare namespace ObjectPathGlobal {
type IPath = Array<number|string>|number|string;
type IMultiArray = Array<IPath>;
type IPath = (number|string)[]|number|string;
type IMultiArray = IPath[];
interface IObjectPathStatic {
/**
+2 -2
View File
@@ -98,11 +98,11 @@ declare namespace observejs {
* @param current array of current state
* @param splices splices to apply
*/
applySplices(previous: any[], current: any[], splices: Array<splice>): void;
applySplices(previous: any[], current: any[], splices: splice[]): void;
}
interface ArrayObserver_instance extends Observable {
open(onChange: (splices: Array<splice>) => any): void;
open(onChange: (splices: splice[]) => any): void;
}
/**
-7
View File
@@ -4218,14 +4218,7 @@ declare module Excel {
index: number;
/**
*
<<<<<<< HEAD
* Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
=======
* The first criterion used to filter data. Used as an operator in the case of "custom" filtering.
For example ">50" for number greater than 50 or "=*s" for values ending in "s".
Used as a number in the case of top/bottom items/percents. E.g. "5" for the top 5 items if filterOn is set to "topItems"
>>>>>>> types-2.0
*
* [Api set: ExcelApi 1.1]
*/
+1 -1
View File
@@ -25,7 +25,7 @@ declare namespace __ONOFF {
gpioPath: string;
opts: GpioOptions;
readBuffer: Buffer;
listeners: Array<(error: Error, value: number) => void>;
listeners: ((error: Error, value: number) => void)[];
valueFd: number;
read(cb: (err: Error, value: number) => void): void;
+22 -22
View File
@@ -30,7 +30,7 @@ declare namespace openpgp {
interface VerifiedMessage {
text: string;
signatures: Array<Signature>;
signatures: Signature[];
}
/** Decrypts message and verifies signatures
@@ -39,7 +39,7 @@ declare namespace openpgp {
@param publicKeys array of keys to verify signatures
@param msg the message object with signed and encrypted data
*/
function decryptAndVerifyMessage(privateKey: key.Key, publicKeys: Array<key.Key>, msg: string): Promise<VerifiedMessage>;
function decryptAndVerifyMessage(privateKey: key.Key, publicKeys: key.Key[], msg: string): Promise<VerifiedMessage>;
/** Decrypts message and verifies signatures
@param privateKey private key with decrypted secret key data
@@ -60,7 +60,7 @@ declare namespace openpgp {
@param text message as native JavaScript string
@returns encrypted ASCII armored message
*/
function encryptMessage(keys: Array<key.Key>, message: string): Promise<string>;
function encryptMessage(keys: key.Key[], message: string): Promise<string>;
/** Encrypts message text with keys
@param single key used to encrypt the message
@@ -79,7 +79,7 @@ declare namespace openpgp {
@param privateKey private key with decrypted secret key data for signing
@param text private key with decrypted secret key data for signing
*/
function signAndEncryptMessage(publicKeys: Array<key.Key>, privateKey: key.Key, text: string): Promise<string>;
function signAndEncryptMessage(publicKeys: key.Key[], privateKey: key.Key, text: string): Promise<string>;
/** Signs message text and encrypts it
@param publicKeys single key used to encrypt the message
@@ -93,7 +93,7 @@ declare namespace openpgp {
@param privateKeys array of keys with decrypted secret key data to sign cleartext
@param text cleartext
*/
function signClearMessage(privateKeys: Array<key.Key>, text: string): Promise<string>;
function signClearMessage(privateKeys: key.Key[], text: string): Promise<string>;
/** Signs a cleartext message
@param privateKeys single key with decrypted secret key data to sign cleartext
@@ -106,7 +106,7 @@ declare namespace openpgp {
@param publicKeys array of keys to verify signatures
@param msg cleartext message object with signatures
*/
function verifyClearSignedMessage(publicKeys: Array<key.Key>, msg: cleartext.CleartextMessage): Promise<VerifiedMessage>;
function verifyClearSignedMessage(publicKeys: key.Key[], msg: cleartext.CleartextMessage): Promise<VerifiedMessage>;
/** Verifies signatures of cleartext signed message
@param publicKeys single key to verify signatures
@@ -144,7 +144,7 @@ declare namespace openpgp.cleartext {
/** Returns the key IDs of the keys that signed the cleartext message
*/
getSigningKeyIds(): Array<Keyid>;
getSigningKeyIds(): Keyid[];
/** Get cleartext
*/
@@ -153,12 +153,12 @@ declare namespace openpgp.cleartext {
/** Sign the cleartext message
@param privateKeys private keys with decrypted secret key data for signing
*/
sign(privateKeys: Array<key.Key>): void;
sign(privateKeys: key.Key[]): void;
/** Verify signatures of cleartext signed message
@param keys array of keys to verify signatures
*/
verify(keys: Array<key.Key>): Array<VerifiedMessage>;
verify(keys: key.Key[]): VerifiedMessage[];
}
function readArmored(armoredText: string): CleartextMessage;
@@ -203,14 +203,14 @@ declare namespace openpgp.crypto {
@param secretMPIs Algorithm dependent multiprecision integers of the private key used
@param data Data to be encrypted as MPI
*/
function publicKeyDecrypt(algo: enums.publicKey, publicMPIs: Array<Mpi>, secretMPIs: Array<Mpi>, data: Mpi): Mpi;
function publicKeyDecrypt(algo: enums.publicKey, publicMPIs: Mpi[], secretMPIs: Mpi[], data: Mpi): Mpi;
/** Encrypts data using the specified public key multiprecision integers and the specified algorithm.
@param algo Algorithm to be used
@param publicMPIs Algorithm dependent multiprecision integers
@param data Data to be encrypted as MPI
*/
function publicKeyEncrypt(algo: enums.publicKey, publicMPIs: Array<Mpi>, data: Mpi): Array<Mpi>;
function publicKeyEncrypt(algo: enums.publicKey, publicMPIs: Mpi[], data: Mpi): Mpi[];
}
declare namespace openpgp.crypto.cfb {
@@ -283,7 +283,7 @@ declare namespace openpgp.crypto.signature {
@param secretMPIs Private key multiprecision integers which is used to sign the data
@param data Data to be signed
*/
function sign(hash_algo: enums.hash, algo: enums.publicKey, publicMPIs: Array<Mpi>, secretMPIs: Array<Mpi>, data: string): Mpi;
function sign(hash_algo: enums.hash, algo: enums.publicKey, publicMPIs: Mpi[], secretMPIs: Mpi[], data: string): Mpi;
/**
@param algo public Key algorithm
@@ -292,7 +292,7 @@ declare namespace openpgp.crypto.signature {
@param publickey_MPIs Public key multiprecision integers
@param data Data on where the signature was computed on
*/
function verify(algo: enums.publicKey, hash_algo: enums.hash, msg_MPIs: Array<Mpi>, publickey_MPIs: Array<Mpi>, data: string): boolean;
function verify(algo: enums.publicKey, hash_algo: enums.hash, msg_MPIs: Mpi[], publickey_MPIs: Mpi[], data: string): boolean;
}
declare namespace openpgp.enums {
@@ -375,8 +375,8 @@ declare namespace openpgp.enums {
declare namespace openpgp.key {
interface KeyResult {
keys: Array<Key>;
err: Array<Error>;
keys: Key[];
err: Error[];
}
/** Class that represents an OpenPGP key. Must contain a primary key. Can contain additional subkeys, signatures, user ids, user attributes.
@@ -385,7 +385,7 @@ declare namespace openpgp.key {
armor(): string;
decrypt(passphrase: string): boolean;
getExpirationTime(): Date;
getKeyIds(): Array<Keyid>;
getKeyIds(): Keyid[];
getPreferredHashAlgorithm(): string;
getPrimaryUser(): any;
getUserIds(): string[];
@@ -422,16 +422,16 @@ declare namespace openpgp.message {
/** Decrypt the message
@param privateKey private key with decrypted secret data
*/
decrypt(privateKey: key.Key): Array<Message>;
decrypt(privateKey: key.Key): Message[];
/** Encrypt the message
@param keys array of keys, used to encrypt the message
*/
encrypt(keys: Array<key.Key>): Array<Message>;
encrypt(keys: key.Key[]): Message[];
/** Returns the key IDs of the keys to which the session key is encrypted
*/
getEncryptionKeyIds(): Array<Keyid>;
getEncryptionKeyIds(): Keyid[];
/** Get literal data that is the body of the message
*/
@@ -439,7 +439,7 @@ declare namespace openpgp.message {
/** Returns the key IDs of the keys that signed the message
*/
getSigningKeyIds(): Array<Keyid>;
getSigningKeyIds(): Keyid[];
/** Get literal data as text
*/
@@ -448,7 +448,7 @@ declare namespace openpgp.message {
/** Sign the message (the literal data packet of the message)
@param privateKey private keys with decrypted secret key data for signing
*/
sign(privateKey: Array<key.Key>): Message;
sign(privateKey: key.Key[]): Message;
/** Unwrap compressed message
*/
@@ -457,7 +457,7 @@ declare namespace openpgp.message {
/** Verify message signatures
@param keys array of keys to verify signatures
*/
verify(keys: Array<key.Key>): Object[];
verify(keys: key.Key[]): Object[];
}
/** creates new message object from binary data
+2 -2
View File
@@ -147,7 +147,7 @@ declare namespace oracledb {
interface IExecuteReturn {
/** Metadata information - column names is always given. If the Oracledb extendedMetaData or execute() option extendedMetaData are true then additional information is included. */
metaData?: Array<IMetaData>;
metaData?: IMetaData[];
/** This is either an array or an object containing OUT and IN OUT bind values. If bindParams is passed as an array, then outBinds is returned as an array. If bindParams is passed as an object, then outBinds is returned as an object. */
outBinds?: any[] | Object;
/** For SELECT statements when the resultSet option is true, use the resultSet object to fetch rows. See ResultSet Class. */
@@ -180,7 +180,7 @@ declare namespace oracledb {
* Contains an array of objects with metadata about the query or REF CURSOR columns.
* Each column's name is always given. If the Oracledb extendedMetaData or execute() option extendedMetaData are true then additional information is included.
*/
metaData?: Array<IMetaData>;
metaData?: IMetaData[];
/**
* Closes a ResultSet. Applications should always call this at the end of fetch or when no more rows are needed.
+2 -2
View File
@@ -827,8 +827,8 @@ declare namespace p2 {
export class Utils {
static appendArray<T>(a: Array<T>, b: Array<T>): Array<T>;
static splice<T>(array: Array<T>, index: number, howMany: number): void;
static appendArray<T>(a: T[], b: T[]): T[];
static splice<T>(array: T[], index: number, howMany: number): void;
static extend(a: any, b: any): void;
static defaults(options: any, defaults: any): any;
+15 -15
View File
@@ -101,9 +101,9 @@ declare class Packery {
/**
* [addItems Add item elements to the Packery instance]
* @param {Array<Element>} elements [description]
* @param {Element[]} elements [description]
*/
addItems(elements: Array<Element>): void;
addItems(elements: Element[]): void;
/**
* [appended Add and lay out newly appended item elements]
@@ -119,9 +119,9 @@ declare class Packery {
/**
* [appended Add and lay out newly appended item elements]
* @param {Array<Element>} elements [description]
* @param {Element[]} elements [description]
*/
appended(elements: Array<Element>): void;
appended(elements: Element[]): void;
/**
* [bindDraggabillyEvents Bind Draggabilly events, so that the Packery instance will layout around the dragged element]
@@ -162,9 +162,9 @@ declare class Packery {
/**
* [getItemElements Get an array of elements used as the Packery instance's items.]
* @return {Array<Element>} [description]
* @return {Element[]} [description]
*/
getItemElements(): Array<Element>;
getItemElements(): Element[];
/**
* [getItem Get a Packery.Item from an element]
@@ -180,7 +180,7 @@ declare class Packery {
/**
* [layoutItems Lay out specified items]
* @param {Array<Packery.items>} items [description]
* @param {Packery.items[]} items [description]
*/
layoutItems(items: any[]): void;
@@ -221,9 +221,9 @@ declare class Packery {
/**
* [prepended Add and lay out newly prepended item elements at the beginning of layout]
* @param {Array<Element>} elements [description]
* @param {Element[]} elements [description]
*/
prepended(elements: Array<Element>): void;
prepended(elements: Element[]): void;
/**
* [reloadItems Recollect all item elements]
@@ -244,9 +244,9 @@ declare class Packery {
/**
* [remove Remove elements from the Packery instance, then from the DOM]
* @param {Array<Element>} elements [description]
* @param {Element[]} elements [description]
*/
remove(elements: Array<Element>): void;
remove(elements: Element[]): void;
/**
* [stamp Stamp the elements in the layout. Packery will lay out item elements around stamped element]
@@ -262,9 +262,9 @@ declare class Packery {
/**
* [stamp Stamp the elements in the layout. Packery will lay out item elements around stamped element]
* @param {Array<Element>} elements [description]
* @param {Element[]} elements [description]
*/
stamp(elements: Array<Element>): void;
stamp(elements: Element[]): void;
/**
* [unbindResize Un-bind layout to window resize event]
@@ -285,9 +285,9 @@ declare class Packery {
/**
* [unstamp Un-stamp the elements, so that Packery will no longer layout item elements around them]
* @param {Array<Element>} element [description]
* @param {Element[]} element [description]
*/
unstamp(element: Array<Element>): void;
unstamp(element: Element[]): void;
}
export = Packery;
+1 -1
View File
@@ -116,7 +116,7 @@ declare namespace PapaParse {
*/
interface ParseResult {
data: any[];
errors: Array<ParseError>;
errors: ParseError[];
meta: ParseMeta;
}
+1 -1
View File
@@ -20,7 +20,7 @@ declare namespace ParseTorrent {
comment?: string;
announce?: string[];
urlList?: string[];
files?: Array<{path: string, name: string, length: number, offset: number}>;
files?: {path: string, name: string, length: number, offset: number}[];
length?: number;
pieceLength?: number;
lastPieceLength?: number;
+2 -2
View File
@@ -13,10 +13,10 @@ interface BasicStrategyOptions {
interface DigestStrategyOptions {
realm?: string;
domain?: string | Array<string>;
domain?: string | string[];
opaque?: string;
algorithm?: string;
qop?: string | Array<string>;
qop?: string | string[];
}
interface DigestValidateOptions {
+2 -2
View File
@@ -140,8 +140,8 @@ declare namespace PDFKit.Mixins {
text(text: string, options?: TextOptions): TDocument;
widthOfString(text: string, options?: TextOptions): number;
heightOfString(text: string, options?: TextOptions): number;
list(list: Array<string|any>, x?: number, y?: number, options?: TextOptions): TDocument;
list(list: Array<string|any>, options?: TextOptions): TDocument;
list(list: (string|any)[], x?: number, y?: number, options?: TextOptions): TDocument;
list(list: (string|any)[], options?: TextOptions): TDocument;
}
interface PDFVector<TDocument> {
+6 -6
View File
@@ -49,7 +49,7 @@ declare namespace PhoneGapNfc {
canMakeReadOnly: boolean;
isWritable: boolean;
maxSize: number;
ndefMessage: Array<NdefRecord>;
ndefMessage: NdefRecord[];
}
interface TagEvent extends Event {
@@ -200,7 +200,7 @@ declare namespace PhoneGapNfc {
*
* @return NdefRecord
*/
smartPoster(ndefRecords: Array<NdefRecord>, id: number[]): NdefRecord;
smartPoster(ndefRecords: NdefRecord[], id: number[]): NdefRecord;
/**
* Helper that creates an empty NdefRecord.
@@ -225,7 +225,7 @@ declare namespace PhoneGapNfc {
*
* @see NFC Data Exchange Format (NDEF) http://www.nfc-forum.org/specs/spec_list/
*/
encodeMessage(ndefRecords: Array<NdefRecord>): number[];
encodeMessage(ndefRecords: NdefRecord[]): number[];
/**
* Decodes an array bytes into an NDEF Message
@@ -236,7 +236,7 @@ declare namespace PhoneGapNfc {
*
* @see NFC Data Exchange Format (NDEF) http://www.nfc-forum.org/specs/spec_list/
*/
decodeMessage(bytes: number[]): Array<NdefRecord>;
decodeMessage(bytes: number[]): NdefRecord[];
/**
* Decode the bit flags from a TNF Byte.
@@ -340,7 +340,7 @@ declare namespace PhoneGapNfc {
* @param win The callback that is called when the tag is written.
* @param fail The callback that is called if there was an error.
*/
write(ndefMessage: Array<NdefRecord>, win?: () => void, fail?: () => void): void;
write(ndefMessage: NdefRecord[], win?: () => void, fail?: () => void): void;
/**
* Function nfc.makeReadOnly make a NFC tag read only.
@@ -358,7 +358,7 @@ declare namespace PhoneGapNfc {
* @param win The callback that is called when the message is pushed.
* @param fail The callback that is called if there was an error.
*/
share(ndefMessage: Array<NdefRecord>, win?: () => void, fail?: () => void): void;
share(ndefMessage: NdefRecord[], win?: () => void, fail?: () => void): void;
/**
* Function nfc.unshare stops sharing data via peer-to-peer.
+1 -1
View File
@@ -10,7 +10,7 @@ declare module "pkijs/src/Attribute" {
export default class Attribute {
type: string;
value: Array<any>;
value: any[];
constructor(params?: any);
+1 -1
View File
@@ -337,7 +337,7 @@ declare namespace PlayerFramework {
/**
*
**/
playlist: Array<PlaylistItem>;
playlist: PlaylistItem[];
/**
*
**/
+4 -4
View File
@@ -13,8 +13,8 @@ declare namespace PleaseJS {
* @returns {Array}
*/
make_color(options?: MakeColorOption): string[];
make_color(options?: MakeColorOption): Array<RGB>;
make_color(options?: MakeColorOption): Array<HSV>;
make_color(options?: MakeColorOption): RGB[];
make_color(options?: MakeColorOption): HSV[];
/***
* make a color scheme
@@ -22,8 +22,8 @@ declare namespace PleaseJS {
* @returns {Array}
*/
make_scheme(base_color: HSV, options?: MakeSchemeOption): string[];
make_scheme(base_color: HSV, options?: MakeSchemeOption): Array<RGB>;
make_scheme(base_color: HSV, options?: MakeSchemeOption): Array<HSV>;
make_scheme(base_color: HSV, options?: MakeSchemeOption): RGB[];
make_scheme(base_color: HSV, options?: MakeSchemeOption): HSV[];
/***
* convert color name into hex string
+7 -7
View File
@@ -70,23 +70,23 @@ declare namespace poly2tri {
class SweepContext {
constructor(contour: Array<IPointLike>);
constructor(contour: IPointLike[]);
constructor(contour: Array<IPointLike>, options: JSON);
constructor(contour: IPointLike[], options: JSON);
addHole(polyline: Array<IPointLike>): SweepContext;
addHole(polyline: IPointLike[]): SweepContext;
addHoles(holes: Array<Array<IPointLike>>): SweepContext;
addHoles(holes: IPointLike[][]): SweepContext;
addPoint(point: IPointLike): SweepContext;
addPoints(point: Array<IPointLike>): SweepContext;
addPoints(point: IPointLike[]): SweepContext;
triangulate(): SweepContext;
getBoundingBox(): { min: IPointLike; max: IPointLike; };
getTriangles(): Array<Triangle>;
getTriangles(): Triangle[];
}
class Triangle {
@@ -96,7 +96,7 @@ declare namespace poly2tri {
getPoint(index: number): IPointLike;
getPoints(): Array<IPointLike>;
getPoints(): IPointLike[];
containsPoint(point: IPointLike): boolean;
+2 -2
View File
@@ -28,7 +28,7 @@ declare namespace polymer {
elementMatches(selector: string, node: Element): any;
fire(type: string, detail?: Object, options?: FireOptions): any;
flushDebouncer(jobName: string): void;
get(path: string | Array<string | number>): any;
get(path: string | (string | number)[]): any;
getContentChildNodes(slctr: string): any;
getContentChildren(slctr: string): any;
getNativePrototype(tag: string): any;
@@ -54,7 +54,7 @@ declare namespace polymer {
scopeSubtree(container: Element, shouldObserve: boolean): void;
serialize(value: string): any;
serializeValueToAttribute(value: any, attribute: string, node: Element): void;
set(path: string | Array<string | number>, value: any, root?: Object): any;
set(path: string | (string | number)[], value: any, root?: Object): any;
setScrollDirection(direction: string, node: HTMLElement): void;
shift(path: string, value: any): any;
splice(path: string, start: number, deleteCount: number, ...items: any[]): any;
+1 -1
View File
@@ -17,7 +17,7 @@ interface ISubscriptionDefinition {
distinctUntilChanged(): ISubscriptionDefinition;
once(): ISubscriptionDefinition;
withConstraint(predicate: Function): ISubscriptionDefinition;
withConstraints(predicates: Array<Function>): ISubscriptionDefinition;
withConstraints(predicates: Function[]): ISubscriptionDefinition;
withContext(context: any): ISubscriptionDefinition;
withDebounce(milliseconds: number, immediate: boolean ): ISubscriptionDefinition;
+4 -4
View File
@@ -80,7 +80,7 @@ declare namespace PrismJS {
}
interface Util {
encode(tokens: Token | Array<Token> | string): Token | Array<Token> | string;
encode(tokens: Token | Token[] | string): Token | Token[] | string;
type(o: Object): string;
objId(obj: Object): Identifier;
clone(o: LanguageDefinition): LanguageDefinition;
@@ -128,7 +128,7 @@ declare namespace PrismJS {
/**
* Accepts an object literal with tokens and appends them to the end of the current object literal.
*/
rest?: Array<Token>;
rest?: Token[];
}
interface Languages extends Array<LanguageDefinition> {
@@ -148,14 +148,14 @@ declare namespace PrismJS {
}
interface Hooks {
all: Array<Array<(env: Environment) => void>>;
all: ((env: Environment) => void)[][];
add(name: string, callback: (env: Environment) => void): void;
run(name: string, env: Environment): void;
}
interface Token {
type: string;
content: Token | Array<Token> | string;
content: Token | Token[] | string;
alias: string;
stringify(o: string| any[], language: LanguageDefinition, parent: HTMLPreElement): string;
}
+1 -1
View File
@@ -14,7 +14,7 @@ declare namespace Promise {
resolve: <T>(value: T) => IThenable<T>;
reject: <T>(value: T) => IThenable<T>;
all: (array: Array<IThenable<any>>) => IThenable<any[]>;
all: (array: IThenable<any>[]) => IThenable<any[]>;
denodeify: (fn: Function) => (...args: any[]) => IThenable<any>;
nodeify: (fn: Function) => Function;
}
+6 -6
View File
@@ -14,7 +14,7 @@ declare namespace mock {
* @param plugins An array of Plugin objects.
* @param skipDefaults Set true to skip loading of default mocks.
*/
<TResponse, TPayload>(mocks?: Array<requests.AllRequests<TResponse, TPayload>>, plugins?: Array<Plugin>, skipDefaults?: boolean): ProtractorHttpMock;
<TResponse, TPayload>(mocks?: requests.AllRequests<TResponse, TPayload>[], plugins?: Plugin[], skipDefaults?: boolean): ProtractorHttpMock;
/**
* Instantiate mock module. This must be done before the browser connects.
@@ -23,7 +23,7 @@ declare namespace mock {
* @param plugins An array of NPM modules as strings.
* @param skipDefaults Set true to skip loading of default mocks.
*/
<TResponse, TPayload>(mocks?: Array<requests.AllRequests<TResponse, TPayload>>, plugins?: string[], skipDefaults?: boolean): ProtractorHttpMock;
<TResponse, TPayload>(mocks?: requests.AllRequests<TResponse, TPayload>[], plugins?: string[], skipDefaults?: boolean): ProtractorHttpMock;
/**
* Instantiate mock modules from files. This must be done before the browser connects.
@@ -32,7 +32,7 @@ declare namespace mock {
* @param plugins An array of Plugin objects.
* @param skipDefaults Set true to skip loading of default mocks.
*/
(mocks: string[], plugins?: Array<Plugin>, skipDefaults?: boolean): ProtractorHttpMock;
(mocks: string[], plugins?: Plugin[], skipDefaults?: boolean): ProtractorHttpMock;
/**
* Instantiate mock modules from files. This must be done before the browser connects.
@@ -54,7 +54,7 @@ declare namespace mock {
* Returns a promise that will be resolved with an array of
* all matched HTTP requests.
*/
requestsMade(): webdriver.promise.Promise<Array<ReceivedRequest>>;
requestsMade(): webdriver.promise.Promise<ReceivedRequest[]>;
/**
* Returns a promise that will be resolved with a true boolean
@@ -86,7 +86,7 @@ declare namespace mock {
*
* @param mocks An array of mock modules to load into the application.
*/
add<T1, T2>(mocks: Array<requests.AllRequests<T1, T2>>): webdriver.promise.Promise<boolean>;
add<T1, T2>(mocks: requests.AllRequests<T1, T2>[]): webdriver.promise.Promise<boolean>;
/**
* Remove mocks during test execution.
@@ -95,7 +95,7 @@ declare namespace mock {
*
* @param mocks An array of mock modules to remove from the application.
*/
remove<T1, T2>(mocks: Array<requests.AllRequests<T1, T2>>): webdriver.promise.Promise<boolean>;
remove<T1, T2>(mocks: requests.AllRequests<T1, T2>[]): webdriver.promise.Promise<boolean>;
}
/**
+1 -1
View File
@@ -13,7 +13,7 @@ declare namespace QueryString {
skipNulls?: boolean;
encode?: boolean;
encoder?: (str: string) => any;
filter?: Array<string | number> | ((prefix: string, value: any) => any);
filter?: string | number[] | ((prefix: string, value: any) => any);
arrayFormat?: 'indices' | 'brackets' | 'repeat';
indices?: boolean;
}
+1 -1
View File
@@ -135,7 +135,7 @@ interface Config {
reorder: boolean;
requireExpects: boolean;
testTimeout: number;
urlConfig: Array<URLConfigItem>;
urlConfig: URLConfigItem[];
done: any;
}
+8 -8
View File
@@ -36,10 +36,10 @@ declare class TemporaryName {
static real(min: number, max: number, inclusive: boolean): (engine: TemporaryName.Engine) => number;
static bool(percentage?: number): (engine: TemporaryName.Engine) => boolean;
static bool(numerator: number, denominator: number): (engine: TemporaryName.Engine) => boolean;
static pick<T>(engine: TemporaryName.Engine, array: Array<T>, begin?: number, end?: number): T;
static picker<T>(array: Array<T>, begin?: number, end?: number): (engine: TemporaryName.Engine) => T;
static shuffle<T>(engine: TemporaryName.Engine, array: Array<T>): Array<T>;
static sample<T>(engine: TemporaryName.Engine, population: Array<T>, sampleSize: number): Array<T>;
static pick<T>(engine: TemporaryName.Engine, array: T[], begin?: number, end?: number): T;
static picker<T>(array: T[], begin?: number, end?: number): (engine: TemporaryName.Engine) => T;
static shuffle<T>(engine: TemporaryName.Engine, array: T[]): T[];
static sample<T>(engine: TemporaryName.Engine, population: T[], sampleSize: number): T[];
static die(sideCount: number): (engine: TemporaryName.Engine) => number;
static dice(sideCount: number, dieCount: number): (engine: TemporaryName.Engine) => number;
static uuid4(engine: TemporaryName.Engine): string;
@@ -52,10 +52,10 @@ declare class TemporaryName {
real(min: number, max: number, inclusive: boolean): number;
bool(percentage?: number): (engine: TemporaryName.Engine) => boolean;
bool(numerator: number, denominator: number): boolean;
pick<T>(engine: TemporaryName.Engine, array: Array<T>, begin?: number, end?: number): T;
picker<T>(array: Array<T>, begin?: number, end?: number): (engine: TemporaryName.Engine) => T;
shuffle<T>(engine: TemporaryName.Engine, array: Array<T>): Array<T>;
sample<T>(engine: TemporaryName.Engine, population: Array<T>, sampleSize: number): Array<T>;
pick<T>(engine: TemporaryName.Engine, array: T[], begin?: number, end?: number): T;
picker<T>(array: T[], begin?: number, end?: number): (engine: TemporaryName.Engine) => T;
shuffle<T>(engine: TemporaryName.Engine, array: T[]): T[];
sample<T>(engine: TemporaryName.Engine, population: T[], sampleSize: number): T[];
die(sideCount: number): (engine: TemporaryName.Engine) => number;
dice(sideCount: number, dieCount: number): number;
uuid4(engine: TemporaryName.Engine): string;
+1 -1
View File
@@ -25,7 +25,7 @@ declare namespace AdazzleReactDataGrid {
/**
* The columns to render.
*/
columns?: Array<Column>;
columns?: Column[];
/**
* Invoked when the user changes the value of a single cell.
+6 -6
View File
@@ -96,7 +96,7 @@ interface TransitionPlainStyle {
// same as TransitionStyle, passed as argument to style/children function
style: PlainStyle;
}
type InterpolateFunction = (previousInterpolatedStyles?: Array<TransitionPlainStyle>) => Array<TransitionStyle>;
type InterpolateFunction = (previousInterpolatedStyles?: TransitionPlainStyle[]) => TransitionStyle[];
/**
* Transition properties
*/
@@ -104,13 +104,13 @@ interface TransitionProps {
/**
* Default styles on first render
*/
defaultStyles?: Array<TransitionPlainStyle>;
defaultStyles?: TransitionPlainStyle[];
/**
* Styles to interpolate. Accepts array of TransitionStyle objects or interpolated function similar as for
* <StaggeredMotion/>
*/
styles: Array<TransitionStyle> | InterpolateFunction;
children: (interpolatedStyles: Array<TransitionPlainStyle>) => ReactElement<any>;
styles: TransitionStyle[] | InterpolateFunction;
children: (interpolatedStyles: TransitionPlainStyle[]) => ReactElement<any>;
/**
* Triggers when new elements appears
* @param styleThatEntered
@@ -129,12 +129,12 @@ interface StaggeredMotionProps {
/**
* Default styles
*/
defaultStyles?: Array<PlainStyle>;
defaultStyles?: PlainStyle[];
/**
* Styles to interpolate
* @param previousInterpolatedStyles The previously interpolating (array of) styles (undefined at first render, unless defaultStyles is provided).
*/
styles: (previousInterpolatedStyles?: Array<PlainStyle>) => Array<Style>;
styles: (previousInterpolatedStyles?: PlainStyle[]) => Style[];
}
export declare class StaggeredMotion extends Component<StaggeredMotionProps, any> { }
+2 -2
View File
@@ -147,7 +147,7 @@ declare namespace ReactSelectClass {
/**
* method to filter the options array
*/
filterOptions?: (options: Array<Option>, filter: string, currentValues: Array<Option>) => Array<Option>;
filterOptions?: (options: Option[], filter: string, currentValues: Option[]) => Option[];
/**
* whether to strip diacritics when filtering
* @default true
@@ -279,7 +279,7 @@ declare namespace ReactSelectClass {
* array of Select options
* @default false
*/
options?: Array<Option>;
options?: Option[];
/**
* field placeholder, displayed when there's no value
* @default "Select..."
+2 -2
View File
@@ -32,7 +32,7 @@ declare module "react-select" {
delimiter?: string;
disabled?: boolean;
filterOption?: (option: Option, filterString: string) => Option;
filterOptions?: (options: Array<Option>, filterString: string, values: Object[]) => Array<Option>;
filterOptions?: (options: Option[], filterString: string, values: Object[]) => Option[];
ignoreCase?: boolean; // default true whether to perform case-insensitive filtering
inputProps?: Object;
isLoading?: boolean;
@@ -49,7 +49,7 @@ declare module "react-select" {
onInputChange?: (inputValue: string) => void;
onOptionLabelClick?: (value: string, event: Event) => void;
optionRenderer?: () => void;
options?: Array<Option>;
options?: Option[];
placeholder?: string;
searchable?: boolean;
searchingText?: string;
+1 -1
View File
@@ -69,5 +69,5 @@ declare module 'react-sortable-hoc' {
export function SortableHandle<P>(wrappedComponent: WrappedComponent<P>, config?: Config): React.ComponentClass<P>;
export function arrayMove<T>(collection: Array<T>, previousIndex: number, newIndex: number): Array<T>;
export function arrayMove<T>(collection: T[], previousIndex: number, newIndex: number): T[];
}
+30 -30
View File
@@ -17,7 +17,7 @@ declare namespace RiotGamesAPI {
rankedPlayEnabled: boolean;
}
interface ChampionListDto {
champions: Array<ChampionDto>;
champions: ChampionDto[];
}
}
@@ -43,7 +43,7 @@ declare namespace RiotGamesAPI {
*/
namespace CurrentGame {
interface CurrentGameInfo {
bannedChampion: Array<BannedChampion>;
bannedChampion: BannedChampion[];
gameId: number;
gameLength: number;
gameMode: number;
@@ -52,7 +52,7 @@ declare namespace RiotGamesAPI {
gameType: string;
mapId: number;
observers: Observer;
participants: Array<CurrentGameParticipant>;
participants: CurrentGameParticipant[];
platformId: string;
}
interface BannedChampion {
@@ -63,9 +63,9 @@ declare namespace RiotGamesAPI {
interface CurrentGameParticipant {
bot: boolean;
championId: number;
masteries: Array<Mastery>;
masteries: Mastery[];
profileIconId: number;
runes: Array<Rune>;
runes: Rune[];
spell1Id: number;
spell2Id: number;
summonerId: number;
@@ -421,7 +421,7 @@ declare namespace RiotGamesAPI {
image: ImageDto;
inStore: boolean;
into: string[];
maps: Array<{[str: string]: boolean}>;
maps: {[str: string]: boolean}[];
name: string;
plaintext: string;
requiredChampion: string;
@@ -442,7 +442,7 @@ declare namespace RiotGamesAPI {
consumed: boolean;
depth: number;
description: string;
effect: Array<{[str: string]: string}>;
effect: {[str: string]: string}[];
from: string[];
gold: GoldDto;
group: string;
@@ -451,7 +451,7 @@ declare namespace RiotGamesAPI {
image: ImageDto;
inStore: boolean;
into: string[];
maps: Array<{[str: string]: boolean}>;
maps: {[str: string]: boolean}[];
name: string;
plaintext: string;
requiredChampion: string;
@@ -545,12 +545,12 @@ declare namespace RiotGamesAPI {
type: string;
}
interface LanguageStringsDto {
data: Array<{[str: string]: string}>;
data: {[str: string]: string}[];
type: string;
version: string;
}
interface MapDataDto {
data: Array<{[str: string]: MapDetailsDto}>;
data: {[str: string]: MapDetailsDto}[];
type: string;
version: string;
}
@@ -561,7 +561,7 @@ declare namespace RiotGamesAPI {
unpurchasableItemList: number[];
}
interface MasteryListDto {
data: Array<{[str: string]: MasteryDto}>;
data: {[str: string]: MasteryDto}[];
tree: MasteryTreeDto;
type: string;
version: string;
@@ -577,12 +577,12 @@ declare namespace RiotGamesAPI {
sanitizedDescription: string[];
}
interface MasteryTreeDto {
Defense: Array<MasteryTreeListDto>;
Offense: Array<MasteryTreeListDto>;
Utility: Array<MasteryTreeListDto>;
Defense: MasteryTreeListDto[];
Offense: MasteryTreeListDto[];
Utility: MasteryTreeListDto[];
}
interface MasteryTreeListDto {
masteryTreeItems: Array<MasteryTreeItemDto>;
masteryTreeItems: MasteryTreeItemDto[];
}
interface MasteryTreeItemDto {
masteryId: number;
@@ -594,14 +594,14 @@ declare namespace RiotGamesAPI {
dd: string;
l: string;
lg: string;
n: Array<{[str: string]: string}>;
n: {[str: string]: string}[];
profileiconmax: number;
storage: string;
v: string;
}
interface RuneListDto {
basic: BasicDataDto;
data: Array<{[str: string]: RuneDto}>;
data: {[str: string]: RuneDto}[];
type: string;
version: string;
}
@@ -618,7 +618,7 @@ declare namespace RiotGamesAPI {
image: ImageDto;
inStore: boolean;
into: string[];
maps: Array<{[str: string]: boolean}>;
maps: {[str: string]: boolean}[];
name: string;
plaintext: string;
requiredChampion: string;
@@ -630,7 +630,7 @@ declare namespace RiotGamesAPI {
tags: string[];
}
interface SummonerSpellListDto {
data: Array<{[str: string]: SummonerSpellDto}>;
data: {[str: string]: SummonerSpellDto}[];
type: string;
version: string;
}
@@ -657,7 +657,7 @@ declare namespace RiotGamesAPI {
sanitizedTooltip: string;
summonerLevel: number;
tooltip: string;
vars: Array<SpellVarsDto>;
vars: SpellVarsDto[];
}
}
@@ -677,11 +677,11 @@ declare namespace RiotGamesAPI {
locales: string[];
name: string;
region_tag: string;
services: Array<Service>;
services: Service[];
slug: string;
}
interface Service {
incidents: Array<Incident>;
incidents: Incident[];
name: string;
slug: string;
status: string;
@@ -690,7 +690,7 @@ declare namespace RiotGamesAPI {
active: boolean;
created_at: string;
id: number;
updates: Array<Message>;
updates: Message[];
}
interface Message {
author: string;
@@ -698,7 +698,7 @@ declare namespace RiotGamesAPI {
created_at: string;
id: number;
severity: string;
translations: Array<Translation>;
translations: Translation[];
updated_at: string;
}
interface Translation {
@@ -745,7 +745,7 @@ declare namespace RiotGamesAPI {
player: Player;
}
interface Team {
bans: Array<BannedChampion>;
bans: BannedChampion[];
baronKills: number;
dominionVictoryScore: number;
dragonKills: number;
@@ -762,7 +762,7 @@ declare namespace RiotGamesAPI {
}
interface Timeline {
frameInverval: number;
frames: Array<Frame>;
frames: Frame[];
}
interface Mastery {
masteryId: number;
@@ -1047,13 +1047,13 @@ declare namespace RiotGamesAPI {
summonerLevel: number;
}
interface MasteryPagesDto {
pages: Array<MasteryPageDto>;
pages: MasteryPageDto[];
summonerId: number;
}
interface MasteryPageDto {
current: boolean;
id: number;
masteries: Array<MasteryDto>;
masteries: MasteryDto[];
name: string;
}
interface MasteryDto {
@@ -1061,14 +1061,14 @@ declare namespace RiotGamesAPI {
rank: number;
}
interface RunePagesDto {
pages: Array<RunePageDto>;
pages: RunePageDto[];
summonerId: number;
}
interface RunePageDto {
current: boolean;
id: number;
name: string;
slots: Array<RuneSlotDto>;
slots: RuneSlotDto[];
}
interface RuneSlotDto {
runeId: number;
+1 -1
View File
@@ -60,7 +60,7 @@ declare namespace Rivets {
bind(element: HTMLElement, models: Object, options?: Object): View;
bind(element: JQuery, models: Object, options?: Object): View;
bind(element: Array<HTMLElement>, models: Object, options?: Object): View;
bind(element: HTMLElement[], models: Object, options?: Object): View;
}
}
+2 -2
View File
@@ -58,13 +58,13 @@ interface Router5 {
isActive(name: String, params?: Object, strictEquality?: Boolean, ignoreQueryParams?: Boolean): Boolean;
matchPath(path: String): Object;
matchUrl(url: String): Object;
navigate(name: String, ...args: Array<Object | Function>): Function;
navigate(name: String, ...args: (Object | Function)[]): Function;
setAdditionalArgs(args: any[]): void;
setOption(opt: String, val: any): Router5;
start(...args: any[]): Router5;
stop(): Router5;
urlToPath(path: String): String;
useMiddleware(...args: Array<Function>): Router5;
useMiddleware(...args: Function[]): Router5;
usePlugin(pluginFactory: Function): Router5;
}
+7 -7
View File
@@ -81,7 +81,7 @@ interface SafariEventTarget {
}
interface SafariBrowserWindow extends SafariEventTarget {
tabs: Array<SafariBrowserTab>;
tabs: SafariBrowserTab[];
visible: boolean;
activeTab: SafariBrowserTab;
@@ -154,7 +154,7 @@ interface SafariExtensionPopover extends SafariEventTarget {
interface SafariExtensionMenu {
identifier: string;
menuItems: Array<SafariExtensionMenuItem>;
menuItems: SafariExtensionMenuItem[];
visible: boolean;
appendMenuItem (identifier: string, title: string, command?: string): SafariExtensionMenuItem;
@@ -250,19 +250,19 @@ interface SafariPrivateBrowsing {
}
interface SafariExtension {
bars: Array<SafariExtensionBar>;
bars: SafariExtensionBar[];
baseURI: string;
globalPage: SafariExtensionGlobalPage;
toolbarItems: Array<SafariExtensionToolbarItem>;
toolbarItems: SafariExtensionToolbarItem[];
displayVersion: string;
bundleVersion: string;
menus: Array<SafariExtensionMenu>;
menus: SafariExtensionMenu[];
createMenu (identifier: string): SafariExtensionMenu;
removeMenu (identifier: string): void;
popovers: Array<SafariExtensionPopover>;
popovers: SafariExtensionPopover[];
createPopover(identifier: string, url: string, width?: number, height?: number): SafariExtensionPopover;
removePopover(identifier: string): void;
@@ -281,7 +281,7 @@ interface SafariExtension {
interface SafariApplication extends SafariEventTarget {
activeBrowserWindow: SafariBrowserWindow;
browserWindows: Array<SafariBrowserWindow>;
browserWindows: SafariBrowserWindow[];
privateBrowsing: SafariPrivateBrowsing;
openBrowserWindow(): SafariBrowserWindow;
}
+1 -1
View File
@@ -5116,7 +5116,7 @@ declare namespace samchon.protocol {
* @param listener
* @param parameters
*/
constructor(listener: string, ...parameters: Array<number | string | library.XML>);
constructor(listener: string, ...parameters: (number | string | library.XML)[]);
/**
* @inheritdoc
*/
+6 -6
View File
@@ -214,12 +214,12 @@ declare namespace scalike {
function failed<A>(e: Error): Future<A>;
function successful<A>(a: A): Future<A>;
function fromTry<A>(t: Try<A>): Future<A>;
function sequence<A>(fus: Array<Future<A>>): Future<Array<A>>;
function firstCompletedOf<A>(fus: Array<Future<A>>): Future<A>;
function find<A>(fus: Array<Future<A>>, f: (a: A) => boolean): Future<Optional<A>>;
function foldLeft<A, B>(fu: Array<Future<A>>, zero: B, f: (b: B, a: A) => B): Future<B>;
function reduceLeft<A, B>(fu: Array<Future<A>>, f: (b: B, a: A) => B): Future<B>;
function traverse<A, B>(fu: Array<A>, f: (a: A) => Future<B>): Future<Array<B>>;
function sequence<A>(fus: Future<A>[]): Future<A[]>;
function firstCompletedOf<A>(fus: Future<A>[]): Future<A>;
function find<A>(fus: Future<A>[], f: (a: A) => boolean): Future<Optional<A>>;
function foldLeft<A, B>(fu: Future<A>[], zero: B, f: (b: B, a: A) => B): Future<B>;
function reduceLeft<A, B>(fu: Future<A>[], f: (b: B, a: A) => B): Future<B>;
function traverse<A, B>(fu: A[], f: (a: A) => Future<B>): Future<B[]>;
}
export class FutureBuilder1<A, B> {
private oa;
+2 -2
View File
@@ -79,7 +79,7 @@ declare namespace __node_scanf {
* @param format The format contains a sequence of characters that control how characters extracted from the stream are tread.
* @return An array containing data constructed from stdin with the <i>format</i>.
*/
function scanf(format: string): Array<number|string>;
function scanf(format: string): (number|string)[];
/**
* <p> Reads formatted data from stdin. </p>
@@ -179,7 +179,7 @@ declare namespace __node_scanf {
*
* @return An array containing data constructed from string with the <i>format</i>.
*/
function sscanf(source: string, format: string): Array<number|string>;
function sscanf(source: string, format: string): (number|string)[];
/**
* <p> Reads formatted data from string. </p>
+7 -7
View File
@@ -30,7 +30,7 @@ declare namespace SeamlessImmutable {
export interface ImmutableObject<T> {
set(property: string, value: any): ImmutableObject<any>;
setIn(propertyPath: Array<string>, value: any): ImmutableObject<any>;
setIn(propertyPath: string[], value: any): ImmutableObject<any>;
asMutable(): T;
asMutable(opts: AsMutableOptions): T;
@@ -38,7 +38,7 @@ declare namespace SeamlessImmutable {
merge(part: any, config?: MergeConfig): ImmutableObject<T>;
update(property: string, updaterFunction: (value: any, ...additionalParamters: any[]) => any, ...additionalArguments: any[]): ImmutableObject<T>;
updateIn(propertyPath: Array<string>, updaterFunction: (value: any, ...additionalParamters: any[]) => any, ...additionalArguments: any[]): ImmutableObject<T>;
updateIn(propertyPath: string[], updaterFunction: (value: any, ...additionalParamters: any[]) => any, ...additionalArguments: any[]): ImmutableObject<T>;
without(property: string): ImmutableObject<any>;
without(...properties: string[]): ImmutableObject<any>;
@@ -46,16 +46,16 @@ declare namespace SeamlessImmutable {
}
export interface ImmutableArray<T> {
asMutable(): Array<T>;
asMutable(opts: AsMutableOptions): Array<T>;
asObject(toKeyValue: (item: T) => Array<any>): ImmutableObject<T>;
flatMap(mapFunction: (item: T) => Array<any>): ImmutableArray<any>;
asMutable(): T[];
asMutable(opts: AsMutableOptions): T[];
asObject(toKeyValue: (item: T) => any[]): ImmutableObject<T>;
flatMap(mapFunction: (item: T) => any[]): ImmutableArray<any>;
}
// an immutable object is both of Type T (i.e., looks like a normal T) and of type Immutable<T>
export type Immutable<T> = T & (ImmutableObject<T> | ImmutableArray<T>);
export function from<T>(obj: Array<T>, options?: Options): Array<T> & ImmutableArray<T>;
export function from<T>(obj: T[], options?: Options): T[] & ImmutableArray<T>;
export function from<T>(obj: T, options?: Options): T & ImmutableObject<T>;
export function isImmutable(target: any): boolean;
+2 -2
View File
@@ -18,7 +18,7 @@ declare namespace serveIndex {
interface Locals {
directory: string;
displayIcons: boolean;
fileList: Array<File>;
fileList: File[];
name: string;
stat: fs.Stats;
path: string;
@@ -29,7 +29,7 @@ declare namespace serveIndex {
type templateCallback = (error: Error, htmlString?: string) => void;
interface Options {
filter?: (filename: string, index: number, files: Array<File>, dir: string) => boolean;
filter?: (filename: string, index: number, files: File[], dir: string) => boolean;
hidden?: boolean;
icons?: boolean;
stylesheet?: string;
+5 -5
View File
@@ -289,7 +289,7 @@ interface Cache {
* @param request The Request you are attempting to find in the Cache.
* @param {CacheOptions} options
*/
matchAll(request: Request | string, options?: CacheOptions): Promise<Array<Response>>;
matchAll(request: Request | string, options?: CacheOptions): Promise<Response[]>;
/**
* Returns a Promise that resolves to a new Cache entry whose key
@@ -305,7 +305,7 @@ interface Cache {
*
* @param request An array of Request objects you want to add to the cache.
*/
addAll(...request: Array<Request | string>): Promise<void>;
addAll(...request: (Request | string)[]): Promise<void>;
/**
* Adds additional key/value pairs to the current Cache object.
@@ -331,7 +331,7 @@ interface Cache {
* @param request The Request want to return, if a specific key is desired.
* @param {CacheOptions} options
*/
keys(request?: Request, options?: CacheOptions): Promise<Array<Request>>;
keys(request?: Request, options?: CacheOptions): Promise<Request[]>;
}
/**
@@ -459,7 +459,7 @@ interface ServiceWorkerClients {
*
* @param options
*/
matchAll(options: ServiceWorkerClientsMatchOptions): Promise<Array<ServiceWorkerClient>>;
matchAll(options: ServiceWorkerClientsMatchOptions): Promise<ServiceWorkerClient[]>;
/**
* Opens a service worker Client in a new browser window.
@@ -751,7 +751,7 @@ interface ServiceWorkerContainer {
* ServiceWorkerContainer in an array. If the method can't return
* ServiceWorkerRegistrations, it returns a Promise.
*/
getRegistrations(): Promise<Array<ServiceWorkerRegistration>>;
getRegistrations(): Promise<ServiceWorkerRegistration[]>;
}
/**
+1 -1
View File
@@ -133,7 +133,7 @@ declare namespace ShopifyBuy {
/**
* Fetches a list of collections matching a specified query.
*/
fetchQueryCollections(query?: any): Promise<Array<any>>;
fetchQueryCollections(query?: any): Promise<any[]>;
/**
* Fetches a list of products matching a specified query.
+1 -1
View File
@@ -70,7 +70,7 @@ declare namespace SignaturePad {
}
declare class SignaturePad {
points: Array<SignaturePad.Point>;
points: SignaturePad.Point[];
_lastVelocity: number;
_lastWidth: number;
_isEmpty: boolean;
+2 -2
View File
@@ -85,10 +85,10 @@ declare namespace SimpleMDE {
shortcuts?: ShortcutsArray;
showIcons?: string[];
spellChecker?: boolean;
status?: boolean|Array<string|StatusBarItem>;
status?: boolean|(string|StatusBarItem)[];
styleSelectedText?: boolean;
tabSize?: number;
toolbar?: boolean|Array<string|ToolbarIcon>;
toolbar?: boolean|(string|ToolbarIcon)[];
toolbarTips?: boolean;
}
}
+3 -3
View File
@@ -325,12 +325,12 @@ declare namespace Snap {
polyline(varargs: any[]): Snap.Element;
rect(x: number, y: number, width: number, height: number, rx?: number, ry?: number): Snap.Element;
text(x: number, y: number, text: string|number): Snap.Element;
text(x: number, y: number, text: Array<string|number>): Snap.Element;
text(x: number, y: number, text: (string|number)[]): Snap.Element;
}
export interface Set {
animate(attrs: {[attr: string]: string|number|boolean|any}, duration: number, easing?: (num: number) => number, callback?: () => void): Snap.Element;
animate(...params: Array<{attrs: any, duration: number, easing: (num: number) => number, callback?: () => void}>): Snap.Element;
animate(...params: ({attrs: any, duration: number, easing: (num: number) => number, callback?: () => void})[]): Snap.Element;
attr(params: {[attr: string]: string|number|boolean|any}): Snap.Element;
attr(param: string): string;
bind(attr: string, callback: Function): Snap.Set;
@@ -369,7 +369,7 @@ declare namespace Snap {
getPointAtLength(path: string, length: number): Object;
getSubpath(path: string, from: number, to: number): string;
getTotalLength(path: string): number;
intersection(path1: string, path2: string): Array<IntersectionDot>;
intersection(path1: string, path2: string): IntersectionDot[];
isBBoxIntersect(bbox1: BBox, bbox2: BBox): boolean;
isPointInside(path: string, x: number, y: number): boolean;
isPointInsideBBox(bbox: BBox, x: number, y: number): boolean;
+5 -5
View File
@@ -167,7 +167,7 @@ declare class SparkPost {
*/
all(callback: SparkPost.ResultsCallback<SparkPost.SubaccountInformation[]>): void;
/**
*
*
* @param subaccountId The webhook id
* @param callback The request callback with subaccount information results
*/
@@ -286,13 +286,13 @@ declare class SparkPost {
* List currently existing webhooks.
* @param callback The request callback with RelayWebhook results array
*/
all(callback: SparkPost.ResultsCallback<Array<SparkPost.WebhookLinks & SparkPost.Webhook>>): void;
all(callback: SparkPost.ResultsCallback<(SparkPost.WebhookLinks & SparkPost.Webhook)[]>): void;
/**
* List currently existing webhooks.
* @param options Object containing optional timezone
* @param callback The request callback with RelayWebhook results array
*/
all(options: { timezone?: string }, callback: SparkPost.ResultsCallback<Array<SparkPost.WebhookLinks & SparkPost.Webhook>>): void;
all(options: { timezone?: string }, callback: SparkPost.ResultsCallback<(SparkPost.WebhookLinks & SparkPost.Webhook)[]>): void;
/**
* Retrieve details about a specified webhook by its id
* @param options Object containing id and optional timezone
@@ -343,7 +343,7 @@ declare class SparkPost {
}[]>): void;
/**
* Lists descriptions of the events, event types, and event fields that could be included in a Webhooks post to your target URL.
* @param callback The request callback containing documentation results
* @param callback The request callback containing documentation results
*/
getDocumentation(callback: SparkPost.ResultsCallback<any>): void;
/**
@@ -463,7 +463,7 @@ declare namespace SparkPost {
export interface MessageEventParameters {
/** delimited list of bounce classification codes to search. (See Bounce Classification Codes.) */
bounce_classes?: Array<string | number> | string | number;
bounce_classes?: (string | number)[] | string | number;
/** delimited list of campaign ID’s to search (i.e. the campaign id used during creation of a transmission). */
campaign_ids?: string[] | string;
/** Specifies the delimiter for query parameter lists */
+7 -7
View File
@@ -13,13 +13,13 @@ declare namespace StringTemplate {
* Format
*/
interface Format {
// Format using an object hash with keys matching [0-9a-zA-Z]+
// Format using an object hash with keys matching [0-9a-zA-Z]+
(string: string, object: any): string;
// Format using a number indexed array
(string: string, array: Array<any>): string;
// Format using optional arguments
(string: string, ...array: Array<any>): string;
// Escape {} pairs by using double {{}}
(string: string, array: any[]): string;
// Format using optional arguments
(string: string, ...array: any[]): string;
// Escape {} pairs by using double {{}}
(string: string): string;
}
@@ -32,8 +32,8 @@ declare namespace StringTemplate {
interface Template {
(object: any): string;
(array: Array<any>): string;
(...array: Array<any>): string;
(array: any[]): string;
(...array: any[]): string;
}
}
+69 -69
View File
@@ -793,7 +793,7 @@ declare namespace Ti {
setImage (image: Ti.Filesystem.File): void;
setImage (index: number, image: CoverFlowImageType): void;
setImages (images: string[]): void;
setImages (images: Array<Ti.Blob>): void;
setImages (images: Ti.Blob[]): void;
setImages (images: Array<Ti.Filesystem.File>): void;
setImages (images: Array<CoverFlowImageType>): void;
setSelected (selected: number): void;
@@ -814,12 +814,12 @@ declare namespace Ti {
openWindow (window: Ti.UI.Window, options: Dictionary<Object>): void;
}
export interface AttributedString extends Ti.Proxy {
attributes: Array<Attribute>;
attributes: Attribute[];
text: string;
addAttribute (attribute: Attribute): void;
getAttributes (): Array<Attribute>;
getAttributes (): Attribute[];
getText (): string;
setAttributes (attributes: Array<Attribute>): void;
setAttributes (attributes: Attribute[]): void;
setText (text: string): void;
}
export interface AnchorAttachmentBehavior extends Ti.Proxy {
@@ -851,7 +851,7 @@ declare namespace Ti {
getStyle (): number;
setIndex (index: number): void;
setLabels (labels: string[]): void;
setLabels (labels: Array<BarItemType>): void;
setLabels (labels: BarItemType[]): void;
setStyle (style: number): void;
}
export interface _3DMatrix extends Ti.Proxy {
@@ -1500,7 +1500,7 @@ declare namespace Ti {
getStyle (): number;
setIndex (index: number): void;
setLabels (labels: string[]): void;
setLabels (labels: Array<BarItemType>): void;
setLabels (labels: BarItemType[]): void;
setStyle (style: number): void;
}
export interface Slider extends Ti.UI.View {
@@ -1676,16 +1676,16 @@ declare namespace Ti {
}
export interface DashboardView extends Ti.UI.View {
columnCount: number;
data: Array<Ti.UI.DashboardItem>;
data: Ti.UI.DashboardItem[];
editable: boolean;
rowCount: number;
wobble: boolean;
getColumnCount (): number;
getData (): Array<Ti.UI.DashboardItem>;
getData (): Ti.UI.DashboardItem[];
getEditable (): boolean;
getRowCount (): number;
getWobble (): boolean;
setData (data: Array<Ti.UI.DashboardItem>): void;
setData (data: Ti.UI.DashboardItem[]): void;
setEditable (editable: boolean): void;
setWobble (wobble: boolean): void;
startEditing (): void;
@@ -1775,7 +1775,7 @@ declare namespace Ti {
getStyle (): number;
setIndex (index: number): void;
setLabels (labels: string[]): void;
setLabels (labels: Array<BarItemType>): void;
setLabels (labels: BarItemType[]): void;
setStyle (style: number): void;
}
export interface Window extends Ti.UI.View {
@@ -2760,7 +2760,7 @@ declare namespace Ti {
setImage (image: Ti.Filesystem.File): void;
setImage (index: number, image: CoverFlowImageType): void;
setImages (images: string[]): void;
setImages (images: Array<Ti.Blob>): void;
setImages (images: Ti.Blob[]): void;
setImages (images: Array<Ti.Filesystem.File>): void;
setImages (images: Array<CoverFlowImageType>): void;
setSelected (selected: number): void;
@@ -2805,7 +2805,7 @@ declare namespace Ti {
setImage (image: Ti.Blob): void;
setImage (image: Ti.Filesystem.File): void;
setImages (images: string[]): void;
setImages (images: Array<Ti.Blob>): void;
setImages (images: Ti.Blob[]): void;
setImages (images: Array<Ti.Filesystem.File>): void;
setPreventDefaultImage (preventDefaultImage: boolean): void;
setRepeatCount (repeatCount: number): void;
@@ -3121,12 +3121,12 @@ declare namespace Ti {
export interface PickerColumn extends Ti.UI.View {
font: Font;
rowCount: number;
rows: Array<Ti.UI.PickerRow>;
rows: Ti.UI.PickerRow[];
selectedRow: Ti.UI.PickerRow;
addRow (row: Ti.UI.PickerRow): void;
getFont (): Font;
getRowCount (): number;
getRows (): Array<Ti.UI.PickerRow>;
getRows (): Ti.UI.PickerRow[];
getSelectedRow (): Ti.UI.PickerRow;
removeRow (row: Ti.UI.PickerRow): void;
setFont (font: Font): void;
@@ -3196,7 +3196,7 @@ declare namespace Ti {
useSpinner: boolean;
value: Date;
visibleItems: number;
add (data: Array<Ti.UI.PickerRow>): void;
add (data: Ti.UI.PickerRow[]): void;
add (data: Ti.UI.PickerRow): void;
add (data: Array<Ti.UI.PickerColumn>): void;
add (data: Ti.UI.PickerColumn): void;
@@ -4361,10 +4361,10 @@ declare namespace Ti {
selected: boolean;
createEvent (properties: Dictionary<Ti.Android.Calendar.Event>): Ti.Android.Calendar.Event;
getEventById (id: number): Ti.Android.Calendar.Event;
getEventsBetweenDates (date1: Date, date2: Date): Array<Ti.Android.Calendar.Event>;
getEventsInDate (year: number, month: number, day: number): Array<Ti.Android.Calendar.Event>;
getEventsInMonth (year: number, month: number): Array<Ti.Android.Calendar.Event>;
getEventsInYear (year: number): Array<Ti.Android.Calendar.Event>;
getEventsBetweenDates (date1: Date, date2: Date): Ti.Android.Calendar.Event[];
getEventsInDate (year: number, month: number, day: number): Ti.Android.Calendar.Event[];
getEventsInMonth (year: number, month: number): Ti.Android.Calendar.Event[];
getEventsInYear (year: number): Ti.Android.Calendar.Event[];
getHidden (): boolean;
getId (): string;
getName (): string;
@@ -4655,19 +4655,19 @@ declare namespace Ti {
export function createPerson (parameters?: Dictionary<Ti.Contacts.Person>): Ti.Contacts.Person;
export function fireEvent (name: string, event: Dictionary<Object>): void;
export function getAllGroups (): Array<Ti.Contacts.Group>;
export function getAllPeople (limit: number): Array<Ti.Contacts.Person>;
export function getAllPeople (limit: number): Ti.Contacts.Person[];
export function getApiName (): string;
export function getBubbleParent (): boolean;
export function getContactsAuthorization (): number;
export function getGroupByID (id: number): Ti.Contacts.Group;
export function getPeopleWithName (name: string): Array<Ti.Contacts.Person>;
export function getPeopleWithName (name: string): Ti.Contacts.Person[];
export function getPersonByID (id: number): Ti.Contacts.Person;
export function removeEventListener (name: string, callback: (...args: any[]) => any): void;
export function removeGroup (group: Ti.Contacts.Group): void;
export function removePerson (person: Ti.Contacts.Person): void;
export function requestAuthorization (callback: (...args: any[]) => any): void;
export function revert (): void;
export function save (contacts: Array<Ti.Contacts.Person>): void;
export function save (contacts: Ti.Contacts.Person[]): void;
export function setBubbleParent (bubbleParent: boolean): void;
export function showContacts (params: showContactsParams): void;
export namespace Tizen {
@@ -4690,11 +4690,11 @@ declare namespace Ti {
add (person: Ti.Contacts.Person): void;
getName (): string;
getRecordId (): number;
members (): Array<Ti.Contacts.Person>;
members (): Ti.Contacts.Person[];
remove (person: Ti.Contacts.Person): void;
setName (name: string): void;
setRecordId (recordId: number): void;
sortedMembers (sortBy: number): Array<Ti.Contacts.Person>;
sortedMembers (sortBy: number): Ti.Contacts.Person[];
}
export interface Person extends Ti.Proxy {
address: Dictionary<Object>;
@@ -4986,7 +4986,7 @@ declare namespace Ti {
export function openMusicLibrary (options: MusicLibraryOptionsType): void;
export function openPhotoGallery (options: PhotoGalleryOptionsType): void;
export function previewImage (options: Dictionary<PreviewImageOptions>): void;
export function queryMusicLibrary (query: MediaQueryType): Array<Ti.Media.Item>;
export function queryMusicLibrary (query: MediaQueryType): Ti.Media.Item[];
export function removeEventListener (name: string, callback: (...args: any[]) => any): void;
export function requestAuthorization (callback: (...args: any[]) => any): void;
export function saveToPhotoGallery (media: Ti.Blob, callbacks: any): void;
@@ -5197,7 +5197,7 @@ declare namespace Ti {
seekForward (): void;
setCurrentPlaybackTime (currentPlaybackTime: number): void;
setQueue (queue: Ti.Media.Item): void;
setQueue (queue: Array<Ti.Media.Item>): void;
setQueue (queue: Ti.Media.Item[]): void;
setQueue (queue: PlayerQueue): void;
setRepeatMode (repeatMode: number): void;
setShuffleMode (shuffleMode: number): void;
@@ -5406,26 +5406,26 @@ declare namespace Ti {
export var VISIBILITY_DEFAULT: number;
export var VISIBILITY_PRIVATE: number;
export var VISIBILITY_PUBLIC: number;
export var allAlerts: Array<Ti.Calendar.Alert>;
export var allCalendars: Array<Ti.Calendar.Calendar>;
export var allEditableCalendars: Array<Ti.Calendar.Calendar>;
export var allAlerts: Ti.Calendar.Alert[];
export var allCalendars: Ti.Calendar.Calendar[];
export var allEditableCalendars: Ti.Calendar.Calendar[];
export var apiName: string;
export var bubbleParent: boolean;
export var defaultCalendar: Ti.Calendar.Calendar;
export var eventsAuthorization: number;
export var selectableCalendars: Array<Ti.Calendar.Calendar>;
export var selectableCalendars: Ti.Calendar.Calendar[];
export function addEventListener (name: string, callback: (...args: any[]) => any): void;
export function applyProperties (props: Dictionary<Object>): void;
export function fireEvent (name: string, event: Dictionary<Object>): void;
export function getAllAlerts (): Array<Ti.Calendar.Alert>;
export function getAllCalendars (): Array<Ti.Calendar.Calendar>;
export function getAllEditableCalendars (): Array<Ti.Calendar.Calendar>;
export function getAllAlerts (): Ti.Calendar.Alert[];
export function getAllCalendars (): Ti.Calendar.Calendar[];
export function getAllEditableCalendars (): Ti.Calendar.Calendar[];
export function getApiName (): string;
export function getBubbleParent (): boolean;
export function getCalendarById (id: string): Ti.Calendar.Calendar;
export function getDefaultCalendar (): Ti.Calendar.Calendar;
export function getEventsAuthorization (): number;
export function getSelectableCalendars (): Array<Ti.Calendar.Calendar>;
export function getSelectableCalendars (): Ti.Calendar.Calendar[];
export function removeEventListener (name: string, callback: (...args: any[]) => any): void;
export function requestEventsAuthorization (callback: (...args: any[]) => any): void;
export function setBubbleParent (bubbleParent: boolean): void;
@@ -5436,10 +5436,10 @@ declare namespace Ti {
selected: boolean;
createEvent (properties: Dictionary<Ti.Calendar.Event>): Ti.Calendar.Event;
getEventById (id: number): Ti.Calendar.Event;
getEventsBetweenDates (date1: Date, date2: Date): Array<Ti.Calendar.Event>;
getEventsInDate (year: number, month: number, day: number): Array<Ti.Calendar.Event>;
getEventsInMonth (year: number, month: number): Array<Ti.Calendar.Event>;
getEventsInYear (year: number): Array<Ti.Calendar.Event>;
getEventsBetweenDates (date1: Date, date2: Date): Ti.Calendar.Event[];
getEventsInDate (year: number, month: number, day: number): Ti.Calendar.Event[];
getEventsInMonth (year: number, month: number): Ti.Calendar.Event[];
getEventsInYear (year: number): Ti.Calendar.Event[];
getHidden (): boolean;
getId (): string;
getName (): string;
@@ -5454,7 +5454,7 @@ declare namespace Ti {
getMinutes (): number;
}
export interface Event extends Ti.Proxy {
alerts: Array<Ti.Calendar.Alert>;
alerts: Ti.Calendar.Alert[];
allDay: boolean;
availability: number;
begin: Date;
@@ -5476,7 +5476,7 @@ declare namespace Ti {
createAlert (data: Dictionary<Ti.Calendar.Alert>): Ti.Calendar.Alert;
createRecurenceRule (data: Dictionary<Ti.Calendar.RecurrenceRule>): Ti.Calendar.RecurrenceRule;
createReminder (data: Dictionary<Ti.Calendar.Reminder>): Ti.Calendar.Reminder;
getAlerts (): Array<Ti.Calendar.Alert>;
getAlerts (): Ti.Calendar.Alert[];
getAllDay (): boolean;
getAvailability (): number;
getBegin (): Date;
@@ -5499,7 +5499,7 @@ declare namespace Ti {
remove (span: number): boolean;
removeRecurenceRule (rule: Ti.Calendar.RecurrenceRule): void;
save (span: number): boolean;
setAlerts (alerts: Array<Ti.Calendar.Alert>): void;
setAlerts (alerts: Ti.Calendar.Alert[]): void;
setAllDay (allDay: boolean): void;
setBegin (begin: Date): void;
setEnd (end: Date): void;
@@ -6128,7 +6128,7 @@ declare class ErrorResponse {
}
declare class CloudPushNotificationsQueryResponse extends CloudResponse {
subscriptions: Array<Dictionary<Object>>;
subscriptions: Dictionary<Object>[];
}
declare class CloudResponse {
@@ -6188,7 +6188,7 @@ declare namespace Global {
}
declare class CloudGeoFenceResponse extends CloudResponse {
geo_fences: Array<Dictionary<Object>>;
geo_fences: Dictionary<Object>[];
}
declare class ServiceIntentOptions {
@@ -6255,7 +6255,7 @@ declare class ViewTemplate {
}
declare class CloudChatsResponse extends CloudResponse {
chats: Array<Dictionary<Object>>;
chats: Dictionary<Object>[];
}
declare class MediaQueryType {
@@ -6329,7 +6329,7 @@ declare class ForwardGeocodeResponse extends ErrorResponse {
}
declare class CloudEventsResponse extends CloudResponse {
events: Array<Dictionary<Object>>;
events: Dictionary<Object>[];
}
declare class ReadyStatePayload {
@@ -6394,7 +6394,7 @@ declare enum ContactsAuthorizationResponse {
}
declare class CloudCheckinsResponse extends CloudResponse {
checkins: Array<Dictionary<Object>>;
checkins: Dictionary<Object>[];
}
declare class CreateBufferArgs {
@@ -6410,7 +6410,7 @@ declare class CloudPushNotificationConfig {
}
declare class CloudReviewsResponse extends CloudResponse {
reviews: Array<Dictionary<Object>>;
reviews: Dictionary<Object>[];
}
declare class Point {
@@ -6419,7 +6419,7 @@ declare class Point {
}
declare class CloudPhotosResponse extends CloudResponse {
photos: Array<Dictionary<Object>>;
photos: Dictionary<Object>[];
}
declare class PushNotificationConfig {
@@ -6432,7 +6432,7 @@ declare class PushNotificationConfig {
declare class MapRouteType {
color: string;
name: string;
points: Array<MapPointType>;
points: MapPointType[];
width: number;
}
@@ -6486,11 +6486,11 @@ declare class WriteStreamCallbackArgs extends ErrorResponse {
}
declare class CloudChatGroupsResponse extends CloudResponse {
chat_groups: Array<Dictionary<Object>>;
chat_groups: Dictionary<Object>[];
}
declare class CloudPhotoCollectionsPhotosResponse extends CloudResponse {
photos: Array<Dictionary<Object>>;
photos: Dictionary<Object>[];
}
declare class DecodeNumberDict {
@@ -6505,11 +6505,11 @@ declare class ConnectedCallbackArgs {
}
declare class CloudPhotoCollectionsResponse extends CloudResponse {
collections: Array<Dictionary<Object>>;
collections: Dictionary<Object>[];
}
declare class CloudObjectsResponse extends CloudResponse {
classname: Array<Dictionary<Object>>;
classname: Dictionary<Object>[];
}
declare class PopoverParams {
@@ -6528,11 +6528,11 @@ declare class CloudPushNotificationsQueryChannelResponse extends CloudResponse {
}
declare class CloudPostsResponse extends CloudResponse {
posts: Array<Dictionary<Object>>;
posts: Dictionary<Object>[];
}
declare class CloudSocialIntegrationsResponse extends CloudResponse {
users: Array<Dictionary<Object>>;
users: Dictionary<Object>[];
}
declare class APSConnectionDelegate {
@@ -6570,17 +6570,17 @@ declare class CloudStreamProgress {
}
declare class MusicLibraryResponseType {
items: Array<Ti.Media.Item>;
items: Ti.Media.Item[];
representative: Ti.Media.Item;
types: number;
}
declare class CloudEventOccurrencesResponse extends CloudResponse {
event_occurrences: Array<Dictionary<Object>>;
event_occurrences: Dictionary<Object>[];
}
declare class CloudUsersResponse extends CloudResponse {
users: Array<Dictionary<Object>>;
users: Dictionary<Object>[];
}
declare class TableViewContentInsetOption {
@@ -6589,11 +6589,11 @@ declare class TableViewContentInsetOption {
}
declare class CloudFriendRequestsResponse extends CloudResponse {
friend_requests: Array<Dictionary<Object>>;
friend_requests: Dictionary<Object>[];
}
declare class CloudACLsResponse extends CloudResponse {
acls: Array<Dictionary<Object>>;
acls: Dictionary<Object>[];
}
declare class ListViewMarkerProps {
@@ -6608,7 +6608,7 @@ declare class EventsAuthorizationResponse {
}
declare class PlayerQueue {
items: Array<Ti.Media.Item>;
items: Ti.Media.Item[];
}
declare class CoverFlowImageType {
@@ -6641,7 +6641,7 @@ declare class PushNotificationErrorArg {
}
declare class CloudStatusesResponse extends CloudResponse {
statuses: Array<Dictionary<Object>>;
statuses: Dictionary<Object>[];
}
declare class windowToolbarParam {
@@ -6669,7 +6669,7 @@ declare class GeocodedAddress {
}
declare class ContactsCallbackArgs extends ErrorResponse {
data: Array<Ti.Contacts.Person>;
data: Ti.Contacts.Person[];
}
declare class zoomScaleOption {
@@ -6698,7 +6698,7 @@ declare class CloudUsersSecureDialog {
}
declare class CloudFriendsResponse extends CloudResponse {
users: Array<Dictionary<Object>>;
users: Dictionary<Object>[];
}
declare class PhotoGalleryOptionsType {
@@ -6814,7 +6814,7 @@ declare class Font {
}
declare class CloudPlacesResponse extends CloudResponse {
places: Array<Dictionary<Object>>;
places: Dictionary<Object>[];
}
declare class EncodeNumberDict {
@@ -6847,7 +6847,7 @@ declare class FacebookDialogResponsev1 {
}
declare class CloudFilesResponse extends CloudResponse {
files: Array<Dictionary<Object>>;
files: Dictionary<Object>[];
}
declare class hideParams {
@@ -6907,7 +6907,7 @@ declare class MapPointType {
}
declare class CloudKeyValuesResponse extends CloudResponse {
keyvalues: Array<Dictionary<Object>>;
keyvalues: Dictionary<Object>[];
}
declare class TableViewEdgeInsets {
@@ -6948,7 +6948,7 @@ declare class closeWindowParams {
}
declare class CloudLikesResponse extends CloudResponse {
likes: Array<Dictionary<Object>>;
likes: Dictionary<Object>[];
}
declare class showParams {
@@ -6962,7 +6962,7 @@ declare class PreviewImageError {
}
declare class CloudMessagesResponse extends CloudResponse {
messages: Array<Dictionary<Object>>;
messages: Dictionary<Object>[];
}
declare class CloudPushNotificationsShowChannelResponse extends CloudResponse {
+3 -3
View File
@@ -18,7 +18,7 @@ declare namespace turf {
* @param aggregations An array of aggregation objects
* @returns Polygons with properties listed based on outField values in aggregations
*/
function aggregate(polygons: GeoJSON.FeatureCollection<GeoJSON.Polygon>, points: GeoJSON.FeatureCollection<GeoJSON.Point>, aggregations: Array<{aggregation: string, inField: string, outField: string}>): GeoJSON.FeatureCollection<GeoJSON.Polygon>;
function aggregate(polygons: GeoJSON.FeatureCollection<GeoJSON.Polygon>, points: GeoJSON.FeatureCollection<GeoJSON.Point>, aggregations: {aggregation: string, inField: string, outField: string}[]): GeoJSON.FeatureCollection<GeoJSON.Polygon>;
/**
* Calculates the average value of a field for a set of points within a set of polygons.
@@ -366,7 +366,7 @@ declare namespace turf {
* @param features Input features
* @returns A FeatureCollection of input features
*/
function featurecollection(features: Array<GeoJSON.Feature<any>>): GeoJSON.FeatureCollection<any>;
function featurecollection(features: GeoJSON.Feature<any>[]): GeoJSON.FeatureCollection<any>;
/**
* Creates a LineString based on a coordinate array. Properties can be added optionally.
@@ -390,7 +390,7 @@ declare namespace turf {
* @param [properties] An Object of key-value pairs to add as properties
* @returns A Polygon feature
*/
function polygon(rings: Array<number[][]>, properties?: any): GeoJSON.Feature<GeoJSON.Polygon>;
function polygon(rings: number[][][], properties?: any): GeoJSON.Feature<GeoJSON.Polygon>;
//////////////////////////////////////////////////////
// Data
+6 -6
View File
@@ -145,7 +145,7 @@ declare namespace twilio {
ttl: number;
identity: string;
nbf: number;
grants: Array<Grant>;
grants: Grant[];
static IpMessagingGrant: IpMessagingGrant;
static ConversationGrant: ConversationsGrant;
@@ -298,7 +298,7 @@ declare namespace twilio {
export class TaskRouterCapability {
accountSid: string;
authToken: string;
policies: Array<Policy>;
policies: Policy[];
workspaceSid: string;
channelId: string;
@@ -761,7 +761,7 @@ declare namespace twilio {
export interface WorkflowRuleOptions {
expression: string;
targets: Array<WorkflowRuleTargetOptions>;
targets: WorkflowRuleTargetOptions[];
// Don't ask me why, but all of these are supported options.
friendly_name?: string;
friendlyName?: string;
@@ -771,20 +771,20 @@ declare namespace twilio {
export class WorkflowRule {
friendly_name: string;
expression: string;
targets: Array<WorkflowRuleTarget>;
targets: WorkflowRuleTarget[];
friendlyName: string; // Defined property mapped to friendly_name.
constructor(options?: WorkflowRuleOptions);
}
export interface TaskRoutingConfigurationOptions {
filters: Array<WorkflowRuleOptions>;
filters: WorkflowRuleOptions[];
default_filter?: WorkflowRuleOptions;
defaultFilter?: WorkflowRuleOptions;
}
export class TaskRoutingConfiguration {
filters: Array<WorkflowRule>;
filters: WorkflowRule[];
default_filter: WorkflowRuleOptions;
defaultFilter: WorkflowRuleOptions; // Defined property mapped to default_filter.
+17 -17
View File
@@ -7629,7 +7629,7 @@ declare namespace std {
*
* @param array An array containing elements to be copied and contained.
*/
constructor(items: Array<T>);
constructor(items: T[]);
/**
* <p> Fill Constructor. </p>
*
@@ -9589,7 +9589,7 @@ declare namespace std {
*
* @param array An array containing elements to be copied and contained.
*/
constructor(items: Array<T>);
constructor(items: T[]);
/**
* <p> Fill Constructor. </p>
*
@@ -10242,7 +10242,7 @@ declare namespace std {
/**
* @inheritdoc
*/
constructor(array: Array<T>);
constructor(array: T[]);
/**
* <p> Initializer list Constructor. </p>
*
@@ -10932,14 +10932,14 @@ declare namespace std {
*
* @param array Elements to be contained.
*/
constructor(array: Array<T>);
constructor(array: T[]);
/**
* Contruct from elements with compare.
*
* @param array Elements to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<T>, compare: (left: T, right: T) => boolean);
constructor(array: T[], compare: (left: T, right: T) => boolean);
/**
* Copy Constructor.
*/
@@ -11242,14 +11242,14 @@ declare namespace std {
*
* @param array Elements to be contained.
*/
constructor(array: Array<T>);
constructor(array: T[]);
/**
* Contruct from elements with compare.
*
* @param array Elements to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<T>, compare: (x: T, y: T) => boolean);
constructor(array: T[], compare: (x: T, y: T) => boolean);
/**
* Copy Constructor.
*/
@@ -11418,27 +11418,27 @@ declare namespace std {
*
* @param array Elements to be contained.
*/
constructor(array: Array<Pair<Key, T>>);
constructor(array: Pair<Key, T>[]);
/**
* Contruct from elements.
*
* @param array Elements to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<Pair<Key, T>>, compare: (x: Key, y: Key) => boolean);
constructor(array: Pair<Key, T>[], compare: (x: Key, y: Key) => boolean);
/**
* Contruct from tuples.
*
* @param array Tuples to be contained.
*/
constructor(array: Array<[Key, T]>);
constructor(array: [Key, T][]);
/**
* Contruct from tuples.
*
* @param array Tuples to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<[Key, T]>, compare: (x: Key, y: Key) => boolean);
constructor(array: [Key, T][], compare: (x: Key, y: Key) => boolean);
/**
* Copy Constructor.
*
@@ -11614,14 +11614,14 @@ declare namespace std {
*
* @param array Elements to be contained.
*/
constructor(array: Array<T>);
constructor(array: T[]);
/**
* Contruct from elements with compare.
*
* @param array Elements to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<T>, compare: (x: T, y: T) => boolean);
constructor(array: T[], compare: (x: T, y: T) => boolean);
/**
* Copy Constructor.
*/
@@ -11805,27 +11805,27 @@ declare namespace std {
*
* @param array Elements to be contained.
*/
constructor(array: Array<Pair<Key, T>>);
constructor(array: Pair<Key, T>[]);
/**
* Contruct from elements.
*
* @param array Elements to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<Pair<Key, T>>, compare: (x: Key, y: Key) => boolean);
constructor(array: Pair<Key, T>[], compare: (x: Key, y: Key) => boolean);
/**
* Contruct from tuples.
*
* @param array Tuples to be contained.
*/
constructor(array: Array<[Key, T]>);
constructor(array: [Key, T][]);
/**
* Contruct from tuples.
*
* @param array Tuples to be contained.
* @param compare A binary predicate determines order of elements.
*/
constructor(array: Array<[Key, T]>, compare: (x: Key, y: Key) => boolean);
constructor(array: [Key, T][], compare: (x: Key, y: Key) => boolean);
/**
* Copy Constructor.
*
+2 -2
View File
@@ -189,10 +189,10 @@ declare namespace UIkit {
interface LightBox {
/**
* Create dynamic lightbox
* @param {Array<LightBoxItem>} items Group of items on the lightbox
* @param {LightBoxItem[]} items Group of items on the lightbox
* @return {LightBoxElement} The lightbox element to show
*/
create(items: Array<LightBoxItem>): LightBoxElement;
create(items: LightBoxItem[]): LightBoxElement;
/**
* Init element manually
*/
+6 -6
View File
@@ -94,7 +94,7 @@ declare namespace _ {
* @param key First argument to Underscore object functions.
**/
<T>(value: _.Dictionary<T>): Underscore<T>;
<T>(value: Array<T>): Underscore<T>;
<T>(value: T[]): Underscore<T>;
<T>(value: T): Underscore<T>;
/* *************
@@ -741,7 +741,7 @@ declare namespace _ {
* @return Array where Array[0] are the elements in `array` that satisfies the predicate, and Array[1] the elements that did not.
**/
partition<T>(
array: Array<T>,
array: T[],
iterator: _.ListIterator<T, boolean>,
context?: any): T[][];
@@ -5990,7 +5990,7 @@ declare namespace _ {
* @param arr Arrays and/or values to concatenate into a new array. See the discussion below for details.
* @return A new array comprised of the array on which it is called
**/
concat(...arr: Array<T[]>): _Chain<T>;
concat(...arr: T[][]): _Chain<T>;
/**
* Join all elements of an array into a string.
@@ -6010,7 +6010,7 @@ declare namespace _ {
* @param item The elements to add to the end of the array.
* @return The array with the element added to the end.
**/
push(...item: Array<T>): _Chain<T>;
push(...item: T[]): _Chain<T>;
/**
* Reverses an array in place. The first array element becomes the last and the last becomes the first.
@@ -6046,7 +6046,7 @@ declare namespace _ {
* @param items The element to add to the array. If you don't specify any elements, splice will only remove elements from the array.
* @return An array containing the deleted elements. If only one element is removed, an array of one element is returned. If no elements are removed, an empty array is returned.
**/
splice(index: number, quantity: number, ...items: Array<T>): _Chain<T>;
splice(index: number, quantity: number, ...items: T[]): _Chain<T>;
/**
* A string representing the specified array and its elements.
@@ -6059,7 +6059,7 @@ declare namespace _ {
* @param items The elements to add to the front of the array.
* @return The array with the element added to the beginning.
**/
unshift(...items: Array<T>): _Chain<T>;
unshift(...items: T[]): _Chain<T>;
/********** *
* Chaining *
+1 -1
View File
@@ -5,7 +5,7 @@
interface Uniq {
<T>(ip: Array<T>): Array<T>;
<T>(ip: T[]): T[];
}
declare var uniq: Uniq;