diff --git a/alt/index.d.ts b/alt/index.d.ts index 11ffa7a775..c5bcb4c4fd 100644 --- a/alt/index.d.ts +++ b/alt/index.d.ts @@ -55,11 +55,11 @@ declare namespace AltJS { export interface SourceModel { local(state: any, ...args: any[]): any; remote(state: any, ...args: any[]): Promise; - shouldFetch?(fetchFn: (...args: Array) => boolean): void; + shouldFetch?(fetchFn: (...args: any[]) => boolean): void; loading?: (args: any) => void; success?: (state: S) => void; error?: (args: any) => void; - interceptResponse?(response: any, action: Action, ...args: Array): any; + interceptResponse?(response: any, action: Action, ...args: any[]): any; } export interface AltStore { @@ -85,8 +85,8 @@ declare namespace AltJS { } export interface ActionsClass { - generateActions?( ...action: Array): void; - dispatch( ...payload: Array): void; + generateActions?( ...action: string[]): void; + dispatch( ...payload: any[]): void; actions?: Actions; } @@ -97,14 +97,14 @@ declare namespace AltJS { serialize?: (serializeFn: (data: Object) => string) => void; deserialize?: (deserializeFn: (serialData: string) => Object) => void; storeTransforms?: Array; - batchingFunction?: (callback: ( ...data: Array) => any) => void; + batchingFunction?: (callback: ( ...data: any[]) => any) => void; } class Alt { constructor(config?: AltConfig); actions: Actions; bootstrap(jsonData: string): void; - takeSnapshot( ...storeNames: Array): string; + takeSnapshot( ...storeNames: string[]): string; flush(): Object; recycle( ...stores: Array>): void; rollback(): void; @@ -113,8 +113,8 @@ declare namespace AltJS { //Actions methods addActions(actionsName: string, ActionsClass: ActionsClassConstructor): void; createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object): T; - createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: Array): T; - generateActions( ...actions: Array): T; + createActions(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: any[]): T; + generateActions( ...actions: string[]): T; getActions(actionsName: string): AltJS.Actions; //Stores methods @@ -129,8 +129,8 @@ declare namespace AltJS { type ActionsClassConstructor = new (alt: Alt) => AltJS.ActionsClass; - type ActionHandler = ( ...data: Array) => any; - type ExportConfig = {[key: string]: (...args: Array) => any}; + type ActionHandler = ( ...data: any[]) => any; + type ExportConfig = {[key: string]: (...args: any[]) => any}; } declare module "alt/utils/chromeDebug" { @@ -147,7 +147,7 @@ declare module "alt/AltContainer" { stores?: Array>; inject?: {[key: string]: any}; actions?: {[key: string]: Object}; - render?: (...props: Array) => React.ReactElement; + render?: (...props: any[]) => React.ReactElement; flux?: AltJS.Alt; transform?: (store: AltJS.AltStore, actions: any) => any; shouldComponentUpdate?: (props: any) => boolean; diff --git a/angular-environment/index.d.ts b/angular-environment/index.d.ts index ca558ff08b..4ff54f5199 100644 --- a/angular-environment/index.d.ts +++ b/angular-environment/index.d.ts @@ -48,7 +48,7 @@ declare namespace angular.environment { /** * Map of domains to their environments */ - domains: { [environment: string]: Array }; + domains: { [environment: string]: string[] }; /** * List of variables split by environment */ diff --git a/angular-es/index.d.ts b/angular-es/index.d.ts index 5b41f6a034..58c420b497 100644 --- a/angular-es/index.d.ts +++ b/angular-es/index.d.ts @@ -19,9 +19,9 @@ declare module 'angular-es' { interface ngESDecorator extends ClassDecorator, MethodDecorator { (target: Object|Function, ngName?: string, - ngArguments?: Array, + ngArguments?: any[], ngType?: string, - injectAsProperty?: Array): void; + injectAsProperty?: string[]): void; } /** @@ -109,20 +109,20 @@ declare module 'angular-es' { /** * Add $inject property to target * - * @param {Array} dependencies - dependencies to inject + * @param {string[]} dependencies - dependencies to inject * * @returns {ngESDecorator} - decorated class */ - function Inject(...dependencies: Array): ngESDecorator; + function Inject(...dependencies: string[]): ngESDecorator; /** * Inject dependencies as properties to target * - * @param {Array} dependencies - dependencies to inject + * @param {string[]} dependencies - dependencies to inject * * @returns {ngESDecorator} - decorated class */ - function InjectAsProperty(...dependencies: Array): ngESDecorator; + function InjectAsProperty(...dependencies: string[]): ngESDecorator; /** * Attach target to the specified module diff --git a/angular-hotkeys/index.d.ts b/angular-hotkeys/index.d.ts index f37171c416..83a487439a 100644 --- a/angular-hotkeys/index.d.ts +++ b/angular-hotkeys/index.d.ts @@ -17,9 +17,9 @@ declare module 'angular' { cheatSheetHotkey: string; cheatSheetDescription: string; - add(combo: string | string[], callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: Array, persistent?: boolean): ng.hotkeys.Hotkey; + add(combo: string | string[], callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: string[], persistent?: boolean): ng.hotkeys.Hotkey; - add(combo: string | string[], description: string, callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: Array, persistent?: boolean): ng.hotkeys.Hotkey; + add(combo: string | string[], description: string, callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: string[], persistent?: boolean): ng.hotkeys.Hotkey; add(hotkeyObj: ng.hotkeys.Hotkey): ng.hotkeys.Hotkey; @@ -47,7 +47,7 @@ declare module 'angular' { description?: string; callback: (event: Event, hotkey: ng.hotkeys.Hotkey) => void; action?: string; - allowIn?: Array; + allowIn?: string[]; persistent?: boolean; } } diff --git a/angular-localforage/index.d.ts b/angular-localforage/index.d.ts index 7d2c82120b..820b911a70 100644 --- a/angular-localforage/index.d.ts +++ b/angular-localforage/index.d.ts @@ -29,15 +29,15 @@ declare module 'angular' { setDriver(name: string | string[]): angular.IPromise; setItem(key: string, value: any): angular.IPromise; - setItem(keys: Array, values: Array): angular.IPromise; + setItem(keys: string[], values: any[]): angular.IPromise; getItem(key: string): angular.IPromise; - getItem(keys: Array): angular.IPromise>; + getItem(keys: string[]): angular.IPromise; - removeItem(key: string | Array): angular.IPromise; + removeItem(key: string | string[]): angular.IPromise; pull(key: string): angular.IPromise; - pull(keys: Array): angular.IPromise>; + pull(keys: string[]): angular.IPromise; clear(): angular.IPromise; diff --git a/angular-locker/index.d.ts b/angular-locker/index.d.ts index c9d0bf7720..85b5090c59 100644 --- a/angular-locker/index.d.ts +++ b/angular-locker/index.d.ts @@ -40,7 +40,7 @@ declare module 'angular' { * @param {String|Array} key The key to get * @param {Mixed} def The default value if it does not exist */ - get(key: string | Array, defaultValue?: any): any; + get(key: string | string[], defaultValue?: any): any; /** * Determine whether the item exists in storage * @@ -50,7 +50,7 @@ declare module 'angular' { /** * Get the storage keys as an array */ - keys(): Array; + keys(): string[]; /** * Add a new item to storage (even if it already exists) * @@ -90,14 +90,14 @@ declare module 'angular' { * @param {Array} keys The array of keys to remove * */ - forget(keys: Array): ILockerService; + forget(keys: string[]): ILockerService; /** * Retrieve the specified item from storage and then remove it * * @param {String|Array} key The key to pull from storage * @param {Mixed} def The default value if it does not exist */ - pull(key: string | Array, defaultValue?: any): any; + pull(key: string | string[], defaultValue?: any): any; /** * Bind a storage key to a $scope property * diff --git a/angular-media-queries/index.d.ts b/angular-media-queries/index.d.ts index b209b9cef3..bef49b2722 100644 --- a/angular-media-queries/index.d.ts +++ b/angular-media-queries/index.d.ts @@ -15,21 +15,21 @@ declare module 'angular' { // Returns a value indicating if the current device has a retina screen isRetina: boolean; - is(list: Array | string): boolean; + is(list: string[] | string): boolean; // Executes the callback function on window resize with the match truthiness as the first argument. // Returns the current match truthiness. // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. - on(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; + on(list: string[] | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; // Executes the callback function ONLY when the match differs from previous match. // Returns the current match truthiness. // The 'scope' parameter is required for cleanup reasons (destroy event). - onChange(scope: angular.IScope, list: Array | string, callback: (result: boolean) => void): boolean; + onChange(scope: angular.IScope, list: string[] | string, callback: (result: boolean) => void): boolean; // Executes the callback only when inside of the particular screensize. // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. - when(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; + when(list: string[] | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; } } } \ No newline at end of file diff --git a/angular-permission/angular-permission-2.3.1.d.ts b/angular-permission/angular-permission-2.3.1.d.ts index 015ee62801..1a1c774e18 100644 --- a/angular-permission/angular-permission-2.3.1.d.ts +++ b/angular-permission/angular-permission-2.3.1.d.ts @@ -73,7 +73,7 @@ declare namespace angular.permission { */ defineRole( role: string, - permissions: Array, + permissions: string[], validationFunction: RoleValidationFunction ): void; @@ -84,7 +84,7 @@ declare namespace angular.permission { * @param roleName {String} Name of defined role * @param permissions {Array} Set of permission names */ - defineRole(role: string, permissions: Array): void; + defineRole(role: string, permissions: string[]): void; /** * Checks if role is defined in store @@ -151,8 +151,8 @@ declare namespace angular.permission { export interface DataWithPermissions { permissions?: { - only?: (() => void) | Array | angular.IPromise; - except?: (() => void) | Array | angular.IPromise; + only?: (() => void) | string[] | angular.IPromise; + except?: (() => void) | string[] | angular.IPromise; redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | {[index: string]: PermissionRedirectConfigation} }; } diff --git a/angular-permission/index.d.ts b/angular-permission/index.d.ts index 28781cb5df..840a8d978a 100644 --- a/angular-permission/index.d.ts +++ b/angular-permission/index.d.ts @@ -183,8 +183,13 @@ declare module 'angular' { export interface DataWithPermissions { permissions?: { +<<<<<<< 031c230832f552d889e1df6834530c0218a336bb only?: (() => void) | string | string[] | angular.IPromise; except?: (() => void) | string | string[] | angular.IPromise; +======= + only?: (() => void) | string[] | angular.IPromise; + except?: (() => void) | string[] | angular.IPromise; +>>>>>>> WIP redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | { [index: string]: PermissionRedirectConfigation } }; } diff --git a/angular-resource/index.d.ts b/angular-resource/index.d.ts index 42f34fb02f..12e6755d95 100644 --- a/angular-resource/index.d.ts +++ b/angular-resource/index.d.ts @@ -199,7 +199,7 @@ declare module 'angular' { declare global { interface Array { /** the promise of the original server interaction that created this collection. **/ - $promise: angular.IPromise>; + $promise: angular.IPromise; $resolved: boolean; } } diff --git a/angular-signalr-hub/index.d.ts b/angular-signalr-hub/index.d.ts index c35890aa41..da6a74453a 100644 --- a/angular-signalr-hub/index.d.ts +++ b/angular-signalr-hub/index.d.ts @@ -39,7 +39,7 @@ declare namespace ngSignalr { /** * String array of server side methods which the client can call */ - methods?: Array; + methods?: string[]; /** * Sets the root path for the SignalR web service diff --git a/angular-translate/index.d.ts b/angular-translate/index.d.ts index 882b5d3a54..83c6a917c5 100644 --- a/angular-translate/index.d.ts +++ b/angular-translate/index.d.ts @@ -36,7 +36,7 @@ declare module 'angular' { } interface ITranslatePartialLoaderService extends IPartialLoader { - getRegisteredParts(): Array; + getRegisteredParts(): string[]; isPartLoaded(name: string, lang: string): boolean; } diff --git a/angular-ui-bootstrap/index.d.ts b/angular-ui-bootstrap/index.d.ts index 7163bef4be..bc23d9cd8d 100644 --- a/angular-ui-bootstrap/index.d.ts +++ b/angular-ui-bootstrap/index.d.ts @@ -616,7 +616,7 @@ declare module 'angular' { * * @default: ["one", "two", "three", "four", "five"] */ - titles?: Array; + titles?: string[]; } @@ -647,7 +647,7 @@ declare module 'angular' { * * @default null */ - meridians?: Array; + meridians?: string[]; /** * Whether the user can type inside the hours & minutes input. diff --git a/angular-ui-scroll/index.d.ts b/angular-ui-scroll/index.d.ts index 99639eccf4..19c40b8e6d 100644 --- a/angular-ui-scroll/index.d.ts +++ b/angular-ui-scroll/index.d.ts @@ -24,7 +24,7 @@ declare module 'angular' { * Important: Make sure to respect the index and count parameters of the request. The array passed to the * success method should have exactly count elements unless it hit eof/bof */ - get(index: number, count: number, success: (results: Array) => any): void; + get(index: number, count: number, success: (results: T[]) => any): void; } interface IScrollAdapter { diff --git a/angular-ui-sortable/index.d.ts b/angular-ui-sortable/index.d.ts index 7f50bf8c8c..c987ec5c65 100644 --- a/angular-ui-sortable/index.d.ts +++ b/angular-ui-sortable/index.d.ts @@ -28,7 +28,7 @@ declare module 'angular' { /** * Holds the array that is specified by the `ng-model` attribute of the [`droptarget`](#droptarget) ui-sortable element. */ - droptargetModel: Array; + droptargetModel: T[]; /** * Holds the original index of the item dragged. @@ -59,7 +59,7 @@ declare module 'angular' { /** * Holds the array that is specified by the `ng-model` of the [`source`](#source) ui-sortable element. */ - sourceModel: Array; + sourceModel: T[]; /** * Can be called inside the `update` callback, in order to prevent/revert a sorting. diff --git a/angular/index.d.ts b/angular/index.d.ts index 487d238c3f..65c0798c5d 100644 --- a/angular/index.d.ts +++ b/angular/index.d.ts @@ -122,7 +122,7 @@ declare namespace angular { fromJson(json: string): any; identity(arg?: T): T; injector(modules?: any[], strictDi?: boolean): auto.IInjectorService; - isArray(value: any): value is Array; + isArray(value: any): value is any[]; isDate(value: any): value is Date; isDefined(value: any): boolean; isElement(value: any): boolean; diff --git a/angular/legacy/angular-resource-1.2.d.ts b/angular/legacy/angular-resource-1.2.d.ts index 2ca3e7af45..5ab5ac1c71 100644 --- a/angular/legacy/angular-resource-1.2.d.ts +++ b/angular/legacy/angular-resource-1.2.d.ts @@ -122,7 +122,7 @@ declare namespace ng.resource { /** * Really just a regular Array object with $promise and $resolve attached to it */ - interface IResourceArray extends Array { + interface IResourceArray extends T[] { /** the promise of the original server interaction that created this collection. **/ $promise: ng.IPromise>; $resolved: boolean; @@ -144,8 +144,8 @@ declare namespace ng { } } -interface Array { +interface T[] { /** the promise of the original server interaction that created this collection. **/ - $promise: ng.IPromise>; + $promise: ng.IPromise; $resolved: boolean; } diff --git a/angular/legacy/angular-resource-1.3.d.ts b/angular/legacy/angular-resource-1.3.d.ts index 4b4b14ed9c..6535dec67a 100644 --- a/angular/legacy/angular-resource-1.3.d.ts +++ b/angular/legacy/angular-resource-1.3.d.ts @@ -179,6 +179,6 @@ declare namespace angular { interface Array { /** the promise of the original server interaction that created this collection. **/ - $promise: angular.IPromise>; + $promise: angular.IPromise; $resolved: boolean; } diff --git a/antd/index.d.ts b/antd/index.d.ts index 3fbcf03264..0a69e7d0c7 100644 --- a/antd/index.d.ts +++ b/antd/index.d.ts @@ -242,9 +242,9 @@ declare namespace Antd { /** 可选项数据源*/ options: Object; /** 默认的选中项*/ - defaultValue?: Array; + defaultValue?: any[]; /** 指定选中项*/ - value?: Array; + value?: any[]; /** 选择完成后的回调*/ onChange?: Function; /** 选择后展示的渲染函数*/ @@ -296,11 +296,11 @@ declare namespace Antd { interface CheckboxGroupProps { /** 默认选中的选项*/ - defaultValue?: Array; + defaultValue?: any[]; /** 指定选中的选项*/ - value?: Array; + value?: any[]; /** 指定可选项*/ - options?: Array; + options?: any[]; /** 变化时回调函数*/ onChange?: Function; } @@ -328,9 +328,9 @@ declare namespace Antd { interface CollapseProps { /** 当前激活 tab 面板的 key*/ - activeKey?: Array | string; + activeKey?: any[] | string; /** 初始化选中面板的key */ - defaultActiveKey?: Array; + defaultActiveKey?: string[]; /** 切换面板的回调*/ onChange?: Function; @@ -415,7 +415,7 @@ declare namespace Antd { interface DropdownProps { /** 触发下拉的行为 ['click'] or ['hover']*/ - trigger?: Array; + trigger?: string[]; /** 菜单节点*/ overlay: React.ReactNode; @@ -487,7 +487,7 @@ declare namespace Antd { // function create type CreateFormOptions = { /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值*/ - getFieldsValue(): (fieldNames?: Array) => any; + getFieldsValue(): (fieldNames?: string[]) => any; /** 获取一个输入控件的值*/ getFieldValue(): (fieldName: string) => any; /** 设置一组输入控件的值*/ @@ -495,15 +495,15 @@ declare namespace Antd { /** 设置一组输入控件的值*/ setFields(): (obj: Object) => void; /** 校验并获取一组输入域的值与 Error*/ - validateFields(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any; + validateFields(): (fieldNames?: string[], options?: Object, callback?: (erros: any, values: any) => void) => any; /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */ - validateFieldsAndScroll(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any; + validateFieldsAndScroll(): (fieldNames?: string[], options?: Object, callback?: (erros: any, values: any) => void) => any; /** 获取某个输入控件的 Error */ getFieldError(): (name: string) => Object; /** 判断一个输入控件是否在校验状态*/ isFieldValidating(): (name: string) => Object /**重置一组输入控件的值与状态,如不传入参数,则重置所有;组件*/ - resetFields(): (names?: Array) => void; + resetFields(): (names?: string[]) => void; getFieldsValue(): (id: string, options: { /** 子节点的值的属性,如 Checkbox 的是 'checked'*/ @@ -515,10 +515,10 @@ declare namespace Antd { /** 校验子节点值的时机*/ validateTrigger?: string, /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */ - rules?: Array, + rules?: any[], /** 必填输入控件唯一标志*/ id?: string - }) => Array; + }) => any[]; }; interface ComponentDecorator { @@ -552,7 +552,7 @@ declare namespace Antd { /** * 当 `Form.Item` 子节点的值发生改变时触发,可以把对应的值转存到 Redux store */ - onFieldsChange?: (props: Object, fields: Array) => void, + onFieldsChange?: (props: Object, fields: any[]) => void, /** 把 props 转为对应的值,可用于把 Redux store 中的值读出 */ mapPropsToFields?: (props: Object) => void }): ComponentDecorator; @@ -773,21 +773,21 @@ declare namespace Antd { /** 菜单类型 enum: `vertical` `horizontal` `inline`*/ mode?: MenuMode | string; /** 当前选中的菜单项 key 数组*/ - selectedKeys?: Array; + selectedKeys?: string[]; /** 初始选中的菜单项 key 数组*/ - defaultSelectedKeys?: Array; + defaultSelectedKeys?: string[]; /** 当前展开的菜单项 key 数组*/ - openKeys?: Array; + openKeys?: string[]; /** 初始展开的菜单项 key 数组*/ - defaultOpenKeys?: Array; + defaultOpenKeys?: string[]; /** * 被选中时调用 * - * @type {(item: any, key: string, selectedKeys: Array) => void} + * @type {(item: any, key: string, selectedKeys: string[]) => void} */ - onSelect?: (item: any, key: string, selectedKeys: Array) => void; + onSelect?: (item: any, key: string, selectedKeys: string[]) => void; /** 取消选中时调用*/ - onDeselect?: (item: any, key: string, selectedKeys: Array) => void; + onDeselect?: (item: any, key: string, selectedKeys: string[]) => void; /** 点击 menuitem 调用此函数*/ onClick?: (item: any, key: string) => void; /** 根节点样式*/ @@ -962,7 +962,7 @@ declare namespace Antd { /** 是否可以改变 pageSize */ showSizeChanger?: boolean; /** 指定每页可以显示多少条*/ - pageSizeOptions?: Array; + pageSizeOptions?: number[]; /** pageSize 变化的回调 */ onShowSizeChange?: Function; /** 是否可以快速跳转至某页*/ @@ -1128,21 +1128,21 @@ declare namespace Antd { // QueueAnim interface QueueAnimProps { /** 动画内置参数 `left` `right` `top` `bottom` `scale` `scaleBig` `scaleX` `scaleY`*/ - type?: string | Array; + type?: string | string[]; /** 配置动画参数 如 `{opacity:[1, 0],translateY:[0, -30]}` 具体参考 [velocity](http://julian.com/research/velocity) 的写法*/ - animConfig?: Object | Array; + animConfig?: Object | any[]; /** 整个动画的延时,以毫秒为单位*/ - delay?: number | Array; + delay?: number | any[]; /** 每个动画的时间,以毫秒为单位*/ - duration?: number | Array; + duration?: number | any[]; /** 每个动画的间隔时间,以毫秒为单位*/ - interval?: number | Array; + interval?: number | any[]; /** 出场时是否倒放,从最后一个 dom 开始往上播放 */ leaveReverse?: boolean; /** 动画的缓动函数,[查看详细](http://julian.com/research/velocity/#easing)*/ - ease?: string | Array; + ease?: string | any[]; /** 进出场动画进行中的类名*/ - animatingClassName?: Array; + animatingClassName?: string[]; /** QueueAnim 替换的标签名*/ component?: string; } @@ -1235,9 +1235,9 @@ declare namespace Antd { interface SelectProps { /** 指定当前选中的条目*/ - value?: string | Array; + value?: string | any[]; /** 指定默认选中的条目*/ - defaultValue?: string | Array; + defaultValue?: string | any[]; /** 支持多选*/ multiple?: boolean; /** 支持清除, 单选模式有效*/ @@ -1300,9 +1300,9 @@ declare namespace Antd { /** 分段标记,key 的类型必须为 `Number` 且取值在闭区间 [min, max] 内*/ marks?: { key: number, value: any }; /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ - value?: number | Array; + value?: number | number[]; /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ - defaultValue?: number | Array; + defaultValue?: number | number[]; /** `marks` 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列*/ included?: boolean; /** 值为 `true` 时,滑块为禁用状态*/ @@ -1432,7 +1432,7 @@ declare namespace Antd { checkbox, radio } - type SelectedRowKeys = Array; + type SelectedRowKeys = any[]; interface RowSelection { type?: RowSelectionType | string; selectedRowKeys?: SelectedRowKeys; @@ -1451,7 +1451,7 @@ declare namespace Antd { /** 生成复杂数据的渲染函数,参数分别为当前列的值,当前列数据,列索引,@return里面可以设置表格[行/列合并](#demo-colspan-rowspan)*/ render?: (text?: any, record?: any, index?: number) => React.ReactNode; /** 表头的筛选菜单项*/ - filters?: Array; + filters?: any[]; /** 本地模式下,确定筛选的运行函数*/ onFilter?: Function; /** 是否多选*/ @@ -1473,7 +1473,7 @@ declare namespace Antd { /** 正常或迷你类型 : `default` or `small` */ size?: string; /** 数据数组*/ - dataSource: Array; + dataSource: any[]; /** 表格列的配置描述*/ columns: Columns; /** 表格行 key 的取值*/ @@ -1481,7 +1481,7 @@ declare namespace Antd { /** 额外的展开行*/ expandedRowRender?: Function; /** 默认展开的行*/ - defaultExpandedRowKeys?: Array; + defaultExpandedRowKeys?: string[]; /** 分页、排序、筛选变化时触发*/ onChange?: (pagination: Object, filters: any, sorter: any) => void; /** 页面是否加载中*/ @@ -1699,11 +1699,11 @@ declare namespace Antd { // Transfer interface TransferProps { /** 数据源*/ - dataSource: Array; + dataSource: any[]; /** 每行数据渲染函数*/ render?: (record: Object) => any; /** 显示在右侧框数据的key集合*/ - targetKeys: Array; + targetKeys: string[]; /** 变化时回调函数*/ onChange?: (targetKeys: any, direction: string, moveKeys: any) => void; /** 两个穿梭框的自定义样式*/ @@ -1711,9 +1711,9 @@ declare namespace Antd { /** 自定义类*/ className?: string; /** 标题集合,顺序从左至右*/ - titles?: Array; + titles?: string[]; /** 操作文案集合,顺序从上至下*/ - operations?: Array; + operations?: string[]; /** 是否显示搜索框*/ showSearch?: boolean; /** 搜索框的默认值*/ @@ -1761,17 +1761,17 @@ declare namespace Antd { /** 默认展开所有树节点*/ defaultExpandAll?: boolean; /** 默认展开指定的树节点*/ - defaultExpandedKeys?: Array; + defaultExpandedKeys?: string[]; /** (受控)展开指定的树节点*/ - expandedKeys?: Array; + expandedKeys?: string[]; /** (受控)选中复选框的树节点*/ - checkedKeys?: Array; + checkedKeys?: string[]; /** 默认选中复选框的树节点*/ - defaultCheckedKeys?: Array; + defaultCheckedKeys?: string[]; /** (受控)设置选中的树节点*/ - selectedKeys?: Array; + selectedKeys?: string[]; /** 默认选中的树节点*/ - defaultSelectedKeys?: Array; + defaultSelectedKeys?: string[]; /** 展开/收起节点时触发 */ onExpand?: (node: any, expanded: any, expandedKeys: any) => void; /** 点击复选框触发*/ @@ -1830,9 +1830,9 @@ declare namespace Antd { interface TreeSelectProps { style?: Object; /** 指定当前选中的条目*/ - value?: string | Array; + value?: string | any[]; /** 指定默认选中的条目*/ - defaultValue?: string | Array; + defaultValue?: string | any[]; /** 支持多选*/ multiple?: boolean; /** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/ diff --git a/babylonjs/index.d.ts b/babylonjs/index.d.ts index 0f9d6a5235..05413db931 100644 --- a/babylonjs/index.d.ts +++ b/babylonjs/index.d.ts @@ -1349,7 +1349,7 @@ declare namespace BABYLON { color3InterpolateFunction(startValue: Color3, endValue: Color3, gradient: number): Color3; matrixInterpolateFunction(startValue: Matrix, endValue: Matrix, gradient: number): Matrix; clone(): Animation; - setKeys(values: Array): void; + setKeys(values: any[]): void; private _getKeyValue(value); private _interpolate(currentFrame, repeatCount, loopMode, offsetValue?, highLimitValue?); setValue(currentValue: any): void; @@ -2159,10 +2159,10 @@ declare namespace BABYLON { name: string; uniqueId: number; geometryId: string; - sphereCenter: Array; + sphereCenter: number[]; sphereRadius: number; - boxMinimum: Array; - boxMaximum: Array; + boxMinimum: number[]; + boxMaximum: number[]; worldMatrixFromCache: any; subMeshes: Array; checkCollisions: boolean; @@ -2174,10 +2174,10 @@ declare namespace BABYLON { indexStart: number; indexCount: number; hasMaterial: boolean; - sphereCenter: Array; + sphereCenter: number[]; sphereRadius: number; - boxMinimum: Array; - boxMaximum: Array; + boxMinimum: number[]; + boxMaximum: number[]; } interface SerializedGeometry { id: string; @@ -2190,9 +2190,9 @@ declare namespace BABYLON { payload: InitPayload | CollidePayload | UpdatePayload; } interface SerializedColliderToWorker { - position: Array; - velocity: Array; - radius: Array; + position: number[]; + velocity: number[]; + radius: number[]; } enum WorkerTaskType { INIT = 0, @@ -2205,7 +2205,7 @@ declare namespace BABYLON { payload?: any; } interface CollisionReplyPayload { - newPosition: Array; + newPosition: number[]; collisionId: number; collidedMeshUniqueId: number; } @@ -2224,8 +2224,8 @@ declare namespace BABYLON { updatedGeometries: { [s: string]: SerializedGeometry; }; - removedMeshes: Array; - removedGeometries: Array; + removedMeshes: number[]; + removedGeometries: string[]; } enum WorkerReplyType { SUCCESS = 0, @@ -4673,7 +4673,7 @@ declare namespace BABYLON { class DecimationTriangle { vertices: Array; normal: Vector3; - error: Array; + error: number[]; deleted: boolean; isDirty: boolean; borderFactor: number; @@ -4688,16 +4688,16 @@ declare namespace BABYLON { isBorder: boolean; triangleStart: number; triangleCount: number; - originalOffsets: Array; + originalOffsets: number[]; constructor(position: Vector3, id: any); updatePosition(newPosition: Vector3): void; } class QuadraticMatrix { - data: Array; - constructor(data?: Array); + data: number[]; + constructor(data?: number[]); det(a11: any, a12: any, a13: any, a21: any, a22: any, a23: any, a31: any, a32: any, a33: any): number; addInPlace(matrix: QuadraticMatrix): void; - addArrayInPlace(data: Array): void; + addArrayInPlace(data: number[]): void; add(matrix: QuadraticMatrix): QuadraticMatrix; static FromData(a: number, b: number, c: number, d: number): QuadraticMatrix; static DataFromNumbers(a: number, b: number, c: number, d: number): number[]; @@ -6375,7 +6375,7 @@ declare namespace BABYLON { declare namespace BABYLON { class SmartArray { - data: Array; + data: T[]; length: number; private _id; private _duplicateId; @@ -6501,7 +6501,7 @@ declare namespace BABYLON { minimum: Vector3; maximum: Vector3; }; - static MakeArray(obj: any, allowsNullUndefined?: boolean): Array; + static MakeArray(obj: any, allowsNullUndefined?: boolean): any[]; static GetPointerPrefix(): string; static QueueNewFrame(func: any): void; static RequestFullscreen(element: any): void; diff --git a/babyparse/index.d.ts b/babyparse/index.d.ts index c81bb5db16..3cf0f2dc6a 100644 --- a/babyparse/index.d.ts +++ b/babyparse/index.d.ts @@ -20,7 +20,7 @@ declare namespace BabyParse { */ unparse(data: Array, config?: UnparseConfig): string; - unparse(data: Array>, config?: UnparseConfig): string; + unparse(data: Array, config?: UnparseConfig): string; unparse(data: UnparseObject, config?: UnparseConfig): string; @@ -28,7 +28,7 @@ declare namespace BabyParse { * Read-Only Properties */ // An array of characters that are not allowed as delimiters. - BAD_DELIMETERS: Array; + BAD_DELIMETERS: string[]; // The true delimiter. Invisible. ASCII code 30. Should be doing the job we strangely rely upon commas and tabs for. RECORD_SEP: string; @@ -87,8 +87,8 @@ declare namespace BabyParse { } interface UnparseObject { - fields: Array; - data: string | Array; + fields: any[]; + data: string | any[]; } interface FileObject { @@ -107,7 +107,7 @@ declare namespace BabyParse { delimiter: string; // Delimiter used linebreak: string; // Line break sequence used aborted: boolean; // Whether process was aborted - fields: Array; // Array of field names + fields: string[]; // Array of field names truncated: boolean; // Whether preview consumed all input } @@ -119,7 +119,7 @@ declare namespace BabyParse { * meta: contains extra information about the parse, such as delimiter used, the newline sequence, whether the process was aborted, etc. Properties in this object are not guaranteed to exist in all situations */ interface ParseResult { - data: Array; + data: any[]; errors: Array; meta: ParseMeta; } diff --git a/better-curry/index.d.ts b/better-curry/index.d.ts index 3de4a8c9ff..ee65e3faa8 100644 --- a/better-curry/index.d.ts +++ b/better-curry/index.d.ts @@ -36,7 +36,7 @@ declare namespace BetterCurryModule { export interface BetterCurry { predefine: (fn: T, args: any[], context?: Object, len?: number, checkArguments?: boolean) => OriginalFunctionReminder; wrap: (fn: T, context?: Object, len?: number, checkArguments?: boolean) => OriginalFunctionReminder; - flatten: (...args: Array|any>) => any[]; + flatten: (...args: (any[]|any)[]) => any[]; delegate: (proto: T, target: string) => Delegate; MAX_OPTIMIZED: number; } diff --git a/bigint/index.d.ts b/bigint/index.d.ts index fb252bd57c..1902b5960a 100644 --- a/bigint/index.d.ts +++ b/bigint/index.d.ts @@ -7,7 +7,7 @@ // For answers, fixes and cutting edge version please see development repository. declare namespace BigInt { - export interface BigInt extends Array { + export interface BigInt extends number[] { } export interface IRandom { diff --git a/bingmaps/Microsoft.Maps.Directions.d.ts b/bingmaps/Microsoft.Maps.Directions.d.ts index e9f2fa9cf1..f71c9f909c 100644 --- a/bingmaps/Microsoft.Maps.Directions.d.ts +++ b/bingmaps/Microsoft.Maps.Directions.d.ts @@ -242,8 +242,8 @@ declare namespace Microsoft.Maps.Directions { maneuver: Maneuver; maneuverImageName: string; monetaryCost: number; - postIntersectionHints: Array; - preIntersectionHings: Array; + postIntersectionHints: string[]; + preIntersectionHings: string[]; startStopName: string; transitLine: TransitLine; transitStepIcon: string; @@ -384,9 +384,9 @@ declare namespace Microsoft.Maps.Directions { } export interface RoutePath { - decodedLatitudes: Array; - decodedLongitudes: Array; - decodedRegions: Array; + decodedLatitudes: number[]; + decodedLongitudes: number[]; + decodedRegions: any[]; } export interface RouteSummary { diff --git a/bingmaps/Microsoft.Maps.VenueMaps.d.ts b/bingmaps/Microsoft.Maps.VenueMaps.d.ts index 51b41815f5..10c1db8dbc 100644 --- a/bingmaps/Microsoft.Maps.VenueMaps.d.ts +++ b/bingmaps/Microsoft.Maps.VenueMaps.d.ts @@ -41,12 +41,12 @@ declare namespace Microsoft.Maps.VenueMaps { export interface Floor { name: string; primitives: Array; - zoomRange: Array; + zoomRange: number[]; } export interface Footprint { polygons: Array; - zoomRange: Array; + zoomRange: number[]; } export interface Metadata { diff --git a/bingmaps/index.d.ts b/bingmaps/index.d.ts index 67a285440f..1ad9e43e85 100644 --- a/bingmaps/index.d.ts +++ b/bingmaps/index.d.ts @@ -108,8 +108,8 @@ declare namespace Microsoft.Maps { focus(): void; getBounds(): LocationRect; getCenter(): Location; - getCopyrights(callback: (copyrights: Array) => void): void; - getCredentials(callback: (credentials: Array) => void): void; + getCopyrights(callback: (copyrights: string[]) => void): void; + getCredentials(callback: (credentials: string[]) => void): void; getHeading(): string; getHeight(): number; getImageryId: string; @@ -542,7 +542,7 @@ declare namespace Microsoft.Maps { export interface ModuleOptions { callback?: () => void; - styleURLS?: Array; + styleURLS?: string[]; culture?: string; homeRegion?: string; } diff --git a/blissfuljs/index.d.ts b/blissfuljs/index.d.ts index 7e84854ad1..d1bd7934be 100644 --- a/blissfuljs/index.d.ts +++ b/blissfuljs/index.d.ts @@ -13,7 +13,7 @@ interface Array { declare namespace BlissNS { export type BlissDecoratedElement = Element & T; - export type BlissDecoratedArrayElement = Array & BlissNS.BlissCollectionArray; + export type BlissDecoratedArrayElement = T[] & BlissNS.BlissCollectionArray; interface BlissStatic { (selector: string, context?: Element): BlissDecoratedElement; @@ -129,8 +129,8 @@ declare namespace BlissNS { create(...args: any[]): BlissDecoratedElement; set(subject: BlissDecoratedElement, options: Object): BlissDecoratedElement; - contents(subject: BlissDecoratedElement , elements: Object | Array | string | Number | Node): BlissDecoratedElement; - contents(subject: BlissDecoratedElement[], elements: Object | Array | string | Number | Node): BlissDecoratedElement[]; + contents(subject: BlissDecoratedElement , elements: Object | any[] | string | Number | Node): BlissDecoratedElement; + contents(subject: BlissDecoratedElement[], elements: Object | any[] | string | Number | Node): BlissDecoratedElement[]; clone(subject: BlissDecoratedElement): BlissDecoratedElement; after(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; around(subject: BlissDecoratedElement, element: Element): BlissDecoratedElement; @@ -160,8 +160,8 @@ declare namespace BlissNS { remove(subject: Element | BlissStatic): void; - all(array: Array, method: string, ...args: Array): Array; - all(array: Array, method: string, ...args: Array): Array; + all(array: any[], method: string, ...args: any[]): any[]; + all(array: T[], method: string, ...args: any[]): T[]; Class(options: { constructor?: Function; @@ -233,8 +233,8 @@ declare namespace BlissNS { include(condition: any, url: string ): Promise; include(url: string ): Promise; - add(name: string, callback: Function, on?: BlissStatic | BlissStaticCollection | Element | Array): void; - add(callbacks: {[callbackName: string]: Function}, on?: BlissStatic | BlissStaticCollection | Element | Array): void; + add(name: string, callback: Function, on?: BlissStatic | BlissStaticCollection | Element | any[]): void; + add(callbacks: {[callbackName: string]: Function}, on?: BlissStatic | BlissStaticCollection | Element | any[]): void; hooks: { add(name: string, callback: Function): void; @@ -246,7 +246,7 @@ declare namespace BlissNS { interface BlissStaticCollection extends BlissStatic { (selector: string, context?: Element): BlissDecoratedArrayElement; - (expr: Object, context?: Element): Array; + (expr: Object, context?: Element): T[]; (expr: Window, context?: Element): [Window]; (expr: Node, context?: Element): [Node]; } @@ -613,7 +613,7 @@ declare namespace BlissNS { interface BlissBindedElement extends BlissNativeExtentions { set(options: Object): BlissDecoratedElement; - contents(elements: Object | Array | string | Number | Node): BlissDecoratedElement; + contents(elements: Object | any[] | string | Number | Node): BlissDecoratedElement; clone(): BlissDecoratedElement; after(element: Element): BlissDecoratedElement; around(element: Element): BlissDecoratedElement; @@ -635,13 +635,13 @@ declare namespace BlissNS { } interface BlissBindedArray { - all(method: string, ...args: Array): Array; - all(method: string, ...args: Array): Array; + all(method: string, ...args: any[]): any[]; + all(method: string, ...args: any[]): T[]; } interface BlissCollectionArray { set(options: Object): BlissCollectionArray; - contents(elements: Object | Array | string | Number | Node): BlissCollectionArray; + contents(elements: Object | any[] | string | Number | Node): BlissCollectionArray; clone(): BlissCollectionArray; after(element: Element): BlissCollectionArray; around(element: Element): BlissCollectionArray; diff --git a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts index a0d8a9bbd6..612c659d34 100644 --- a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts +++ b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts @@ -49,7 +49,7 @@ export interface DatetimepickerOptions { useStrict?: boolean; direction?: string; sideBySide?: boolean; - daysOfWeekDisabled?: Array; + daysOfWeekDisabled?: number[]; calendarWeeks?: boolean; format?: string | boolean; locale?: string; diff --git a/bootstrap.v3.datetimepicker/index.d.ts b/bootstrap.v3.datetimepicker/index.d.ts index 71ad7f2f37..22f5b42495 100644 --- a/bootstrap.v3.datetimepicker/index.d.ts +++ b/bootstrap.v3.datetimepicker/index.d.ts @@ -83,14 +83,14 @@ export interface Datetimepicker { /**Returns the options.daysOfWeekDisabled configuration * IMPORTANT! Throws exception if not set explicitly https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1459 */ - daysOfWeekDisabled(): Array; + daysOfWeekDisabled(): number[]; /**Takes an [ Number:0 to 6 ] and disallow the user to select weekdays that exist in this array. * This has lower priority over the options.minDate, options.maxDate, options.disabledDates and options.enabledDates configuration settings. * Emits: * - dp.change - if the currently selected moment falls in the values passed on the daysOfWeek parameter. * - dp.error - if the currently selected moment falls in the values passed on the daysOfWeek parameter. */ - daysOfWeekDisabled(days: Array): void; + daysOfWeekDisabled(days: number[]): void; /**Returns the options.dayViewHeaderFormat option. */ dayViewHeaderFormat(): string; /**Used to customize the header of the day view. */ @@ -115,12 +115,12 @@ export interface Datetimepicker { */ disabledDates(dates: boolean | Array): void; /**Returns the options.disabledHours option. - * NOTES: probably should be: disabledHours(): boolean | Array; see: DatetimepickerOptions + * NOTES: probably should be: disabledHours(): boolean | number[]; see: DatetimepickerOptions */ disabledHours(): boolean | any; /**Must be in 24 hour format. Will disallow hour selections (much like disabledTimeIntervals) but will affect all days. * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ - disabledHours(value: boolean | Array): void; + disabledHours(value: boolean | number[]): void; /**Returns the options.disabledTimeIntervals option, or... not exactly * IMPORTANT! Creates an object from the options.disabledTimeIntervals with the keys being numbers, the values being the moment arrays. * eg { "0": [, ], "1": [...] } @@ -142,16 +142,16 @@ export interface Datetimepicker { */ enabledDates(dates: boolean | Array): void; /**Returns the options.enabledHours option. - * NOTES: probably should be: enabledHours(): boolean | Array; see: DatetimepickerOptions + * NOTES: probably should be: enabledHours(): boolean | number[]; see: DatetimepickerOptions */ enabledHours(): boolean | any; /**Must be in 24 hour format. Will allow hour selections (much like enabledTimeIntervals) but will affect all days. * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ - enabledHours(value: boolean | Array): void; + enabledHours(value: boolean | number[]): void; /**Returns a boolean or array with the options.extraFormats option configuration */ - extraFormats(): boolean | Array; + extraFormats(): boolean | string[]; /**Takes an array of valid input moment format options, or boolean:false */ - extraFormats(formats: boolean | Array): void; + extraFormats(formats: boolean | string[]): void; /**Returns the options.focusOnShow option. */ focusOnShow(): boolean; /**If false, the textbox will not be given focus when the picker is shown */ @@ -315,7 +315,7 @@ export interface DatetimepickerOptions { * Accepts: array of numbers from 0-6 * @default: false */ - daysOfWeekDisabled?: Array | boolean; + daysOfWeekDisabled?: number[] | boolean; /**Changes the heading of the datepicker when in "days" view. * @default: "MMMM YYYY" */ @@ -341,7 +341,7 @@ export interface DatetimepickerOptions { * eg disabledHours = [0, 1]; -> disabledHours will be { "0": true, "1": true } * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 */ - disabledHours?: boolean | Array | any; + disabledHours?: boolean | number[] | any; /**Disables time selection between the given moments * eg: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]] * @default: false @@ -360,11 +360,11 @@ export interface DatetimepickerOptions { * eg enabledHours = [0, 1]; -> enabledHours will be { "0": true, "1": true } * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 */ - enabledHours?: boolean | Array; + enabledHours?: boolean | number[]; /**Allows for several input formats to be valid. See: https://github.com/Eonasdan/bootstrap-datetimepicker/pull/666 * @default: false */ - extraFormats?: boolean | Array; + extraFormats?: boolean | string[]; /**If false, the textbox will not be given focus when the picker is shown * @default: true */ diff --git a/bytebuffer/index.d.ts b/bytebuffer/index.d.ts index 2f9f2f4823..f3c2b68c11 100644 --- a/bytebuffer/index.d.ts +++ b/bytebuffer/index.d.ts @@ -480,7 +480,7 @@ declare class ByteBuffer { * ] : markedOffset and limit, * ! : offset, markedOffset and limit */ - toDebug( columns?: boolean ): string | Array + toDebug( columns?: boolean ): string | string[] /** * Encodes this ByteBuffer's contents to a hex encoded string. diff --git a/c3/index.d.ts b/c3/index.d.ts index 90b670c73c..184cc1d747 100644 --- a/c3/index.d.ts +++ b/c3/index.d.ts @@ -17,7 +17,7 @@ declare namespace c3 { ids: ArrayOrString; } - type ArrayOrString = Array | string; + type ArrayOrString = string[] | string; interface ChartConfiguration { /** @@ -63,7 +63,7 @@ declare namespace c3 { /** * Set custom color pattern. */ - pattern?: Array; + pattern?: string[]; threshold?: any; // Undocumented }; @@ -274,7 +274,7 @@ declare namespace c3 { /** * Choose which JSON object keys correspond to desired data. */ - keys?: { x?: string; value: Array; }; + keys?: { x?: string; value: string[]; }; /** * Specify the key of x values in the data. * We can show the data with non-index x values by this option. This option is required when the type of x axis is timeseries. If this option is set on category axis, the values of the data on the key will be used for category names. @@ -304,7 +304,7 @@ declare namespace c3 { /** * Set groups for the data for stacking. */ - groups?: Array>; + groups?: Array; /** * Set y axis the data related to. y and y2 can be used. */ @@ -357,7 +357,7 @@ declare namespace c3 { * Hide each data when the chart appears. * If true specified, all of data will be hidden. If multiple ids specified as an array, those will be hidden. */ - hide?: boolean | Array; + hide?: boolean | string[]; /** * Set text displayed when empty data. */ @@ -422,7 +422,7 @@ declare namespace c3 { * Set category names on category axis. * This must be an array that includes category names in string. If category names are included in the date by data.x option, this is not required. */ - categories?: Array; + categories?: string[]; tick?: XTickConfiguration; /** @@ -449,7 +449,7 @@ declare namespace c3 { /** * Set default extent for subchart and zoom. This can be an array or function that returns an array. */ - extent?: Array | (() => Array); + extent?: number[] | (() => number[]); /** * Set label on x axis. * You can set x axis label and change its position by this option. string and object can be passed and we can change the poisiton by passing object that has position key. Available position differs according to the axis direction (vertical or horizontal). If string set, the position will be the default. @@ -503,7 +503,7 @@ declare namespace c3 { /** * Set default range of y axis. This option set the default value for y axis when there is no data on init. */ - default?: Array; + default?: number[]; } @@ -535,7 +535,7 @@ declare namespace c3 { * Set the x values of ticks manually. * If this option is provided, the position of the ticks will be determined based on those values. This option works with timeseries data and the x values will be parsed accoding to the type of the value and data.xFormat option. */ - values?: Array | Array; + values?: number[] | string[]; /** * Rotate x axis tick text. If you set negative value, it will rotate to opposite direction. */ @@ -560,7 +560,7 @@ declare namespace c3 { /** * Set the y values of ticks manually. */ - values?: Array; + values?: number[]; /** * The number of y axis ticks to show. * The position of the ticks will be calculated precisely, so the values on the ticks will not be rounded nicely. In the case, axis.y.tick.format or axis.y.tick.values will be helpful. @@ -824,11 +824,11 @@ declare namespace c3 { load(args: { url?: string; json?: Object; - keys?: { x?: string; value: Array; } + keys?: { x?: string; value: string[]; } rows?: Array; columns?: Array; classes?: { [key: string]: string }; - categories?: Array; + categories?: string[]; axes?: { [key: string]: string }; colors?: { [key: string]: string | d3.Rgb }; type?: string; @@ -855,7 +855,7 @@ declare namespace c3 { */ flow(args: { json?: Object; - keys?: { x?: string; value: Array; } + keys?: { x?: string; value: string[]; } rows?: Array; columns?: Array; to?: any; @@ -869,13 +869,13 @@ declare namespace c3 { * @param indices Specify indices to be selected. If this argument is not given, all data points will be the candidate. * @param resetOthers If this argument is set true, the data points that are not specified by ids, indices will be unselected. */ - select(ids?: Array, indices?: Array, resetOthers?: boolean): void; + select(ids?: string[], indices?: number[], resetOthers?: boolean): void; /** * Change data point state to unselected. By this API, you can unselect data points. To use this API, data.selection.enabled needs to be set true. * @param ids Specify target ids to be unselected. If this argument is not given, all targets will be the candidate. * @param indices Specify indices to be unselected. If this argument is not given, all data points will be the candidate. */ - unselect(ids?: Array, indices?: Array): void; + unselect(ids?: string[], indices?: number[]): void; /** * Get selected data points. By this API, you can get selected data points information. To use this API, data.selection.enabled needs to be set true. * @param targetId You can filter the result by giving target id that you want to get. If not given, all of data points will be returned. @@ -891,7 +891,7 @@ declare namespace c3 { * Update groups for the targets. * @param groups This argument needs to be an Array that includes one or more Array that includes target ids to be grouped. */ - groups(groups: Array>): void; + groups(groups: Array): void; xgrids: GridOperations; @@ -902,12 +902,12 @@ declare namespace c3 { * Update regions. * @param regions Regions will be replaced with this argument. The format of this argument is the same as regions. */ - (regions: Array): void; + (regions: any[]): void; /** * Add new region. This API adds new region instead of replacing like regions. * @param grids New region will be added. The format of this argument is the same as regions and it's possible to give an Object if only one region will be added. */ - add(regions: Array | Object): void; + add(regions: any[] | Object): void; /** * Remove regions. This API removes regions. * @param args This argument should include classes. If classes is given, the regions that have one of the specified classes will be removed. If args is not given, all of regions will be removed. @@ -930,7 +930,7 @@ declare namespace c3 { * Get values of the data loaded in the chart. * @param targetIds This API returns the values of specified target. If this argument is not given, null will be retruned. */ - values(targetIds?: ArrayOrString): Array; + values(targetIds?: ArrayOrString): any[]; /** * Get and set names of the data loaded in the chart. * @param names If this argument is given, the names of data will be updated. If not given, the current names will be returned. The format of this argument is the same as data.names. @@ -959,7 +959,7 @@ declare namespace c3 { * Get and set the categories * @param categories: Value of the categories to update */ - categories(categories?: Array): Array; + categories(categories?: string[]): string[]; /** * Get the color for the specified targetId @@ -1019,7 +1019,7 @@ declare namespace c3 { * Zoom by giving x domain. * @param domain If domain is given, the chart will be zoomed to the given domain. If no argument is given, the current zoomed domain will be returned. */ - (domain?: Array): Array; + (domain?: number[]): number[]; /** * Enable and disable zooming. @@ -1055,12 +1055,12 @@ declare namespace c3 { * Update the x/y grid lines. * @param grids X/Y grid lines will be replaced with this argument. The format of this argument is the same as grid.x.lines or grid.y.lines. */ - (grids: Array): void; + (grids: any[]): void; /** * Add x/y grid lines. This API adds new x/y grid lines instead of replacing like xgrids. * @param grids New x/y grid lines will be added. The format of this argument is the same as grid.x.lines or grid.y.lines and it's possible to give an Object if only one line will be added. */ - add(grids: Array | Object): void; + add(grids: any[] | Object): void; /** * Remove x/y grid lines. This API removes x/y grid lines. * @param args This argument should include value or class. If value is given, the x/y grid lines that have specified x/y value will be removed. If class is given, the x/y grid lines that have specified class will be removed. If args is not given, all of x/y grid lines will be removed. diff --git a/cachefactory/index.d.ts b/cachefactory/index.d.ts index ebabf54e74..37e9f88a9d 100644 --- a/cachefactory/index.d.ts +++ b/cachefactory/index.d.ts @@ -211,7 +211,7 @@ declare namespace CacheFactory { * Return the keys of all items in the cache as an array. * @returns [] */ - keys(): Array; + keys(): string[]; /** * Enable the cache. @@ -281,9 +281,9 @@ declare namespace CacheFactory { /** * Return the values of all items in the cache as an array. - * @returns Array + * @returns any[] */ - values(): Array; + values(): any[]; } export interface ICacheFactory { @@ -331,9 +331,9 @@ declare namespace CacheFactory { /** * Return the ids of all registered caches as an array. - * @returns Array + * @returns string[] */ - keys(): Array; + keys(): string[]; /** * Destroy the cache with the given cacheId. diff --git a/cash/index.d.ts b/cash/index.d.ts index da9c0665c4..2893522013 100644 --- a/cash/index.d.ts +++ b/cash/index.d.ts @@ -87,7 +87,7 @@ interface CashStatic { * @argument collection Array, callback Function * @return Array */ - each(collection: Array, callback: Function): Array; + each(collection: any[], callback: Function): any[]; /** * fn: use to extend cash for plugin development @@ -340,14 +340,14 @@ interface Cash { * on * Adds event listener to collection elements. Event is delegated if delegate is supplied. */ - on(eventName: string|Array, delegate: any, callback?: Function, runOnce?: boolean): Cash; + on(eventName: string|string[], delegate: any, callback?: Function, runOnce?: boolean): Cash; /** * one * Adds event listener to collection elements that only triggers once for each element. * Event is delegated if delegate is supplied. */ - one(eventName: string|Array, delegate: any, callback?: Function, runOnce?: boolean): Cash; + one(eventName: string|string[], delegate: any, callback?: Function, runOnce?: boolean): Cash; /** * outerHeight diff --git a/cassandra-driver/index.d.ts b/cassandra-driver/index.d.ts index c04ca9d233..8c5915328a 100644 --- a/cassandra-driver/index.d.ts +++ b/cassandra-driver/index.d.ts @@ -64,7 +64,7 @@ export namespace policies { interface TokenAwarePolicy extends LoadBalancingPolicy { } interface WhiteListPolicyStatic { - new (childPolicy: LoadBalancingPolicy, whiteList: Array): WhiteListPolicy; + new (childPolicy: LoadBalancingPolicy, whiteList: string[]): WhiteListPolicy; } interface WhiteListPolicy extends LoadBalancingPolicy { } @@ -237,11 +237,11 @@ export namespace types { } interface IntegerStatic { - new (bits: Array, sign: number): Integer; + new (bits: number[], sign: number): Integer; fromInt(value: number): Integer; fromNumber(value: number): Integer; - fromBits(bits: Array): Integer; + fromBits(bits: number[]): Integer; fromString(str: string, opt_radix?: number): Integer; fromBuffer(bits: Buffer): Integer; toBuffer(value: Integer): Buffer; @@ -343,7 +343,7 @@ export namespace types { triedHosts: { [key: string]: string; }, achievedConsistency: consistencies, traceId: Uuid, - warnings: Array, + warnings: string[], customPayload: any }; rows: Array; @@ -376,7 +376,7 @@ export namespace types { interface Row { get(columnName: string | number): { [key: string]: any; }; values(): Array<{ [key: string]: any; }>; - keys(): Array; + keys(): string[]; forEach(callback: Callback): void; } @@ -398,19 +398,19 @@ export namespace types { } interface TupleStatic { - new (...args: Array): Tuple; + new (...args: any[]): Tuple; - fromArray(elements: Array): Tuple; + fromArray(elements: any[]): Tuple; } interface Tuple { - elements: Array; + elements: any[]; length: number; get(index: number): any; toString(): string; toJSON(): string; - values(): Array; + values(): any[]; } interface UuidStatic { @@ -437,7 +437,7 @@ export var HostMap: HostMapStatic; export var Encoder: EncoderStatic; export interface ClientOptions { - contactPoints: Array; + contactPoints: string[]; keyspace: string; policies?: { addressResolution?: policies.addressResolution.AddressTranslator, @@ -481,16 +481,16 @@ export interface QueryOptions { consistency?: number; customPayload?: any; fetchSize?: number; - hints?: Array | Array>; + hints?: string[] | Array; logged?: boolean; pageState?: Buffer | string; prepare?: boolean; readTimeout?: number; retry?: policies.retry.RetryPolicy; retryOnTimeout?: boolean; - routingIndexes?: Array; + routingIndexes?: number[]; routingKey?: Buffer | Array; - routingNames?: Array; + routingNames?: string[]; serialConsistency?: number; timestamp?: number | _Long; traceQuery?: boolean; @@ -505,11 +505,11 @@ export interface Client extends events.EventEmitter { keyspace: string; metadata: metadata.Metadata; - batch(queries: Array | Array<{ query: string, params?: any }>, options: QueryOptions, callback: ResultCallback): void; + batch(queries: string[] | Array<{ query: string, params?: any }>, options: QueryOptions, callback: ResultCallback): void; connect(callback: Callback): void; eachRow(query: string, params?: any, options?: QueryOptions, rowCallback?: Callback, callback?: Callback): void; execute(query: string, params?: any, options?: QueryOptions, callback?: ResultCallback): void; - getReplicas(keyspace: string, token: Buffer): Array; // TODO: Should this be a more explicit return? + getReplicas(keyspace: string, token: Buffer): any[]; // TODO: Should this be a more explicit return? shutdown(callback?: Callback): void; stream(query: string, params?: any, options?: QueryOptions, callback?: Callback): NodeJS.ReadableStream; } @@ -523,10 +523,10 @@ export interface Host extends events.EventEmitter { cassandraVersion: string; dataCenter: string; rack: string; - tokens: Array; + tokens: string[]; canBeConsideredAsUp(): boolean; - getCassandraVersion(): Array; + getCassandraVersion(): number[]; isUp(): boolean; } @@ -539,9 +539,9 @@ export interface HostMap extends events.EventEmitter { forEach(callback: Callback): void; get(key: string): Host; - keys(): Array; + keys(): string[]; remove(key: string): void; - removeMultiple(keys: Array): void; + removeMultiple(keys: string[]): void; set(key: string, value: Host): void; values(): Array; } @@ -634,7 +634,7 @@ export namespace metadata { initCondition: string; keyspaceName: string; returnType: string; - signature: Array; + signature: string[]; stateFunction: string; stateType: string; } @@ -657,7 +657,7 @@ export namespace metadata { bloomFilterFalsePositiveChance: number; caching: caching; clusterKeys: Array<{ c: ColumnInfo, index: number, order: string }>; - clusteringOrder: Array; + clusteringOrder: string[]; columns: Array; columnsByName: { [key: string]: ColumnInfo }; comment: string; @@ -715,12 +715,12 @@ export namespace metadata { interface Metadata { clearPrepared(): void; - getAggregate(keyspaceName: string, name: string, signature: Array | Array<{ code: number, info: any }>, callback: Callback): void; + getAggregate(keyspaceName: string, name: string, signature: string[] | Array<{ code: number, info: any }>, callback: Callback): void; getAggregates(keyspaceName: string, name: string, callback: Callback): void; - getFunction(keyspaceName: string, name: string, signature: Array | Array<{ code: number, info: any }>, callback: Callback): void; + getFunction(keyspaceName: string, name: string, signature: string[] | Array<{ code: number, info: any }>, callback: Callback): void; getFunctions(keyspaceName: string, name: string, callback: Callback): void; getMaterializedView(keyspaceName: string, name: string, callback: Callback): void; - getReplicas(keyspaceName: string, tokenBuffer: Buffer): Array; + getReplicas(keyspaceName: string, tokenBuffer: Buffer): any[]; getTable(keyspaceName: string, name: string, callback: Callback): void; getTrace(traceId: types.Uuid, callback: Callback): void; getUdt(keyspaceName: string, name: string, callback: Callback): void; @@ -733,7 +733,7 @@ export namespace metadata { } interface SchemaFunction { - argumentNames: Array; + argumentNames: string[]; argumentTypes: Array<{ code: number, info: any }>; body: string; calledOnNullInput: boolean; @@ -741,7 +741,7 @@ export namespace metadata { language: string; name: string; returnType: string; - signature: Array; + signature: string[]; } interface TableMetadataStatic { diff --git a/chartist/index.d.ts b/chartist/index.d.ts index ed6c10ac67..1e964bb348 100644 --- a/chartist/index.d.ts +++ b/chartist/index.d.ts @@ -38,11 +38,11 @@ declare namespace Chartist { quantity(input: string | number): Object; query(query: Node | string): Node; - times(length: number): Array; + times(length: number): any[]; sum(previous: number, current: number): number; mapMultiply(factor: number): (num: number) => number; mapAdd(addend: number): (num: number) => number; - serialMap(arr: Array, cb: Function): Array; + serialMap(arr: any[], cb: Function): any[]; roundWithPrecision(value: number, digits?: number): number; getMultiValue(value: any, dimension?: any): number; // this method is not documented, but it is used in the examples @@ -76,14 +76,14 @@ declare namespace Chartist { // this definition gives some intellisense, but does not protect the user from misuse // TODO: come in and tidy this up and make it fit better interface IChartistData { - labels?: Array | Array | Array; - series: Array | Array | Array>; + labels?: string[] | number[] | Array; + series: Array | number[] | Array; } interface IChartistSeriesData { name?: string; value?: number; - data?: Array; + data?: number[]; className?: string; meta?: string; // I assume this could probably be a number as well? } @@ -102,7 +102,7 @@ declare namespace Chartist { supportsAnimations: boolean; resizeListener: any; - plugins?: Array; // all of these plugins seem to be functions with options, but keeping type any for now + plugins?: any[]; // all of these plugins seem to be functions with options, but keeping type any for now update(data: Object, options?: T, override?: boolean): void; detach(): void; @@ -144,7 +144,7 @@ declare namespace Chartist { */ reverseData?: boolean; - plugins?: Array; + plugins?: any[]; } interface IPieChartOptions extends IChartOptions { @@ -312,7 +312,7 @@ declare namespace Chartist { interface IChartistStepAxis extends ILineChartAxis { type?: IStepAxisStatic; - ticks?: Array | Array; + ticks?: string[] | number[]; stretch?: boolean; } @@ -321,7 +321,7 @@ declare namespace Chartist { high?: number; low?: number; divisor?: number; - ticks?: Array | Array; + ticks?: string[] | number[]; } interface IChartistAutoScaleAxis extends ILineChartAxis { @@ -428,7 +428,7 @@ declare namespace Chartist { /** * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further. */ - classes(): Array; + classes(): string[]; /** * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once. diff --git a/chokidar/index.d.ts b/chokidar/index.d.ts index 151f2a7a97..cb2fa4de24 100644 --- a/chokidar/index.d.ts +++ b/chokidar/index.d.ts @@ -8,9 +8,9 @@ declare module "fs" { interface FSWatcher { add(fileDirOrGlob: string): void; - add(filesDirsOrGlobs: Array): void; + add(filesDirsOrGlobs: string[]): void; unwatch(fileDirOrGlob: string): void; - unwatch(filesDirsOrGlobs: Array): void; + unwatch(filesDirsOrGlobs: string[]): void; getWatched(): any; } } @@ -36,5 +36,5 @@ declare module "chokidar" { import fs = require("fs"); function watch(fileDirOrGlob: string, options?: WatchOptions): fs.FSWatcher; - function watch(filesDirsOrGlobs: Array, options?: WatchOptions): fs.FSWatcher; + function watch(filesDirsOrGlobs: string[], options?: WatchOptions): fs.FSWatcher; } diff --git a/chrome/chrome-cast.d.ts b/chrome/chrome-cast.d.ts index 57da92522d..257c46bedf 100644 --- a/chrome/chrome-cast.d.ts +++ b/chrome/chrome-cast.d.ts @@ -106,10 +106,10 @@ declare namespace chrome.cast { } /** - * @const {!Array} + * @const {!number[]} * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.VERSION */ - var VERSION: Array; + var VERSION: number[]; /** * @type {boolean} @@ -583,7 +583,7 @@ declare namespace chrome.cast.media { mediaInfo: chrome.cast.media.MediaInfo ): QueueItem; - activeTrackIds: Array; + activeTrackIds: number[]; autoplay: boolean; customData: Object; itemId: number; @@ -625,31 +625,31 @@ declare namespace chrome.cast.media { interface QueueRemoveItemsRequest { /** - * @param {!Array} + * @param {!number[]} * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueRemoveItemsRequest */ new( - itemIdsToRemove: Array + itemIdsToRemove: number[] ): QueueRemoveItemsRequest; customData: Object; - itemIds: Array; + itemIds: number[]; } interface QueueReorderItemsRequest { /** - * @param {!Array} + * @param {!number[]} * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueReorderItemsRequest */ new( - itemIdsToReorder: Array + itemIdsToReorder: number[] ): QueueReorderItemsRequest; customData: Object; insertBefore: number; - itemIds: Array; + itemIds: number[]; } interface QueueUpdateItemsRequest { @@ -811,7 +811,7 @@ declare namespace chrome.cast.media { mediaInfo: chrome.cast.media.MediaInfo ): LoadRequest; - activeTrackIds: Array; + activeTrackIds: number[]; autoplay: boolean; currentTime: number; customData: Object; @@ -820,17 +820,17 @@ declare namespace chrome.cast.media { interface EditTracksInfoRequest { /** - * @param {Array=} opt_activeTrackIds + * @param {number[]=} opt_activeTrackIds * @param {chrome.cast.media.TextTrackStyle=} opt_textTrackStyle * @constructor * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.EditTracksInfoRequest */ new( - activeTrackIds?: Array, + activeTrackIds?: number[], textTrackStyle?: chrome.cast.media.TextTrackStyle ): EditTracksInfoRequest; - activeTrackIds: Array; + activeTrackIds: number[]; textTrackStyle: chrome.cast.media.TextTrackStyle; } @@ -981,7 +981,7 @@ declare namespace chrome.cast.media { mediaSessionId: number ): Media; - activeTrackIds: Array; + activeTrackIds: number[]; currentItemId: number; customData: Object; idleReason: chrome.cast.media.IdleReason; diff --git a/chui/index.d.ts b/chui/index.d.ts index 766436a661..f30244302a 100644 --- a/chui/index.d.ts +++ b/chui/index.d.ts @@ -26,7 +26,7 @@ interface ChocolateChipStatic { * @param callback A callback to execute on each loop. * @param args Any arguments you need to pass to the callback. */ - forEach(obj: Array, callback: Function, args?: any): any; + forEach(obj: any[], callback: Function, args?: any): any; /** * Alias for cross-platform events: pointerdown, MSPointerDown, touchstart and mousedown. @@ -629,7 +629,7 @@ interface JQueryStatic { * @param callback A callback to execute on each loop. * @param args Any arguments you need to pass to the callback. */ - forEach(obj: Array, callback: Function, args?: any): any; + forEach(obj: any[], callback: Function, args?: any): any; /** * Alias for cross-platform events: pointerdown, MSPointerDown, touchstart and mousedown. diff --git a/cldrjs/index.d.ts b/cldrjs/index.d.ts index b9f8ff7733..6dfef85304 100644 --- a/cldrjs/index.d.ts +++ b/cldrjs/index.d.ts @@ -144,7 +144,7 @@ declare namespace self { * @description * Get the item data given its path, or 'undefined' if missing. * - * @param {Array} paths The array with path parts to the cldr member. + * @param {string[]} paths The array with path parts to the cldr member. * * @returns {any} The cldr member. */ @@ -174,7 +174,7 @@ declare namespace self { * @declaration * It's an alias for .get(["main/{languageId}, ...])" * - * @param {Array} paths The array with path parts to the cldr member. + * @param {string[]} paths The array with path parts to the cldr member. * * @returns {any} The cldr member. */ @@ -227,7 +227,7 @@ declare namespace self { * Load the CLDR content in the form of JSON. * * @param {any} json The json content. - * @param {Array} otherJson Optional. The parts of the JSON. + * @param {any[]} otherJson Optional. The parts of the JSON. * * @returns {void} */ diff --git a/clean-css/index.d.ts b/clean-css/index.d.ts index 012977f035..3bda056ce0 100644 --- a/clean-css/index.d.ts +++ b/clean-css/index.d.ts @@ -37,7 +37,7 @@ declare namespace CleanCSS { processImport?: boolean; // A list of @import rules, can be ['all'] (default), ['local'], ['remote'], or a blacklisted path e.g. ['!fonts.googleapis.com'] - processImportFrom?: Array; + processImportFrom?: string[]; // Set to false to skip URL rebasing rebase?: boolean; @@ -78,10 +78,10 @@ declare namespace CleanCSS { sourceMap: string; // A list of errors raised - errors: Array; + errors: string[]; // A list of warnings raised - warnings: Array; + warnings: string[]; // A hash of statistic information (if requested with debug option) stats: { @@ -102,7 +102,7 @@ declare namespace CleanCSS { declare class CleanCSS { constructor(options?: CleanCSS.Options); - minify(sources: string | Array | Object, callback?: (error: any, minified: CleanCSS.Output) => void): CleanCSS.Output; + minify(sources: string | string[] | Object, callback?: (error: any, minified: CleanCSS.Output) => void): CleanCSS.Output; } export = CleanCSS; diff --git a/cli/index.d.ts b/cli/index.d.ts index b06e20b423..0496ff265c 100644 --- a/cli/index.d.ts +++ b/cli/index.d.ts @@ -22,7 +22,7 @@ interface CLI { no_color: boolean; enable(...plugins: string[]): CLI; disable(...plugins: string[]): CLI; - setArgv(argv: string | Array, keepArg0?: boolean): void; + setArgv(argv: string | any[], keepArg0?: boolean): void; next(): string; parse(opts?: { [long: string]: { 0: string | boolean, 1: string, 2?: string, 3?: any } }, commands?: { [name: string]: string } | string[]): any; diff --git a/commonmark/index.d.ts b/commonmark/index.d.ts index bc5ecb4011..dcf19793c6 100644 --- a/commonmark/index.d.ts +++ b/commonmark/index.d.ts @@ -30,7 +30,7 @@ declare namespace commonmark { resumeAt(node: Node, entering?: boolean): void; } - export interface Position extends Array> { + export interface Position extends Array { } export interface ListData { diff --git a/concaveman/index.d.ts b/concaveman/index.d.ts index 4c10ca6928..5e302ce5b8 100644 --- a/concaveman/index.d.ts +++ b/concaveman/index.d.ts @@ -8,10 +8,10 @@ declare module "concaveman" { * A very fast 2D concave hull algorithm in JavaScript (generates a general outline of a point set). * * @name concaveman - * @param {Array>} points is an array of [x, y] points. + * @param {Array} points is an array of [x, y] points. * @param {number} [concavity=2] is a relative measure of concavity. 1 results in a relatively detailed shape, Infinity results in a convex hull. You can use values lower than 1, but they can produce pretty crazy shapes. * @param {number} [lengthThreshold=0] when a segment length is under this threshold, it stops being considered for further detalization. Higher values result in simpler shapes. - * @return {Array>} + * @return {Array} * @example * var points = [[10, 20], [30, 12.5], ...]; * var polygon = concaveman(points); diff --git a/convict/index.d.ts b/convict/index.d.ts index 981bc8148b..86bc090c37 100644 --- a/convict/index.d.ts +++ b/convict/index.d.ts @@ -27,7 +27,7 @@ declare namespace convict { * * The docs also state that any function that validates is ok too */ - format?: string | Array | Function; + format?: string | any[] | Function; env?: string; arg?: string; }; diff --git a/cookie-session/index.d.ts b/cookie-session/index.d.ts index 71e63d5a3c..dda90d45e6 100644 --- a/cookie-session/index.d.ts +++ b/cookie-session/index.d.ts @@ -19,7 +19,7 @@ declare namespace CookieSessionInterfaces { /** * The list of keys to use to sign & verify cookie values. Set cookies are always signed with keys[0], while the other keys are valid for verification, allowing for key rotation. */ - keys?: Array; + keys?: string[]; /** * A string which will be used as single key if keys is not provided. diff --git a/cookies/index.d.ts b/cookies/index.d.ts index db42e2c6ed..7f5066a016 100644 --- a/cookies/index.d.ts +++ b/cookies/index.d.ts @@ -91,7 +91,7 @@ declare namespace cookies { interface CookiesStatic { new (request: http.IncomingMessage, response: http.ServerResponse): cookies.ICookies; - new (request: http.IncomingMessage, response: http.ServerResponse, keys?: Array): cookies.ICookies; + new (request: http.IncomingMessage, response: http.ServerResponse, keys?: string[]): cookies.ICookies; } declare const cookies: CookiesStatic; diff --git a/core-js/index.d.ts b/core-js/index.d.ts index 71204ea90a..03cddf8ae6 100644 --- a/core-js/index.d.ts +++ b/core-js/index.d.ts @@ -108,7 +108,7 @@ interface Array { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(predicate: (value: T, index: number, obj: Array) => boolean, thisArg?: any): T; + find(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T; /** * Returns the index of the first element in the array where predicate is true, and undefined @@ -166,19 +166,19 @@ interface ArrayConstructor { * Creates an array from an array-like object. * @param arrayLike An array-like object to convert to an array. */ - from(arrayLike: ArrayLike): Array; + from(arrayLike: ArrayLike): T[]; /** * Creates an array from an iterable object. * @param iterable An iterable object to convert to an array. */ - from(iterable: Iterable): Array; + from(iterable: Iterable): T[]; /** * Returns a new array from a set of elements. * @param items A set of elements to include in the new array object. */ - of(...items: T[]): Array; + of(...items: T[]): T[]; } // ############################################################################################# @@ -1090,7 +1090,7 @@ interface ArrayConstructor { * @param thisArg If provided, it will be used as the this value for each invocation of * predicate. If it is not provided, undefined is used instead. */ - find(array: ArrayLike, predicate: (value: T, index: number, obj: Array) => boolean, thisArg?: any): T; + find(array: ArrayLike, predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T; /** * Returns the index of the first element in the array where predicate is true, and undefined @@ -1125,8 +1125,8 @@ interface ArrayConstructor { copyWithin(array: ArrayLike, target: number, start: number, end?: number): T[]; includes(array: ArrayLike, value: T, fromIndex?: number): boolean; - turn(array: ArrayLike, callbackfn: (memo: U, value: T, index: number, array: Array) => void, memo?: U): U; - turn(array: ArrayLike, callbackfn: (memo: Array, value: T, index: number, array: Array) => void, memo?: Array): Array; + turn(array: ArrayLike, callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U; + turn(array: ArrayLike, callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[]; } // ############################################################################################# @@ -1257,12 +1257,12 @@ interface Array { /** * Non-standard. */ - turn(callbackfn: (memo: U, value: T, index: number, array: Array) => void, memo?: U): U; + turn(callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U; /** * Non-standard. */ - turn(callbackfn: (memo: Array, value: T, index: number, array: Array) => void, memo?: Array): Array; + turn(callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[]; } // ############################################################################################# @@ -1359,9 +1359,9 @@ declare namespace core { var Array: { from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): Array; from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): Array; - from(arrayLike: ArrayLike): Array; - from(iterable: Iterable): Array; - of(...items: T[]): Array; + from(arrayLike: ArrayLike): T[]; + from(iterable: Iterable): T[]; + of(...items: T[]): T[]; push(array: ArrayLike, ...items: T[]): number; pop(array: ArrayLike): T; concat(array: ArrayLike, ...items: (T[]| T)[]): T[]; @@ -1387,13 +1387,13 @@ declare namespace core { entries(array: ArrayLike): IterableIterator<[number, T]>; keys(array: ArrayLike): IterableIterator; values(array: ArrayLike): IterableIterator; - find(array: ArrayLike, predicate: (value: T, index: number, obj: Array) => boolean, thisArg?: any): T; + find(array: ArrayLike, predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T; findIndex(array: ArrayLike, predicate: (value: T) => boolean, thisArg?: any): number; fill(array: ArrayLike, value: T, start?: number, end?: number): T[]; copyWithin(array: ArrayLike, target: number, start: number, end?: number): T[]; includes(array: ArrayLike, value: T, fromIndex?: number): boolean; - turn(array: ArrayLike, callbackfn: (memo: Array, value: T, index: number, array: Array) => void, memo?: Array): Array; - turn(array: ArrayLike, callbackfn: (memo: U, value: T, index: number, array: Array) => void, memo?: U): U; + turn(array: ArrayLike, callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[]; + turn(array: ArrayLike, callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U; }; var String: { diff --git a/couchbase/index.d.ts b/couchbase/index.d.ts index f90a3815b2..f28c62f615 100644 --- a/couchbase/index.d.ts +++ b/couchbase/index.d.ts @@ -930,7 +930,7 @@ interface Bucket { * @param params A list or map to do replacements on a N1QL query. * @param callback The callback function. */ - query(query: ViewQuery | N1qlQuery, params: Object | Array, callback: Bucket.QueryCallback): Bucket.ViewQueryResponse | Bucket.N1qlQueryResponse; + query(query: ViewQuery | N1qlQuery, params: Object | any[], callback: Bucket.QueryCallback): Bucket.ViewQueryResponse | Bucket.N1qlQueryResponse; /** * Deletes a document on the server. diff --git a/countdown/index.d.ts b/countdown/index.d.ts index bcb0d07976..d2049d6e41 100644 --- a/countdown/index.d.ts +++ b/countdown/index.d.ts @@ -27,8 +27,8 @@ declare namespace countdown { } interface Format { - singular?: string | Array; - plural?: string | Array; + singular?: string | string[]; + plural?: string | string[]; last?: string; delim?: string; empty?: string; diff --git a/css/index.d.ts b/css/index.d.ts index 57d324a518..f204b2617a 100644 --- a/css/index.d.ts +++ b/css/index.d.ts @@ -90,7 +90,7 @@ export interface Node { export interface Rule extends Node { /** The list of selectors of the rule, split on commas. Each selector is trimmed from whitespace and comments. */ - selectors?: Array; + selectors?: string[]; /** Array of nodes with the types declaration and comment. */ declarations?: Array; } @@ -177,7 +177,7 @@ export interface KeyFrames { export interface KeyFrame { /** The list of "selectors" of the keyframe rule, split on commas. Each “selector” is trimmed from whitespace. */ - values?: Array; + values?: string[]; /** Array of nodes with the types declaration and comment. */ declarations?: Array; } @@ -205,7 +205,7 @@ export interface Namespace { */ export interface Page { /** The list of selectors of the rule, split on commas. Each selector is trimmed from whitespace and comments. */ - selectors?: Array; + selectors?: string[]; /** Array of nodes with the types declaration and comment. */ declarations?: Array; } diff --git a/cucumber/index.d.ts b/cucumber/index.d.ts index 998a61e0e3..c567d3f4af 100644 --- a/cucumber/index.d.ts +++ b/cucumber/index.d.ts @@ -13,8 +13,8 @@ declare namespace cucumber { } export interface TableDefinition { - raw: () => Array; - rows: () => Array; + raw: () => any[]; + rows: () => any[]; rowsHash: () => {}; hashes: () => {}; } diff --git a/d3-axis/index.d.ts b/d3-axis/index.d.ts index e663743d44..da52ced500 100644 --- a/d3-axis/index.d.ts +++ b/d3-axis/index.d.ts @@ -33,10 +33,10 @@ export interface AxisTimeInterval { export interface AxisScale { (x: Domain): number; domain(): Array; - range(): Array; + range(): number[]; copy(): AxisScale; bandwidth?(): number; - ticks?(count: number | AxisTimeInterval): Array | Array; + ticks?(count: number | AxisTimeInterval): number[] | Array; tickFormat?(count: number | AxisTimeInterval, specifier?: string): ((d: number) => string) | ((d: Date) => string); } diff --git a/d3-collection/index.d.ts b/d3-collection/index.d.ts index 396d871767..8990598cbf 100644 --- a/d3-collection/index.d.ts +++ b/d3-collection/index.d.ts @@ -14,11 +14,11 @@ type Stringifiable = { // Objects // --------------------------------------------------------------------- -export function keys(object: { [key: string]: any }): Array; -export function keys(object: Object): Array; +export function keys(object: { [key: string]: any }): string[]; +export function keys(object: Object): string[]; -export function values(object: { [key: string]: T }): Array; -export function values(object: Object): Array; +export function values(object: { [key: string]: T }): T[]; +export function values(object: Object): any[]; export function entries(object: { [key: string]: T }): Array<{ key: string, value: T }>; export function entries(object: Object): Array<{ key: string, value: any }>; @@ -34,8 +34,8 @@ export interface Map { set(key: string, value: T): this; remove(key: string): boolean; clear(): void; - keys(): Array; - values(): Array; + keys(): string[]; + values(): T[]; entries(): Array<{ key: string, value: T }>; each(func: (value: T, key: string, map: Map) => void): void; empty(): boolean; @@ -46,7 +46,7 @@ export function map(): Map; export function map(d3Map: Map): Map; export function map(object: { [key: string]: T }): Map; export function map(object: { [key: number]: T }): Map; -export function map(array: Array, key?: (value: T, i?: number, array?: Array) => string): Map; +export function map(array: T[], key?: (value: T, i?: number, array?: T[]) => string): Map; export function map(object: Object): Map; // --------------------------------------------------------------------- @@ -59,7 +59,7 @@ export interface Set { add(value: string | Stringifiable): this; remove(value: string | Stringifiable): boolean; clear(): void; - values(): Array; + values(): string[]; /** * The first and second parameter of the function are both passed * the 'value' of the set entry for consistency with map.each(...) @@ -74,7 +74,7 @@ export interface Set { export function set(): Set; export function set(d3Set: Set): Set; export function set(array: Array): Set; -export function set(array: Array, key: (value: T, index?: number, array?: Array) => string): Set; +export function set(array: T[], key: (value: T, index?: number, array?: T[]) => string): Set; // --------------------------------------------------------------------- // nest / Nest diff --git a/d3-dsv/index.d.ts b/d3-dsv/index.d.ts index 7682644987..71dee66c46 100644 --- a/d3-dsv/index.d.ts +++ b/d3-dsv/index.d.ts @@ -16,7 +16,7 @@ export interface DSVRowAny { } export interface DSVParsedArray extends Array { - columns: Array; + columns: string[]; } // ------------------------------------------------------------------------------------------ @@ -26,21 +26,21 @@ export interface DSVParsedArray extends Array { // csvParse(...) ============================================================================ export function csvParse(csvString: string): DSVParsedArray; -export function csvParse(csvString: string, row: (rawRow: DSVRowString, index: number, columns: Array) => ParsedRow): DSVParsedArray; +export function csvParse(csvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DSVParsedArray; // csvParseRows(...) ======================================================================== -export function csvParseRows(csvString: string): Array>; -export function csvParseRows(csvString: string, row: (rawRow: Array, index: number) => ParsedRow): Array; +export function csvParseRows(csvString: string): Array; +export function csvParseRows(csvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array; // csvFormat(...) ============================================================================ export function csvFormat(rows: Array): string; -export function csvFormat(rows: Array, columns: Array): string; +export function csvFormat(rows: Array, columns: string[]): string; // csvFormatRows(...) ======================================================================== -export function csvFormatRows(rows: Array>): string; +export function csvFormatRows(rows: Array): string; // ------------------------------------------------------------------------------------------ // TSV Parsers and Formatters @@ -49,21 +49,21 @@ export function csvFormatRows(rows: Array>): string; // tsvParse(...) ============================================================================ export function tsvParse(tsvString: string): DSVParsedArray; -export function tsvParse(tsvString: string, row: (rawRow: DSVRowString, index: number, columns: Array) => MappedRow): DSVParsedArray; +export function tsvParse(tsvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => MappedRow): DSVParsedArray; // tsvParseRows(...) ======================================================================== -export function tsvParseRows(tsvString: string): Array>; -export function tsvParseRows(tsvString: string, row: (rawRow: Array, index: number) => MappedRow): Array; +export function tsvParseRows(tsvString: string): Array; +export function tsvParseRows(tsvString: string, row: (rawRow: string[], index: number) => MappedRow): Array; // tsvFormat(...) ============================================================================ export function tsvFormat(rows: Array): string; -export function tsvFormat(rows: Array, columns: Array): string; +export function tsvFormat(rows: Array, columns: string[]): string; // tsvFormatRows(...) ======================================================================== -export function tsvFormatRows(rows: Array>): string; +export function tsvFormatRows(rows: Array): string; // ------------------------------------------------------------------------------------------ // DSV Generalized Parsers and Formatters @@ -71,12 +71,12 @@ export function tsvFormatRows(rows: Array>): string; export interface DSV { parse(dsvString: string): DSVParsedArray; - parse(dsvString: string, row: (rawRow: DSVRowString, index: number, columns: Array) => ParsedRow): DSVParsedArray; - parseRows(dsvString: string): Array>; - parseRows(dsvString: string, row: (rawRow: Array, index: number) => ParsedRow): Array; + parse(dsvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DSVParsedArray; + parseRows(dsvString: string): Array; + parseRows(dsvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array; format(rows: Array): string; - format(rows: Array, columns: Array): string; - formatRows(rows: Array>): string; + format(rows: Array, columns: string[]): string; + formatRows(rows: Array): string; } export function dsvFormat(delimiter: string): DSV; diff --git a/d3-interpolate/index.d.ts b/d3-interpolate/index.d.ts index a4d145d2b8..6059984077 100644 --- a/d3-interpolate/index.d.ts +++ b/d3-interpolate/index.d.ts @@ -42,7 +42,7 @@ export function interpolate(a: number | { valueOf(): number }, b: number): ((t: export function interpolate(a: any, b: ColorCommonInstance): ((t: number) => string); export function interpolate(a: Date, b: Date): ((t: number) => Date); export function interpolate(a: string | { toString(): string }, b: string): ((t: number) => string); -export function interpolate>(a: Array, b: U): ((t: number) => U); +export function interpolate(a: any[], b: U): ((t: number) => U); export function interpolate(a: number | { valueOf(): number }, b: { valueOf(): number }): ((t: number) => number); export function interpolate(a: any, b: U): ((t: number) => U); export function interpolate(a: any, b: { [key: string]: any }): ((t: number) => { [key: string]: any }); @@ -56,7 +56,7 @@ export function interpolateString(a: string | { toString(): string }, b: string export function interpolateDate(a: Date, b: Date): ((t: number) => Date); -export function interpolateArray>(a: Array, b: A): ((t: number) => A); +export function interpolateArray(a: any[], b: A): ((t: number) => A); export function interpolateObject(a: any, b: U): ((t: number) => U); export function interpolateObject(a: { [key: string]: any }, b: { [key: string]: any }): ((t: number) => { [key: string]: any }); @@ -91,5 +91,5 @@ export var interpolateCubehelixLong: ColorGammaInterpolationFactory; // Spline related -export function interpolateBasis(splineNodes: Array): ((t: number) => number); -export function interpolateBasisClosed(splineNodes: Array): ((t: number) => number); +export function interpolateBasis(splineNodes: number[]): ((t: number) => number); +export function interpolateBasisClosed(splineNodes: number[]): ((t: number) => number); diff --git a/d3-queue/index.d.ts b/d3-queue/index.d.ts index 0ca41b698f..d9c3940c84 100644 --- a/d3-queue/index.d.ts +++ b/d3-queue/index.d.ts @@ -17,7 +17,7 @@ export interface Queue { * To return multiple results from a single callback, wrap the results in an object or array. * @param args Additional, optional arguments to be passed into deferred task on invocation */ - defer(task: (...args: Array) => void, ...args: any[]): this; + defer(task: (...args: any[]) => void, ...args: any[]): this; /** * Aborts any active tasks, invoking each active task’s task.abort function, if any. * Also prevents any new tasks from starting, and immediately invokes the queue.await or @@ -32,7 +32,7 @@ export interface Queue { * If an error occurred, there are no additional arguments to the callback. Otherwise, * the callback is passed each result as an additional argument. */ - await(callback: (error: any | null, ...results: Array) => void): this; + await(callback: (error: any | null, ...results: any[]) => void): this; /** * Sets the callback to be invoked when all deferred tasks have finished (results array). * @@ -41,7 +41,7 @@ export interface Queue { * or null if no error occurred. If an error occurred, there are no additional arguments to the callback. * Otherwise, the callback is also passed an array of results as the second argument. */ - awaitAll(callback: (error: any | null, results?: Array) => void): this; + awaitAll(callback: (error: any | null, results?: any[]) => void): this; } /** diff --git a/d3-request/index.d.ts b/d3-request/index.d.ts index 2a0251a726..146525209b 100644 --- a/d3-request/index.d.ts +++ b/d3-request/index.d.ts @@ -57,12 +57,12 @@ export interface Request { } export interface DsvRequest extends Request { - row(value: (rawRow: DSVRowString, index: number, columns: Array) => ParsedRow): DsvRequest; + row(value: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DsvRequest; } export function csv(url: string): DsvRequest; export function csv(url: string, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; -export function csv(url: string, row: (rawRow: DSVRowString, index: number, columns: Array) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; +export function csv(url: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; export function html(url: string): Request; export function html(url: string, callback: (this: Request, error: any, d: DocumentFragment) => void): Request; @@ -78,7 +78,7 @@ export function text(url: string, callback: (this: Request, error: any, d: strin export function tsv(url: string): DsvRequest; export function tsv(url: string, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; -export function tsv(url: string, row: (rawRow: DSVRowString, index: number, columns: Array) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; +export function tsv(url: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray) => void): DsvRequest; export function xml(url: string): Request; export function xml(url: string, callback: (this: Request, error: any, d: any) => void): Request; diff --git a/d3-scale-chromatic/index.d.ts b/d3-scale-chromatic/index.d.ts index 8550b3b55c..35abea13c2 100644 --- a/d3-scale-chromatic/index.d.ts +++ b/d3-scale-chromatic/index.d.ts @@ -7,21 +7,21 @@ // Categorical // ----------------------------------------------------------------------- /**An array of eight categorical colors represented as RGB hexadecimal strings. */ -export const schemeAccent: Array; +export const schemeAccent: string[]; /**An array of eight categorical colors represented as RGB hexadecimal strings. */ -export const schemeDark2: Array; +export const schemeDark2: string[]; /**An array of twelve categorical colors represented as RGB hexadecimal strings. */ -export const schemePaired: Array; +export const schemePaired: string[]; /**An array of nine categorical colors represented as RGB hexadecimal strings. */ -export const schemePastel1: Array; +export const schemePastel1: string[]; /**An array of eight categorical colors represented as RGB hexadecimal strings. */ -export const schemePastel2: Array; +export const schemePastel2: string[]; /**An array of nine categorical colors represented as RGB hexadecimal strings. */ -export const schemeSet1: Array; +export const schemeSet1: string[]; /**An array of eight categorical colors represented as RGB hexadecimal strings. */ -export const schemeSet2: Array; +export const schemeSet2: string[]; /**An array of twelve categorical colors represented as RGB hexadecimal strings. */ -export const schemeSet3: Array; +export const schemeSet3: string[]; // ----------------------------------------------------------------------- // Diverging diff --git a/d3-scale/index.d.ts b/d3-scale/index.d.ts index 5ad7cf395f..81eda9f7a4 100644 --- a/d3-scale/index.d.ts +++ b/d3-scale/index.d.ts @@ -27,7 +27,7 @@ export interface ScaleLinear { * values that can be coerced to numeric. Otherwise, returns NaN */ invert(value: number | { valueOf(): number }): number; - domain(): Array; + domain(): number[]; domain(domain: Array): this; range(): Array; range(range: Array): this; @@ -41,7 +41,7 @@ export interface ScaleLinear { interpolate(): InterpolatorFactory; interpolate(interpolate: InterpolatorFactory): this; interpolate(interpolate: InterpolatorFactory): ScaleLinear; - ticks(count?: number): Array; + ticks(count?: number): number[]; tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string); nice(count?: number): this; copy(): ScaleLinear; @@ -63,7 +63,7 @@ export interface ScalePower { * values that can be coerced to numeric. Otherwise, returns NaN */ invert(value: number | { valueOf(): number }): number; - domain(): Array; + domain(): number[]; domain(domain: Array): this; range(): Array; range(range: Array): this; @@ -77,7 +77,7 @@ export interface ScalePower { interpolate(): InterpolatorFactory; interpolate(interpolate: InterpolatorFactory): this; interpolate(interpolate: InterpolatorFactory): ScalePower; - ticks(count?: number): Array; + ticks(count?: number): number[]; tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string); nice(count?: number): this; copy(): ScalePower; @@ -106,7 +106,7 @@ export interface ScaleLogarithmic { * values that can be coerced to numeric. Otherwise, returns NaN */ invert(value: number | { valueOf(): number }): number; - domain(): Array; + domain(): number[]; domain(domain: Array): this; range(): Array; range(range: Array): this; @@ -120,7 +120,7 @@ export interface ScaleLogarithmic { interpolate(): InterpolatorFactory; interpolate(interpolate: InterpolatorFactory): this; interpolate(interpolate: InterpolatorFactory): ScaleLogarithmic; - ticks(count?: number): Array; + ticks(count?: number): number[]; tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string); nice(count?: number): this; copy(): ScaleLogarithmic; @@ -145,11 +145,11 @@ export interface ScaleIdentity { * values that can be coerced to numeric. Otherwise, returns NaN */ invert(value: number | { valueOf(): number }): number; - domain(): Array; + domain(): number[]; domain(domain: Array): this; - range(): Array; + range(): number[]; range(range: Array): this; - ticks(count?: number): Array; + ticks(count?: number): number[]; tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string); nice(count?: number): this; copy(): ScaleIdentity; @@ -258,7 +258,7 @@ export interface ScaleQuantize { domain(domain: [number | { valueOf(): number }, number | { valueOf(): number }]): this; range(): Array; range(range: Array): this; - ticks(count?: number): Array; + ticks(count?: number): number[]; tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string); nice(count?: number): this; copy(): ScaleQuantize; @@ -274,11 +274,11 @@ export function scaleQuantize(): ScaleQuantize; export interface ScaleQuantile { (value: number | { valueOf(): number }): Range; invertExtent(value: Range): [number, number]; - domain(): Array; + domain(): number[]; domain(domain: Array): this; range(): Array; range(range: Array): this; - quantiles(): Array; + quantiles(): number[]; copy(): ScaleQuantile; } @@ -404,10 +404,10 @@ export function scalePoint(): ScalePoint< // Categorical Color Schemas for Ordinal Scales // ------------------------------------------------------------------------------- -export const schemeCategory10: Array; +export const schemeCategory10: string[]; -export const schemeCategory20: Array; +export const schemeCategory20: string[]; -export const schemeCategory20b: Array; +export const schemeCategory20b: string[]; -export const schemeCategory20c: Array; +export const schemeCategory20c: string[]; diff --git a/d3-shape/index.d.ts b/d3-shape/index.d.ts index 9fb28a092a..b66afe4bf2 100644 --- a/d3-shape/index.d.ts +++ b/d3-shape/index.d.ts @@ -329,7 +329,7 @@ export var symbolWye: SymbolType; // SeriesPoint is a [number, number] two-element Array with added // data and index properties related to the data element which formed the basis for the // SeriesPoint -export interface SeriesPoint extends Array { +export interface SeriesPoint extends number[] { 0: number; 1: number; index: number; @@ -351,14 +351,14 @@ export interface Stack { value(value: number): this; value(value: (d: Datum, key: Key, j: number, data: Array) => number): this; - order(): (series: Series) => Array; + order(): (series: Series) => number[]; order(order: null): this; - order(order: Array): this; - order(order: (series: Series) => Array): this; + order(order: number[]): this; + order(order: (series: Series) => number[]): this; - offset(): (series: Series, order: Array) => void; + offset(): (series: Series, order: number[]) => void; offset(offset: null): this; - offset(offset: (series: Series, order: Array) => void): this; + offset(offset: (series: Series, order: number[]) => void): this; } @@ -368,13 +368,13 @@ export function stack(): Stack; export function stack(): Stack; -export function stackOrderAscending(series: Series): Array; -export function stackOrderDescending(series: Series): Array; -export function stackOrderInsideOut(series: Series): Array; -export function stackOrderNone(series: Series): Array; -export function stackOrderReverse(series: Series): Array; +export function stackOrderAscending(series: Series): number[]; +export function stackOrderDescending(series: Series): number[]; +export function stackOrderInsideOut(series: Series): number[]; +export function stackOrderNone(series: Series): number[]; +export function stackOrderReverse(series: Series): number[]; -export function stackOffsetExpand(series: Series, order: Array): void; -export function stackOffsetNone(series: Series, order: Array): void; -export function stackOffsetSilhouette(series: Series, order: Array): void; -export function stackOffsetWiggle(series: Series, order: Array): void; +export function stackOffsetExpand(series: Series, order: number[]): void; +export function stackOffsetNone(series: Series, order: number[]): void; +export function stackOffsetSilhouette(series: Series, order: number[]): void; +export function stackOffsetWiggle(series: Series, order: number[]): void; diff --git a/d3-voronoi/index.d.ts b/d3-voronoi/index.d.ts index 9bd270d11d..0fd1ef45d8 100644 --- a/d3-voronoi/index.d.ts +++ b/d3-voronoi/index.d.ts @@ -13,7 +13,7 @@ * for x and y coordinates. However, it is used as a base for interface definitions, and [number, number] * cannot be extended. */ -export interface VoronoiPoint extends Array { +export interface VoronoiPoint extends number[] { 0: number; 1: number; } diff --git a/d3-zoom/index.d.ts b/d3-zoom/index.d.ts index 9814d2f7bd..83cc3ef90c 100644 --- a/d3-zoom/index.d.ts +++ b/d3-zoom/index.d.ts @@ -23,10 +23,10 @@ type ZoomedElementBaseType = Element; * that can be passed into zoomTransform methods rescaleX and rescaleY */ export interface ZoomScale { - domain(): Array; - domain(domain: Array): this; - range(): Array; - range(range: Array): this; + domain(): number[]; + domain(domain: number[]): this; + range(): number[]; + range(range: number[]): this; copy(): ZoomScale; invert(value: number): number; } diff --git a/d3kit/d3kit-v1.1.0.d.ts b/d3kit/d3kit-v1.1.0.d.ts index 41187b7e7e..04488cbf6b 100644 --- a/d3kit/d3kit-v1.1.0.d.ts +++ b/d3kit/d3kit-v1.1.0.d.ts @@ -28,10 +28,10 @@ declare namespace d3kit { export class Skeleton { - constructor(selector: string|Element, options?: ChartOptions, customEvents?: Array); + constructor(selector: string|Element, options?: ChartOptions, customEvents?: string[]); // Getters - getCustomEventNames(): Array; + getCustomEventNames(): string[]; getDispatcher(): any; // should be d3.Dispatch but this throws error for user-created events getInnerWidth(): number; getInnerHeight(): number; @@ -47,7 +47,7 @@ declare namespace d3kit { margin(): ChartMargin; margin(margin: ChartMargin, doNotDispatch?: boolean): Skeleton; offset(): [number, number]; - offset(offset: Array, doNotDispatch?: boolean): Skeleton; + offset(offset: number[], doNotDispatch?: boolean): Skeleton; width(): number; width(value: number|string, doNotDispatch?: boolean): Skeleton; height(): number; @@ -59,7 +59,7 @@ declare namespace d3kit { autoResizeToAspectRatio(ratio?: number|boolean): number|boolean|void; // Other functions - on(eventName: string, listener: (...args: Array) => void): void; + on(eventName: string, listener: (...args: any[]) => void): void; hasData(): boolean; hasNonZeroArea(): boolean; mixin(fn: ChartMixin): void; @@ -81,11 +81,11 @@ declare namespace d3kit { enterFunction?: ChartletEventFunction, updateFunction?: ChartletEventFunction, exitFunction?: ChartletEventFunction, - customEventName?: Array); + customEventName?: string[]); // Getter functions getDispatcher(): d3.Dispatch; - getCustomEventNames(): Array; + getCustomEventNames(): string[]; getPropertyValue(name: string, datum: any, datum_index: number): any; // Getter/Setter functions @@ -99,7 +99,7 @@ declare namespace d3kit { // Inheritance functions inheritPropertyFrom(parent_chartlet: Chartlet, parent_property_name: string, child_property_name?: string): void; - inheritPropertiesFrom(parent_chartlet: Chartlet, parent_property_names: Array, child_property_names?: Array): void; + inheritPropertiesFrom(parent_chartlet: Chartlet, parent_property_names: string[], child_property_names?: string[]): void; publishEventsTo(dispatcher: d3.Dispatch): Chartlet; // Events @@ -108,7 +108,7 @@ declare namespace d3kit { interface LayerConfig { name?: string; - names?: Array; + names?: string[]; sublayers?: LayerConfig; } @@ -116,7 +116,7 @@ declare namespace d3kit { constructor(container: d3.Selection, tag?: string); - create(config: string|Array|LayerConfig|Array|any): d3.Selection|Array>; + create(config: string|string[]|LayerConfig|Array|any): d3.Selection|Array>; get(name: string): d3.Selection; has(name: string): boolean; } @@ -124,19 +124,19 @@ declare namespace d3kit { export namespace factory { export function createChart( defaultOptions: ChartOptions, - customEvents: Array, + customEvents: string[], constructor: (skeleton: Skeleton) => void - ): (selector: string|Element, options?: ChartOptions, customEvents?: Array) => Skeleton; + ): (selector: string|Element, options?: ChartOptions, customEvents?: string[]) => Skeleton; } export namespace helper { - export function debounce(fn: (...args: Array) => void, wait: number, immediate: boolean): (...args: Array) => void; + export function debounce(fn: (...args: any[]) => void, wait: number, immediate: boolean): (...args: any[]) => void; export function extend(target: Object, ...args: Object[]): Object; export function deepExtend(target: Object, ...args: Object[]): Object; export function bindMouseEventsToDispatcher(selection: d3.Selection, dispatch: d3.Dispatch, prefix: string): void; export function removeAllChildren(selection: d3.Selection, noTransition: boolean): d3.Selection; - export function on(element: Element, type: string, listener: (...args: Array) => void): void; - export function off(element: Element, type: string, listener: (...args: Array) => void): void; + export function on(element: Element, type: string, listener: (...args: any[]) => void): void; + export function off(element: Element, type: string, listener: (...args: any[]) => void): void; export function trim(str: string, characters: string): string; export function dasherize(str: string): string; export function $(s: Element|string): Element; diff --git a/db-migrate-base/index.d.ts b/db-migrate-base/index.d.ts index de3a4c0812..f2cf9634a0 100644 --- a/db-migrate-base/index.d.ts +++ b/db-migrate-base/index.d.ts @@ -70,7 +70,7 @@ export class Base { createDatabase(...options: any[]): void; switchDatabase(...options: any[]): void; dropDatabase(...options: any[]): void; - recurseCallbackArray(foreignKeys: Array, callback: CallbackFunction): void; + recurseCallbackArray(foreignKeys: string[], callback: CallbackFunction): void; bindForeignKey(tableName: string, columnName: string, fkOptions: ForeignKeySpec): (callback: CallbackFunction) => void; createColumnDef(name: string, spec: ColumnSpec, options?: any): ColumnDef; // TODO Figure out a type for `options`! //createColumnConstraint(spec: ColumnSpec, options?: any, ...implementationDefinedOptions: any[]): string; @@ -83,9 +83,9 @@ export class Base { removeColumn(tableName: string, columnName: string, callback: CallbackFunction): void; renameColumn(tableName: string, oldColumnName: string, newColumnName: string, callback: CallbackFunction): void; changeColumn(tableName: string, columnName: string, columnSpec: ColumnSpec, callback: CallbackFunction): void; - quoteDDLArr(arr: Array): Array; - quoteArr(arr: Array): Array; - addIndex(tableName: string, indexName: string, columns: string | Array, uniqueOrCb?: boolean | CallbackFunction, callback?: CallbackFunction): void; + quoteDDLArr(arr: string[]): string[]; + quoteArr(arr: string[]): string[]; + addIndex(tableName: string, indexName: string, columns: string | string[], uniqueOrCb?: boolean | CallbackFunction, callback?: CallbackFunction): void; insert(tableName: string, columnNameOrValueArray: any, valueArrayOrCb?: any | CallbackFunction, callback?: CallbackFunction): void; update(tableName: string, columnNameOrValueArray: any, valueArrayOrIds?: any, idsOrCb?: any | CallbackFunction, callback?: CallbackFunction): void; lookup(tableName: string, column: string, id?: any, callback?: CallbackFunction): void; @@ -97,14 +97,14 @@ export class Base { addSeedRecord(name: string, callback: CallbackFunction): void; startMigration(callback: CallbackFunction): void; endMigration(callback: CallbackFunction): void; - runSql(sql?: string, paramsOrCb?: Array | CallbackFunction, callback?: CallbackFunction): void; + runSql(sql?: string, paramsOrCb?: any[] | CallbackFunction, callback?: CallbackFunction): void; allLoadedMigrations(callback: CallbackFunction): void; allLoadedSeeds(callback: CallbackFunction): void; deleteMigration(migrationName: string, callback: CallbackFunction): void; remove(table: string, ids: any, callback: CallbackFunction): void; // TODO Make ids match the type of ids in buildWhereClause(ids); buildWhereClause(ids: any): string; deleteSeed(seedName: string, callback: CallbackFunction): void; - all(sql: string, paramsOrCb?: Array | CallbackFunction, callback?: CallbackFunction): void; + all(sql: string, paramsOrCb?: any[] | CallbackFunction, callback?: CallbackFunction): void; escape(str: string): string; escapeString(str: string): string; escapeDDL(str: string): string; @@ -116,7 +116,7 @@ export class Base { createDatabaseAsync(...options: any[]): Promise; switchDatabaseAsync(...options: any[]): Promise; dropDatabaseAsync(...options: any[]): Promise; - recurseCallbackArrayAsync(foreignKeys: Array): Promise; + recurseCallbackArrayAsync(foreignKeys: string[]): Promise; createMigrationsTableAsync(): Promise; createSeedsTableAsync(): Promise; createTableAsync(tableName: string, options: any | CreateTableOptions): Promise; @@ -126,7 +126,7 @@ export class Base { removeColumnAsync(tableName: string, columnName: string): Promise; renameColumnAsync(tableName: string, oldColumnName: string, newColumnName: string): Promise; changeColumnAsync(tableName: string, columnName: string, columnSpec: ColumnSpec): Promise; - addIndexAsync(tableName: string, indexName: string, columns: string | Array, unique?: boolean): Promise; + addIndexAsync(tableName: string, indexName: string, columns: string | string[], unique?: boolean): Promise; insertAsync(tableName: string, columnNameOrValueArray: any, valueArrayOrCb?: any | CallbackFunction, callback?: CallbackFunction): Promise; updateAsync(tableName: string, columnNameOrValueArray: any, valueArrayOrIds?: any, idsOrCb?: any | CallbackFunction, callback?: CallbackFunction): Promise; lookupAsync(tableName: string, column: string, id?: any, callback?: CallbackFunction): Promise; @@ -137,11 +137,11 @@ export class Base { addSeedRecordAsync(name: string): Promise; startMigrationAsync(): Promise; endMigrationAsync(callback: CallbackFunction): Promise; - runSqlAsync(sql?: string, params?: Array): Promise; + runSqlAsync(sql?: string, params?: any[]): Promise; allLoadedMigrationsAsync(): Promise; allLoadedSeedsAsync(): Promise; deleteMigrationAsync(migrationName: string): Promise; removeAsync(table: string, ids: any): Promise; deleteSeedAsync(seedName: string): Promise; - allAsync(sql: string, params?: Array): Promise; + allAsync(sql: string, params?: any[]): Promise; } \ No newline at end of file diff --git a/dc/index.d.ts b/dc/index.d.ts index c22699d459..de01d4fb44 100644 --- a/dc/index.d.ts +++ b/dc/index.d.ts @@ -40,7 +40,7 @@ declare namespace DC { } export interface UnitFunction { - (start: number, end: number, domain?: Array): number|Array; + (start: number, end: number, domain?: any[]): number|any[]; } export interface FloatPointUnits { @@ -68,8 +68,8 @@ declare namespace DC { export interface Filters { RangedFilter(low: any, high: any): Filter; - TwoDimensionalFilter(arr: Array): Filter; - RangedTwoDimensionalFilter(arr: Array): Filter; + TwoDimensionalFilter(arr: any[]): Filter; + RangedTwoDimensionalFilter(arr: any[]): Filter; } export interface Logger { @@ -80,7 +80,7 @@ declare namespace DC { } export interface Printers { - filters(filters: Array): string; + filters(filters: any[]): string; filter(filter: any): string; } @@ -123,7 +123,7 @@ declare namespace DC { minWidth: IGetSet; minHeight: IGetSet; dimension: IGetSet; - data: IGetSetComputed<(group: any) => Array, Array, T>; + data: IGetSetComputed<(group: any) => any[], any[], T>; group: IGetSet; ordering: IGetSet, T>; filterAll(): void; @@ -133,20 +133,20 @@ declare namespace DC { anchorName(): string; svg: IGetSet, d3.Selection>; resetSvg(): void; - filterPrinter: IGetSet<(filters: Array) => string, T>; + filterPrinter: IGetSet<(filters: any[]) => string, T>; turnOnControls(): void; turnOffControls(): void; transitionDuration: IGetSet; render(): void; redraw(): void; redrawGroup(): void; - hasFilterHandler: IGetSet<(filters: Array, filter: any) => boolean, T>; + hasFilterHandler: IGetSet<(filters: any[], filter: any) => boolean, T>; hasFilter(filter?: any): boolean; - removeFilterHandler: IGetSet<(filters: Array) => Array, T>; - addFilterHandler: IGetSet<(filters: Array) => Array, T>; - resetFilterHandler: IGetSet<(filters: Array) => Array, T>; + removeFilterHandler: IGetSet<(filters: any[]) => any[], T>; + addFilterHandler: IGetSet<(filters: any[]) => any[], T>; + resetFilterHandler: IGetSet<(filters: any[]) => any[], T>; filter: IGetSet; - filters(): Array; + filters(): any[]; onClick(datum: any): void; filterHandler: IGetSet<(dimension: any, filter: any) => any, T>; keyAccessor: IGetSet, T>; @@ -184,11 +184,11 @@ declare namespace DC { } export interface ColorMixin { - colors: IGetSet | Scale, T>; - ordinalColors(r: Array): void; - linearColors(r: Array): void; + colors: IGetSet, T>; + ordinalColors(r: string[]): void; + linearColors(r: string[]): void; colorAccessor: IGetSet, T>; - colorDomain: IGetSet, T>; + colorDomain: IGetSet; calculateColorDomain(): void; getColor(datum: any, index?: number): string; colorCalculator: IGetSet, T>; @@ -196,7 +196,7 @@ declare namespace DC { export interface CoordinateGridMixin extends BaseMixin, MarginMixin, ColorMixin { rangeChart: IGetSet, T>; - zoomScale: IGetSet, T>; + zoomScale: IGetSet; zoomOutRestrict: IGetSet; g: IGetSet, T>; mouseZoomable: IGetSet; @@ -223,7 +223,7 @@ declare namespace DC { yAxisPadding: IGetSet; round: IGetSet<(value: any) => any, T>; clipPadding: IGetSet; - focus(range?: Array): void; + focus(range?: any[]): void; brushOn: IGetSet; } @@ -239,7 +239,7 @@ declare namespace DC { export interface CapMixin { cap: IGetSet; othersLabel: IGetSet; - othersGrouper: IGetSet<(data: Array) => Array, T>; + othersGrouper: IGetSet<(data: any[]) => any[], T>; } export interface BubbleMixin extends ColorMixin { @@ -276,7 +276,7 @@ declare namespace DC { interpolate: IGetSet; tension: IGetSet; defined: IGetSet, LineChart>; - dashStyle: IGetSet, LineChart>; + dashStyle: IGetSet; renderArea: IGetSet; dotRadius: IGetSet; renderDataPoints: IGetSet; @@ -385,8 +385,8 @@ declare namespace DC { export interface HeatMap extends ColorMixin, MarginMixin, BaseMixin { colsLabel: IGetSet, HeatMap>; rowsLabel: IGetSet, HeatMap>; - rows: IGetSet, HeatMap>; - cols: IGetSet, HeatMap>; + rows: IGetSet; + cols: IGetSet; boxOnClick: IGetSet<(d: any) => void, HeatMap>; xAxisOnClick: IGetSet<(d: any) => void, HeatMap>; yAxisOnClick: IGetSet<(d: any) => void, HeatMap>; diff --git a/deployjava/index.d.ts b/deployjava/index.d.ts index 4496b3d1f9..5335614e87 100644 --- a/deployjava/index.d.ts +++ b/deployjava/index.d.ts @@ -54,9 +54,9 @@ declare namespace DeployJava { /** * @summary JRE versions installed. - * @member {Array} + * @member {string[]} */ - preInstallJREList: Array; + preInstallJREList: string[]; /** * @summary URL of current document. @@ -81,12 +81,12 @@ declare namespace DeployJava { /** * @summary Compares a version with a pattern. * @param {string} version Version to compare. - * @param {Array} patternArray Patterns to compare. + * @param {string[]} patternArray Patterns to compare. * @param {boolean} familyMatch Family match. * @param {boolean} minMatch Minimum version match. * @return {boolean} True if a or many patterns are identical to version, otherwise, False. */ - compareVersionToPattern(version: string, patternArray: Array, familyMatch: boolean, minMatch: boolean): boolean; + compareVersionToPattern(version: string, patternArray: string[], familyMatch: boolean, minMatch: boolean): boolean; /** * @summary Enable alerts. @@ -113,9 +113,9 @@ declare namespace DeployJava { /** * @summary Get JRE versions (in format : "#.#[.#[_#]]") installed. - * @return {Array} JRE Version list. + * @return {string[]} JRE Version list. */ - getJREs(): Array; + getJREs(): string[]; /** * Gets a Java plugin. diff --git a/devextreme/devextreme-15.1.3.d.ts b/devextreme/devextreme-15.1.3.d.ts index 10d65988f5..a371d14ff6 100644 --- a/devextreme/devextreme-15.1.3.d.ts +++ b/devextreme/devextreme-15.1.3.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -249,7 +249,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -270,7 +270,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -336,7 +336,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -359,12 +359,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -452,11 +452,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -600,7 +600,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -620,14 +620,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -690,7 +690,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -718,7 +718,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -745,7 +745,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -858,9 +858,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -926,9 +926,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: number, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Disposes of all resources associated with this PivotGridDataSource. */ dispose(): void; on(eventName: string, eventHandler: Function): PivotGridDataSource; @@ -1005,7 +1005,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -1026,7 +1026,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -1060,7 +1060,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -1072,7 +1072,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -1207,7 +1207,7 @@ declare namespace DevExpress.framework { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1474,7 +1474,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1593,7 +1593,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1768,7 +1768,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1781,7 +1781,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1990,7 +1990,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2543,7 +2543,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2609,9 +2609,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering appointments. */ appointmentTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -2695,7 +2695,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2762,7 +2762,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2899,7 +2899,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -2923,11 +2923,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3310,7 +3310,7 @@ Specifies the message displayed in a group row when the corresponding group cont } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3319,19 +3319,19 @@ Specifies the message displayed in a group row when the corresponding group cont mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3565,11 +3565,11 @@ Searches grid records by a search string. /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4486,7 +4486,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5160,7 +5160,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5238,7 +5238,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5294,7 +5294,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5313,9 +5313,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5429,7 +5429,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5442,9 +5442,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } declare namespace DevExpress.viz.map { @@ -5472,11 +5472,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -5516,7 +5516,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -5577,11 +5577,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -5596,7 +5596,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -5635,11 +5635,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -5695,9 +5695,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -5705,15 +5705,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -5885,7 +5885,7 @@ Specifies an interval between minor ticks. /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6048,7 +6048,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.1.4.d.ts b/devextreme/devextreme-15.1.4.d.ts index 4e35b0575d..dc8544b8af 100644 --- a/devextreme/devextreme-15.1.4.d.ts +++ b/devextreme/devextreme-15.1.4.d.ts @@ -160,7 +160,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -258,7 +258,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -279,7 +279,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -345,7 +345,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -368,12 +368,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -461,11 +461,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -616,7 +616,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -636,14 +636,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -706,7 +706,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -734,7 +734,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -761,7 +761,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -825,7 +825,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1094,7 +1094,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1213,7 +1213,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1388,7 +1388,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1401,7 +1401,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1608,7 +1608,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2368,7 +2368,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2513,9 +2513,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2581,9 +2581,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: number, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Disposes of all resources associated with this PivotGridDataSource. */ dispose(): void; on(eventName: string, eventHandler: Function): PivotGridDataSource; @@ -2605,9 +2605,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering appointments. */ appointmentTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -2693,7 +2693,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2760,7 +2760,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2897,7 +2897,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -2921,11 +2921,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3308,7 +3308,7 @@ Specifies the message displayed in a group row when the corresponding group cont } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3317,19 +3317,19 @@ Specifies the message displayed in a group row when the corresponding group cont mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3563,11 +3563,11 @@ Searches grid records by a search string. /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -3829,7 +3829,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -3850,7 +3850,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -3884,7 +3884,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -3896,7 +3896,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -4991,7 +4991,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5485,7 +5485,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5563,7 +5563,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5619,7 +5619,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5638,9 +5638,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5754,7 +5754,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5767,9 +5767,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -5948,7 +5948,7 @@ Specifies an interval between minor ticks. /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6082,11 +6082,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -6126,7 +6126,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -6187,11 +6187,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -6206,7 +6206,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -6245,11 +6245,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -6305,9 +6305,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -6315,15 +6315,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -6394,7 +6394,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.1.5.d.ts b/devextreme/devextreme-15.1.5.d.ts index cdc827ca32..84e17ebf72 100644 --- a/devextreme/devextreme-15.1.5.d.ts +++ b/devextreme/devextreme-15.1.5.d.ts @@ -160,7 +160,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -258,7 +258,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -279,7 +279,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -345,7 +345,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -368,12 +368,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -461,11 +461,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -618,7 +618,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -638,14 +638,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -708,7 +708,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -736,7 +736,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -763,7 +763,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -827,7 +827,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1096,7 +1096,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1215,7 +1215,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1390,7 +1390,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1403,7 +1403,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1611,7 +1611,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2373,7 +2373,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2518,9 +2518,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2586,9 +2586,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: number, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Disposes of all resources associated with this PivotGridDataSource. */ dispose(): void; on(eventName: string, eventHandler: Function): PivotGridDataSource; @@ -2610,9 +2610,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering appointments. */ appointmentTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -2698,7 +2698,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2767,7 +2767,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2904,7 +2904,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -2928,11 +2928,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3315,7 +3315,7 @@ Specifies the message displayed in a group row when the corresponding group cont } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3324,19 +3324,19 @@ Specifies the message displayed in a group row when the corresponding group cont mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3572,11 +3572,11 @@ Searches grid records by a search string. /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -3842,7 +3842,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -3863,7 +3863,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -3897,7 +3897,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -3909,7 +3909,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5004,7 +5004,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5500,7 +5500,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5578,7 +5578,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5646,7 +5646,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5665,9 +5665,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5781,7 +5781,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5794,9 +5794,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -5975,7 +5975,7 @@ Specifies an interval between minor ticks. /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6109,11 +6109,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -6153,7 +6153,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -6214,11 +6214,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -6233,7 +6233,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -6272,11 +6272,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -6344,9 +6344,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -6354,15 +6354,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -6443,7 +6443,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.1.6.d.ts b/devextreme/devextreme-15.1.6.d.ts index e42d3f0622..48c2733766 100644 --- a/devextreme/devextreme-15.1.6.d.ts +++ b/devextreme/devextreme-15.1.6.d.ts @@ -160,7 +160,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -258,7 +258,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -279,7 +279,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -345,7 +345,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -368,12 +368,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -463,11 +463,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -624,7 +624,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -644,14 +644,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -714,7 +714,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -742,7 +742,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -769,7 +769,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -848,7 +848,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1117,7 +1117,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1236,7 +1236,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1411,7 +1411,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1424,7 +1424,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1632,7 +1632,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2457,7 +2457,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2602,9 +2602,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2670,9 +2670,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: number, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Disposes of all resources associated with this PivotGridDataSource. */ dispose(): void; on(eventName: string, eventHandler: Function): PivotGridDataSource; @@ -2784,7 +2784,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2857,7 +2857,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2994,7 +2994,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3018,11 +3018,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3405,7 +3405,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3414,19 +3414,19 @@ declare namespace DevExpress.ui { mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3662,11 +3662,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -3955,7 +3955,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -3989,7 +3989,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4001,7 +4001,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5126,7 +5126,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5622,7 +5622,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5700,7 +5700,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5768,7 +5768,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5787,9 +5787,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5903,7 +5903,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5916,9 +5916,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6099,7 +6099,7 @@ Specifies an interval between minor ticks. /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6233,11 +6233,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -6277,7 +6277,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -6338,11 +6338,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -6357,7 +6357,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -6396,11 +6396,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -6468,9 +6468,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -6478,15 +6478,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -6567,7 +6567,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.1.7.d.ts b/devextreme/devextreme-15.1.7.d.ts index 6cf4cd2fe3..4d020ce475 100644 --- a/devextreme/devextreme-15.1.7.d.ts +++ b/devextreme/devextreme-15.1.7.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -260,7 +260,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -281,7 +281,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -345,7 +345,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -368,12 +368,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -466,11 +466,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -627,7 +627,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -647,14 +647,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -717,7 +717,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -745,7 +745,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -772,7 +772,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -851,7 +851,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1120,7 +1120,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1239,7 +1239,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1407,7 +1407,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1420,7 +1420,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1627,7 +1627,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2411,7 +2411,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2556,9 +2556,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2624,9 +2624,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2656,9 +2656,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering appointments. */ appointmentTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -2746,7 +2746,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2819,7 +2819,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2956,7 +2956,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -2980,11 +2980,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3364,7 +3364,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3373,19 +3373,19 @@ declare namespace DevExpress.ui { mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3619,11 +3619,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -3893,7 +3893,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -3914,7 +3914,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -3948,7 +3948,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -3960,7 +3960,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5081,7 +5081,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5577,7 +5577,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5655,7 +5655,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5723,7 +5723,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5742,9 +5742,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5858,7 +5858,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5871,9 +5871,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6050,7 +6050,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6184,11 +6184,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -6228,7 +6228,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -6289,11 +6289,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -6308,7 +6308,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -6347,11 +6347,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -6419,9 +6419,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -6429,15 +6429,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -6518,7 +6518,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.1.8.d.ts b/devextreme/devextreme-15.1.8.d.ts index 7405a2fc7c..fef832662f 100644 --- a/devextreme/devextreme-15.1.8.d.ts +++ b/devextreme/devextreme-15.1.8.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows8. */ win8?: boolean; /** Specifies a performance grade of the current device. */ @@ -264,7 +264,7 @@ declare namespace DevExpress { export interface StoreOptions { inserted?: (values: Object, key: any) => void; inserting?: (values: Object) => void; - loaded?: (result: Array) => void; + loaded?: (result: any[]) => void; loading?: (loadOptions: LoadOptions) => void; modified?: () => void; modifying?: () => void; @@ -285,7 +285,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -349,7 +349,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -372,12 +372,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -470,11 +470,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -631,7 +631,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -651,14 +651,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -721,7 +721,7 @@ declare namespace DevExpress { itemRender?: any; itemRenderedAction?: Function; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** * A function performed when a widget item is selected. * @deprecated onSelectionChanged.md @@ -749,7 +749,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -776,7 +776,7 @@ declare namespace DevExpress { valueExpr?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -855,7 +855,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1124,7 +1124,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; } /** A widget that allows you to select multiple items from a dropdown list. */ export class dxTagBox extends dxSelectBox { @@ -1243,7 +1243,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1411,7 +1411,7 @@ declare namespace DevExpress.ui { onMarkerRemoved?: Function; markerRemovedAction?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1424,7 +1424,7 @@ declare namespace DevExpress.ui { onRouteRemoved?: Function; routeRemovedAction?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1631,7 +1631,7 @@ declare namespace DevExpress.ui { selectionMode?: string; selectAllText?: string; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2422,7 +2422,7 @@ declare namespace DevExpress.ui { itemClickAction?: any; itemRender?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2567,9 +2567,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2635,9 +2635,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2667,9 +2667,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering appointments. */ appointmentTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -2757,7 +2757,7 @@ declare namespace DevExpress.ui { * An array of currently expanded item objects. * @deprecated Use item.expanded field instead */ - expandedItems?: Array; + expandedItems?: any[]; /** Specifies whether or not a check box is displayed at each tree view item. */ showCheckBoxes?: boolean; /** Specifies whether or not to select nodes recursively. */ @@ -2830,7 +2830,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -2967,7 +2967,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function that returns a value to be displayed in a column cell. */ calculateCellValue?: (rowData: Object) => string; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -2991,11 +2991,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3372,7 +3372,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies whether the user can select all grid records at once. */ @@ -3381,19 +3381,19 @@ declare namespace DevExpress.ui { mode?: string; }; selectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3627,11 +3627,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -3901,7 +3901,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -3922,7 +3922,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -3956,7 +3956,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -3968,7 +3968,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5089,7 +5089,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5585,7 +5585,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the color of the scale's minor ticks. */ color?: string; /** Specifies an array of custom minor ticks. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** Indicates whether automatically calculated minor ticks are visible or not. */ @@ -5663,7 +5663,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -5731,7 +5731,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -5750,9 +5750,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -5866,7 +5866,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -5879,9 +5879,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6058,7 +6058,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6192,11 +6192,11 @@ declare namespace DevExpress.viz.map { /** Contains the value of a bubble map marker. */ value: number; /** Contains the values of a pie map marker. */ - values: Array; + values: number[]; /** Returns the value of an attribute. */ attribute(name: string): any; /** Returns the coordinates of a specific marker. */ - coordinates(): Array; + coordinates(): number[]; /** Provides information about the selection state of a marker. */ selected(): boolean; /** Sets a new selection state for a marker. */ @@ -6236,7 +6236,7 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint areas with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring areas. */ colorGroupingField?: string; /** Specifies a color for the area border when the area is selected. */ @@ -6297,11 +6297,11 @@ declare namespace DevExpress.viz.map { /** Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. */ palette?: any; /** Allows you to paint markers with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring markers. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. */ sizeGroupingField?: string; } @@ -6316,7 +6316,7 @@ declare namespace DevExpress.viz.map { color?: string; }; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -6355,11 +6355,11 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; - centerChanged?: (center: Array) => void; + center?: number[]; + centerChanged?: (center: number[]) => void; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -6427,9 +6427,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** Deselects all the selected areas on a map. The areas are displayed in their initial style after. */ clearAreaSelection(): void; /** Deselects all the selected markers on a map. The markers are displayed in their initial style after. */ @@ -6437,15 +6437,15 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Returns an array with all the map areas. */ getAreas(): Array; /** Returns an array with all the map markers. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -6526,7 +6526,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.2.4.d.ts b/devextreme/devextreme-15.2.4.d.ts index 669d32f0f9..e155e6e680 100644 --- a/devextreme/devextreme-15.2.4.d.ts +++ b/devextreme/devextreme-15.2.4.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows. */ win?: boolean; /** Specifies a performance grade of the current device. */ @@ -275,7 +275,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -329,7 +329,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -352,12 +352,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -447,11 +447,11 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -611,7 +611,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Groups the current Query data. */ groupBy(getter: Object): Query; /** Applies the specified transformation to each item. */ @@ -631,14 +631,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -697,7 +697,7 @@ declare namespace DevExpress { /** The time period in milliseconds before the onItemHold event is raised. */ itemHoldTimeout?: number; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; loopItemFocus?: boolean; @@ -719,7 +719,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -745,7 +745,7 @@ declare namespace DevExpress { /** Specifies the name of a data source item field whose value is held in the value configuration option. */ valueExpr?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -827,7 +827,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1097,7 +1097,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; /** A read-only option that holds the last selected value. */ value?: Object; } @@ -1215,7 +1215,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1389,7 +1389,7 @@ declare namespace DevExpress.ui { /** A handler for the markerRemoved event. */ onMarkerRemoved?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1399,7 +1399,7 @@ declare namespace DevExpress.ui { /** A handler for the routeRemoved event. */ onRouteRemoved?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1593,7 +1593,7 @@ declare namespace DevExpress.ui { selectAllText?: string; onSelectAllChanged?: Function; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2066,7 +2066,7 @@ declare namespace DevExpress.ui { /** Specifies options for the form item label. */ label?: dxFormItemLabel; /** An array of validation rules to be checked for the form item editor. */ - validationRules?: Array; + validationRules?: any[]; } export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ @@ -2522,7 +2522,7 @@ declare namespace DevExpress.ui { /** A handler for the itemClick event. */ onItemClick?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2666,9 +2666,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2778,9 +2778,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2793,11 +2793,11 @@ declare namespace DevExpress.data { filter(filterExpr: Object): void; /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ createDrillDownDataSource(options: { - columnPath?: Array; - rowPath?: Array; + columnPath?: any[]; + rowPath?: any[]; dataIndex?: number; maxRowCount?: number; - customColumns?: Array; + customColumns?: string[]; }): DevExpress.data.DataSource; /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ state(): Object; @@ -2828,9 +2828,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -3023,7 +3023,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3162,7 +3162,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3190,11 +3190,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3580,7 +3580,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3594,10 +3594,10 @@ declare namespace DevExpress.ui { onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3855,11 +3855,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4178,7 +4178,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -4199,7 +4199,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -4236,7 +4236,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4248,7 +4248,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5401,7 +5401,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5882,7 +5882,7 @@ declare namespace DevExpress.viz.gauges { * Specifies an array of custom minor ticks. * @deprecated ..\customMinorTicks.md */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** @@ -5960,9 +5960,9 @@ declare namespace DevExpress.viz.gauges { /** Specifies an interval between minor ticks. */ minorTickInterval?: number; /** Specifies an array of custom major ticks. */ - customTicks?: Array; + customTicks?: any[]; /** Specifies an array of custom minor ticks. */ - customMinorTicks?: Array; + customMinorTicks?: any[]; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; /** @@ -6016,7 +6016,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -6111,7 +6111,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -6130,9 +6130,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -6246,7 +6246,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -6259,9 +6259,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6455,7 +6455,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6656,7 +6656,7 @@ declare namespace DevExpress.viz.map { * Contains the values of a pie map marker. * @deprecated Get the values with the "attribute" method (using the "layers.dataField" value) */ - values: Array; + values: number[]; /** * Returns the value of an attribute. * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md @@ -6666,7 +6666,7 @@ declare namespace DevExpress.viz.map { * Returns the coordinates of a specific marker. * @deprecated ..\..\Layer Element\3 Methods\coordinates().md */ - coordinates(): Array; + coordinates(): number[]; /** * Provides information about the selection state of a marker. * @deprecated Use the "selected()" method of the Layer Element @@ -6727,11 +6727,11 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint layer elements with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring of layer elements. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ sizeGroupingField?: string; /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ @@ -6824,7 +6824,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint areas with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring areas. * @deprecated ..\layers\colorGroupingField.md @@ -6962,7 +6962,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint markers with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring markers. * @deprecated ..\layers\colorGroupingField.md @@ -6972,7 +6972,7 @@ declare namespace DevExpress.viz.map { * Allows you to display bubbles with similar attributes in the same size. * @deprecated ..\layers\sizeGroups.md */ - sizeGroups?: Array; + sizeGroups?: number[]; /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated ..\layers\sizeGroupingField.md @@ -6997,7 +6997,7 @@ declare namespace DevExpress.viz.map { /** Specifies the map projection. */ projection?: Object; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -7047,10 +7047,10 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; + center?: number[]; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -7141,9 +7141,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the 'clearSelection' method on a layer instead @@ -7157,7 +7157,7 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Gets all map layers. */ getLayers(): Array; /** Gets the layer by its index. */ @@ -7175,9 +7175,9 @@ declare namespace DevExpress.viz.map { */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -7187,8 +7187,8 @@ declare namespace DevExpress.viz.map { export interface ProjectionCreator { /** Creates a new projection. */ (data: { - to?: (coordinates: Array) => Array; - from?: (coordinates: Array) => Array; + to?: (coordinates: number[]) => number[]; + from?: (coordinates: number[]) => number[]; aspectRatio?: number; }): Object; /** Gets the default or custom projection from the projection storage. */ @@ -7271,7 +7271,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.2.5.d.ts b/devextreme/devextreme-15.2.5.d.ts index 195a5de59c..4137259364 100644 --- a/devextreme/devextreme-15.2.5.d.ts +++ b/devextreme/devextreme-15.2.5.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows. */ win?: boolean; /** Specifies a performance grade of the current device. */ @@ -275,7 +275,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -329,7 +329,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -352,12 +352,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -430,7 +430,7 @@ declare namespace DevExpress { /** An object that provides access to a data web service or local data storage for collection container widgets. */ export class DataSource implements EventsMixin { constructor(url: string); - constructor(data: Array); + constructor(data: any[]); constructor(options: CustomStoreOptions); constructor(options: DataSourceOptions); /** Disposes all resources associated with this DataSource. */ @@ -450,13 +450,13 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Clears currently loaded DataSource items and calls the load() method. */ - reload(): JQueryPromise>; + reload(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -616,7 +616,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Filters the current Query data. */ filter(predicate: (item: any) => boolean): Query; /** Groups the current Query data. */ @@ -638,14 +638,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -704,7 +704,7 @@ declare namespace DevExpress { /** The time period in milliseconds before the onItemHold event is raised. */ itemHoldTimeout?: number; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; loopItemFocus?: boolean; @@ -726,7 +726,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -752,7 +752,7 @@ declare namespace DevExpress { /** Specifies the name of a data source item field whose value is held in the value configuration option. */ valueExpr?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -834,7 +834,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1104,7 +1104,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; /** A read-only option that holds the last selected value. */ value?: Object; } @@ -1222,7 +1222,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1396,7 +1396,7 @@ declare namespace DevExpress.ui { /** A handler for the markerRemoved event. */ onMarkerRemoved?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1406,7 +1406,7 @@ declare namespace DevExpress.ui { /** A handler for the routeRemoved event. */ onRouteRemoved?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1600,7 +1600,7 @@ declare namespace DevExpress.ui { selectAllText?: string; onSelectAllChanged?: Function; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2073,7 +2073,7 @@ declare namespace DevExpress.ui { /** Specifies options for the form item label. */ label?: dxFormItemLabel; /** An array of validation rules to be checked for the form item editor. */ - validationRules?: Array; + validationRules?: any[]; } export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ @@ -2530,7 +2530,7 @@ declare namespace DevExpress.ui { /** A handler for the itemClick event. */ onItemClick?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2674,9 +2674,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2786,9 +2786,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2801,11 +2801,11 @@ declare namespace DevExpress.data { filter(filterExpr: Object): void; /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ createDrillDownDataSource(options: { - columnPath?: Array; - rowPath?: Array; + columnPath?: any[]; + rowPath?: any[]; dataIndex?: number; maxRowCount?: number; - customColumns?: Array; + customColumns?: string[]; }): DevExpress.data.DataSource; /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ state(): Object; @@ -2836,9 +2836,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -3053,7 +3053,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3192,7 +3192,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3220,11 +3220,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3612,7 +3612,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3626,10 +3626,10 @@ declare namespace DevExpress.ui { onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3894,11 +3894,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4224,7 +4224,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -4245,7 +4245,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -4282,7 +4282,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4294,7 +4294,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5451,7 +5451,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5934,7 +5934,7 @@ declare namespace DevExpress.viz.gauges { * Specifies an array of custom minor ticks. * @deprecated ..\customMinorTicks.md */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** @@ -6012,9 +6012,9 @@ declare namespace DevExpress.viz.gauges { /** Specifies an interval between minor ticks. */ minorTickInterval?: number; /** Specifies an array of custom major ticks. */ - customTicks?: Array; + customTicks?: any[]; /** Specifies an array of custom minor ticks. */ - customMinorTicks?: Array; + customMinorTicks?: any[]; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; /** @@ -6068,7 +6068,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -6163,7 +6163,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -6182,9 +6182,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -6298,7 +6298,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -6311,9 +6311,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6513,7 +6513,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6714,7 +6714,7 @@ declare namespace DevExpress.viz.map { * Contains the values of a pie map marker. * @deprecated Get the values with the "attribute" method (using the "layers.dataField" value) */ - values: Array; + values: number[]; /** * Returns the value of an attribute. * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md @@ -6724,7 +6724,7 @@ declare namespace DevExpress.viz.map { * Returns the coordinates of a specific marker. * @deprecated ..\..\Layer Element\3 Methods\coordinates().md */ - coordinates(): Array; + coordinates(): number[]; /** * Provides information about the selection state of a marker. * @deprecated Use the "selected()" method of the Layer Element @@ -6785,11 +6785,11 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint layer elements with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring of layer elements. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ sizeGroupingField?: string; /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ @@ -6882,7 +6882,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint areas with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring areas. * @deprecated ..\layers\colorGroupingField.md @@ -7020,7 +7020,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint markers with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring markers. * @deprecated ..\layers\colorGroupingField.md @@ -7030,7 +7030,7 @@ declare namespace DevExpress.viz.map { * Allows you to display bubbles with similar attributes in the same size. * @deprecated ..\layers\sizeGroups.md */ - sizeGroups?: Array; + sizeGroups?: number[]; /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated ..\layers\sizeGroupingField.md @@ -7055,7 +7055,7 @@ declare namespace DevExpress.viz.map { /** Specifies the map projection. */ projection?: Object; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -7105,10 +7105,10 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; + center?: number[]; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -7199,9 +7199,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the 'clearSelection' method on a layer instead @@ -7215,7 +7215,7 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Gets all map layers. */ getLayers(): Array; /** Gets the layer by its index. */ @@ -7233,9 +7233,9 @@ declare namespace DevExpress.viz.map { */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -7245,8 +7245,8 @@ declare namespace DevExpress.viz.map { export interface ProjectionCreator { /** Creates a new projection. */ (data: { - to?: (coordinates: Array) => Array; - from?: (coordinates: Array) => Array; + to?: (coordinates: number[]) => number[]; + from?: (coordinates: number[]) => number[]; aspectRatio?: number; }): Object; /** Gets the default or custom projection from the projection storage. */ @@ -7329,7 +7329,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.2.7.d.ts b/devextreme/devextreme-15.2.7.d.ts index 6f482898a8..5544432def 100644 --- a/devextreme/devextreme-15.2.7.d.ts +++ b/devextreme/devextreme-15.2.7.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows. */ win?: boolean; /** Specifies a performance grade of the current device. */ @@ -275,7 +275,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -329,7 +329,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -352,12 +352,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -430,7 +430,7 @@ declare namespace DevExpress { /** An object that provides access to a data web service or local data storage for collection container widgets. */ export class DataSource implements EventsMixin { constructor(url: string); - constructor(data: Array); + constructor(data: any[]); constructor(options: CustomStoreOptions); constructor(options: DataSourceOptions); /** Disposes all resources associated with this DataSource. */ @@ -450,13 +450,13 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): JQueryPromise>; + load(): JQueryPromise; /** Clears currently loaded DataSource items and calls the load() method. */ - reload(): JQueryPromise>; + reload(): JQueryPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -616,7 +616,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Filters the current Query data. */ filter(predicate: (item: any) => boolean): Query; /** Groups the current Query data. */ @@ -638,14 +638,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -704,7 +704,7 @@ declare namespace DevExpress { /** The time period in milliseconds before the onItemHold event is raised. */ itemHoldTimeout?: number; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; loopItemFocus?: boolean; @@ -726,7 +726,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -752,7 +752,7 @@ declare namespace DevExpress { /** Specifies the name of a data source item field whose value is held in the value configuration option. */ valueExpr?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -834,7 +834,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1104,7 +1104,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; /** A read-only option that holds the last selected value. */ value?: Object; } @@ -1222,7 +1222,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1399,7 +1399,7 @@ declare namespace DevExpress.ui { /** A handler for the markerRemoved event. */ onMarkerRemoved?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1409,7 +1409,7 @@ declare namespace DevExpress.ui { /** A handler for the routeRemoved event. */ onRouteRemoved?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1605,7 +1605,7 @@ declare namespace DevExpress.ui { selectAllText?: string; onSelectAllChanged?: Function; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2086,7 +2086,7 @@ declare namespace DevExpress.ui { /** Specifies options for the form item label. */ label?: dxFormItemLabel; /** An array of validation rules to be checked for the form item editor. */ - validationRules?: Array; + validationRules?: any[]; } export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ @@ -2555,7 +2555,7 @@ declare namespace DevExpress.ui { /** A handler for the itemClick event. */ onItemClick?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2700,9 +2700,9 @@ declare namespace DevExpress.data { /** Specifies the data field against which the header items of this field should be sorted. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2812,9 +2812,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2827,11 +2827,11 @@ declare namespace DevExpress.data { filter(filterExpr: Object): void; /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ createDrillDownDataSource(options: { - columnPath?: Array; - rowPath?: Array; + columnPath?: any[]; + rowPath?: any[]; dataIndex?: number; maxRowCount?: number; - customColumns?: Array; + customColumns?: string[]; }): DevExpress.data.DataSource; /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ state(): Object; @@ -2862,9 +2862,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -3079,7 +3079,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3228,7 +3228,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3256,11 +3256,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3648,7 +3648,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3662,10 +3662,10 @@ declare namespace DevExpress.ui { onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3929,11 +3929,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4258,7 +4258,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -4279,7 +4279,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -4316,7 +4316,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4328,7 +4328,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5485,7 +5485,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5980,7 +5980,7 @@ declare namespace DevExpress.viz.gauges { * Specifies an array of custom minor ticks. * @deprecated ..\customMinorTicks.md */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** @@ -6058,9 +6058,9 @@ declare namespace DevExpress.viz.gauges { /** Specifies an interval between minor ticks. */ minorTickInterval?: number; /** Specifies an array of custom major ticks. */ - customTicks?: Array; + customTicks?: any[]; /** Specifies an array of custom minor ticks. */ - customMinorTicks?: Array; + customMinorTicks?: any[]; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; /** @@ -6114,7 +6114,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -6209,7 +6209,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -6228,9 +6228,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -6344,7 +6344,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -6357,9 +6357,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6559,7 +6559,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6760,7 +6760,7 @@ declare namespace DevExpress.viz.map { * Contains the values of a pie map marker. * @deprecated Get the values with the "attribute" method (using the "layers.dataField" value) */ - values: Array; + values: number[]; /** * Returns the value of an attribute. * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md @@ -6770,7 +6770,7 @@ declare namespace DevExpress.viz.map { * Returns the coordinates of a specific marker. * @deprecated ..\..\Layer Element\3 Methods\coordinates().md */ - coordinates(): Array; + coordinates(): number[]; /** * Provides information about the selection state of a marker. * @deprecated Use the "selected()" method of the Layer Element @@ -6831,11 +6831,11 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint layer elements with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring of layer elements. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ sizeGroupingField?: string; /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ @@ -6928,7 +6928,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint areas with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring areas. * @deprecated ..\layers\colorGroupingField.md @@ -7066,7 +7066,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint markers with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring markers. * @deprecated ..\layers\colorGroupingField.md @@ -7076,7 +7076,7 @@ declare namespace DevExpress.viz.map { * Allows you to display bubbles with similar attributes in the same size. * @deprecated ..\layers\sizeGroups.md */ - sizeGroups?: Array; + sizeGroups?: number[]; /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated ..\layers\sizeGroupingField.md @@ -7101,7 +7101,7 @@ declare namespace DevExpress.viz.map { /** Specifies the map projection. */ projection?: Object; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -7151,10 +7151,10 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; + center?: number[]; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -7245,9 +7245,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the 'clearSelection' method on a layer instead @@ -7261,7 +7261,7 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Gets all map layers. */ getLayers(): Array; /** Gets the layer by its index. */ @@ -7279,9 +7279,9 @@ declare namespace DevExpress.viz.map { */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -7291,8 +7291,8 @@ declare namespace DevExpress.viz.map { export interface ProjectionCreator { /** Creates a new projection. */ (data: { - to?: (coordinates: Array) => Array; - from?: (coordinates: Array) => Array; + to?: (coordinates: number[]) => number[]; + from?: (coordinates: number[]) => number[]; aspectRatio?: number; }): Object; /** Gets the default or custom projection from the projection storage. */ @@ -7375,7 +7375,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/devextreme-15.2.9.d.ts b/devextreme/devextreme-15.2.9.d.ts index 8a9cf9d8ea..190bb773cd 100644 --- a/devextreme/devextreme-15.2.9.d.ts +++ b/devextreme/devextreme-15.2.9.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows. */ win?: boolean; /** Specifies a performance grade of the current device. */ @@ -275,7 +275,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -329,7 +329,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -352,12 +352,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -433,7 +433,7 @@ declare namespace DevExpress { /** An object that provides access to a data web service or local data storage for collection container widgets. */ export class DataSource implements EventsMixin { constructor(url: string); - constructor(data: Array); + constructor(data: any[]); constructor(options: CustomStoreOptions); constructor(options: DataSourceOptions); /** Disposes all resources associated with this DataSource. */ @@ -453,13 +453,13 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): OperationPromise>; + load(): OperationPromise; /** Clears currently loaded DataSource items and calls the load() method. */ - reload(): OperationPromise>; + reload(): OperationPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -620,7 +620,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Filters the current Query data. */ filter(predicate: (item: any) => boolean): Query; /** Groups the current Query data. */ @@ -642,14 +642,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -708,7 +708,7 @@ declare namespace DevExpress { /** The time period in milliseconds before the onItemHold event is raised. */ itemHoldTimeout?: number; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; loopItemFocus?: boolean; @@ -730,7 +730,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -756,7 +756,7 @@ declare namespace DevExpress { /** Specifies the name of a data source item field whose value is held in the value configuration option. */ valueExpr?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -838,7 +838,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1108,7 +1108,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; /** A read-only option that holds the last selected value. */ value?: Object; } @@ -1226,7 +1226,7 @@ declare namespace DevExpress.ui { titleTemplate?: any; width?: any; /** Specifies items displayed on the top or bottom toolbar of the popup window. */ - buttons?: Array; + buttons?: any[]; /** Specifies whether or not the widget displays the Close button. */ showCloseButton?: boolean; /** A handler for the titleRendered event. */ @@ -1403,7 +1403,7 @@ declare namespace DevExpress.ui { /** A handler for the markerRemoved event. */ onMarkerRemoved?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1413,7 +1413,7 @@ declare namespace DevExpress.ui { /** A handler for the routeRemoved event. */ onRouteRemoved?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -1609,7 +1609,7 @@ declare namespace DevExpress.ui { selectAllText?: string; onSelectAllChanged?: Function; /** Specifies the array of items for a context menu called for a list item. */ - menuItems?: Array; + menuItems?: any[]; /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ menuMode?: string; /** Specifies whether or not an end user can delete list items. */ @@ -2090,7 +2090,7 @@ declare namespace DevExpress.ui { /** Specifies options for the form item label. */ label?: dxFormItemLabel; /** An array of validation rules to be checked for the form item editor. */ - validationRules?: Array; + validationRules?: any[]; } export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ @@ -2559,7 +2559,7 @@ declare namespace DevExpress.ui { /** A handler for the itemClick event. */ onItemClick?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2704,9 +2704,9 @@ declare namespace DevExpress.data { /** Sorts the header items of this field by the summary values of another field. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2816,9 +2816,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2831,11 +2831,11 @@ declare namespace DevExpress.data { filter(filterExpr: Object): void; /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ createDrillDownDataSource(options: { - columnPath?: Array; - rowPath?: Array; + columnPath?: any[]; + rowPath?: any[]; dataIndex?: number; maxRowCount?: number; - customColumns?: Array; + customColumns?: string[]; }): DevExpress.data.DataSource; /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ state(): Object; @@ -2866,9 +2866,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -3083,7 +3083,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3232,7 +3232,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3260,11 +3260,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3652,7 +3652,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3666,10 +3666,10 @@ declare namespace DevExpress.ui { onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -3939,11 +3939,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4268,7 +4268,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -4289,7 +4289,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -4326,7 +4326,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4338,7 +4338,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5495,7 +5495,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -5992,7 +5992,7 @@ declare namespace DevExpress.viz.gauges { * Specifies an array of custom minor ticks. * @deprecated ..\customMinorTicks.md */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** @@ -6070,9 +6070,9 @@ declare namespace DevExpress.viz.gauges { /** Specifies an interval between minor ticks. */ minorTickInterval?: number; /** Specifies an array of custom major ticks. */ - customTicks?: Array; + customTicks?: any[]; /** Specifies an array of custom minor ticks. */ - customMinorTicks?: Array; + customMinorTicks?: any[]; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; /** @@ -6126,7 +6126,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -6221,7 +6221,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -6240,9 +6240,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -6356,7 +6356,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -6369,9 +6369,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6573,7 +6573,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6774,7 +6774,7 @@ declare namespace DevExpress.viz.map { * Contains the values of a pie map marker. * @deprecated Get the values with the "attribute" method (using the "layers.dataField" value) */ - values: Array; + values: number[]; /** * Returns the value of an attribute. * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md @@ -6784,7 +6784,7 @@ declare namespace DevExpress.viz.map { * Returns the coordinates of a specific marker. * @deprecated ..\..\Layer Element\3 Methods\coordinates().md */ - coordinates(): Array; + coordinates(): number[]; /** * Provides information about the selection state of a marker. * @deprecated Use the "selected()" method of the Layer Element @@ -6845,11 +6845,11 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint layer elements with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring of layer elements. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ sizeGroupingField?: string; /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ @@ -6942,7 +6942,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint areas with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring areas. * @deprecated ..\layers\colorGroupingField.md @@ -7080,7 +7080,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint markers with similar attributes in the same color. * @deprecated ..\layers\colorGroups.md */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring markers. * @deprecated ..\layers\colorGroupingField.md @@ -7090,7 +7090,7 @@ declare namespace DevExpress.viz.map { * Allows you to display bubbles with similar attributes in the same size. * @deprecated ..\layers\sizeGroups.md */ - sizeGroups?: Array; + sizeGroups?: number[]; /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated ..\layers\sizeGroupingField.md @@ -7115,7 +7115,7 @@ declare namespace DevExpress.viz.map { /** Specifies the map projection. */ projection?: Object; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -7165,10 +7165,10 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; + center?: number[]; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -7259,9 +7259,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the 'clearSelection' method on a layer instead @@ -7275,7 +7275,7 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Gets all map layers. */ getLayers(): Array; /** Gets the layer by its index. */ @@ -7293,9 +7293,9 @@ declare namespace DevExpress.viz.map { */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -7305,8 +7305,8 @@ declare namespace DevExpress.viz.map { export interface ProjectionCreator { /** Creates a new projection. */ (data: { - to?: (coordinates: Array) => Array; - from?: (coordinates: Array) => Array; + to?: (coordinates: number[]) => number[]; + from?: (coordinates: number[]) => number[]; aspectRatio?: number; }): Object; /** Gets the default or custom projection from the projection storage. */ @@ -7389,7 +7389,7 @@ declare namespace DevExpress.viz.sparklines { /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ barPositiveColor?: string; /** Specifies a data source for the sparkline. */ - dataSource?: Array; + dataSource?: any[]; /** Sets a color for the boundary of both the first and last points on a sparkline. */ firstLastColor?: string; /** Specifies whether a sparkline ignores null data points or not. */ diff --git a/devextreme/index.d.ts b/devextreme/index.d.ts index 77af3f4f0b..30f277dba3 100644 --- a/devextreme/index.d.ts +++ b/devextreme/index.d.ts @@ -162,7 +162,7 @@ declare namespace DevExpress { /** Indicates whether or not the device type is 'tablet'. */ tablet?: boolean; /** Specifies an array with the major and minor versions of the device platform. */ - version?: Array; + version?: number[]; /** Indicates whether or not the device platform is Windows. */ win?: boolean; /** Specifies a performance grade of the current device. */ @@ -277,7 +277,7 @@ declare namespace DevExpress { /** A handler for the updating event. */ onUpdating?: (key: any, values: Object) => void; /** A handler for the loaded event. */ - onLoaded?: (result: Array) => void; + onLoaded?: (result: any[]) => void; /** A handler for the loading event. */ onLoading?: (loadOptions: LoadOptions) => void; /** A handler for the inserted event. */ @@ -331,7 +331,7 @@ declare namespace DevExpress { on(eventName: "modifying", eventHandler: () => void): Store; on(eventName: "modified", eventHandler: () => void): Store; on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: "loaded", eventHandler: (result: any[]) => void): Store; on(eventName: string, eventHandler: Function): Store; on(events: { [eventName: string]: Function; }): Store; off(eventName: "removing"): Store; @@ -354,12 +354,12 @@ declare namespace DevExpress { off(eventName: "modifying", eventHandler: () => void): Store; off(eventName: "modified", eventHandler: () => void): Store; off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; - off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: "loaded", eventHandler: (result: any[]) => void): Store; off(eventName: string, eventHandler: Function): Store; } export interface ArrayStoreOptions extends StoreOptions { /** Specifies the array associated with this Store. */ - data?: Array; + data?: any[]; } /** A Store accessing an in-memory array. */ export class ArrayStore extends Store { @@ -439,7 +439,7 @@ declare namespace DevExpress { /** An object that provides access to a data web service or local data storage for collection container widgets. */ export class DataSource implements EventsMixin { constructor(url: string); - constructor(data: Array); + constructor(data: any[]); constructor(options: CustomStoreOptions); constructor(options: DataSourceOptions); /** Disposes all resources associated with this DataSource. */ @@ -459,13 +459,13 @@ declare namespace DevExpress { /** Indicates whether or not the DataSource is currently being loaded. */ isLoading(): boolean; /** Returns the array of items currently operated by the DataSource. */ - items(): Array; + items(): any[]; /** Returns the key expression. */ key(): any; /** Starts loading data. */ - load(): OperationPromise>; + load(): OperationPromise; /** Clears currently loaded DataSource items and calls the load() method. */ - reload(): OperationPromise>; + reload(): OperationPromise; /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ loadOptions(): Object; /** Returns the current pageSize option value. */ @@ -627,7 +627,7 @@ declare namespace DevExpress { /** Executes the Query. */ enumerate(): JQueryPromise; /** Filters the current Query data. */ - filter(criteria: Array): Query; + filter(criteria: any[]): Query; /** Filters the current Query data. */ filter(predicate: (item: any) => boolean): Query; /** Groups the current Query data. */ @@ -649,14 +649,14 @@ declare namespace DevExpress { /** Adds one more sorting condition to the current Query. */ thenBy(getter: Object, desc: boolean): Query; /** Returns the array of current Query items. */ - toArray(): Array; + toArray(): any[]; } /** The global data layer error handler. */ export var errorHandler: (e: Error) => void; /** Encodes the specified string or array of bytes to base64 encoding. */ export function base64_encode(input: any): string; /** Creates a Query instance. */ - export function query(array: Array): Query; + export function query(array: any[]): Query; /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ @@ -715,7 +715,7 @@ declare namespace DevExpress { /** The time period in milliseconds before the onItemHold event is raised. */ itemHoldTimeout?: number; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; loopItemFocus?: boolean; @@ -737,7 +737,7 @@ declare namespace DevExpress { /** The selected item object. */ selectedItem?: Object; /** An array of currently selected item objects. */ - selectedItems?: Array; + selectedItems?: any[]; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -763,7 +763,7 @@ declare namespace DevExpress { /** Specifies the name of a data source item field whose value is held in the value configuration option. */ valueExpr?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** The currently selected value in the widget. */ @@ -845,7 +845,7 @@ declare namespace DevExpress { declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ - validationRules?: Array; + validationRules?: any[]; /** Specifies the editor name to be used in the validation default messages. */ name?: string; /** An object that specifies what and when to validate and how to apply the validation result. */ @@ -1120,7 +1120,7 @@ declare namespace DevExpress.ui { } export interface dxTagBoxOptions extends dxSelectBoxOptions { /** Holds the list of selected values. */ - values?: Array; + values?: any[]; /** A read-only option that holds the last selected value. */ value?: Object; } @@ -1444,7 +1444,7 @@ declare namespace DevExpress.ui { /** A handler for the markerRemoved event. */ onMarkerRemoved?: Function; /** An array of markers displayed on a map. */ - markers?: Array; + markers?: any[]; /** The name of the current map data provider. */ provider?: string; /** A handler for the ready event. */ @@ -1454,7 +1454,7 @@ declare namespace DevExpress.ui { /** A handler for the routeRemoved event. */ onRouteRemoved?: Function; /** An array of routes shown on the map. */ - routes?: Array; + routes?: any[]; /** The type of a map to display. */ type?: string; /** Specifies the width of the widget. */ @@ -2145,7 +2145,7 @@ declare namespace DevExpress.ui { /** Specifies options for the form item label. */ label?: dxFormItemLabel; /** An array of validation rules to be checked for the form item editor. */ - validationRules?: Array; + validationRules?: any[]; } export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ @@ -2616,7 +2616,7 @@ declare namespace DevExpress.ui { /** A handler for the itemClick event. */ onItemClick?: any; /** An array of items displayed by the widget. */ - items?: Array; + items?: any[]; /** The template to be used for rendering items. */ itemTemplate?: any; /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ @@ -2760,9 +2760,9 @@ declare namespace DevExpress.data { /** Sorts the header items of this field by the summary values of another field. */ sortBySummaryField?: string; /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ - sortBySummaryPath?: Array; + sortBySummaryPath?: any[]; /** The filter values for the current field. */ - filterValues?: Array; + filterValues?: any[]; /** The filter type for the current field. */ filterType?: string; /** Indicates whether all header items of the field's header level are expanded. */ @@ -2872,9 +2872,9 @@ declare namespace DevExpress.data { /** Sets one or more options of a specified field. */ field(id: any, field: PivotGridField): void; /** Collapses a specified header item. */ - collapseHeaderItem(area: string, path: Array): void; + collapseHeaderItem(area: string, path: any[]): void; /** Expands a specified header item. */ - expandHeaderItem(area: string, path: Array): void; + expandHeaderItem(area: string, path: any[]): void; /** Expands all header items of a field. */ expandAll(id: any): void; /** Collapses all header items of a field. */ @@ -2887,11 +2887,11 @@ declare namespace DevExpress.data { filter(filterExpr: Object): void; /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ createDrillDownDataSource(options: { - columnPath?: Array; - rowPath?: Array; + columnPath?: any[]; + rowPath?: any[]; dataIndex?: number; maxRowCount?: number; - customColumns?: Array; + customColumns?: string[]; }): DevExpress.data.DataSource; /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ state(): Object; @@ -2922,9 +2922,9 @@ declare namespace DevExpress.ui { /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: string[]; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ - groups?: Array; + groups?: string[]; /** Specifies a start hour in the scheduler view's time interval. */ startDayHour?: number; /** Specifies an end hour in the scheduler view's time interval. */ @@ -3144,7 +3144,7 @@ declare namespace DevExpress.ui { /** Specifies the name of the CSS class associated with the menu. */ cssClass?: string; /** Holds an array of menu items. */ - items?: Array; + items?: any[]; /** Specifies whether or not an item becomes selected if an end-user clicks it. */ selectionByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3293,7 +3293,7 @@ declare namespace DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any[]; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3321,11 +3321,11 @@ declare namespace DevExpress.ui { /** In a boolean column, replaces all false items with a specified text. */ falseText?: string; /** Specifies the set of available filter operations. */ - filterOperations?: Array; + filterOperations?: any[]; /** Specifies a filter value for a column. */ filterValue?: any; /** Specifies initial filter values for the column's header filter. */ - filterValues?: Array; + filterValues?: any[]; /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ filterType?: string; /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ @@ -3713,7 +3713,7 @@ declare namespace DevExpress.ui { } }; /** Specifies the keys of the records that must appear selected initially. */ - selectedRowKeys?: Array; + selectedRowKeys?: any[]; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3727,10 +3727,10 @@ declare namespace DevExpress.ui { onDataErrorOccurred?: (e: { error: Error }) => void; /** A handler for the selectionChanged event. */ onSelectionChanged?: (e: { - currentSelectedRowKeys: Array; - currentDeselectedRowKeys: Array; - selectedRowKeys: Array; - selectedRowsData: Array; + currentSelectedRowKeys: any[]; + currentDeselectedRowKeys: any[]; + selectedRowKeys: any[]; + selectedRowsData: any[]; }) => void; /** A handler for the exporting event. */ onExporting?: (e: { @@ -4000,11 +4000,11 @@ declare namespace DevExpress.ui { /** Deselects the rows that are currently selected within the applied filter. */ deselectAll(): void; /** Selects specific grid records. */ - selectRows(keys: Array, preserve: boolean): void; + selectRows(keys: any[], preserve: boolean): void; /** Deselects specific grid records. */ - deselectRows(keys: Array): void; + deselectRows(keys: any[]): void; /** Selects grid rows by indexes. */ - selectRowsByIndexes(indexes: Array): void; + selectRowsByIndexes(indexes: any[]): void; /** Allows you to find out whether a row is selected or not. */ isRowSelected(key: any): boolean; /** Invokes the column chooser panel. */ @@ -4329,7 +4329,7 @@ declare namespace DevExpress.framework { clearState(): void; } export namespace html { - export var layoutSets: Array; + export var layoutSets: string[]; export var animationSets: { [animationSetName: string]: AnimationSet }; export interface AnimationSet { [animationName: string]: any; @@ -4350,7 +4350,7 @@ declare namespace DevExpress.framework { /** Specifies application behavior when the user navigates to a root view. */ navigateToRootViewMode?: string; /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ - navigation?: Array; + navigation?: any[]; /** A state manager to be used in the application. */ stateManager?: StateManager; /** Specifies the storage to be used by the application's state manager to store the application state. */ @@ -4387,7 +4387,7 @@ declare namespace DevExpress.framework { /** Provides access to the ViewCache object. */ viewCache: ViewCache; /** An array of dxCommand components that are created based on the application's navigation option value. */ - navigation: Array; + navigation: any[]; /** Provides access to the StateManager object. */ stateManager: StateManager; /** Provides access to the Router object. */ @@ -4399,7 +4399,7 @@ declare namespace DevExpress.framework { /** Calls the clearState() method of the application's StateManager object. */ clearState(): void; /** Creates global navigation commands. */ - createNavigation(navigationConfig: Array): void; + createNavigation(navigationConfig: any[]): void; /** Returns an HTML template of the specified view. */ getViewTemplate(viewName: string): JQuery; /** Returns a configuration object used to create a dxView component for a specified view. */ @@ -5556,7 +5556,7 @@ declare namespace DevExpress.viz.charts { /** Specifies a coefficient for dividing the value axis. */ axisDivisionFactor?: number; /** Specifies the order in which discrete values are arranged on the value axis. */ - categories?: Array; + categories?: any[]; /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ logarithmBase?: number; /** Specifies an interval between axis ticks/grid lines. */ @@ -6053,7 +6053,7 @@ declare namespace DevExpress.viz.gauges { * Specifies an array of custom minor ticks. * @deprecated Use the scale | customMinorTicks option instead. */ - customTickValues?: Array; + customTickValues?: any[]; /** Specifies the length of the scale's minor ticks. */ length?: number; /** @@ -6131,9 +6131,9 @@ declare namespace DevExpress.viz.gauges { /** Specifies an interval between minor ticks. */ minorTickInterval?: number; /** Specifies an array of custom major ticks. */ - customTicks?: Array; + customTicks?: any[]; /** Specifies an array of custom minor ticks. */ - customMinorTicks?: Array; + customMinorTicks?: any[]; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; /** @@ -6187,7 +6187,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ arrowLength?: number; /** Sets the array of colors to be used for coloring subvalue indicators. */ - palette?: Array; + palette?: any[]; /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ indentFromCenter?: number; /** Specifies the second color for the indicator of the twoColorNeedle type. */ @@ -6282,7 +6282,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies the appearance options of subvalue indicators. */ subvalueIndicator?: BaseValueIndicator; /** Specifies a set of subvalues to be designated by the subvalue indicators. */ - subvalues?: Array; + subvalues?: number[]; /** Specifies the main value on a gauge. */ value?: number; /** Specifies the appearance options of the value indicator. */ @@ -6301,9 +6301,9 @@ declare namespace DevExpress.viz.gauges { /** Updates a gauge value. */ value(value: number): void; /** Returns an array of gauge subvalues. */ - subvalues(): Array; + subvalues(): number[]; /** Updates gauge subvalues. */ - subvalues(subvalues: Array): void; + subvalues(subvalues: number[]): void; } export interface LinearRangeContainer extends BaseRangeContainer { /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ @@ -6417,7 +6417,7 @@ declare namespace DevExpress.viz.gauges { /** Specifies a start value for the gauge's invisible scale. */ startValue?: number; /** Specifies the array of values to be indicated on a bar gauge. */ - values?: Array; + values?: number[]; } /** A circular bar widget. */ export class dxBarGauge extends viz.core.BaseWidget { @@ -6430,9 +6430,9 @@ declare namespace DevExpress.viz.gauges { /** Redraws the widget. */ render(): void; /** Returns an array of gauge values. */ - values(): Array; + values(): number[]; /** Updates the values displayed by a gauge. */ - values(values: Array): void; + values(values: number[]): void; } } interface JQuery { @@ -6634,7 +6634,7 @@ declare namespace DevExpress.viz.rangeSelector { /** Specifies the type of values on the scale. */ valueType?: string; /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + categories?: any[]; }; /** Specifies the range to be selected when displaying the dxRangeSelector. */ selectedRange?: { @@ -6835,7 +6835,7 @@ declare namespace DevExpress.viz.map { * Contains the values of a pie map marker. * @deprecated Get the pie values using the Layer Element | attribute(name) method. The name parameter for pie values is set at the dataField option. */ - values: Array; + values: number[]; /** * Returns the value of an attribute. * @deprecated Use the Layer Element | attribute(name, value) method instead. @@ -6845,7 +6845,7 @@ declare namespace DevExpress.viz.map { * Returns the coordinates of a specific marker. * @deprecated Use the Layer Element | coordinates() method instead. */ - coordinates(): Array; + coordinates(): number[]; /** * Provides information about the selection state of a marker. * @deprecated Use the Layer Element | selected() method instead. @@ -6906,11 +6906,11 @@ declare namespace DevExpress.viz.map { /** Specifies the number of colors in a palette. */ paletteSize?: number; /** Allows you to paint layer elements with similar attributes in the same color. */ - colorGroups?: Array; + colorGroups?: number[]; /** Specifies the field that provides data to be used for coloring of layer elements. */ colorGroupingField?: string; /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ - sizeGroups?: Array; + sizeGroups?: number[]; /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ sizeGroupingField?: string; /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ @@ -7003,7 +7003,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint areas with similar attributes in the same color. * @deprecated Use the layers | colorGroups option instead. */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring areas. * @deprecated Use the layers | colorGroupingField option instead. @@ -7141,7 +7141,7 @@ declare namespace DevExpress.viz.map { * Allows you to paint markers with similar attributes in the same color. * @deprecated Use the layers | colorGroups option instead. */ - colorGroups?: Array; + colorGroups?: number[]; /** * Specifies the field that provides data to be used for coloring markers. * @deprecated Use the layers | colorGroupingField option instead. @@ -7151,7 +7151,7 @@ declare namespace DevExpress.viz.map { * Allows you to display bubbles with similar attributes in the same size. * @deprecated Use the layers | sizeGroups option instead. */ - sizeGroups?: Array; + sizeGroups?: number[]; /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated Use the layers | sizeGroupingField option instead. @@ -7176,7 +7176,7 @@ declare namespace DevExpress.viz.map { /** Specifies the map projection. */ projection?: Object; /** Specifies the positioning of a map in geographical coordinates. */ - bounds?: Array; + bounds?: number[]; /** Specifies the options of the control bar. */ controlBar?: { /** Specifies a color for the outline of the control bar elements. */ @@ -7226,10 +7226,10 @@ declare namespace DevExpress.viz.map { /** Disables the zooming capability. */ zoomingEnabled?: boolean; /** Specifies the geographical coordinates of the center for a map. */ - center?: Array; + center?: number[]; /** A handler for the centerChanged event. */ onCenterChanged?: (e: { - center: Array; + center: number[]; component: dxVectorMap; element: Element; }) => void; @@ -7320,9 +7320,9 @@ declare namespace DevExpress.viz.map { /** Redraws a widget. */ render(): void; /** Gets the current coordinates of the map center. */ - center(): Array; + center(): number[]; /** Sets the coordinates of the map center. */ - center(centerCoordinates: Array): void; + center(centerCoordinates: number[]): void; /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the layer's clearSelection() method instead. @@ -7336,7 +7336,7 @@ declare namespace DevExpress.viz.map { /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; /** Converts client area coordinates into map coordinates. */ - convertCoordinates(x: number, y: number): Array; + convertCoordinates(x: number, y: number): number[]; /** Gets all map layers. */ getLayers(): Array; /** Gets the layer by its index. */ @@ -7354,9 +7354,9 @@ declare namespace DevExpress.viz.map { */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ - viewport(): Array; + viewport(): any[]; /** Sets the coordinates of the map viewport. */ - viewport(viewportCoordinates: Array): void; + viewport(viewportCoordinates: number[]): void; /** Gets the current value of the map zoom factor. */ zoomFactor(): number; /** Sets the value of the map zoom factor. */ @@ -7366,8 +7366,8 @@ declare namespace DevExpress.viz.map { export interface ProjectionCreator { /** Creates a new projection. */ (data: { - to?: (coordinates: Array) => Array; - from?: (coordinates: Array) => Array; + to?: (coordinates: number[]) => number[]; + from?: (coordinates: number[]) => number[]; aspectRatio?: number; }): Object; /** Gets the default or custom projection from the projection storage. */ diff --git a/docopt/index.d.ts b/docopt/index.d.ts index 790f71d946..0528495a6c 100644 --- a/docopt/index.d.ts +++ b/docopt/index.d.ts @@ -12,7 +12,7 @@ export = docopt; interface DocoptOption { /** is an optional argument vector. It defaults to the arguments passed to your program (process.argv[2..]). You can also supply it with an array of strings, as with process.argv. For example: ['--verbose', '-o', 'hai.txt'] */ - argv?: Array; + argv?: string[]; /** (default:true) specifies whether the parser should automatically print the help message (supplied as doc) in case -h or --help options are encountered. After showing the usage-message, the program will terminate. If you want to handle -h or --help options manually (the same as other options), set help=false. */ help?: boolean; /** (default:null) is an optional argument that specifies the version of your program. If supplied, then, if the parser encounters --version option, it will print the supplied version and terminate. version could be any printable object, but most likely a string, e.g. '2.1.0rc1'. */ diff --git a/draft-js/draft-js-0.2.2.d.ts b/draft-js/draft-js-0.2.2.d.ts index 948dfbd3ea..2035230298 100644 --- a/draft-js/draft-js-0.2.2.d.ts +++ b/draft-js/draft-js-0.2.2.d.ts @@ -27,7 +27,7 @@ declare module "draft-js" { } interface CompositeDecorator { - getDecorations(): Array; + getDecorations(): any[]; getComponentForKey(): any; getPropsForKey(): any; } diff --git a/dynatable/index.d.ts b/dynatable/index.d.ts index c46684f958..751e5857ef 100644 --- a/dynatable/index.d.ts +++ b/dynatable/index.d.ts @@ -101,7 +101,7 @@ declare namespace JQueryDynatable { */ attributeReader: (cell: Element, record: any) => string; /** List of ids for sorting, generated by the plugin, can be tweaked by using `data-dynatable-sorts` */ - sorts: Array; + sorts: string[]; hidden: boolean; /** * Detected internally by dynatable. @@ -175,7 +175,7 @@ declare namespace JQueryDynatable { * @default ['ctrlKey', 'shiftKey', 'metaKey'] * @see https://en.wikipedia.org/wiki/Modifier_key */ - multisort?: Array; + multisort?: string[]; /** * @todo Find out how this `inputs.page` setting is useful + show an example * @default null @@ -272,7 +272,7 @@ declare namespace JQueryDynatable { * * @default [1,2,2,1] */ - paginationGap?: Array; + paginationGap?: number[]; /** * The target next to which the search block will be inserted (before or after). * You can use a selector string, an Element or a JQuery. @@ -450,7 +450,7 @@ declare namespace JQueryDynatable { * * @default [10,20,50,100] */ - perPageOptions?: Array; + perPageOptions?: number[]; /** * Object describing the current request's sorting * @@ -462,7 +462,7 @@ declare namespace JQueryDynatable { * * @default null */ - sortsKeys?: Array; + sortsKeys?: string[]; /** * The sorting types (generated by dynatable) * It will hosts the type of object to sort (string, number, etc.) @@ -883,7 +883,7 @@ declare namespace JQueryDynatable { * * @return An Array with the first index ([0]) and the last index ([1]) */ - pageBounds(): Array; + pageBounds(): number[]; /** Update the records with the new page */ paginate(): void; /** Reset the records */ diff --git a/echarts/index.d.ts b/echarts/index.d.ts index 890e0500d5..2f6830046d 100644 --- a/echarts/index.d.ts +++ b/echarts/index.d.ts @@ -9,7 +9,7 @@ declare namespace ECharts { renderer?: string }): ECharts; - function connect(group: string|Array): void; + function connect(group: string|string[]): void; function disConnect(group: string): void; diff --git a/ej.web.all/index.d.ts b/ej.web.all/index.d.ts index 369b914194..84f2213c02 100644 --- a/ej.web.all/index.d.ts +++ b/ej.web.all/index.d.ts @@ -125,8 +125,8 @@ declare module ej { } export module widget { var autoInit: boolean; - var registeredInstances: Array; - var registeredWidgets: Array; + var registeredInstances: any[]; + var registeredWidgets: any[]; function register(pluginName: string, className: string, prototype: any): void; function destroyAll(elements: Element): void; function init(element: Element): void; @@ -253,7 +253,7 @@ declare module ej { onEachWhere(filter: any, requiresCast: boolean): any; onPredicate(pred: ej.Predicate, query: ej.Query, requiresCast: boolean): string; onComplexPredicate(pred: ej.Predicate, requiresCast: boolean): string; - onWhere(filters: Array): string; + onWhere(filters: string[]): string; onEachSearch(e: Object): void; onSearch(e: Object): string; onEachSort(e: Object): string; @@ -270,9 +270,9 @@ declare module ej { remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; } update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; data: Object; accept: string; } batchRequest(dm: ej.DataManager, changes: Changes, e: any): { url: string; type: string; data: Object; contentType: string; } - generateDeleteRequest(arr: Array, e: any): string; - generateInsertRequest(arr: Array, e: any): string; - generateUpdateRequest(arr: Array, e: any): string; + generateDeleteRequest(arr: any[], e: any): string; + generateInsertRequest(arr: any[], e: any): string; + generateUpdateRequest(arr: any[], e: any): string; } interface UrlAdaptorOptions { requestType?: string; @@ -363,7 +363,7 @@ declare module ej { update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any }; } class TableModel { - constructor(name: string, jsonArray: Array, dataManager: ej.DataManager, modelComputed: any); + constructor(name: string, jsonArray: any[], dataManager: ej.DataManager, modelComputed: any); on(eventName: string, handler: any): void; off(eventName: string, handler: any): void; setDataManager(dataManager: DataManager): void; @@ -382,7 +382,7 @@ declare module ej { } class Model { constructor(json: any, table: string, name: string); - formElements: Array; + formElements: string[]; computes(value: any): void; on(eventName: string, handler: any): void; off(eventName: string, handler: any): void; @@ -398,9 +398,9 @@ declare module ej { unbind(element: any): void; } interface Changes { - changed?: Array; - added?: Array; - deleted?: Array; + changed?: any[]; + added?: any[]; + deleted?: any[]; } class Predicate { constructor(); @@ -893,22 +893,22 @@ interface globalize { calendars?: calendarsSettings; } interface formatSettings { - pattern: Array; + pattern: string[]; decimals: number; - groupSizes: Array; + groupSizes: number[]; percent: percentSettings; currency: currencySettings; } interface percentSettings { - pattern: Array; + pattern: string[]; decimals: number; - groupSizes: Array; + groupSizes: number[]; symbol: string; } interface currencySettings { - pattern: Array; + pattern: string[]; decimals: number; - groupSizes: Array; + groupSizes: number[]; symbol: string; } interface calendarsSettings { @@ -918,19 +918,19 @@ interface globalize { firstDay: number; days: daySettings; months: monthSettings; - AM: Array; - PM: Array; + AM: string[]; + PM: string[]; twoDigitYearMax: number; patterns: patternSettings; } interface daySettings { - names: Array; - namesAbbr: Array; - namesShort: Array; + names: string[]; + namesAbbr: string[]; + namesShort: string[]; } interface monthSettings { - names: Array; - namesAbbr: Array; + names: string[]; + namesAbbr: string[]; } interface patternSettings { d: string; @@ -1287,10 +1287,10 @@ class Accordion extends ej.Widget { disable(): void; /** Disable the accordion widget item based on specified header index. - * @param {Array} index values to disable the panels + * @param {any[]} index values to disable the panels * @returns {void} */ - disableItems(index: Array): void; + disableItems(index: any[]): void; /** Enable the accordion widget includes all the headers and content panels. * @returns {void} @@ -1298,10 +1298,10 @@ class Accordion extends ej.Widget { enable(): void; /** Enable the accordion widget item based on specified header index. - * @param {Array} index values to enable the panels + * @param {any[]} index values to enable the panels * @returns {void} */ - enableItems(index: Array): void; + enableItems(index: any[]): void; /** To expand all the accordion widget items. * @returns {void} @@ -1869,7 +1869,7 @@ export interface Model { /** The data source contains the list of data for the suggestions list. It can be a string array or JSON array. * @Default {null} */ - dataSource?: any|Array; + dataSource?: any|any[]; /** The time delay (in milliseconds) after which the suggestion popup will be shown. * @Default {200} @@ -2909,10 +2909,10 @@ class ListBox extends ej.Widget { getItemByText(text: string): any; /** Merges the given data with the existing data items in the listbox. - * @param {Array} Data to merge in listbox. + * @param {any[]} Data to merge in listbox. * @returns {void} */ - mergeData(data: Array): void; + mergeData(data: any[]): void; /** Selects the next item based on the current selection. * @returns {void} @@ -3045,16 +3045,16 @@ class ListBox extends ej.Widget { hideItemsByIndices(indices: number[]|string): void; /** Shows the hidden list items using its values. - * @param {Array} Values of the listbox items to be shown. + * @param {any[]} Values of the listbox items to be shown. * @returns {void} */ - showItemsByValues(values: Array): void; + showItemsByValues(values: any[]): void; /** Hides the list item using its values. - * @param {Array} Values of the listbox items to be hidden. + * @param {any[]} Values of the listbox items to be hidden. * @returns {void} */ - hideItemsByValues(values: Array): void; + hideItemsByValues(values: any[]): void; /** Shows a hidden list item using its value. * @param {String} Value of the listbox item to be shown. @@ -3137,7 +3137,7 @@ export interface Model { /** Set of list items to be checked by default using its index. It works only when the showCheckbox property is set to true. * @Default {null} */ - checkedIndices?: Array; + checkedIndices?: any[]; /** The root class for the ListBox widget to customize the existing theme. * @Default {“”} @@ -3216,7 +3216,7 @@ export interface Model { /** The list items to be selected by default using its indices. To use this property allowMultiSelection should be enabled. * @Default {[]} */ - selectedIndices?: Array; + selectedIndices?: any[]; /** Enables/Disables the multi selection option with the help of checkbox control. * @Default {false} @@ -3339,7 +3339,7 @@ export interface ActionBeforeSuccessEventArgs { /** List of array object */ - result?: Array; + result?: any[]; /** ExecuteQuery object of DataManager */ @@ -4186,7 +4186,7 @@ export interface Model { /** This property allows to define the custom colors in the palette model.Custom palettes are created by passing a comma delimited string of HEX values or an array of colors. * @Default {empty} */ - custom?: Array; + custom?: any[]; /** This property allows to embed the popup in the order of DOM element flow . When we set the value as true, the color picker popup is always in visible state. * @Default {false} @@ -4709,7 +4709,7 @@ export interface Model { /** The selectedItems is used to select the specified items (file, folder) of FileExplorer control. */ - selectedItems?: string|Array; + selectedItems?: string|any[]; /** Enables or disables the checkbox option in FileExplorer control. * @Default {true} @@ -4754,7 +4754,7 @@ export interface Model { /** The toolsList property is used to arrange the toolbar items in the FileExplorer control. * @Default {[layout, creation, navigation, addressBar, editing, copyPaste, sortBy, getProperties, searchBar]} */ - toolsList?: Array; + toolsList?: any[]; /** Gets or sets an object that indicates whether to customize the upload behavior in the FileExplorer. */ @@ -5266,7 +5266,7 @@ export interface ContextMenuSettings { /** The customMenuFields property is used to define custom functionality for custom ContextMenu item's which are defined in items property. * @Default {[]} */ - customMenuFields?: Array; + customMenuFields?: any[]; } export interface FilterSettings { @@ -5302,7 +5302,7 @@ export interface GridSettings { /** Gets or sets an object that indicates to render the grid with specified columns. You can use this property same as the column property in Grid control. * @Default {[{ field: name, headerText: Name, width: 30% }, { field: dateModified, headerText: Date Modified, width: 30% }, { field: type, headerText: Type, width: 15% }, { field: size, headerText: Size, width: 12%, textAlign: right, headerTextAlign: left }]} */ - columns?: Array; + columns?: any[]; } export interface UploadSettings { @@ -7191,10 +7191,10 @@ class DropDownList extends ej.Widget { defaults:DropDownList.Model; /** Adding a single item or an array of items into the DropDownList allows you to specify all the field attributes such as value, template, image URL, and HTML attributes for those items. - * @param {any|Array} this parameter should have field attributes with respect to mapped field attributes and it's corresponding values to fields + * @param {any|any[]} this parameter should have field attributes with respect to mapped field attributes and it's corresponding values to fields * @returns {void} */ - addItem(data: any|Array): void; + addItem(data: any|any[]): void; /** This method is used to select all the items in the DropDownList. * @returns {void} @@ -7217,10 +7217,10 @@ class DropDownList extends ej.Widget { disable(): void; /** This property disables the set of items in the DropDownList. - * @param {string|number|Array} disable the given index list items + * @param {string|number|any[]} disable the given index list items * @returns {void} */ - disableItemsByIndices(index: string|number|Array): void; + disableItemsByIndices(index: string|number|any[]): void; /** This property enables the DropDownList control. * @returns {void} @@ -7228,10 +7228,10 @@ class DropDownList extends ej.Widget { enable(): void; /** Enables an Item or set of Items that are disabled in the DropDownList - * @param {string|number|Array} enable the given index list items if it's disabled + * @param {string|number|any[]} enable the given index list items if it's disabled * @returns {void} */ - enableItemsByIndices(index: string|number|Array): void; + enableItemsByIndices(index: string|number|any[]): void; /** This method retrieves the items using given value. * @param {string|number|any} Return the whole object of data based on given value @@ -7260,22 +7260,22 @@ class DropDownList extends ej.Widget { hidePopup(): void; /** This method is used to select the list of items in the DropDownList through the Index of the items. - * @param {string|number|Array} select the given index list items + * @param {string|number|any[]} select the given index list items * @returns {void} */ - selectItemsByIndices(index: string|number|Array): void; + selectItemsByIndices(index: string|number|any[]): void; /** This method is used to select an item in the DropDownList by using the given text value. - * @param {string|number|Array} select the list items relates to given text + * @param {string|number|any[]} select the list items relates to given text * @returns {void} */ - selectItemByText(index: string|number|Array): void; + selectItemByText(index: string|number|any[]): void; /** This method is used to select an item in the DropDownList by using the given value. - * @param {string|number|Array} select the list items relates to given values + * @param {string|number|any[]} select the list items relates to given values * @returns {void} */ - selectItemByValue(index: string|number|Array): void; + selectItemByValue(index: string|number|any[]): void; /** This method shows the DropDownList control with the suggestion popup. * @returns {void} @@ -7288,22 +7288,22 @@ class DropDownList extends ej.Widget { unCheckAll(): void; /** This method is used to unselect the list of items in the DropDownList through Index of the items. - * @param {string|number|Array} unselect the given index list items + * @param {string|number|any[]} unselect the given index list items * @returns {void} */ - unselectItemsByIndices(index: string|number|Array): void; + unselectItemsByIndices(index: string|number|any[]): void; /** This method is used to unselect an item in the DropDownList by using the given text value. - * @param {string|number|Array} unselect the list items relates to given text + * @param {string|number|any[]} unselect the list items relates to given text * @returns {void} */ - unselectItemByText(index: string|number|Array): void; + unselectItemByText(index: string|number|any[]): void; /** This method is used to unselect an item in the DropDownList by using the given value. - * @param {string|number|Array} unselect the list items relates to given values + * @param {string|number|any[]} unselect the list items relates to given values * @returns {void} */ - unselectItemByValue(index: string|number|Array): void; + unselectItemByValue(index: string|number|any[]): void; } export module DropDownList{ @@ -7466,7 +7466,7 @@ export interface Model { /** Specifies the selectedItems for the DropDownList. * @Default {[]} */ - selectedIndices?: Array; + selectedIndices?: any[]; /** Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true. * @Default {false} @@ -7640,7 +7640,7 @@ export interface ActionCompleteEventArgs { /** Returns the number of items fetched from remote data */ - result?: Array; + result?: any[]; /** Returns the requested data */ @@ -7698,7 +7698,7 @@ export interface ActionSuccessEventArgs { /** Returns the number of items fetched from remote data */ - result?: Array; + result?: any[]; /** Returns the requested data */ @@ -8954,14 +8954,14 @@ class ListView extends ej.Widget { getActiveItemText(): string; /** To get all the checked items. - * @returns {Array} + * @returns {any[]} */ - getCheckedItems(): Array; + getCheckedItems(): any[]; /** To get the text of all the checked items. - * @returns {Array} + * @returns {any[]} */ - getCheckedItemsText(): Array; + getCheckedItemsText(): any[]; /** To get the total item count. * @returns {number} @@ -9059,7 +9059,7 @@ export interface Model { /** Contains the list of data for generating the ListView items. * @Default {[]} */ - dataSource?: Array; + dataSource?: any[]; /** Specifies whether to load AJAX content while selecting item. * @Default {false} @@ -9870,10 +9870,10 @@ class Menu extends ej.Widget { insertBefore(item: any, target: string|any): void; /** Remove Menu item. - * @param {any|Array} Selector of target node or Object of target node. + * @param {any|any[]} Selector of target node or Object of target node. * @returns {void} */ - remove(target: any|Array): void; + remove(target: any|any[]): void; /** To show the Menu control. * @param {number} x co-ordinate position of context menu. @@ -11100,11 +11100,11 @@ class Ribbon extends ej.Widget { /** Adds tab dynamically in the ribbon control with given name, tab group array and index position. When index is null, ribbon tab is added at the last index. * @param {string} ribbon tab display text. - * @param {Array} groups to be displayed in ribbon tab . + * @param {any[]} groups to be displayed in ribbon tab . * @param {number} index of the ribbon tab,this is optional. * @returns {void} */ - addTab(tabText: string, ribbonGroups: Array, index?: number): void; + addTab(tabText: string, ribbonGroups: any[], index?: number): void; /** Adds tab group dynamically in the ribbon control with given tab index, tab group object and group index position. When group index is null, ribbon group is added at the last index. * @param {number} ribbon tab index. @@ -11283,12 +11283,12 @@ export interface Model { /** Specifies the index or indexes to disable the given index tab or indexes tabs in the ribbon control. * @Default {0} */ - disabledItemIndex?: Array; + disabledItemIndex?: any[]; /** Specifies the index or indexes to enable the given index tab or indexes tabs in the ribbon control. * @Default {null} */ - enabledItemIndex?: Array; + enabledItemIndex?: any[]; /** Specifies the index of the ribbon tab to select the given index tab item in the ribbon control. * @Default {1} @@ -11829,7 +11829,7 @@ export interface ContextualTab { /** Specifies the tabs to present in the contextual tabs and tab set. Refer to the tabs section for adding tabs into the contextual tabs and tab set. * @Default {array} */ - tabs?: Array; + tabs?: any[]; } export interface TabsGroupsContentDefaults { @@ -12214,12 +12214,12 @@ class Kanban extends ej.Widget { defaults:Kanban.Model; /** Add or remove columns in Kanban columns collections.Default action is add. - * @param {Array|string} Pass array of columns or string of headerText to add/remove the column in Kanban - * @param {Array|string} Pass array of columns or string of key value to add/remove the column in Kanban + * @param {any[]|string} Pass array of columns or string of headerText to add/remove the column in Kanban + * @param {any[]|string} Pass array of columns or string of key value to add/remove the column in Kanban * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform * @returns {void} */ - columns(columndetails: Array|string, keyvalue: Array|string, action?: string): void; + columns(columndetails: any[]|string, keyvalue: any[]|string, action?: string): void; /** Destroy the Kanban widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. * @returns {void} @@ -12227,10 +12227,10 @@ class Kanban extends ej.Widget { destroy(): void; /** Refresh the Kanban with new data source. - * @param {Array} Pass new data source to the Kanban + * @param {any[]} Pass new data source to the Kanban * @returns {void} */ - dataSource(datasource: Array): void; + dataSource(datasource: any[]): void; /** toggleColumn based on the headerText in Kanban. * @param {any} Pass the header text of the column to get the corresponding column object @@ -12266,10 +12266,10 @@ class Kanban extends ej.Widget { getHeaderTable(): String; /** Hide columns from the Kanban based on the header text - * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide + * @param {any[]|string} you can pass either array of header text of various columns or a header text of a column to hide * @returns {void} */ - hideColumns(headerText: Array|string): void; + hideColumns(headerText: any[]|string): void; /** Print the Kanban Board * @returns {void} @@ -12288,17 +12288,17 @@ class Kanban extends ej.Widget { refresh(templateRefresh?: boolean): void; /** Show columns in the Kanban based on the header text. - * @param {Array|string} You can pass either array of header text of various columns or a header text of a column to show + * @param {any[]|string} You can pass either array of header text of various columns or a header text of a column to show * @returns {void} */ - showColumns(headerText: Array|string): void; + showColumns(headerText: any[]|string): void; /** Update a card in Kanban control based on key and JSON data given. * @param {string} Pass the key field Name of the column - * @param {Array} Pass the edited JSON data of card need to be update. + * @param {any[]} Pass the edited JSON data of card need to be update. * @returns {void} */ - updateCard(key: string, data: Array): void; + updateCard(key: string, data: any[]): void; KanbanSelection: Kanban.KanbanSelection; @@ -12365,10 +12365,10 @@ export interface KanbanEdit { /** Add a new card in Kanban control.If parameters are not given default dialog will be open. * @param {string} Pass the primary key field Name of the column - * @param {Array} Pass the edited JSON data of card need to be add. + * @param {any[]} Pass the edited JSON data of card need to be add. * @returns {void} */ - addCard(primaryKey: string,card: Array): void; + addCard(primaryKey: string,card: any[]): void; /** Send a cancel request of add/edit card in Kanban. * @returns {void} @@ -12858,7 +12858,7 @@ export interface BeforeCardSelectEventArgs { /** Returns the previously select card indexes */ - previousRowcellindex?: Array; + previousRowcellindex?: any[]; /** Returns the Target item. */ @@ -13044,7 +13044,7 @@ export interface CardSelectEventArgs { /** Returns the previously select card indexes */ - previousRowcellindex?: Array; + previousRowcellindex?: any[]; /** Returns the current item. */ @@ -13441,12 +13441,12 @@ export interface ContextMenuSettings { /** Gets or sets a value that indicates the list of items needs to be disable from default context menu items. * @Default {array} */ - disableDefaultItems?: Array; + disableDefaultItems?: any[]; /** Its used to add specific default context menu items. * @Default {array} */ - menuItems?: Array; + menuItems?: any[]; /** Gets or sets a value that indicates whether to add custom contextMenu items. * @Default {array} @@ -13701,7 +13701,7 @@ export interface SearchSettings { /** To customize the fields the searching operation can be perform. * @Default {Array} */ - fields?: Array; + fields?: any[]; /** To customize the searching string. */ @@ -14666,7 +14666,7 @@ export interface Model { /** Specifies the list of groups and order of those groups displayed in the RTE toolbar. The toolsList property is used to get the root group order and tools property is used to get the inner order of the corresponding groups displayed. When the value is not specified, it gets its default display order and tools. * @Default {[formatStyle, font, style, effects, alignment, lists, indenting, clipboard, doAction, clear, links, images, media, tables, casing,view, customTools,print,edit]} */ - toolsList?: Array; + toolsList?: any[]; /** Display the hints for the tools in the Toolbar. * @Default {{ associate: mouseenter, showShadow: true, position: { stem: { horizontal: left, vertical: top } }, tip: { size: { width: 5, height: 5 }, isBalloon: false }} @@ -14962,71 +14962,71 @@ export interface Tools { /** Specifies the casing tools and the display order of this tool in the RTE toolbar. */ - casing?: Array; + casing?: any[]; /** Specifies the clear tools and the display order of this tool in the RTE toolbar. */ - clear?: Array; + clear?: any[]; /** Specifies the clipboard tools and the display order of this tool in the RTE toolbar. */ - clipboard?: Array; + clipboard?: any[]; /** Specifies the edit tools and the displays tool in the RTE toolbar. */ - edit?: Array; + edit?: any[]; /** Specifies the doAction tools and the display order of this tool in the RTE toolbar. */ - doAction?: Array; + doAction?: any[]; /** Specifies the effect of tools and the display order of this tool in RTE toolbar. */ - effects?: Array; + effects?: any[]; /** Specifies the font tools and the display order of this tool in the RTE toolbar. */ - font?: Array; + font?: any[]; /** Specifies the formatStyle tools and the display order of this tool in the RTE toolbar. */ - formatStyle?: Array; + formatStyle?: any[]; /** Specifies the image tools and the display order of this tool in the RTE toolbar. */ - images?: Array; + images?: any[]; /** Specifies the indent tools and the display order of this tool in the RTE toolbar. */ - indenting?: Array; + indenting?: any[]; /** Specifies the link tools and the display order of this tool in the RTE toolbar. */ - links?: Array; + links?: any[]; /** Specifies the list tools and the display order of this tool in the RTE toolbar. */ - lists?: Array; + lists?: any[]; /** Specifies the media tools and the display order of this tool in the RTE toolbar. */ - media?: Array; + media?: any[]; /** Specifies the style tools and the display order of this tool in the RTE toolbar. */ - style?: Array; + style?: any[]; /** Specifies the table tools and the display order of this tool in the RTE toolbar. */ - tables?: Array; + tables?: any[]; /** Specifies the view tools and the display order of this tool in the RTE toolbar. */ - view?: Array; + view?: any[]; /** Specifies the print tools and the display order of this tool in the RTE toolbar. */ - print?: Array; + print?: any[]; /** Specifies the customOrderedList tools and the display order of this tool in the RTE toolbar. */ @@ -15182,7 +15182,7 @@ export interface Model { /** Specifies the values of the range slider. But it's not applicable for default and minRange sliders. we can use value property for default and minRange sliders. * @Default {[minValue,maxValue]} */ - values?: Array; + values?: any[]; /** Specifies the width of the slider. * @Default {100%} @@ -15809,7 +15809,7 @@ export interface Model { /** Specify properties for each pane like paneSize, minSize, maxSize, collapsible, expandable, resizable. * @Default {[]} */ - properties?: Array; + properties?: any[]; /** Specify width for splitter control. * @Default {null} @@ -16090,7 +16090,7 @@ export interface Model { /** Specifies to hide a pane of Tab control. * @Default {[]} */ - hiddenItemIndex?: Array; + hiddenItemIndex?: any[]; /** Specifies the HTML Attributes of the Tab. * @Default {{}} @@ -17739,11 +17739,11 @@ class TreeView extends ej.Widget { addNode(newNodeText: string|any, target: string|any): void; /** To add a collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView. - * @param {any|Array} New node details in JSON object + * @param {any|any[]} New node details in JSON object * @param {string|any} ID of TreeView node/object of TreeView node * @returns {void} */ - addNodes(collection: any|Array, target: string|any): void; + addNodes(collection: any|any[], target: string|any): void; /** To check all the nodes in TreeView. * @returns {void} @@ -17806,16 +17806,16 @@ class TreeView extends ej.Widget { getCheckedNodes(): any; /** To get currently checked nodes indexes in TreeView. - * @returns {Array} + * @returns {any[]} */ - getCheckedNodesIndex(): Array; + getCheckedNodesIndex(): any[]; /** This method is used to get immediate child nodes of a node in TreeView control. If you want to get the all child nodes include nested child nodes then we need to pass includeNestedChild as true along with element arguments to this method. * @param {string|any} ID of TreeView node/object of TreeView node * @param {boolean} Weather include nested child nodes of TreeView node - * @returns {Array} + * @returns {any[]} */ - getChildren(element: string|any, includeNestedChild?: boolean): Array; + getChildren(element: string|any, includeNestedChild?: boolean): any[]; /** To get number of nodes in TreeView. * @returns {number} @@ -17828,9 +17828,9 @@ class TreeView extends ej.Widget { getExpandedNodes(): any; /** To get currently expanded nodes indexes in TreeView. - * @returns {Array} + * @returns {any[]} */ - getExpandedNodesIndex(): Array; + getExpandedNodesIndex(): any[]; /** To get TreeView node by using index position in TreeView. * @param {number} Index position of TreeView node @@ -17862,9 +17862,9 @@ class TreeView extends ej.Widget { getSelectedNode(): any; /** To get the currently selected nodes in TreeView. - * @returns {Array} + * @returns {any[]} */ - getSelectedNodes(): Array; + getSelectedNodes(): any[]; /** To get the index position of currently selected node in TreeView. * @returns {number} @@ -17872,9 +17872,9 @@ class TreeView extends ej.Widget { getSelectedNodeIndex(): number; /** To get the index positions of currently selected nodes in TreeView. - * @returns {Array} + * @returns {any[]} */ - getSelectedNodesIndex(): Array; + getSelectedNodesIndex(): any[]; /** To get the text of a node in TreeView. * @param {string|any} ID of TreeView node/object of TreeView node @@ -17884,9 +17884,9 @@ class TreeView extends ej.Widget { /** To get the updated datasource of TreeView after performing some operation like drag and drop, node editing, adding and removing node. * @param {string|number} ID of TreeView node - * @returns {Array} + * @returns {any[]} */ - getTreeData(id?: string|number): Array; + getTreeData(id?: string|number): any[]; /** To get currently visible nodes in TreeView. * @returns {any} @@ -18003,10 +18003,10 @@ class TreeView extends ej.Widget { selectAll(): void; /** This method is used to select a node in TreeView control. If you want to select the collection of nodes in TreeView control then we need to enable allowMultiSelection property. - * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes + * @param {string|any|any[]} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes * @returns {void} */ - selectNode(element: string|any|Array): void; + selectNode(element: string|any|any[]): void; /** To show nodes in TreeView. * @returns {void} @@ -18036,10 +18036,10 @@ class TreeView extends ej.Widget { unselectAll(): void; /** This method is used to unselect a node in TreeView control. If you want to unselect the collection of nodes in TreeView control then we need to enable allowMultiSelection property. - * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes + * @param {string|any|any[]} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes * @returns {void} */ - unselectNode(element: string|any|Array): void; + unselectNode(element: string|any|any[]): void; /** To edit or update the text of the TreeView node. * @param {string|any} ID of TreeView node/object of TreeView node @@ -18100,7 +18100,7 @@ export interface Model { /** Gets or sets a value that indicates the checkedNodes index collection as an array. The given array index position denotes the nodes, that are checked while rendering TreeView. * @Default {[]} */ - checkedNodes?: Array; + checkedNodes?: any[]; /** Sets the root CSS class for TreeView which allow us to customize the appearance. */ @@ -18134,7 +18134,7 @@ export interface Model { /** Gets or sets a array of value that indicates the expandedNodes index collection as an array. The given array index position denotes the nodes, that are expanded while rendering TreeView. * @Default {[]} */ - expandedNodes?: Array; + expandedNodes?: any[]; /** Gets or sets a value that indicates the TreeView node can be expand or collapse by using the specified action. * @Default {dblclick} @@ -18174,7 +18174,7 @@ export interface Model { /** Gets or sets a value that indicates the selectedNodes index collection as an array. The given array index position denotes the nodes, that are selected while rendering TreeView. * @Default {[]} */ - selectedNodes?: Array; + selectedNodes?: any[]; /** Gets or sets a value that indicates whether to display or hide checkbox for all TreeView nodes. * @Default {false} @@ -18425,7 +18425,7 @@ export interface BeforeDeleteEventArgs { /** returns the currently removed nodes */ - removedNodes?: Array; + removedNodes?: any[]; } export interface BeforeEditEventArgs { @@ -18780,11 +18780,11 @@ export interface NodeCheckEventArgs { /** it returns the currently checked node name */ - currentNode?: Array; + currentNode?: any[]; /** it returns the currently checked and its child node details */ - currentCheckedNodes?: Array; + currentCheckedNodes?: any[]; } export interface NodeClickEventArgs { @@ -18916,7 +18916,7 @@ export interface NodeDeleteEventArgs { /** returns the currently removed nodes */ - removedNodes?: Array; + removedNodes?: any[]; } export interface NodeDragEventArgs { @@ -19216,7 +19216,7 @@ export interface NodeSelectEventArgs { /** returns the current selected nodes index of TreeView */ - selectedNodes?: Array; + selectedNodes?: any[]; /** returns the value of the node */ @@ -19271,7 +19271,7 @@ export interface NodeUncheckEventArgs { /** it returns currently unchecked node and its child node details. */ - currentUncheckedNodes?: Array; + currentUncheckedNodes?: any[]; } export interface NodeUnselectEventArgs { @@ -19298,7 +19298,7 @@ export interface NodeUnselectEventArgs { /** returns the current selected nodes index of TreeView */ - selectedNodes?: Array; + selectedNodes?: any[]; /** returns the name of the event */ @@ -20029,10 +20029,10 @@ class Grid extends ej.Widget { defaults:Grid.Model; /** Adds a grid model property which is to be ignored upon exporting. - * @param {Array} Pass the array of parameters which need to be ignored on exporting + * @param {any[]} Pass the array of parameters which need to be ignored on exporting * @returns {void} */ - addIgnoreOnExport(propertyNames: Array): void; + addIgnoreOnExport(propertyNames: any[]): void; /** Add a new record in grid control when allowAdding is set as true. * @returns {void} @@ -20040,11 +20040,11 @@ class Grid extends ej.Widget { addRecord(): void; /** Add a new record in grid control when allowAdding is set as true. - * @param {Array} Pass the array of added Records - * @param {Array} optionalIf we pass serverChange as true, send post to server side for server action. + * @param {any[]} Pass the array of added Records + * @param {any[]} optionalIf we pass serverChange as true, send post to server side for server action. * @returns {void} */ - addRecord(data: Array, serverChange?: Array): void; + addRecord(data: any[], serverChange?: any[]): void; /** Cancel the modified changes in grid control when edit mode is "batch". * @returns {void} @@ -20117,25 +20117,25 @@ class Grid extends ej.Widget { collapseGroupDropArea(): void; /** Add or remove columns in grid column collections - * @param {Array|string} Pass array of columns or string of field name to add/remove the column in grid + * @param {any[]|string} Pass array of columns or string of field name to add/remove the column in grid * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform * @returns {void} */ - columns(columnDetails: Array|string, action?: string): void; + columns(columnDetails: any[]|string, action?: string): void; /** Refresh the grid with new data source - * @param {Array} Pass new data source to the grid + * @param {any[]} Pass new data source to the grid * @param {boolean} optional When templateRefresh is set true, both header and contents get refreshed * @returns {void} */ - dataSource(datasource: Array, templateRefresh?: boolean): void; + dataSource(datasource: any[], templateRefresh?: boolean): void; /** Delete a record in grid control when allowDeleting is set as true * @param {string} Pass the primary key field Name of the column - * @param {Array} Pass the JSON data of record need to be delete. + * @param {any[]} Pass the JSON data of record need to be delete. * @returns {void} */ - deleteRecord(fieldName: string, data: Array): void; + deleteRecord(fieldName: string, data: any[]): void; /** Destroy the grid widget all events bound using this._on will be unbind automatically and bring the control to pre-init state. * @returns {void} @@ -20174,10 +20174,10 @@ class Grid extends ej.Widget { * @param {string} Pass the controller action name corresponding to exporting * @param {string} optionalASP server event name corresponding to exporting * @param {boolean} optionalPass the multiple exporting value as true/false - * @param {Array} optionalPass the array of the gridIds to be filtered + * @param {any[]} optionalPass the array of the gridIds to be filtered * @returns {void} */ - export(action: string, serverEvent?: string, multipleExport?: boolean, gridIds?: Array): void; + export(action: string, serverEvent?: string, multipleExport?: boolean, gridIds?: any[]): void; /** Export the grid content to excel, word or PDF document. * @param {string} Pass the controller action name corresponding to exporting @@ -20188,7 +20188,7 @@ class Grid extends ej.Widget { export(action: string, serverEvent?: string, multipleExport?: boolean): void; /** Send a filtering request to filter one column in grid. - * @param {Array} Pass the field name of the column + * @param {any[]} Pass the field name of the column * @param {string} string/integer/dateTime operator * @param {string} Pass the value to be filtered in a column * @param {string} Pass the predicate as and/or @@ -20196,13 +20196,13 @@ class Grid extends ej.Widget { * @param {any} optionalactualFilterValue denote the filter object of current filtered columns.Pass the value to filtered in a column * @returns {void} */ - filterColumn(fieldName: Array, filterOperator: string, filterValue: string, predicate: string, matchcase?: boolean, actualFilterValue?: any): void; + filterColumn(fieldName: any[], filterOperator: string, filterValue: string, predicate: string, matchcase?: boolean, actualFilterValue?: any): void; /** Send a filtering request to filter single or multiple column in grid. - * @param {Array} Pass array of filterColumn query for performing filter operation + * @param {any[]} Pass array of filterColumn query for performing filter operation * @returns {void} */ - filterColumn(filterQueries: Array): void; + filterColumn(filterQueries: any[]): void; /** Get the batch changes of edit, delete and add operations of grid. * @returns {any} @@ -20233,9 +20233,9 @@ class Grid extends ej.Widget { getColumnByIndex(columnIndex: number): any; /** Get the list of field names from column collection in grid. - * @returns {Array} + * @returns {any[]} */ - getColumnFieldNames(): Array; + getColumnFieldNames(): any[]; /** Get the column index of the given field in grid. * @param {string} Pass the field name of the column to get the corresponding column index @@ -20264,9 +20264,9 @@ class Grid extends ej.Widget { getCurrentIndex(): Number; /** Get the current page data source of grid. - * @returns {Array} + * @returns {any[]} */ - getCurrentViewData(): Array; + getCurrentViewData(): any[]; /** Get the column field name from the given header text in grid. * @param {string} Pass header text of the column to get its corresponding field name @@ -20280,9 +20280,9 @@ class Grid extends ej.Widget { getFilterBar(): HTMLElement; /** Get the records filtered or searched in Grid - * @returns {Array} + * @returns {any[]} */ - getFilteredRecords(): Array; + getFilteredRecords(): any[]; /** Get the footer content of grid. * @returns {HTMLElement} @@ -20311,9 +20311,9 @@ class Grid extends ej.Widget { getHeaderTextByFieldName(field: string): String; /** Get the names of all the hidden column collections in grid. - * @returns {Array} + * @returns {any[]} */ - getHiddenColumnNames(): Array; + getHiddenColumnNames(): any[]; /** Get the row index based on the given tr element in grid. * @param {JQuery} Pass the tr element in grid content to get its row index @@ -20327,9 +20327,9 @@ class Grid extends ej.Widget { getPager(): HTMLElement; /** Get the names of primary key columns in Grid - * @returns {Array} + * @returns {any[]} */ - getPrimaryKeyFieldNames(): Array; + getPrimaryKeyFieldNames(): any[]; /** Get the rows(tr element) from the given from and to row index in grid * @param {number} Pass the from index from which the rows to be returned @@ -20366,9 +20366,9 @@ class Grid extends ej.Widget { getSummaryValues(summaryCol: any, summaryData: any): Number; /** Get the names of all the visible column collections in grid - * @returns {Array} + * @returns {any[]} */ - getVisibleColumnNames(): Array; + getVisibleColumnNames(): any[]; /** Send a paging request to specified page in grid * @param {number} Pass the page index to perform paging at specified page index @@ -20383,10 +20383,10 @@ class Grid extends ej.Widget { groupColumn(fieldName: string): void; /** Hide columns from the grid based on the header text - * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide + * @param {any[]|string} you can pass either array of header text of various columns or a header text of a column to hide * @returns {void} */ - hideColumns(headerText: Array|string): void; + hideColumns(headerText: any[]|string): void; /** Print the grid control * @returns {void} @@ -20415,10 +20415,10 @@ class Grid extends ej.Widget { refreshToolbar(): void; /** Remove a column or collection of columns from a sorted column collections in grid. - * @param {Array|string} Pass array of field names of the columns to remove a collection of sorted columns or pass a string of field name to remove a column from sorted column collections + * @param {any[]|string} Pass array of field names of the columns to remove a collection of sorted columns or pass a string of field name to remove a column from sorted column collections * @returns {void} */ - removeSortedColumns(fieldName: Array|string): void; + removeSortedColumns(fieldName: any[]|string): void; /** Creates a grid control * @returns {void} @@ -20505,18 +20505,18 @@ class Grid extends ej.Widget { selectRows(fromIndex: number, toIndex: number): void; /** Select specified rows in grid based on Index provided. - * @param {Array|number} It is used to set the starting index of row for selecting rows. + * @param {any[]|number} It is used to set the starting index of row for selecting rows. * @param {number} optionalIt is used to set the ending index of row for selecting rows. * @param {any} optionalTarget element which is clicked. * @returns {void} */ - selectRows(from: Array|number, to: number, target?: any): void; + selectRows(from: any[]|number, to: number, target?: any): void; /** Select rows in grid. - * @param {Array} Pass array of rowIndexes for selecting rows + * @param {any[]} Pass array of rowIndexes for selecting rows * @returns {void} */ - selectRows(rowIndexes: Array): void; + selectRows(rowIndexes: any[]): void; /** Used to update a particular cell value. * @returns {void} @@ -20545,10 +20545,10 @@ class Grid extends ej.Widget { setValidationToField(fieldName: string, rules: any): void; /** Show columns in the grid based on the header text - * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to show + * @param {any[]|string} you can pass either array of header text of various columns or a header text of a column to show * @returns {void} */ - showColumns(headerText: Array|string): void; + showColumns(headerText: any[]|string): void; /** Send a sorting request in grid. * @param {string} Pass the field name of the column as columnName for which sorting have to be performed @@ -20571,10 +20571,10 @@ class Grid extends ej.Widget { /** Update a edited record in grid control when allowEditing is set as true. * @param {string} Pass the primary key field Name of the column - * @param {Array} Pass the edited JSON data of record need to be update. + * @param {any[]} Pass the edited JSON data of record need to be update. * @returns {void} */ - updateRecord(fieldName: string, data: Array): void; + updateRecord(fieldName: string, data: any[]): void; /** It adapts grid to its parent element or to the browsers window. * @returns {void} @@ -20808,7 +20808,7 @@ export interface Model { /** Gets a value that indicates whether the grid model to hold multiple selected records . selectedRecords can be used to displayed hold the single or multiple selected records using “selectedRecords” property * @Default {null} */ - selectedRecords?: Array; + selectedRecords?: any[]; /** Gets or sets a value that indicates to select the row while initializing the grid * @Default {-1} @@ -21618,7 +21618,7 @@ export interface CellSelectedEventArgs { /** Returns the selected row cell index values. */ - selectedRowCellIndex?: Array; + selectedRowCellIndex?: any[]; /** Returns the cancel option value. */ @@ -21870,7 +21870,7 @@ export interface ColumnSelectedEventArgs { /** Returns the selected columns values. */ - selectedColumnsIndex?: Array; + selectedColumnsIndex?: any[]; /** Returns the cancel option value. */ @@ -22726,7 +22726,7 @@ export interface Column { /** Gets or sets a value that indicates to bind the external datasource to the particular column when column editType as dropdownedit and also it is used to bind the datasource to the foreign key column while editing the grid. //Where data is array of JSON objects of text and value for the drop-down and array of JSON objects for foreign key column. * @Default {null} */ - dataSource?: Array; + dataSource?: any[]; /** Gets or sets a value that indicates to display the specified default value while adding a new record to the grid */ @@ -22860,7 +22860,7 @@ export interface ContextMenuSettingsSubContextMenu { /** Used to get or set the sub menu items to the custom context menu item. * @Default {[]} */ - subMenu?: Array; + subMenu?: any[]; } export interface ContextMenuSettings { @@ -22868,12 +22868,12 @@ export interface ContextMenuSettings { /** Gets or sets a value that indicates whether to add the default context menu actions as a context menu items If enableContextMenu is true it will show all the items related to the target, if you want selected items from contextmenu you have to mention in the contextMenuItems * @Default {[]} */ - contextMenuItems?: Array; + contextMenuItems?: any[]; /** Gets or sets a value that indicates whether to add custom contextMenu items within the toolbar to perform any action in the grid * @Default {[]} */ - customContextMenuItems?: Array; + customContextMenuItems?: any[]; /** Gets or sets a value that indicates whether to enable the context menu action in the grid. * @Default {false} @@ -23035,7 +23035,7 @@ export interface GroupSettings { /** Gets or sets a value that indicates whether to add grouped columns programmatically at initial load * @Default {[]} */ - groupedColumns?: Array; + groupedColumns?: any[]; /** Gets or sets a value that indicates whether to show the group drop area just above the column header. It can be used to avoid ungrouping the already grouped column using groupSettings. * @Default {true} @@ -23169,7 +23169,7 @@ export interface SelectionSettings { /** Gets or sets a value that indicates whether to add the default selection actions as a selection mode.See selectionMode * @Default {[row]} */ - selectionMode?: Array; + selectionMode?: any[]; } export interface ScrollSettings { @@ -23357,7 +23357,7 @@ export interface ToolbarSettings { /** Gets or sets a value that indicates whether to add custom toolbar items within the toolbar to perform any action in the grid * @Default {[]} */ - customToolbarItems?: Array; + customToolbarItems?: any[]; /** Gets or sets a value that indicates whether to enable toolbar in the grid. * @Default {false} @@ -23367,7 +23367,7 @@ export interface ToolbarSettings { /** Gets or sets a value that indicates whether to add the default editing actions as a toolbar items * @Default {[]} */ - toolbarItems?: Array; + toolbarItems?: any[]; } enum GridLines{ @@ -27301,7 +27301,7 @@ export interface DataSourceRowsFilterItems { /** Contains the collection of items to be included/excluded among the field members. * @Default {[]} */ - values?: Array; + values?: any[]; } export interface DataSourceRow { @@ -27866,10 +27866,10 @@ class Schedule extends ej.Widget { exportSchedule(action: string, serverEvent: string, id: string|number): void; /** Searches and filters the appointments from appointment list of Schedule control. - * @param {Array} Holds array of one or more conditional objects for filtering the appointments based on it. + * @param {any[]} Holds array of one or more conditional objects for filtering the appointments based on it. * @returns {void} */ - filterAppointments(filterConditions: Array): void; + filterAppointments(filterConditions: any[]): void; /** Gets the complete appointment list of Schedule control. * @returns {void} @@ -28139,7 +28139,7 @@ export interface Model { /** Defines the view collection to be displayed on the Schedule. By default, it displays all the views namely, Day, Week, WorkWeek and Month. * @Default {[Day, Week, WorkWeek, Month, Agenda]} */ - views?: Array; + views?: any[]; /** Sets the width of the Schedule. Accepts both pixel and percentage values. * @Default {100%} @@ -28163,7 +28163,7 @@ export interface Model { /** Sets different day collection within workWeek view. * @Default {[Monday, Tuesday, Wednesday, Thursday, Friday]} */ - workWeek?: Array; + workWeek?: any[]; /** Allows to pop-up appointment details in a tooltip while hovering over the appointments. */ @@ -29065,7 +29065,7 @@ export interface AppointmentSettings { /** The dataSource option accepts either JSON object collection or DataManager (ej.DataManager) instance that contains Schedule appointments. * @Default {[]} */ - dataSource?: any|Array; + dataSource?: any|any[]; /** It holds either the ej.Query() object or simply the query string that retrieves the specified records from the table. * @Default {null} @@ -29167,7 +29167,7 @@ export interface CategorizeSettings { /** The dataSource option accepts either the JSON object collection or DataManager [ej.DataManager] instance that contains the categorize data. */ - dataSource?: Array|any; + dataSource?: any[]|any; /** Binds id field name in the dataSource to id of category data. * @Default {id} @@ -29194,11 +29194,11 @@ export interface ContextMenuSettingsMenuItems { /** All the appointment related context menu items are grouped under this appointment menu collection. */ - appointment?: Array; + appointment?: any[]; /** All the Scheduler cell related context menu items are grouped under this cells menu item collection. */ - cells?: Array; + cells?: any[]; } export interface ContextMenuSettings { @@ -29217,7 +29217,7 @@ export interface Group { /** Holds the array of resource names to be grouped on the Schedule. */ - resources?: Array; + resources?: any[]; } export interface WorkHours { @@ -29248,7 +29248,7 @@ export interface PrioritySettings { /** The dataSource option can accept the JSON object collection that contains the priority related data. * @Default {{% highlight js%}[{ text: None, value: none },{ text: High, value: high },{ text: Medium, value: medium },{ text: Low, value: low }]{% endhighlight %}} */ - dataSource?: any|Array; + dataSource?: any|any[]; /** Binds text field name in the dataSource to prioritySettings text. These text gets listed out in priority field of the appointment window. * @Default {text} @@ -29297,7 +29297,7 @@ export interface ResourcesResourceSettings { /** The dataSource option accepts either JSON object collection or DataManager (ejDataManager) instance that contains the resources related data. * @Default {[]} */ - dataSource?: any|Array; + dataSource?: any|any[]; /** Binds text field name in the dataSource to resourceSettings text. These text gets listed out in resources field of the appointment window. * @Default {null} @@ -29463,7 +29463,7 @@ export interface BlockoutSettings { /** The dataSource option accepts either JSON object collection or DataManager (ej.DataManager) instance that contains Schedule block intervals. * @Default {[]} */ - dataSource?: any|Array; + dataSource?: any|any[]; /** It holds either the ej.Query() object or simply the query string that retrieves the specified records from the table. * @Default {null} @@ -29593,7 +29593,7 @@ export interface Model { /** Defines the collection of recurrence frequencies within Recurrence Editor such as Never, Daily, Weekly, Monthly, Yearly and Every Weekday. * @Default {[never, daily, weekly, monthly, yearly, everyweekday]} */ - frequencies?: Array; + frequencies?: any[]; /** Sets the starting day of the week. * @Default {null} @@ -29683,11 +29683,11 @@ class Gantt extends ej.Widget { addRecord(data: any, rowPosition: string): void; /** To select cell based on the cell and row index dynamically. - * @param {Array} array of cell indexes to be select + * @param {any[]} array of cell indexes to be select * @param {boolean} Defines that we need to preserve the previously selected cells of not * @returns {void} */ - selectCells(Indexes: Array, preservePreviousSelectedCell: boolean): void; + selectCells(Indexes: any[], preservePreviousSelectedCell: boolean): void; /** Positions the splitter by the specified column index. * @param {Number} Set the splitter position based on column index. @@ -29782,7 +29782,7 @@ export interface Model { /** Specifies the fields to be included in the add dialog in Gantt * @Default {[]} */ - addDialogFields?: Array; + addDialogFields?: any[]; /** Enables or disables the ability to resize column. * @Default {false} @@ -29849,7 +29849,7 @@ export interface Model { /** To Specify the column fields to be displayed in the dialog while inserting a column using column menu. * @Default {[]} */ - columnDialogFields?: Array; + columnDialogFields?: any[]; /** Specifies the background of connector lines in Gantt */ @@ -29876,7 +29876,7 @@ export interface Model { /** Collection of data or hierarchical data to represent in Gantt * @Default {null} */ - dataSource?: Array; + dataSource?: any[]; /** Specifies the dateFormat for Gantt , given format is displayed in tooltip , Grid . * @Default {MM/dd/yyyy} @@ -29895,7 +29895,7 @@ export interface Model { /** Specifies the fields to be included in the edit dialog in Gantt * @Default {[]} */ - editDialogFields?: Array; + editDialogFields?: any[]; /** Enables or disables the responsiveness of Gantt * @Default {false} @@ -29988,7 +29988,7 @@ export interface Model { /** Collection of holidays with date, background and label information to be displayed in Gantt. * @Default {[]} */ - holidays?: Array; + holidays?: any[]; /** Specifies whether to include weekends while calculating the duration of a task. * @Default {true} @@ -30119,7 +30119,7 @@ export interface Model { /** Collection of data regarding resources involved in entire project * @Default {[]} */ - resources?: Array; + resources?: any[]; /** Specifies whether rounding off the day working time edits * @Default {true} @@ -30204,7 +30204,7 @@ export interface Model { /** Specifies the options for striplines * @Default {[]} */ - stripLines?: Array; + stripLines?: any[]; /** Specifies the background of the taskbar in Gantt */ @@ -30681,7 +30681,7 @@ export interface ContextMenuOpenEventArgs { /** Returns the default context menu items to which we add custom items. */ - contextMenuItems?: Array; + contextMenuItems?: any[]; /** Returns the Gantt model. */ @@ -31040,7 +31040,7 @@ export interface DragTooltip { /** Specifies the data source fields to be displayed in the drag tooltip. * @Default {[]} */ - tooltipItems?: Array; + tooltipItems?: any[]; /** Specifies the custom template for drag tooltip. * @Default {null} @@ -31175,7 +31175,7 @@ export interface SortSettings { /** Specifies the sorted columns for Gantt * @Default {[]} */ - sortedColumns?: Array; + sortedColumns?: any[]; } export interface ToolbarSettings { @@ -31188,7 +31188,7 @@ export interface ToolbarSettings { /** Specifies the list of toolbar items to be rendered in Gantt toolbar * @Default {[]} */ - toolbarItems?: Array; + toolbarItems?: any[]; } enum DurationUnit{ @@ -31668,7 +31668,7 @@ export interface DataSource { /** Gets or sets the values of data source. * @Default {[]} */ - values?: Array; + values?: any[]; } export interface ExportSettings { @@ -31707,7 +31707,7 @@ export interface Parameter { /** Gets or sets the parameter labels. * @Default {null} */ - labels?: Array; + labels?: any[]; /** Gets or sets the name of the parameter. * @Default {empty} @@ -31727,7 +31727,7 @@ export interface Parameter { /** Gets or sets the parameter values. * @Default {[]} */ - values?: Array; + values?: any[]; } export interface ToolbarSettings { @@ -31997,11 +31997,11 @@ class TreeGrid extends ej.Widget { clearSelection(index: number): void; /** To select cell based on the cell and row index dynamically. - * @param {Array} array of cell indexes to be select + * @param {any[]} array of cell indexes to be select * @param {boolean} Defines that we need to preserve the previously selected cells or not * @returns {void} */ - selectCells(Indexes: Array, preservePreviousSelectedCell: boolean): void; + selectCells(Indexes: any[], preservePreviousSelectedCell: boolean): void; /** To rename a column with the specified name * @param {number} Index of the column to be renamed @@ -32040,11 +32040,11 @@ class TreeGrid extends ej.Widget { collapseAtLevel(index: number): void; /** To refresh the changes in tree grid - * @param {Array} Pass which data source you want to show in tree grid + * @param {any[]} Pass which data source you want to show in tree grid * @param {any} Pass which data you want to show in tree grid * @returns {void} */ - refresh(dataSource: Array, query: any): void; + refresh(dataSource: any[], query: any): void; /** Freeze all the columns preceding to the column specified by the field name. * @param {string} Freeze all Columns before this field column. @@ -32154,7 +32154,7 @@ export interface Model { /** To Specify the column fields to be displayed in the dialog while inserting a column using column menu. * @Default {[]} */ - columnDialogFields?: Array; + columnDialogFields?: any[]; /** Options for displaying and customizing context menu items. */ @@ -32167,7 +32167,7 @@ export interface Model { /** Specifies hierarchical or self-referential data to populate the TreeGrid. * @Default {null} */ - dataSource?: Array; + dataSource?: any[]; /** Specifies whether to wrap the header text when it is overflown i.e., when it exceeds the header width. * @Default {none} @@ -32302,7 +32302,7 @@ export interface Model { /** Specifies the summary row collection object to be displayed * @Default {[]} */ - summaryRows?: Array; + summaryRows?: any[]; /** Specifies whether to show tooltip when mouse is hovered on the cell. * @Default {true} @@ -32758,7 +32758,7 @@ export interface ContextMenuOpenEventArgs { /** Returns the default context menu items to which we add custom items. */ - contextMenuItems?: Array; + contextMenuItems?: any[]; /** Returns the TreeGrid model. */ @@ -33273,7 +33273,7 @@ export interface ContextMenuSettings { /** Option for adding items to context menu. * @Default {[]} */ - contextMenuItems?: Array; + contextMenuItems?: any[]; /** Shows/hides the context menu. * @Default {false} @@ -33291,7 +33291,7 @@ export interface DragTooltip { /** Option to add field names whose corresponding values in the dragged row needs to be shown in the preview tooltip. * @Default {[]} */ - tooltipItems?: Array; + tooltipItems?: any[]; /** Custom template for that tooltip that is shown while dragging a row. * @Default {null} @@ -33355,7 +33355,7 @@ export interface FilterSettings { /** Specifies the column collection for filtering the TreeGrid content on initial load * @Default {[]} */ - filteredColumns?: Array; + filteredColumns?: any[]; } export interface PageSettings { @@ -33432,7 +33432,7 @@ export interface SortSettings { /** Option to add columns based on which the rows have to be sorted recursively. * @Default {[]} */ - sortedColumns?: Array; + sortedColumns?: any[]; } export interface ToolbarSettings { @@ -33445,7 +33445,7 @@ export interface ToolbarSettings { /** Specifies the list of toolbar items to be rendered in TreeGrid toolbar * @Default {[]} */ - toolbarItems?: Array; + toolbarItems?: any[]; } enum EditingType{ @@ -33929,7 +33929,7 @@ export interface Model { /** Specifies the listview items as an array of object. * @Default {[]} */ - items?: Array; + items?: any[]; /** Sets all the properties of listview to render in navigation drawer */ @@ -34228,7 +34228,7 @@ export interface ItemsSliderSettings { /** Specifies the sliderSettings ticks values of nested radial menu items. */ - ticks?: Array; + ticks?: any[]; /** Specifies the sliderSettings stroke Width value. */ @@ -34271,7 +34271,7 @@ export interface Item { /** Specifies to add sub level items . */ - items?: Array; + items?: any[]; } } @@ -34489,17 +34489,17 @@ export interface LiveTile { /** Specifies liveTile images in CSS classes. * @Default {null} */ - imageClass?: Array; + imageClass?: any[]; /** Specifies liveTile images in templates. * @Default {null} */ - imageTemplateId?: Array; + imageTemplateId?: any[]; /** Specifies liveTile images in CSS classes. * @Default {null} */ - imageUrl?: Array; + imageUrl?: any[]; /** Specifies liveTile type for Tile. See orientation * @Default {flip} @@ -34514,7 +34514,7 @@ export interface LiveTile { /** Sets the text to each living tile * @Default {Null} */ - text?: Array; + text?: any[]; } enum BadgePosition{ @@ -34924,7 +34924,7 @@ export interface Model { /** Specifies the ticks value of radial slider */ - ticks?: Array; + ticks?: any[]; /** Specifies the value of radial slider * @Default {10} @@ -35124,7 +35124,7 @@ class Spreadsheet extends ej.Widget { clearRange(rangeName: string): void; /** It is used to remove data in the specified range of cells based on the defined property. - * @param {Array|string} Optional. If range is specified, it will clear data for the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If range is specified, it will clear data for the specified range else it will use the current selected range. * @param {string} Optional. If property is specified, it will remove the specified property in the range else it will remove default properties * @param {any} Optional. * @param {boolean} Optional. If pass true, if you want to skip the hidden rows @@ -35132,7 +35132,7 @@ class Spreadsheet extends ej.Widget { * @param {any} Optional. It specifies whether to skip element processing or not. * @returns {void} */ - clearRangeData(range?: Array|string, property?: string, cells?: any, skipHiddenRow?: boolean, status?: any, skipCell?: any): void; + clearRangeData(range?: any[]|string, property?: string, cells?: any, skipHiddenRow?: boolean, status?: any, skipCell?: any): void; /** This method is used to copy or move the sheets in Spreadsheet. * @param {number} Pass the sheet index that you want to copy or move. @@ -35254,15 +35254,15 @@ class Spreadsheet extends ej.Widget { /** This method is used to get the data in specified range in Spreadsheet. * @param {any} Optional. Pass the range, property, sheetIdx, valueOnly in options. - * @returns {Array} + * @returns {any[]} */ - getRangeData(options?: any): Array; + getRangeData(options?: any): any[]; /** This method is used to get the range indices array based on the specified alpha range in Spreadsheet. * @param {string} Pass the alpha range that you want to get range indices. - * @returns {Array} + * @returns {any[]} */ - getRangeIndices(range: string): Array; + getRangeIndices(range: string): any[]; /** This method is used to get the sheet details based on the given sheet index in Spreadsheet. * @param {number} Pass the sheet index to get the sheet object. @@ -35353,11 +35353,11 @@ class Spreadsheet extends ej.Widget { import(importRequest: any): void; /** This method is used to lock/unlock the range of cells in active sheet. Lock cells are activated only after the sheet is protected. Once the sheet is protected it is unable to lock/unlock cells. - * @param {string|Array} Pass the alpha range cells or array range of cells. + * @param {string|any[]} Pass the alpha range cells or array range of cells. * @param {string} Optional. By default is true. If it is false locked cells are unlocked. * @returns {void} */ - lockCells(range: string|Array, isLocked?: string): void; + lockCells(range: string|any[], isLocked?: string): void; /** This method is used to merge cells by across in the Spreadsheet. * @param {string} Optional. To pass the cell range or selected cells are process. @@ -35459,10 +35459,10 @@ class Spreadsheet extends ej.Widget { setSheetFocus(): void; /** This method is used to set the width for the columns in the Spreadsheet. - * @param {Array|any} Pass the column index and width of the columns. + * @param {any[]|any} Pass the column index and width of the columns. * @returns {void} */ - setWidthToColumns(widthColl: Array|any): void; + setWidthToColumns(widthColl: any[]|any): void; /** This method is used to rename the active sheet. * @param {string} Pass the sheet name that you want to change the current active sheet name. @@ -35530,17 +35530,17 @@ class Spreadsheet extends ej.Widget { unmergeCells(range?: string): void; /** This method is used to unwrap the selected range of cells in the Spreadsheet. - * @param {Array|string} Optional. If the range is specified, then it will update unwrap in the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If the range is specified, then it will update unwrap in the specified range else it will use the current selected range. * @returns {void} */ - unWrapText(range?: Array|string): void; + unWrapText(range?: any[]|string): void; /** This method is used to update the data for the specified range of cells in the Spreadsheet. * @param {any} Pass the cells data that you want to update. - * @param {Array} Optional. If range is specified, it will update data for the specified range else it will use the current selected range. + * @param {any[]} Optional. If range is specified, it will update data for the specified range else it will use the current selected range. * @returns {void} */ - updateData(data: any, range?: Array): void; + updateData(data: any, range?: any[]): void; /** This method is used to update the formula bar in the Spreadsheet. * @returns {void} @@ -35556,16 +35556,16 @@ class Spreadsheet extends ej.Widget { /** This method is used to update the unique data for the specified range of cells in Spreadsheet. * @param {any} Pass the data that you want to update in the particular range - * @param {Array|string} Optional. If range is specified, it will update data for the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If range is specified, it will update data for the specified range else it will use the current selected range. * @returns {void} */ - updateUniqueData(data: any, range?: Array|string): void; + updateUniqueData(data: any, range?: any[]|string): void; /** This method is used to wrap the selected range of cells in the Spreadsheet. - * @param {Array|string} Optional. If the range is specified, then it will update wrap in the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If the range is specified, then it will update wrap in the specified range else it will use the current selected range. * @returns {void} */ - wrapText(range?: Array|string): void; + wrapText(range?: any[]|string): void; XLCellType: Spreadsheet.XLCellType; @@ -35631,17 +35631,17 @@ export interface XLCFormat { /** This method is used to clear the applied conditional formatting rules in the Spreadsheet. * @param {boolean} Pass true if you want to clear rules from selected cells else it will clear rules from entire sheet. - * @param {Array|string} Optional. If range is specified, it will clear rules for the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If range is specified, it will clear rules for the specified range else it will use the current selected range. * @returns {void} */ - clearCF(isSelected: boolean,range: Array|string): void; + clearCF(isSelected: boolean,range: any[]|string): void; /** This method is used to get the applied conditional formatting rules as array of objects based on the specified row Index and column Index in the Spreadsheet. * @param {number} Pass the row index. * @param {number} Pass the column index. - * @returns {Array} + * @returns {any[]} */ - getCFRule(rowIdx: number,colIdx: number): Array; + getCFRule(rowIdx: number,colIdx: number): any[]; /** This method is used to set the conditional formatting rule in the Spreadsheet. * @param {any} Pass the rule to set. @@ -35696,12 +35696,12 @@ export interface XLClipboard { export interface XLComment { /** This method is used to delete the comment in the specified range in Spreadsheet. - * @param {Array|string} Optional. If range is specified, it will delete comments for the specified range else it will use the current selected range. + * @param {any[]|string} Optional. If range is specified, it will delete comments for the specified range else it will use the current selected range. * @param {number} Optional. If sheetIdx is specified, it will delete comment in specified sheet else it will use active sheet. * @param {boolean} Optional. Pass true, if you want to skip the hidden rows data. * @returns {void} */ - deleteComment(range: Array|string,sheetIdx: number,skipHiddenRow: boolean): void; + deleteComment(range: any[]|string,sheetIdx: number,skipHiddenRow: boolean): void; /** This method is used to edit the comment in the target Cell in Spreadsheet. * @param {any} Optional. Pass the row index and column index of the cell which contains comment. @@ -35726,12 +35726,12 @@ export interface XLComment { getComment(cell: HTMLElement): any; /** This method is used to set new comment in Spreadsheet. - * @param {string|Array} Optional. If we pass the range comment will set in the range otherwise it will set with selected cells. + * @param {string|any[]} Optional. If we pass the range comment will set in the range otherwise it will set with selected cells. * @param {string} Optional. Pass the comment data. * @param {boolean} Optional. Pass true to show comment in edit mode * @returns {void} */ - setComment(range: string|Array,data: string,showEditPanel: boolean): void; + setComment(range: string|any[],data: string,showEditPanel: boolean): void; /** This method is used to show all the comments in the Spreadsheet. * @returns {void} @@ -35748,11 +35748,11 @@ export interface XLComment { export interface XLDragDrop { /** This method is used to drag and drop the selected range of cells to destination range in the Spreadsheet. - * @param {any|Array} Pass the source range to perform drag and drop. - * @param {any|Array} Pass the destination range to drop the dragged cells. + * @param {any|any[]} Pass the source range to perform drag and drop. + * @param {any|any[]} Pass the destination range to drop the dragged cells. * @returns {void} */ - moveRangeTo(sourceRange: any|Array,destinationRange: any|Array): void; + moveRangeTo(sourceRange: any|any[],destinationRange: any|any[]): void; } export interface XLDragFill { @@ -35880,11 +35880,11 @@ export interface XLFormat { format(formatObj: any,range: string): void; /** This method is used to remove the style in the specified range. - * @param {Array|string} Pass the cell range . + * @param {any[]|string} Pass the cell range . * @param {any} Optional. Pass the options for which the style gets removed. * @returns {void} */ - removeStyle(range: Array|string,options: any): void; + removeStyle(range: any[]|string,options: any): void; /** This method is used to remove table with specified tableId in the Spreadsheet. * @param {number} Pass the tableId that you want to remove. @@ -35901,17 +35901,17 @@ export interface XLFormat { /** This method is used to update the format for the selected range of cells in the Spreadsheet. * @param {any} Pass the format object that you want to update. - * @param {Array} Optional. If the range is specified, then it will update format in the specified range else it will use the current selected range. + * @param {any[]} Optional. If the range is specified, then it will update format in the specified range else it will use the current selected range. * @returns {void} */ - updateFormat(formatObj: any,range: Array): void; + updateFormat(formatObj: any,range: any[]): void; /** This method is used to update the unique format for selected range of cells in the Spreadsheet. * @param {string} Pass the unique format class. - * @param {Array} Optional. If the range is specified, then it will update format in the specified range else it will use the current selected range. + * @param {any[]} Optional. If the range is specified, then it will update format in the specified range else it will use the current selected range. * @returns {void} */ - updateUniqueFormat(formatClass: string,range: Array): void; + updateUniqueFormat(formatClass: string,range: any[]): void; } export interface XLFreeze { @@ -36079,10 +36079,10 @@ export interface XLSelection { getSelectedCells(sheetIdx: number): HTMLElement; /** This method is used to refresh the selection in the Spreadsheet. - * @param {Array} Optional. Pass range to refresh selection. + * @param {any[]} Optional. Pass range to refresh selection. * @returns {void} */ - refreshSelection(range: Array): void; + refreshSelection(range: any[]): void; /** This method is used to select a single column in the Spreadsheet. * @param {number} Pass the column index value. @@ -36133,25 +36133,25 @@ export interface XLSort { sortByColor(operation: string,color: any,range: string): void; /** This method is used to sort a particular range of cells based on its values in the Spreadsheet. - * @param {Array|string} Pass the range to sort. + * @param {any[]|string} Pass the range to sort. * @param {string} Pass the column name. * @param {any} Pass the direction to sort (ascending or descending). * @returns {void} */ - sortByRange(range: Array|string,columnName: string,direction: any): void; + sortByRange(range: any[]|string,columnName: string,direction: any): void; } export interface XLValidate { /** This method is used to apply data validation rules in a selected range of cells based on the defined condition in the Spreadsheet. * @param {string} If range is specified, it will apply rules for the specified range else it will use the current selected range. - * @param {Array} Pass the validation condition, value1 and value2. + * @param {any[]} Pass the validation condition, value1 and value2. * @param {string} Pass the data type. * @param {boolean} Pass 'true' if you ignore blank values. * @param {boolean} Pass 'true' if you want to show an error alert. * @returns {void} */ - applyDVRules(range: string,values: Array,type: string,required: boolean,showErrorAlert: boolean): void; + applyDVRules(range: string,values: any[],type: string,required: boolean,showErrorAlert: boolean): void; /** This method is used to clear the applied validation rules in a specified range of cells in the Spreadsheet. * @param {string} Optional. If range is specified, it will clear rules for the specified range else it will use the current selected range. @@ -36353,7 +36353,7 @@ export interface Model { /** Gets or sets a value that indicates custom formulas in Spreadsheet. * @Default {[]} */ - customFormulas?: Array; + customFormulas?: any[]; /** Gets or sets a value that indicates whether to enable or disable context menu in the Spreadsheet. * @Default {true} @@ -36559,7 +36559,7 @@ export interface ActionBeginEventArgs { /** Returns the cell range. */ - range?: Array; + range?: any[]; /** Returns the action format. */ @@ -36594,7 +36594,7 @@ export interface ActionCompleteEventArgs { /** Returns the applied cell format object. */ - selectedCell?: Array|any; + selectedCell?: any[]|any; /** Returns the sheet index. */ @@ -36617,7 +36617,7 @@ export interface AutoFillBeginEventArgs { /** Returns auto fill begin cell range. */ - dataRange?: Array; + dataRange?: any[]; /** Returns which direction drag the auto fill. */ @@ -36625,7 +36625,7 @@ export interface AutoFillBeginEventArgs { /** Returns fill cells range. */ - fillRange?: Array; + fillRange?: any[]; /** Returns the auto fill type. */ @@ -36652,7 +36652,7 @@ export interface AutoFillCompleteEventArgs { /** Returns auto fill begin cell range. */ - dataRange?: Array; + dataRange?: any[]; /** Returns which direction to drag the auto fill. */ @@ -36660,7 +36660,7 @@ export interface AutoFillCompleteEventArgs { /** Returns fill cells range. */ - fillRange?: Array; + fillRange?: any[]; /** Returns the auto fill type. */ @@ -36710,7 +36710,7 @@ export interface BeforeCellFormatEventArgs { /** Returns the selected cells. */ - cells?: Array|any; + cells?: any[]|any; /** Returns the Spreadsheet model. */ @@ -36729,11 +36729,11 @@ export interface BeforeCellSelectEventArgs { /** Returns the previous cell range. */ - prevRange?: Array; + prevRange?: any[]; /** Returns the current cell range. */ - currRange?: Array; + currRange?: any[]; /** Returns the Spreadsheet model. */ @@ -37008,7 +37008,7 @@ export interface CellSelectedEventArgs { /** Returns the selected range. */ - selectedRange?: Array; + selectedRange?: any[]; /** Returns the target element. */ @@ -37617,7 +37617,7 @@ export interface RibbonSettingsApplicationTabMenuSettings { /** Specifies the data source to append in application tab. * @Default {[]} */ - dataSource?: Array; + dataSource?: any[]; } export interface RibbonSettingsApplicationTab { @@ -37732,7 +37732,7 @@ export interface SheetsCFormatRule { /** Specifies the inputs for conditional formatting in Spreadsheet. * @Default {[]} */ - inputs?: Array; + inputs?: any[]; /** Specifies the range for conditional formatting in Spreadsheet. */ @@ -37911,17 +37911,17 @@ export interface Sheet { /** To hide the specified columns in Spreadsheet. * @Default {[]} */ - hideColumns?: Array; + hideColumns?: any[]; /** To hide the specified rows in Spreadsheet. * @Default {[]} */ - hideRows?: Array; + hideRows?: any[]; /** To merge specified ranges in Spreadsheet. * @Default {[]} */ - mergeCells?: Array; + mergeCells?: any[]; /** Specifies the primary key for the datasource in Spreadsheet. */ @@ -39080,7 +39080,7 @@ export interface Palette { /** Defines the palette items * @Default {[]} */ - items?: Array; + items?: any[]; } } @@ -43658,7 +43658,7 @@ export interface Model { /** Palette is used to store the series fill color in array and apply the color to series collection in the order of series index. * @Default {null} */ - palette?: Array; + palette?: any[]; /** Options to customize the left, right, top and bottom margins of chart area. */ @@ -50090,7 +50090,7 @@ export interface Zooming { /** To display user specified buttons in zooming toolbar. * @Default {[zoomIn, zoomOut, zoom, pan, reset]} */ - toolbarItems?: Array; + toolbarItems?: any[]; } } module Chart @@ -53527,7 +53527,7 @@ export interface LayersShapeSettingsColorMappingsRangeColorMapping { /** Specifies the gradientColors in the shape layer of map. * @Default {null} */ - gradientColors?: Array; + gradientColors?: any[]; } export interface LayersShapeSettingsColorMappingsEqualColorMapping { @@ -53692,7 +53692,7 @@ export interface Layer { /** Specify markers for shape layer. * @Default {[]} */ - markers?: Array; + markers?: any[]; /** Specifies the map marker template for map layer. * @Default {null} @@ -53702,7 +53702,7 @@ export interface Layer { /** Specify selectedMapShapes for shape layer * @Default {[]} */ - selectedMapShapes?: Array; + selectedMapShapes?: any[]; /** Specifies the selection mode of the map. Accepted selection mode values are Default and Multiple. * @Default {default} @@ -54050,7 +54050,7 @@ export interface Model { /** Hold the treeMapItems to be displayed in treemap * @Default {[]} */ - treeMapItems?: Array; + treeMapItems?: any[]; /** Specify levels of treemap for grouped visualization of data * @Default {[]} @@ -54114,7 +54114,7 @@ export interface PaletteColorMapping { /** Specifies the colors of the paletteColorMapping * @Default {[]} */ - colors?: Array; + colors?: any[]; } export interface GroupColorMapping { @@ -54233,7 +54233,7 @@ export interface RangeColorMapping { /** specifies the gradient colors for th given range value * @Default {[]} */ - gradientColors?: Array; + gradientColors?: any[]; /** Specifies the from value for rangeColorMapping. * @Default {-1} @@ -54438,10 +54438,10 @@ class Diagram extends ej.Widget { /** Add a collection of ports to the node specified by name * @param {string} name of the node to which the ports have to be added - * @param {Array} a collection of ports to be added to the specified node + * @param {any[]} a collection of ports to be added to the specified node * @returns {void} */ - addPorts(name: string, ports: Array): void; + addPorts(name: string, ports: any[]): void; /** Add the specified node to selection list * @param {any} the node to be selected @@ -55335,7 +55335,7 @@ export interface HistoryChangeEventArgs { /** An array of objects, where each object represents the changes made in last undo/redo. To explore how the changes are defined, refer [Undo Redo Changes](#undo-redo-changes) */ - changes?: Array; + changes?: any[]; /** A collection of objects that are changed in the last undo/redo */ @@ -55549,15 +55549,15 @@ export interface SelectionChangeEventArgs { /** parameter returns the collection of nodes and connectors that have to be removed from selection list */ - oldItems?: Array; + oldItems?: any[]; /** parameter returns the collection of nodes and connectors that have to be added to selection list */ - newItems?: Array; + newItems?: any[]; /** parameter returns the collection of nodes and connectors that will be selected after selection change */ - selectedItems?: Array; + selectedItems?: any[]; /** parameter to specify whether or not to cancel the selection change event */ @@ -56217,7 +56217,7 @@ export interface ContextMenu { /** Defines the collection of context menu items * @Default {[]} */ - items?: Array; + items?: any[]; /** To set whether to display the default context menu items or not * @Default {false} @@ -56592,7 +56592,7 @@ export interface NodesGradientLinearGradient { /** Defines the different colors and the region of color transitions * @Default {[]} */ - stops?: Array; + stops?: any[]; /** Defines the left most position(relative to node) of the rectangular region that needs to be painted * @Default {0} @@ -56640,7 +56640,7 @@ export interface NodesGradientRadialGradient { /** Defines the different colors and the region of color transitions. * @Default {[]} */ - stops?: Array; + stops?: any[]; } export interface NodesGradientStop { @@ -56855,7 +56855,7 @@ export interface NodesLane { /** An array of objects where each object represents a child node of the lane * @Default {[]} */ - children?: Array; + children?: any[]; /** Defines the fill color of the lane * @Default {white} @@ -57060,7 +57060,7 @@ export interface NodesSubProcess { /** Defines the collection of events that need to be appended with BPMN Sub-Process */ - events?: Array; + events?: any[]; /** Defines the loop type of a sub process. * @Default {ej.datavisualization.Diagram.BPMNLoops.None} @@ -57145,7 +57145,7 @@ export interface Node { /** Array of JSON objects where each object represents a child node/connector * @Default {[]} */ - children?: Array; + children?: any[]; /** Sets the type of UML classifier. Applicable, if the node is a UML Class Diagram shape. * @Default {ej.datavisualization.Diagram.ClassifierShapes.Class} @@ -57245,7 +57245,7 @@ export interface Node { /** A read only collection of the incoming connectors/edges of the node * @Default {[]} */ - inEdges?: Array; + inEdges?: any[]; /** Defines an interface in a UML Class Diagram * @Default {null} @@ -57339,7 +57339,7 @@ export interface Node { /** A read only collection of outgoing connectors/edges of the node * @Default {[]} */ - outEdges?: Array; + outEdges?: any[]; /** Defines the minimum padding value to be left between the bottom most position of a group and its children. Applicable, if the group is a container. * @Default {0} @@ -57392,7 +57392,7 @@ export interface Node { /** Defines a collection of points to draw a polygon. Applicable, if the shape is a polygon. * @Default {[]} */ - points?: Array; + points?: any[]; /** An array of objects where each object represents a port * @Default {[]} @@ -57625,7 +57625,7 @@ export interface SelectedItems { /** A read only collection of the selected items * @Default {[]} */ - children?: Array; + children?: any[]; /** Controls the visibility of selector. * @Default {ej.datavisualization.Diagram.SelectorConstraints.All} @@ -57687,12 +57687,12 @@ export interface SnapSettingsHorizontalGridLines { /** A pattern of lines and gaps that defines a set of horizontal gridlines * @Default {[1.25, 18.75, 0.25, 19.75, 0.25, 19.75, 0.25, 19.75, 0.25, 19.75]} */ - linesInterval?: Array; + linesInterval?: any[]; /** Specifies a set of intervals to snap the objects * @Default {[20]} */ - snapInterval?: Array; + snapInterval?: any[]; } export interface SnapSettingsVerticalGridLines { @@ -57709,12 +57709,12 @@ export interface SnapSettingsVerticalGridLines { /** A pattern of lines and gaps that defines a set of horizontal gridlines * @Default {[1.25, 18.75, 0.25, 19.75, 0.25, 19.75, 0.25, 19.75, 0.25, 19.75]} */ - linesInterval?: Array; + linesInterval?: any[]; /** Specifies a set of intervals to snap the objects * @Default {[20]} */ - snapInterval?: Array; + snapInterval?: any[]; } export interface SnapSettings { @@ -58759,7 +58759,7 @@ export interface Model { /** Specifies the no of legends can sync with heat map. * @Default {[]} */ - legendCollection?: Array; + legendCollection?: any[]; /** Specifies the property and display value of the heat map column. * @Default {[]} @@ -58973,7 +58973,7 @@ export interface ItemsMapping { /** Specifies the property and display value of the collection of column. * @Default {[]} */ - columnMapping?: Array; + columnMapping?: any[]; } export interface ColorMappingCollectionLabel { diff --git a/expect/index.d.ts b/expect/index.d.ts index f2c25f6225..6b030dd4e0 100644 --- a/expect/index.d.ts +++ b/expect/index.d.ts @@ -31,19 +31,19 @@ export declare class Expectation { toExclude(value: any, compareValues?: any, message?: string): Expectation; toNotContain(value: any, compareValues?: any, message?: string): Expectation; toHaveBeenCalled(message?: string): Expectation; - toHaveBeenCalledWith(...args: Array): Expectation; + toHaveBeenCalledWith(...args: any[]): Expectation; toNotHaveBeenCalled(message?: string): Expectation; withContext(context: any): Expectation; - withArgs(...args: Array): Expectation; + withArgs(...args: any[]): Expectation; } export interface Extension { - [name: string]: (args?: Array) => void; + [name: string]: (args?: any[]) => void; } export interface Call { context: Spy; - arguments: Array; + arguments: any[]; } export interface Spy { @@ -64,7 +64,7 @@ export declare function createSpy(fn?: Function, restore?: Function): Spy; export declare function spyOn(object: Object, methodName: string): Spy; export declare function isSpy(object: any): Boolean; export declare function restoreSpies(): void; -export declare function assert(condition: any, messageFormat: string, ...extraArgs: Array): void; +export declare function assert(condition: any, messageFormat: string, ...extraArgs: any[]): void; export declare function extend(extension: Extension): void; export default expect; diff --git a/express-brute-memcached/index.d.ts b/express-brute-memcached/index.d.ts index 8930045ee3..6b1c93919e 100644 --- a/express-brute-memcached/index.d.ts +++ b/express-brute-memcached/index.d.ts @@ -80,7 +80,7 @@ export interface MemcachedStoreOptions { * @summary An array of server_locations to replace servers that fail and that are removed from the consistent hashing scheme. * @type {Array} */ - failOverServers: Array; + failOverServers: any[]; /** * @summary True, whether to use md5 as hashing scheme when keys exceed maxKeySize . @@ -106,5 +106,5 @@ export default class MemcachedStore { * @param {string|Array} hosts The collection. * @param {Object} options The otpions. */ - constructor(hosts: string | Array, options?: MemcachedStoreOptions); + constructor(hosts: string | string[], options?: MemcachedStoreOptions); } diff --git a/falcor-router/index.d.ts b/falcor-router/index.d.ts index 659f45767f..f247a1946a 100644 --- a/falcor-router/index.d.ts +++ b/falcor-router/index.d.ts @@ -34,7 +34,7 @@ declare namespace FalcorRouter { type RoutePathSet = FalcorJsonGraph.PathSet; interface CallRoute extends Route { - call(callPath: RoutePathSet, args: Array): RouteResult | Promise; + call(callPath: RoutePathSet, args: any[]): RouteResult | Promise; } interface GetRoute extends Route { diff --git a/falcor/index.d.ts b/falcor/index.d.ts index 502af7517b..0db99171d1 100644 --- a/falcor/index.d.ts +++ b/falcor/index.d.ts @@ -53,7 +53,7 @@ declare namespace FalcorModel { /** * Invokes a function in the DataSource's JSONGraph object. **/ - call(functionPath: Path, args?: Array, refSuffixes?: Array, thisPaths?: Array): Observable; + call(functionPath: Path, args?: any[], refSuffixes?: Array, thisPaths?: Array): Observable; } @@ -123,8 +123,8 @@ declare namespace FalcorModel { // NOTE: In http://netflix.github.io/falcor/doc/Model.html#call, it says that refPaths should be an array. // However, model implementation returns an error with setting refPaths as Array and it works with refPaths as PathSet. // So refPaths is defined as a PathSet in this .d.ts. - call(functionPath: string | Path, args?: Array, refPaths?: PathSet, thisPaths?: Array): ModelResponse>; - call(functionPath: string | Path, args?: Array, refPaths?: PathSet, thisPaths?: Array): ModelResponse>; + call(functionPath: string | Path, args?: any[], refPaths?: PathSet, thisPaths?: Array): ModelResponse>; + call(functionPath: string | Path, args?: any[], refPaths?: PathSet, thisPaths?: Array): ModelResponse>; /** * The invalidate method synchronously removes several {@link Path}s or {@link PathSet}s from a {@link Model} cache. diff --git a/flot/index.d.ts b/flot/index.d.ts index 454690b749..b94205a95f 100644 --- a/flot/index.d.ts +++ b/flot/index.d.ts @@ -21,7 +21,7 @@ declare namespace jquery.flot { } interface hooks { - processOptions: { (plot: plot, options: plotOptions): void; } []; + processOptions: { (plot: plot, options: plotOptions): void; }[]; processRawData: { (plot: plot, series: dataSeries, data: any[], datapoints: datapoints): void; }[]; processDatapoints: { (plot: plot, series: dataSeries, datapoints: datapoints): void; }[]; processOffset: { (plot: plot, offset: canvasPoint): void; }[]; diff --git a/foundation-sites/index.d.ts b/foundation-sites/index.d.ts index a8b0fcf805..c2578026fd 100644 --- a/foundation-sites/index.d.ts +++ b/foundation-sites/index.d.ts @@ -140,10 +140,10 @@ declare namespace FoundationSites { // http://foundation.zurb.com/sites/docs/equalizer.html#javascript-reference interface Equalizer { - getHeights(element: Object): Array; + getHeights(element: Object): any[]; getHeightsByRow(cb: Function): void; - applyHeight(heights: Array): void; - applyHeightByRow(groups: Array): void; + applyHeight(heights: any[]): void; + applyHeightByRow(groups: any[]): void; destroy(): void; } @@ -160,7 +160,7 @@ declare namespace FoundationSites { } interface IInterchangeOptions { - rules?: Array; + rules?: any[]; } // http://foundation.zurb.com/sites/docs/magellan.html#javascript-reference @@ -363,7 +363,7 @@ declare namespace FoundationSites { interface MediaQuery { get(size: string): string; atLeast(size: string): boolean; - queries: Array; + queries: string[]; current: string; } @@ -402,9 +402,9 @@ declare namespace FoundationSites { plugin(plugin: Object, name: string): void; registerPlugin(plugin: Object): void; unregisterPlugin(plugin: Object): void; - reInit(plugins: Array): void; + reInit(plugins: any[]): void; GetYoDigits(length: number, namespace?: string): string; - reflow(elem: Object, plugins?: Array|string): void; + reflow(elem: Object, plugins?: string[]|string): void; getFnName(fn: string): string; transitionend(): string; @@ -446,7 +446,7 @@ declare namespace FoundationSites { } interface JQuery { - foundation(method?: string|Array): JQuery; + foundation(method?: string|any[]): JQuery; } declare var Foundation: FoundationSites.FoundationSitesStatic; diff --git a/fullcalendar/index.d.ts b/fullcalendar/index.d.ts index 0c55872014..7eb9f72033 100644 --- a/fullcalendar/index.d.ts +++ b/fullcalendar/index.d.ts @@ -20,7 +20,7 @@ export interface Calendar { export interface BusinessHours { start: moment.Duration | string | Date; end: moment.Duration | string | Date; - dow: Array; + dow: number[]; } export interface Timespan { @@ -83,10 +83,10 @@ export interface Options extends AgendaOptions, EventDraggingResizingOptions, Dr titleFormat?: any; // String buttonText?: ButtonTextObject; - monthNames?: Array; - monthNamesShort?: Array; - dayNames?: Array; - dayNamesShort?: Array; + monthNames?: string[]; + monthNamesShort?: string[]; + dayNames?: string[]; + dayNamesShort?: string[]; weekNumberTitle?: string; // Clicking & Hovering - http://fullcalendar.io/docs/mouse/ @@ -218,7 +218,7 @@ export interface EventObject extends Timespan { title: string; allDay?: boolean; url?: string; - className?: string | Array; + className?: string | string[]; editable?: boolean; startEditable?: boolean; durationEditable?: boolean; @@ -253,7 +253,7 @@ export interface EventSource extends JQueryAjaxSettings { backgroundColor?: string; borderColor?: string; textColor?: string; - className?: any; // string/Array + className?: any; // string/string[] editable?: boolean; allDayDefault?: boolean; ignoreTimezone?: boolean; diff --git a/fullcalendar/v1/fullCalendar.d.ts b/fullcalendar/v1/fullCalendar.d.ts index c4b41fc104..3515eb950d 100644 --- a/fullcalendar/v1/fullCalendar.d.ts +++ b/fullcalendar/v1/fullCalendar.d.ts @@ -38,7 +38,7 @@ declare namespace FullCalendar { export interface BusinessHours { start: moment.Duration; end: moment.Duration; - dow: Array; + dow: number[]; } export interface Timespan { @@ -99,10 +99,10 @@ declare namespace FullCalendar { titleFormat?: any; // String/ViewOptionHash buttonText?: ButtonTextObject; - monthNames?: Array; - monthNamesShort?: Array; - dayNames?: Array; - dayNamesShort?: Array; + monthNames?: string[]; + monthNamesShort?: string[]; + dayNames?: string[]; + dayNamesShort?: string[]; weekNumberTitle?: string; // Clicking & Hovering - http://arshaw.com/fullcalendar/docs/mouse/ @@ -240,7 +240,7 @@ declare namespace FullCalendar { title: string; allDay?: boolean; url?: string; - className?: any; // string/Array + className?: any; // string/string[] editable?: boolean; source?: EventSource; color?: string; @@ -272,7 +272,7 @@ declare namespace FullCalendar { backgroundColor?: string; borderColor?: string; textColor?: string; - className?: any; // string/Array + className?: any; // string/string[] editable?: boolean; allDayDefault?: boolean; ignoreTimezone?: boolean; diff --git a/geoip-lite/index.d.ts b/geoip-lite/index.d.ts index 6eea0aea61..37565a29c6 100644 --- a/geoip-lite/index.d.ts +++ b/geoip-lite/index.d.ts @@ -6,11 +6,11 @@ declare namespace mod { export interface Lookup { - range: Array; // range start, end + range: number[]; // range start, end country: string; region: string; city: string; - ll: Array; // latitude, longitude + ll: number[]; // latitude, longitude } export function lookup(ip: string): Lookup; diff --git a/geometry-dom/index.d.ts b/geometry-dom/index.d.ts index 87da9000fa..7a66b13b34 100644 --- a/geometry-dom/index.d.ts +++ b/geometry-dom/index.d.ts @@ -186,8 +186,8 @@ declare namespace GeometryDom { transformPoint(point?: DOMPointInit): DOMPoint; - toFloat32Array(): Array; - toFloat64Array(): Array; + toFloat32Array(): number[]; + toFloat64Array(): number[]; } interface DOMMatrix extends DOMMatrixReadOnly { @@ -312,7 +312,7 @@ declare var DOMQuad: { declare var DOMMatrixReadOnly: { prototype: GeometryDom.DOMMatrixReadOnly; - new (numberSequence: Array): GeometryDom.DOMMatrixReadOnly; + new (numberSequence: number[]): GeometryDom.DOMMatrixReadOnly; }; declare var DOMMatrix: { @@ -320,7 +320,7 @@ declare var DOMMatrix: { new (): GeometryDom.DOMMatrix; new (transformList: string): GeometryDom.DOMMatrix; new (other: GeometryDom.DOMMatrixReadOnly): GeometryDom.DOMMatrix; - new (array: Array): GeometryDom.DOMMatrix; + new (array: number[]): GeometryDom.DOMMatrix; new (a: number, b: number, c: number, d: number, e: number, f: number): GeometryDom.DOMMatrix; }; diff --git a/gijgo/index.d.ts b/gijgo/index.d.ts index 0295f12462..0566267831 100644 --- a/gijgo/index.d.ts +++ b/gijgo/index.d.ts @@ -8,7 +8,7 @@ declare namespace Gijgo { //Grid interface GridPager { limit?: number; - sizes?: Array; + sizes?: number[]; leftControls?: any; rightControls?: any; } @@ -105,7 +105,7 @@ declare namespace Gijgo { getById(id: string): Entity; getChanges(): Array; getSelected(): string; - getSelections(): Array; + getSelections(): string[]; hideColumn(field: string): Grid; makeResponsive(): void; reload(params?: Params): Grid; diff --git a/go/index.d.ts b/go/index.d.ts index b8678b0dae..9bc75628bf 100644 --- a/go/index.d.ts +++ b/go/index.d.ts @@ -19,7 +19,7 @@ declare namespace go { type PropertyAccessor = string | ((data: any, newval: any) => any); /** A constructor */ - type Constructor = new (...args: Array) => Object; + type Constructor = new (...args: any[]) => Object; /** * An adornment is a special kind of Part that is associated with another Part, @@ -1496,7 +1496,7 @@ declare namespace go { * @param {string} name a capitalized name; must not be "" or "None" * @param {function(Array<*>):Object} func */ - static defineBuilder(name: string, func: (args: Array) => Object): void; + static defineBuilder(name: string, func: (args: any[]) => Object): void; /** * This static function returns the first argument from the arguments array passed @@ -1509,7 +1509,7 @@ declare namespace go { * the default predicate checks whether the argument is a string * @return {*} */ - static takeBuilderArgument(args: Array, defval?: any, pred?: (arg: any) => boolean): any; + static takeBuilderArgument(args: any[], defval?: any, pred?: (arg: any) => boolean): any; /** * Returns the effective angle that the object is drawn at, in document coordinates. @@ -1567,7 +1567,7 @@ declare namespace go { * is recognized to take that value, * or a string that is used as the value of a commonly set property. */ - static make(type: Constructor | string, ...initializers: Array): any; + static make(type: Constructor | string, ...initializers: any[]): any; /**GraphObjects with this as the value of GraphObject.stretch are stretched depending on the context they are used.*/ static Default: EnumValue; @@ -1592,7 +1592,7 @@ declare namespace go { spanAllocation: (obj: GraphObject, r: RowColumnDefinition, n: number) => number; // undocumented protected cloneProtected(copy: GraphObject): void; // undocumented - static getBuilders(): Map) => Object>; // undocumented + static getBuilders(): Map Object>; // undocumented } /** @@ -2569,7 +2569,7 @@ declare namespace go { defaultAlignment: Spot; /**Gets or sets the default dash array for a particular column's separator.*/ - defaultColumnSeparatorDashArray: Array; + defaultColumnSeparatorDashArray: number[]; /**Gets or sets the default Brush stroke (or CSS color string) for columns in a Table Panel provided a given column has a nonzero RowColumnDefinition.separatorStrokeWidth.*/ defaultColumnSeparatorStroke: BrushLike; @@ -2578,7 +2578,7 @@ declare namespace go { defaultColumnSeparatorStrokeWidth: number; /**Gets or sets the default dash array for a particular row's separator.*/ - defaultRowSeparatorDashArray: Array; + defaultRowSeparatorDashArray: number[]; /**Gets or sets the default Brush stroke (or CSS color string) for rows in a Table Panel provided a given row has a nonzero RowColumnDefinition.separatorStrokeWidth.*/ defaultRowSeparatorStroke: BrushLike; @@ -2602,7 +2602,7 @@ declare namespace go { gridOrigin: Point; /**Gets or sets a JavaScript Array of values or objects, each of which will be represented by a Panel as elements in this Panel.*/ - itemArray: Array; + itemArray: any[]; /**Gets or sets the name of the item data property that returns a string describing that data's category, or a function that takes an item data object and returns that string; the default value is the name 'category'.*/ itemCategoryProperty: PropertyAccessor; @@ -3215,7 +3215,7 @@ declare namespace go { position: number; /**Gets or sets the dash array for dashing the spacing provided this row or column has a nonzero RowColumnDefinition.separatorStrokeWidth and non-null RowColumnDefinition.separatorStroke.*/ - separatorDashArray: Array; + separatorDashArray: number[]; /**Gets or sets the additional padding for a particular row or column, a Margin (or number for a uniform Margin).*/ separatorPadding: MarginLike; @@ -3315,7 +3315,7 @@ declare namespace go { strokeCap: string; /**Gets or sets the dash array for creating dashed lines.*/ - strokeDashArray: Array; + strokeDashArray: number[]; /**Gets or sets the offset for dashed lines, used in the phase pattern.*/ strokeDashOffset: number; @@ -5403,7 +5403,7 @@ declare namespace go { * @param {Array<*>} arr an Array that is the value of some Panel's Panel.itemArray. * @param {*} val the new value to be pushed onto the array. */ - addArrayItem(arr: Array, val: any): void; + addArrayItem(arr: any[], val: any): void; /** * Register an event handler that is called when there is a ChangedEvent for a modification of the Diagram, a Layer, or a GraphObject. @@ -5530,7 +5530,7 @@ declare namespace go { * @param {number} idx the zero-based array index where the new value will be inserted; use -1 to push the new value on the end of the array. * @param {*} val the new value to be inserted into the array. */ - insertArrayItem(arr: Array, idx: number, val: any): void; + insertArrayItem(arr: any[], idx: number, val: any): void; /** * This method is called when a node data object is added to the model to make sure that @@ -5586,7 +5586,7 @@ declare namespace go { * @param {number=} idx the zero-based array index of the data item to be removed from the array; * if not supplied it will remove the last item of the array. */ - removeArrayItem(arr: Array, idx?: number): void; + removeArrayItem(arr: any[], idx?: number): void; /** * Unregister an event handler listener. diff --git a/google-maps/index.d.ts b/google-maps/index.d.ts index f5c28f1581..52a4c02d55 100644 --- a/google-maps/index.d.ts +++ b/google-maps/index.d.ts @@ -13,7 +13,7 @@ declare namespace GoogleMapsLoader { export var CLIENT: string; export var VERSION: string; export var SENSOR: boolean; - export var LIBRARIES: Array; + export var LIBRARIES: string[]; export var LANGUAGE: string; export function release(callBack: Function): void; export function onLoad(callBack?: CallBack): void; diff --git a/graphene-pk11/index.d.ts b/graphene-pk11/index.d.ts index 6807897107..01ea054606 100644 --- a/graphene-pk11/index.d.ts +++ b/graphene-pk11/index.d.ts @@ -40,7 +40,7 @@ declare class HandleObject extends BaseObject { declare class Collection extends BaseObject { - protected items_: Array; + protected items_: any[]; protected classType: any; /** @@ -48,7 +48,7 @@ declare class Collection extends BaseObject { */ length: number; - constructor(items: Array, lib: pkcs11.PKCS11, classType: any); + constructor(items: any[], lib: pkcs11.PKCS11, classType: any); /** * returns item from collection by index @@ -1144,7 +1144,7 @@ declare class MechanismCollection extends Collection { protected slotHandle: Handle; - constructor(items: Array, slotHandle: Handle, lib: pkcs11.PKCS11, classType?: typeof Mechanism); + constructor(items: number[], slotHandle: Handle, lib: pkcs11.PKCS11, classType?: typeof Mechanism); /** * returns item from collection by index * @param {number} index of element in collection `[0..n]` diff --git a/graphql/index.d.ts b/graphql/index.d.ts index 93c2556625..14b29144eb 100644 --- a/graphql/index.d.ts +++ b/graphql/index.d.ts @@ -347,47 +347,29 @@ declare module "graphql/language/ast" { kind: 'Name'; loc?: Location; value: string; - }; + } // Document export type DocumentNode = { kind: 'Document'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b definitions: Array; } export type DefinitionNode = OperationDefinitionNode | FragmentDefinitionNode | TypeSystemDefinitionNode // experimental non-spec addition. -======= - definitions: Array; - }; - - export type Definition = OperationDefinition - | FragmentDefinition - | TypeSystemDefinition; // experimental non-spec addition. ->>>>>>> WIP export type OperationDefinitionNode = { kind: 'OperationDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b operation: OperationTypeNode; name?: NameNode; variableDefinitions?: Array; directives?: Array; selectionSet: SelectionSetNode; } -======= - operation: OperationType; - name?: Name; - variableDefinitions?: Array; - directives?: Array; - selectionSet: SelectionSet; - }; ->>>>>>> WIP // Note: subscription is an experimental non-spec addition. export type OperationTypeNode = 'query' | 'mutation' | 'subscription'; @@ -395,79 +377,43 @@ declare module "graphql/language/ast" { export type VariableDefinitionNode = { kind: 'VariableDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b variable: VariableNode; type: TypeNode; defaultValue?: ValueNode; } -======= - variable: Variable; - type: Type; - defaultValue?: Value; - }; ->>>>>>> WIP export type VariableNode = { kind: 'Variable'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; } -======= - name: Name; - }; ->>>>>>> WIP export type SelectionSetNode = { kind: 'SelectionSet'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b selections: Array; } export type SelectionNode = FieldNode | FragmentSpreadNode | InlineFragmentNode -======= - selections: Array; - }; - - export type Selection = Field - | FragmentSpread - | InlineFragment; ->>>>>>> WIP export type FieldNode = { kind: 'Field'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b alias?: NameNode; name: NameNode; arguments?: Array; directives?: Array; selectionSet?: SelectionSetNode; } -======= - alias?: Name; - name: Name; - arguments?: Array; - directives?: Array; - selectionSet?: SelectionSet; - }; ->>>>>>> WIP export type ArgumentNode = { kind: 'Argument'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; value: ValueNode; } -======= - name: Name; - value: Value; - }; ->>>>>>> WIP // Fragments @@ -475,52 +421,30 @@ declare module "graphql/language/ast" { export type FragmentSpreadNode = { kind: 'FragmentSpread'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; } -======= - name: Name; - directives?: Array; - }; ->>>>>>> WIP export type InlineFragmentNode = { kind: 'InlineFragment'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b typeCondition?: NamedTypeNode; directives?: Array; selectionSet: SelectionSetNode; } -======= - typeCondition?: NamedType; - directives?: Array; - selectionSet: SelectionSet; - }; ->>>>>>> WIP export type FragmentDefinitionNode = { kind: 'FragmentDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; typeCondition: NamedTypeNode; directives?: Array; selectionSet: SelectionSetNode; } -======= - name: Name; - typeCondition: NamedType; - directives?: Array; - selectionSet: SelectionSet; - }; ->>>>>>> WIP // Values -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b export type ValueNode = VariableNode | IntValueNode | FloatValueNode @@ -529,81 +453,55 @@ declare module "graphql/language/ast" { | EnumValueNode | ListValueNode | ObjectValueNode -======= - export type Value = Variable - | IntValue - | FloatValue - | StringValue - | BooleanValue - | EnumValue - | ListValue - | ObjectValue; ->>>>>>> WIP export type IntValueNode = { kind: 'IntValue'; loc?: Location; value: string; - }; + } export type FloatValueNode = { kind: 'FloatValue'; loc?: Location; value: string; - }; + } export type StringValueNode = { kind: 'StringValue'; loc?: Location; value: string; - }; + } export type BooleanValueNode = { kind: 'BooleanValue'; loc?: Location; value: boolean; - }; + } export type EnumValueNode = { kind: 'EnumValue'; loc?: Location; value: string; - }; + } export type ListValueNode = { kind: 'ListValue'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b values: Array; } -======= - values: Array; - }; ->>>>>>> WIP export type ObjectValueNode = { kind: 'ObjectValue'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b fields: Array; } -======= - fields: Array; - }; ->>>>>>> WIP export type ObjectFieldNode = { kind: 'ObjectField'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; value: ValueNode; } -======= - name: Name; - value: Value; - }; ->>>>>>> WIP // Directives @@ -611,28 +509,16 @@ declare module "graphql/language/ast" { export type DirectiveNode = { kind: 'Directive'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; arguments?: Array; } -======= - name: Name; - arguments?: Array; - }; ->>>>>>> WIP // Type Reference -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b export type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode -======= - export type Type = NamedType - | ListType - | NonNullType; ->>>>>>> WIP export type NamedTypeNode = { kind: 'NamedType'; @@ -643,18 +529,12 @@ declare module "graphql/language/ast" { export type ListTypeNode = { kind: 'ListType'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b type: TypeNode; } -======= - type: Type; - }; ->>>>>>> WIP export type NonNullTypeNode = { kind: 'NonNullType'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b type: NamedTypeNode | ListTypeNode; } @@ -664,35 +544,17 @@ declare module "graphql/language/ast" { | TypeDefinitionNode | TypeExtensionDefinitionNode | DirectiveDefinitionNode -======= - type: NamedType | ListType; - }; - - // Type System Definition - - export type TypeSystemDefinition = SchemaDefinition - | TypeDefinition - | TypeExtensionDefinition - | DirectiveDefinition; ->>>>>>> WIP export type SchemaDefinitionNode = { kind: 'SchemaDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b directives: Array; operationTypes: Array; } -======= - directives: Array; - operationTypes: Array; - }; ->>>>>>> WIP export type OperationTypeDefinitionNode = { kind: 'OperationTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b operation: OperationTypeNode; type: NamedTypeNode; } @@ -703,181 +565,93 @@ declare module "graphql/language/ast" { | UnionTypeDefinitionNode | EnumTypeDefinitionNode | InputObjectTypeDefinitionNode -======= - operation: OperationType; - type: NamedType; - }; - - export type TypeDefinition = ScalarTypeDefinition - | ObjectTypeDefinition - | InterfaceTypeDefinition - | UnionTypeDefinition - | EnumTypeDefinition - | InputObjectTypeDefinition; ->>>>>>> WIP export type ScalarTypeDefinitionNode = { kind: 'ScalarTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; } -======= - name: Name; - directives?: Array; - }; ->>>>>>> WIP export type ObjectTypeDefinitionNode = { kind: 'ObjectTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; interfaces?: Array; directives?: Array; fields: Array; } -======= - name: Name; - interfaces?: Array; - directives?: Array; - fields: Array; - }; ->>>>>>> WIP export type FieldDefinitionNode = { kind: 'FieldDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; arguments: Array; type: TypeNode; directives?: Array; } -======= - name: Name; - arguments: Array; - type: Type; - directives?: Array; - }; ->>>>>>> WIP export type InputValueDefinitionNode = { kind: 'InputValueDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; type: TypeNode; defaultValue?: ValueNode; directives?: Array; } -======= - name: Name; - type: Type; - defaultValue?: Value; - directives?: Array; - }; ->>>>>>> WIP export type InterfaceTypeDefinitionNode = { kind: 'InterfaceTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; fields: Array; } -======= - name: Name; - directives?: Array; - fields: Array; - }; ->>>>>>> WIP export type UnionTypeDefinitionNode = { kind: 'UnionTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; types: Array; } -======= - name: Name; - directives?: Array; - types: Array; - }; ->>>>>>> WIP export type EnumTypeDefinitionNode = { kind: 'EnumTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; values: Array; } -======= - name: Name; - directives?: Array; - values: Array; - }; ->>>>>>> WIP export type EnumValueDefinitionNode = { kind: 'EnumValueDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; } -======= - name: Name; - directives?: Array; - }; ->>>>>>> WIP export type InputObjectTypeDefinitionNode = { kind: 'InputObjectTypeDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; directives?: Array; fields: Array; } -======= - name: Name; - directives?: Array; - fields: Array; - }; ->>>>>>> WIP export type TypeExtensionDefinitionNode = { kind: 'TypeExtensionDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b definition: ObjectTypeDefinitionNode; } -======= - definition: ObjectTypeDefinition; - }; ->>>>>>> WIP export type DirectiveDefinitionNode = { kind: 'DirectiveDefinition'; loc?: Location; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b name: NameNode; arguments?: Array; locations: Array; } -======= - name: Name; - arguments?: Array; - locations: Array; - }; ->>>>>>> WIP } @@ -1164,7 +938,7 @@ declare module "graphql/language/visitor" { EnumValueDefinition: string[]; InputObjectTypeDefinition: string[]; TypeExtensionDefinition: string[]; - }; + } const BREAK: any; @@ -1469,15 +1243,9 @@ declare module "graphql/type/definition" { export interface GraphQLObjectTypeConfig { name: string; interfaces?: Thunk>; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b fields: Thunk>; isTypeOf?: GraphQLIsTypeOfFn; description?: string -======= - fields: Thunk>; - isTypeOf?: GraphQLIsTypeOfFn; - description?: string; ->>>>>>> WIP } export type GraphQLTypeResolver = ( @@ -1587,33 +1355,16 @@ declare module "graphql/type/definition" { toString(): string; } -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b export interface GraphQLInterfaceTypeConfig { name: string, fields: Thunk>, -======= -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 - export interface GraphQLInterfaceTypeConfig { - name: string, - fields: Thunk>, -======= - interface GraphQLInterfaceTypeConfig { - name: string; - fields: Thunk>; ->>>>>>> WIP ->>>>>>> WIP /** * Optionally provide a custom type resolver function. If one is not provided, * the default implementation will call `isTypeOf` on each implementing * Object type. */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b resolveType?: GraphQLTypeResolver, description?: string -======= - resolveType?: GraphQLTypeResolveFn; - description?: string; ->>>>>>> WIP } /** @@ -1651,19 +1402,9 @@ declare module "graphql/type/definition" { toString(): string; } -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b export interface GraphQLUnionTypeConfig { -======= -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 - export interface GraphQLUnionTypeConfig { ->>>>>>> WIP name: string, types: Thunk>, -======= - interface GraphQLUnionTypeConfig { - name: string; - types: Thunk>; ->>>>>>> WIP /** * Optionally provide a custom type resolver function. If one is not provided, * the default implementation will call `isTypeOf` on each implementing @@ -1866,7 +1607,7 @@ declare module "graphql/type/directives" { INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION', }; - type DirectiveLocationEnum = any; //$Keys + type DirectiveLocationEnum = any //$Keys /** * Directives are used by the GraphQL runtime as a way of modifying execution @@ -1944,7 +1685,7 @@ declare module "graphql/type/introspection" { INPUT_OBJECT: 'INPUT_OBJECT', LIST: 'LIST', NON_NULL: 'NON_NULL', - }; + } const __TypeKind: GraphQLEnumType; @@ -2122,13 +1863,8 @@ declare module "graphql/validation/validate" { type NodeWithSelectionSet = OperationDefinitionNode | FragmentDefinitionNode; interface VariableUsage { -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b node: VariableNode, type: GraphQLInputType -======= - node: Variable; - type: GraphQLInputType; ->>>>>>> WIP } /** @@ -2243,7 +1979,6 @@ declare module "graphql/execution/execute" { }, operationName?: string ): Promise; -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b /** * Given a ResponsePath (found in the `path` entry in the information provided @@ -2262,8 +1997,6 @@ declare module "graphql/execution/execute" { * of calling that function while passing along args and context. */ export const defaultFieldResolver: GraphQLFieldResolver; -======= ->>>>>>> WIP } declare module "graphql/execution/values" { @@ -2280,7 +2013,7 @@ declare module "graphql/execution/values" { schema: GraphQLSchema, varDefNodes: Array, inputs: { [key: string]: any } - ): { [key: string]: any }; + ): { [key: string]: any } /** * Prepares an object map of argument values given a list of argument @@ -3125,11 +2858,7 @@ declare module "graphql/utilities/valueFromAST" { } from 'graphql/language/ast'; function valueFromAST( -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b valueNode: ValueNode, -======= - valueAST: Value, ->>>>>>> WIP type: GraphQLInputType, variables?: { [key: string]: any diff --git a/gulp-protractor/index.d.ts b/gulp-protractor/index.d.ts index fd76826f3d..73281924a6 100644 --- a/gulp-protractor/index.d.ts +++ b/gulp-protractor/index.d.ts @@ -9,7 +9,7 @@ import gulp = require('gulp'); interface IOptions { configFile?: string; - args?: Array; + args?: string[]; debug?: boolean; } diff --git a/gulp-rev-replace/index.d.ts b/gulp-rev-replace/index.d.ts index 322604bf1d..e279710912 100644 --- a/gulp-rev-replace/index.d.ts +++ b/gulp-rev-replace/index.d.ts @@ -9,7 +9,7 @@ declare namespace revReplace { interface Options { canonicalUris?: boolean; - replaceInExtensions?: Array; + replaceInExtensions?: string[]; prefix?: string; manifest?: NodeJS.ReadWriteStream; modifyUnreved?: Function; diff --git a/gulp-watch/index.d.ts b/gulp-watch/index.d.ts index de56633491..467e92b585 100644 --- a/gulp-watch/index.d.ts +++ b/gulp-watch/index.d.ts @@ -8,7 +8,7 @@ interface IOptions { ignoreInitial?: boolean; - events?: Array; + events?: string[]; base?: string; name?: string; verbose?: boolean; @@ -16,11 +16,11 @@ interface IOptions { } interface IWatchStream extends NodeJS.ReadWriteStream { - add(path: string | Array): NodeJS.ReadWriteStream; - unwatch(path: string | Array): NodeJS.ReadWriteStream; + add(path: string | string[]): NodeJS.ReadWriteStream; + unwatch(path: string | string[]): NodeJS.ReadWriteStream; close(): NodeJS.ReadWriteStream; } -declare function watch(glob: string | Array, options?: IOptions, callback?: Function): IWatchStream; +declare function watch(glob: string | string[], options?: IOptions, callback?: Function): IWatchStream; declare namespace watch { } export = watch; diff --git a/hapi/hapi-8.2.0.d.ts b/hapi/hapi-8.2.0.d.ts index 866a7d9749..720055ccd8 100644 --- a/hapi/hapi-8.2.0.d.ts +++ b/hapi/hapi-8.2.0.d.ts @@ -405,7 +405,7 @@ export interface IRouteAdditionalConfigurationOptions { 'try'same as 'optional' but allows for invalid authentication. */ mode: string; /** a string array of strategy names in order they should be attempted.If only one strategy is used, strategy can be used instead with the single string value.Defaults to the default authentication strategy which is available only when a single strategy is configured. */ - strategies?: string | Array; + strategies?: string | string[]; strategy?: string; /** if set, the payload (in requests other than 'GET' and 'HEAD') is authenticated after it is processed.Requires a strategy with payload authentication support (e.g.Hawk).Cannot be set to a value other than 'required' when the scheme sets the options.payload to true.Available values: falseno payload authentication.This is the default value. @@ -413,7 +413,7 @@ export interface IRouteAdditionalConfigurationOptions { 'optional'payload authentication performed only when the client includes payload authentication information (e.g.hash attribute in Hawk). */ payload?: string; /** the application scope required to access the route.Value can be a scope string or an array of scope strings.The authenticated credentials object scope property must contain at least one of the scopes defined to access the route.Set to false to remove scope requirements.Defaults to no scope required. */ - scope?: string | Array | boolean; + scope?: string | string[] | boolean; /** the required authenticated entity type.If set, must match the entity value of the authentication credentials.Available values: anythe authentication can be on behalf of a user or application.This is the default value. userthe authentication must be on behalf of a user. @@ -437,7 +437,7 @@ export interface IRouteAdditionalConfigurationOptions { /** the Cross- Origin Resource Sharing protocol allows browsers to make cross- origin API calls.CORS is required by web applications running inside a browser which are loaded from a different domain than the API server.CORS headers are disabled by default. To enable, set cors to true, or to an object with the following options: */ cors?: { /** a strings array of allowed origin servers ('Access-Control-Allow-Origin').The array can contain any combination of fully qualified origins along with origin strings containing a wildcard '' character, or a single `''origin string. Defaults to any origin['*']`. */ - origin?: Array; + origin?: string[]; /** if true, matches the value of the incoming 'Origin' header to the list of origin values ('*' matches anything) and if a match is found, uses that as the value of the 'Access-Control-Allow-Origin' response header.When false, the origin config is returned as- is.Defaults to true. */ matchOrigin?: boolean; /** if false, prevents the connection from returning the full list of non- wildcard origin values if the incoming origin header does not match any of the values.Has no impact if matchOrigin is set to false.Defaults to true. */ @@ -754,7 +754,7 @@ export interface IRouteHandlerConfig { lookupCompressed - optional boolean, instructs the file processor to look for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. defaultExtension - optional string, appended to file requests if the requested file is not found. Defaults to no extension.*/ directory?: { - path: string | Array | IRequestHandler | IRequestHandler>; + path: string | string[] | IRequestHandler | IRequestHandler; index?: boolean; listing?: boolean; showHidden?: boolean; @@ -795,7 +795,7 @@ export interface IRouteHandlerConfig { file: any; }; parse?: any; - allow?: string | Array; + allow?: string | string[]; override?: string; maxBytes?: number; uploads?: number; @@ -813,17 +813,17 @@ export interface IRouteHandlerConfig { }; auth: string | boolean | { mode: string; - strategies: Array; + strategies: string[]; payload?: boolean | string; tos?: boolean | string; - scope?: string | Array; + scope?: string | string[]; entity: string; }; cors?: boolean; jsonp?: string; description?: string; - notes?: string | Array; - tags?: Array; + notes?: string | string[]; + tags?: string[]; }; } /** Route configuration @@ -850,7 +850,7 @@ export interface IRoute { /** the route path. */ path: string; /** the route vhost option if configured. */ - vhost?: string | Array; + vhost?: string | string[]; /** the [active realm] associated with the route.*/ realm: IServerRealm; /** the [route options] object with all defaults applied. */ diff --git a/hapi/index.d.ts b/hapi/index.d.ts index 04fa4062f2..e37ae1b501 100644 --- a/hapi/index.d.ts +++ b/hapi/index.d.ts @@ -464,14 +464,14 @@ export interface IRouteAdditionalConfigurationOptions { 'try'same as 'optional' but allows for invalid authentication. */ mode?: string; /** a string array of strategy names in order they should be attempted.If only one strategy is used, strategy can be used instead with the single string value.Defaults to the default authentication strategy which is available only when a single strategy is configured. */ - strategies?: string | Array; + strategies?: string | string[]; /** if set, the payload (in requests other than 'GET' and 'HEAD') is authenticated after it is processed.Requires a strategy with payload authentication support (e.g.Hawk).Cannot be set to a value other than 'required' when the scheme sets the options.payload to true.Available values: falseno payload authentication.This is the default value. 'required'payload authentication required.This is the default value when the scheme sets options.payload to true. 'optional'payload authentication performed only when the client includes payload authentication information (e.g.hash attribute in Hawk). */ payload?: string; /** the application scope required to access the route.Value can be a scope string or an array of scope strings.The authenticated credentials object scope property must contain at least one of the scopes defined to access the route.Set to false to remove scope requirements.Defaults to no scope required. */ - scope?: string | Array | boolean; + scope?: string | string[] | boolean; /** the required authenticated entity type.If set, must match the entity value of the authentication credentials.Available values: anythe authentication can be on behalf of a user or application.This is the default value. userthe authentication must be on behalf of a user. @@ -500,7 +500,7 @@ export interface IRouteAdditionalConfigurationOptions { /** the Cross- Origin Resource Sharing protocol allows browsers to make cross- origin API calls.CORS is required by web applications running inside a browser which are loaded from a different domain than the API server.CORS headers are disabled by default. To enable, set cors to true, or to an object with the following options: */ cors?: { /** a strings array of allowed origin servers ('Access-Control-Allow-Origin').The array can contain any combination of fully qualified origins along with origin strings containing a wildcard '' character, or a single `''origin string. Defaults to any origin['*']`. */ - origin?: Array; + origin?: string[]; /** if true, matches the value of the incoming 'Origin' header to the list of origin values ('*' matches anything) and if a match is found, uses that as the value of the 'Access-Control-Allow-Origin' response header.When false, the origin config is returned as- is.Defaults to true. */ matchOrigin?: boolean; /** if false, prevents the connection from returning the full list of non- wildcard origin values if the incoming origin header does not match any of the values.Has no impact if matchOrigin is set to false.Defaults to true. */ @@ -732,7 +732,7 @@ export interface IRouteAdditionalConfigurationAuthAccess { * on the request object (query and params} to populate a dynamic scope by using {} characters around the property name, * such as 'user-{params.id}'. Defaults to false (no scope requirements). */ - scope?: string | Array | boolean; + scope?: string | string[] | boolean; /** the required authenticated entity type. If set, must match the entity value of the authentication credentials. Available values: * any - the authentication can be on behalf of a user or application. This is the default value. * user - the authentication must be on behalf of a user which is identified by the presence of a user attribute in the credentials object returned by the authentication strategy. @@ -846,7 +846,7 @@ export interface IRouteHandlerConfig { lookupCompressed - optional boolean, instructs the file processor to look for the same filename with the '.gz' suffix for a pre-compressed version of the file to serve if the request supports content encoding. Defaults to false. defaultExtension - optional string, appended to file requests if the requested file is not found. Defaults to no extension.*/ directory?: { - path: string | Array | IRequestHandler | IRequestHandler>; + path: string | string[] | IRequestHandler | IRequestHandler; index?: boolean | string | string[]; listing?: boolean; showHidden?: boolean; @@ -887,7 +887,7 @@ export interface IRouteHandlerConfig { file: any; }; parse?: any; - allow?: string | Array; + allow?: string | string[]; override?: string; maxBytes?: number; uploads?: number; @@ -905,17 +905,17 @@ export interface IRouteHandlerConfig { }; auth: string | boolean | { mode: string; - strategies: Array; + strategies: string[]; payload?: boolean | string; tos?: boolean | string; - scope?: string | Array; + scope?: string | string[]; entity: string; }; cors?: boolean; jsonp?: string; description?: string; - notes?: string | Array; - tags?: Array; + notes?: string | string[]; + tags?: string[]; }; } /** Route configuration @@ -942,7 +942,7 @@ export interface IRoute { /** the route path. */ path: string; /** the route vhost option if configured. */ - vhost?: string | Array; + vhost?: string | string[]; /** the [active realm] associated with the route.*/ realm: IServerRealm; /** the [route options] object with all defaults applied. */ diff --git a/heremaps/index.d.ts b/heremaps/index.d.ts index 27acf1e9bd..1d2acc6926 100644 --- a/heremaps/index.d.ts +++ b/heremaps/index.d.ts @@ -1051,11 +1051,11 @@ declare namespace H { /** * This method creates the minimum rectangular area covering all of the coordinates in the argument array. - * @param latLngAltArray {Array} - the array of coordinates to cover + * @param latLngAltArray {number[]} - the array of coordinates to cover * @param opt_skipValidation {boolean=} - a boolean flag indicating whether to check validity of the arguments * @returns {(H.geo.Rect | undefined)} - returns the minimum rectangular area covering the coordinates */ - static coverLatLngAlts(latLngAltArray: Array, opt_skipValidation?: boolean): H.geo.Rect | void; + static coverLatLngAlts(latLngAltArray: number[], opt_skipValidation?: boolean): H.geo.Rect | void; /** * This method creates the minimum rectangular area covering all of the rectangular areas in the argument array. @@ -1080,10 +1080,10 @@ declare namespace H { export class Strip { /** * Constructor - * @param opt_latLngAlts {Array=} - An optional array of latitude, longitude and altitude triples to initialize the strip with. + * @param opt_latLngAlts {number[]=} - An optional array of latitude, longitude and altitude triples to initialize the strip with. * @param opt_ctx {H.geo.AltitudeContext=} - An optional altitude context for all altitudes contained in this strip. */ - constructor(opt_latLngAlts?: Array, opt_ctx?: H.geo.AltitudeContext); + constructor(opt_latLngAlts?: number[], opt_ctx?: H.geo.AltitudeContext); /** * This method pushes a lat, lng, alt to the end of this strip. @@ -1097,10 +1097,10 @@ declare namespace H { * This method splices the strip at the provided index, removing the specified number of items at that index and inserting the lat, lng, alt array. * @param index {number} - The index at which to splice * @param opt_nRemove {number=} - The number of lat, lng, alt values to remove - * @param opt_latLngAlts {Array=} - The lat, lng, alt values to add - * @returns {Array} - an array of removed elements + * @param opt_latLngAlts {number[]=} - The lat, lng, alt values to add + * @returns {number[]} - an array of removed elements */ - spliceLatLngAlts(index: number, opt_nRemove?: number, opt_latLngAlts?: Array): Array; + spliceLatLngAlts(index: number, opt_nRemove?: number, opt_latLngAlts?: number[]): number[]; /** * This method inserts one set of lat, lng, alt values into the strip at the specified index. @@ -1167,9 +1167,9 @@ declare namespace H { /** * This method returns the internal array keeping the lat, lng, alt values. Modifying this array directly can destroy the integrity of this strip. Use it only for read access. - * @returns {Array} - returns the raw lat, lng, alt values of this strip + * @returns {number[]} - returns the raw lat, lng, alt values of this strip */ - getLatLngAltArray(): Array; + getLatLngAltArray(): number[]; /** * This method returns the bounding box of this strip. @@ -1187,10 +1187,10 @@ declare namespace H { /** * This method initializes a new strip with an array of lat, lng values. Arrays are expected to have an even length with the format [lat, lng, lat, lng, ...]. - * @param latLngs {Array} - the array of lat, lng value. + * @param latLngs {number[]} - the array of lat, lng value. * @returns {H.geo.Strip} - the strip containing the lat, lng values */ - static fromLatLngArray(latLngs: Array): H.geo.Strip; + static fromLatLngArray(latLngs: number[]): H.geo.Strip; } } @@ -1557,9 +1557,9 @@ declare namespace H { /** * Constructor * @param shapeType {H.map.HitArea.ShapeType} - The shape type of the HitArea - * @param opt_values {Array=} - The type-dependent values to define the shape of the hit area. The format for the different types are: + * @param opt_values {number[]=} - The type-dependent values to define the shape of the hit area. The format for the different types are: */ - constructor(shapeType: H.map.HitArea.ShapeType, opt_values?: Array); + constructor(shapeType: H.map.HitArea.ShapeType, opt_values?: number[]); } export namespace HitArea { @@ -2117,9 +2117,9 @@ declare namespace H { /** * This method clips this polyline against a rectangular area and returns the intersecting sub-lines. * @param geoRect {H.geo.Rect} - * @returns {Array>} + * @returns {Array} */ - clip(geoRect: H.geo.Rect): Array>; + clip(geoRect: H.geo.Rect): Array; } export namespace Polyline { @@ -2260,7 +2260,7 @@ declare namespace H { * @property lineCap {H.map.SpatialStyle.LineCap} - The style of the end caps for a line, default is 'round'. * @property lineJoin {H.map.SpatialStyle.LineJoin} - The type of corner created, when two lines meet, default is 'miter'. * @property miterLimit {number} - The miter length is the distance between the inner corner and the outer corner where two lines meet. The default is 10. - * @property lineDash {Array} - The line dash pattern as an even numbered list of distances to alternately produce a line and a space. The default is [ ]. + * @property lineDash {number[]} - The line dash pattern as an even numbered list of distances to alternately produce a line and a space. The default is [ ]. * @property lineDashOffset {number} - The phase offset of the line dash pattern The default is 0. * @property MAX_LINE_WIDTH {number} - This constant represents the maximum line width which can be used for rendering. * @property DEFAULT_STYLE {H.map.SpatialStyle} - This static member defines the default style for spatial objects on the map. It's value is { strokeColor: '#05A', fillColor: 'rgba(0, 85, 170, 0.4)' lineWidth: 1, lineCap: 'round', lineJoin: 'miter', miterLimit: 10, lineDash: [ ], lineDashOffset: 0 } @@ -2292,7 +2292,7 @@ declare namespace H { lineCap: H.map.SpatialStyle.LineCap; lineJoin: H.map.SpatialStyle.LineJoin; miterLimit: number; - lineDash: Array; + lineDash: number[]; lineDashOffset: number; static MAX_LINE_WIDTH: number; static DEFAULT_STYLE: H.map.SpatialStyle; @@ -2317,7 +2317,7 @@ declare namespace H { * @property lineCap {H.map.SpatialStyle.LineCap=} - The style of the end caps for a line. * @property lineJoin {H.map.SpatialStyle.LineJoin=} - The type of corner created, when two lines meet. * @property miterLimit {number=} - The miter limit in pixel, default is 10. The maximum supported miter limit is 100 - * @property lineDash {Array} - The line dash pattern as an even numbered list of distances to alternately produce a line and a space. If the browser doesn't support this feature this style property is ignored. + * @property lineDash {number[]} - The line dash pattern as an even numbered list of distances to alternately produce a line and a space. If the browser doesn't support this feature this style property is ignored. * @property lineDashOffset {number=} - The phase offset of the line dash pattern */ export interface Options { @@ -2327,7 +2327,7 @@ declare namespace H { lineCap?: H.map.SpatialStyle.LineCap; lineJoin?: H.map.SpatialStyle.LineJoin; miterLimit?: number; - lineDash?: Array; + lineDash?: number[]; lineDashOffset?: number; } } @@ -4720,25 +4720,25 @@ declare namespace H { * This method creates a tile provider which uses the meta info tile backend. This provider can be used as a data source for an TileLayer. * @param tileSize {number} - The tile size * @param pixelRatio {number} - The tile's pixel ratio, should be aligned with base map tile - * @param opt_categoryFilter {Array=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. + * @param opt_categoryFilter {string[]=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. * @param opt_additionalParameters {H.service.ServiceParameters=} - Additional parameters for the meta info service * @param opt_tileType {string=} - the tile type (default is 'maptile') * @param opt_scheme {string=} - the scheme for which the meta info tiles a requested (default is 'normal.day') * @returns {H.map.provider.TileProvider} - the tile provider */ - createTileProvider(tileSize: number, pixelRatio: number, opt_categoryFilter?: Array, opt_additionalParameters?: H.service.ServiceParameters, opt_tileType?: string, opt_scheme?: string): H.map.provider.TileProvider; + createTileProvider(tileSize: number, pixelRatio: number, opt_categoryFilter?: string[], opt_additionalParameters?: H.service.ServiceParameters, opt_tileType?: string, opt_scheme?: string): H.map.provider.TileProvider; /** * This method creates a tile layer. This layer can be used as a layer on a map's data model. * @param tileSize {number} - The tile size * @param pixelRatio {number} - The tile's pixel ratio, should be aligned with base map tile - * @param opt_categoryFilter {Array=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. + * @param opt_categoryFilter {string[]=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. * @param opt_additionalParameters {H.service.ServiceParameters=} - Additional parameters for the meta info service * @param opt_tileType {string=} - the tile type (default is 'maptile') * @param opt_scheme {string=} - the scheme for which the meta info tiles a requested (default is 'normal.day') * @returns {H.map.layer.TileLayer} - the tile layer */ - createTileLayer(tileSize: number, pixelRatio: number, opt_categoryFilter?: Array, opt_additionalParameters?: H.service.ServiceParameters, opt_tileType?: string, opt_scheme?: string): H.map.layer.TileLayer; + createTileLayer(tileSize: number, pixelRatio: number, opt_categoryFilter?: string[], opt_additionalParameters?: H.service.ServiceParameters, opt_tileType?: string, opt_scheme?: string): H.map.layer.TileLayer; /** * This methods receive configuration parameters from the platform, that can be used by the object implementing the interface. @@ -4803,7 +4803,7 @@ declare namespace H { * @property tileCacheSize {number=} - The number of fully rendered spatial tiles that are cached for immediate reuse, default is 32 * @property tileSize {number=} - The size of the tiles rendered by this provider (must be power of 2, default is 256) * @property pixelRatio {number=} - The pixel ratio to use for over-sampling in cases of high-resolution displays - * @property categoryFilter {Array=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. + * @property categoryFilter {string[]=} - A list of meta-info category names which should be suppressed. See Metainfo Tile for valid category names. */ export interface Options { tileType?: string; @@ -4811,7 +4811,7 @@ declare namespace H { tileCacheSize?: number; tileSize?: number; pixelRatio?: number; - categoryFilter?: Array; + categoryFilter?: string[]; } } } @@ -5725,7 +5725,7 @@ declare namespace H { /** * Default available locales. UI provides default translations for this set of locale codes. */ - export const defaultLocales: Array; + export const defaultLocales: string[]; /** * This class is used for internationalization of UI components. @@ -5741,9 +5741,9 @@ declare namespace H { /** * This method returns translation keys for current locale. Keys from this set can be used to get translations via translate method. - * @returns {Array} + * @returns {string[]} */ - getKeys(): Array; + getKeys(): string[]; /** * This method returns a boolean value indicating whether this localization object has a translation for the specified translation key. @@ -6178,7 +6178,7 @@ declare namespace H { * This method returns all list's entries as an array. * @returns {Array<*>} - The list as an array */ - asArray(): Array; + asArray(): any[]; /** * This method removes all entries from the list. diff --git a/html-minifier/index.d.ts b/html-minifier/index.d.ts index 0bf9e2ae7f..6acddc6419 100644 --- a/html-minifier/index.d.ts +++ b/html-minifier/index.d.ts @@ -89,7 +89,7 @@ declare namespace HTMLMinifier { ignoreCustomFragments?: Array; // Array of strings corresponding to types of script elements to process through minifier (e.g. text/ng-template, text/x-handlebars-template, etc.) - processScripts?: Array; + processScripts?: string[]; // Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points maxLineLength?: number; diff --git a/html-to-text/index.d.ts b/html-to-text/index.d.ts index c5a3688342..fb04ec0b15 100644 --- a/html-to-text/index.d.ts +++ b/html-to-text/index.d.ts @@ -48,7 +48,7 @@ interface HtmlToTextOptions { * and with a # for the id attribute. All other tables are ignored. * You can assign true to this attribute to select all tables. Default: [] */ - tables?: Array | boolean; + tables?: string[] | boolean; /** * By default links are translated the following diff --git a/i18next-browser-languagedetector/index.d.ts b/i18next-browser-languagedetector/index.d.ts index 906910fa49..d54b45ec46 100644 --- a/i18next-browser-languagedetector/index.d.ts +++ b/i18next-browser-languagedetector/index.d.ts @@ -17,14 +17,14 @@ declare namespace i18nextBrowserLanguageDetector { * @interface */ interface LanguageDetectorOptions { - caches?: Array|boolean; + caches?: string[]|boolean; cookieDomain?: string; cookieExpirationDate?: Date; lookupCookie?: string; lookupFromPathIndex?: number; lookupQuerystring?: string; lookupSession?: string; - order?: Array; + order?: string[]; } /** diff --git a/i18next-express-middleware/index.d.ts b/i18next-express-middleware/index.d.ts index 4570061021..08940246d1 100644 --- a/i18next-express-middleware/index.d.ts +++ b/i18next-express-middleware/index.d.ts @@ -16,14 +16,14 @@ declare namespace i18nextExpressMiddleware { * @interface */ interface LanguageDetectorOptions { - caches?: Array|boolean; + caches?: string[]|boolean; cookieDomain?: string; cookieExpirationDate?: Date; lookupCookie?: string; lookupFromPathIndex?: number; lookupQuerystring?: string; lookupSession?: string; - order?: Array; + order?: string[]; } /** diff --git a/i18next/index.d.ts b/i18next/index.d.ts index 9e9c1afe20..41baa1a9f1 100644 --- a/i18next/index.d.ts +++ b/i18next/index.d.ts @@ -104,7 +104,7 @@ declare namespace i18n { getFixedT(lng?: string, ns?: string | string[]): TranslationFunction; - t(key: string, options?: TranslationOptions): string | any | Array; + t(key: string, options?: TranslationOptions): string | any | any[]; exists(): boolean; diff --git a/imgur-rest-api/index.d.ts b/imgur-rest-api/index.d.ts index cedcaf6b75..b2b08b32e2 100644 --- a/imgur-rest-api/index.d.ts +++ b/imgur-rest-api/index.d.ts @@ -27,7 +27,7 @@ declare namespace ImgurRestApi { album_privacy: string; pro_expiration: any; //number|boolean; accepted_gallery_terms: boolean; - active_emails: Array; + active_emails: string[]; messaging_enabled: boolean; blocked_users: Array; } @@ -93,7 +93,7 @@ declare namespace ImgurRestApi { interface CustomGallery { account_url: string; link: string; - tags: Array; + tags: string[]; item_count: number; items: Array; } diff --git a/immutable/index.d.ts b/immutable/index.d.ts index fd535308f4..1a5e2a3ffa 100644 --- a/immutable/index.d.ts +++ b/immutable/index.d.ts @@ -308,7 +308,7 @@ declare namespace Immutable { * Index numbers are used as keys to determine the path to follow in * the List. */ - setIn(keyPath: Array, value: any): List; + setIn(keyPath: any[], value: any): List; setIn(keyPath: Iterable, value: any): List; /** @@ -317,20 +317,20 @@ declare namespace Immutable { * * @alias removeIn */ - deleteIn(keyPath: Array): List; + deleteIn(keyPath: any[]): List; deleteIn(keyPath: Iterable): List; - removeIn(keyPath: Array): List; + removeIn(keyPath: any[]): List; removeIn(keyPath: Iterable): List; /** * @see `Map#updateIn` */ updateIn( - keyPath: Array, + keyPath: any[], updater: (value: any) => any ): List; updateIn( - keyPath: Array, + keyPath: any[], notSetValue: any, updater: (value: any) => any ): List; @@ -352,11 +352,11 @@ declare namespace Immutable { ...iterables: Iterable.Indexed[] ): List; mergeIn( - keyPath: Array, + keyPath: any[], ...iterables: Iterable.Indexed[] ): List; mergeIn( - keyPath: Array, + keyPath: any[], ...iterables: Array[] ): List; @@ -368,11 +368,11 @@ declare namespace Immutable { ...iterables: Iterable.Indexed[] ): List; mergeDeepIn( - keyPath: Array, + keyPath: any[], ...iterables: Iterable.Indexed[] ): List; mergeDeepIn( - keyPath: Array, + keyPath: any[], ...iterables: Array[] ): List; @@ -587,7 +587,7 @@ declare namespace Immutable { * Returns a new Map having set `value` at this `keyPath`. If any keys in * `keyPath` do not exist, a new immutable Map will be created at that key. */ - setIn(keyPath: Array, value: any): Map; + setIn(keyPath: any[], value: any): Map; setIn(KeyPath: Iterable, value: any): Map; /** @@ -596,9 +596,9 @@ declare namespace Immutable { * * @alias removeIn */ - deleteIn(keyPath: Array): Map; + deleteIn(keyPath: any[]): Map; deleteIn(keyPath: Iterable): Map; - removeIn(keyPath: Array): Map; + removeIn(keyPath: any[]): Map; removeIn(keyPath: Iterable): Map; /** @@ -623,11 +623,11 @@ declare namespace Immutable { * */ updateIn( - keyPath: Array, + keyPath: any[], updater: (value: any) => any ): Map; updateIn( - keyPath: Array, + keyPath: any[], notSetValue: any, updater: (value: any) => any ): Map; @@ -655,11 +655,11 @@ declare namespace Immutable { ...iterables: Iterable[] ): Map; mergeIn( - keyPath: Array, + keyPath: any[], ...iterables: Iterable[] ): Map; mergeIn( - keyPath: Array, + keyPath: any[], ...iterables: {[key: string]: V}[] ): Map; @@ -677,11 +677,11 @@ declare namespace Immutable { ...iterables: Iterable[] ): Map; mergeDeepIn( - keyPath: Array, + keyPath: any[], ...iterables: Iterable[] ): Map; mergeDeepIn( - keyPath: Array, + keyPath: any[], ...iterables: {[key: string]: V}[] ): Map; @@ -1617,7 +1617,7 @@ declare namespace Immutable { thirdIterable: Iterable ): Iterable.Indexed; zipWith( - zipper: (...any: Array) => Z, + zipper: (...any: any[]) => Z, ...iterables: Array> ): Iterable.Indexed; @@ -1789,14 +1789,14 @@ declare namespace Immutable { * Returns the value found by following a path of keys or indices through * nested Iterables. */ - getIn(searchKeyPath: Array, notSetValue?: any): any; + getIn(searchKeyPath: any[], notSetValue?: any): any; getIn(searchKeyPath: Iterable, notSetValue?: any): any; /** * True if the result of following a path of keys or indices through nested * Iterables results in a set value. */ - hasIn(searchKeyPath: Array): boolean; + hasIn(searchKeyPath: any[]): boolean; hasIn(searchKeyPath: Iterable): boolean; diff --git a/intl-tel-input/index.d.ts b/intl-tel-input/index.d.ts index 38ac9274ca..6168b66cf7 100644 --- a/intl-tel-input/index.d.ts +++ b/intl-tel-input/index.d.ts @@ -49,7 +49,7 @@ declare namespace IntlTelInput { /** * Don't display the countries you specify. */ - excludeCountries?: Array; + excludeCountries?: string[]; /** * Format the input value during initialisation. */ @@ -89,11 +89,11 @@ declare namespace IntlTelInput { /** * Display only the countries you specify. */ - onlyCountries?: Array; + onlyCountries?: string[]; /** * Specify the countries to appear at the top of the list. */ - preferredCountries?: Array; + preferredCountries?: string[]; /** * Display the country dial code next to the selected flag so it's not part * of the typed number. Note that this will disable nationalMode because diff --git a/ionic/index.d.ts b/ionic/index.d.ts index a1f78e9db4..8197464a9c 100644 --- a/ionic/index.d.ts +++ b/ionic/index.d.ts @@ -87,7 +87,7 @@ interface IonicStatic { /** * An array of all platforms found. */ - platforms: Array; + platforms: string[]; /** * What grade the current platform is. */ diff --git a/isomorphic-fetch/index.d.ts b/isomorphic-fetch/index.d.ts index 717fdb8dc7..78830500b7 100644 --- a/isomorphic-fetch/index.d.ts +++ b/isomorphic-fetch/index.d.ts @@ -26,7 +26,7 @@ interface IHeaders { append(name: string, value: string): void; delete(name: string): void; get(name: string): string; - getAll(name: string): Array; + getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; @@ -38,14 +38,14 @@ interface IHeaders { // values(): IterableIterator; } -type HeadersInit = Headers | Array | { [index: string]: string }; +type HeadersInit = Headers | string[] | { [index: string]: string }; declare class Headers implements IHeaders { constructor(init?: HeadersInit); append(name: string, value: string): void; delete(name: string): void; get(name: string): string; - getAll(name: string): Array; + getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; diff --git a/istanbul/index.d.ts b/istanbul/index.d.ts index ee23e27782..1f77d1b7c1 100644 --- a/istanbul/index.d.ts +++ b/istanbul/index.d.ts @@ -53,7 +53,7 @@ declare namespace istanbul { interface Reporter { new (cfg?: Configuration, dir?: string): Reporter; add(fmt: string): void; - addAll(fmts: Array): void; + addAll(fmts: string[]): void; write(collector: Collector, sync: boolean, callback: Function): void; } diff --git a/jasmine/index.d.ts b/jasmine/index.d.ts index a53872bac7..d646d7ef96 100644 --- a/jasmine/index.d.ts +++ b/jasmine/index.d.ts @@ -137,7 +137,7 @@ declare namespace jasmine { interface MatchersUtil { equals(a: any, b: any, customTesters?: Array): boolean; contains(haystack: ArrayLike | string, needle: any, customTesters?: Array): boolean; - buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: Array): string; + buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: any[]): string; } interface Env { diff --git a/javascript-astar/index.d.ts b/javascript-astar/index.d.ts index 9f8b53ec32..0bcc9dfa7b 100644 --- a/javascript-astar/index.d.ts +++ b/javascript-astar/index.d.ts @@ -5,7 +5,7 @@ declare class Graph { grid: Array>; - constructor(grid: Array>, options?: {diagonal?: boolean}); + constructor(grid: Array, options?: {diagonal?: boolean}); } declare class GridNode { diff --git a/jbinary/index.d.ts b/jbinary/index.d.ts index c041943f7b..aa7c7e00e0 100644 --- a/jbinary/index.d.ts +++ b/jbinary/index.d.ts @@ -18,7 +18,7 @@ declare class jBinary { static saveAs(destination: any, mimeType?: string, callback?: (error: string, data: any) => any): any; static toURI(mimeType?: string): any; - constructor(data: Array); + constructor(data: number[]); constructor(data: jDataView, typeSet: Object); constructor(bufferSize: number, typeSet: Object); diff --git a/jest/index.d.ts b/jest/index.d.ts index 3dd91ac217..49622e4f44 100644 --- a/jest/index.d.ts +++ b/jest/index.d.ts @@ -276,7 +276,7 @@ declare namespace jasmine { interface MatchersUtil { equals(a: any, b: any, customTesters?: Array): boolean; contains(haystack: ArrayLike | string, needle: any, customTesters?: Array): boolean; - buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: Array): string; + buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: any[]): string; } interface CustomEqualityTester { diff --git a/johnny-five/index.d.ts b/johnny-five/index.d.ts index 3cab6efeae..e756b9fdf7 100644 --- a/johnny-five/index.d.ts +++ b/johnny-five/index.d.ts @@ -15,10 +15,10 @@ export interface AccelerometerGeneralOption { } export interface AccelerometerAnalogOption extends AccelerometerGeneralOption { - pins: Array; + pins: string[]; sensitivity?: number; aref?: number; - zeroV?: number | Array; + zeroV?: number | number[]; autoCalibrate?: boolean; } @@ -47,11 +47,11 @@ export declare class Animation { pause(): void; stop(): void; next(): void; - speed(speed: Array): void; + speed(speed: number[]): void; target: number; duration: number; - cuePoints: Array; + cuePoints: number[]; keyFrames: number; easing: string; loop: boolean; @@ -125,7 +125,7 @@ export declare class Compass { export interface ESCOption { pin: number | string; - range?: Array; + range?: number[]; startAt?: number; } @@ -142,7 +142,7 @@ export interface GyroGeneralOption { } export interface GyroAnalogOption extends GyroGeneralOption { - pins: Array; + pins: string[]; sensitivity: number; resolution?: number; } @@ -202,14 +202,14 @@ export declare namespace IR { } export interface ArrayOption { - pins: Array | Array; + pins: number[] | string[]; emitter: number | string; freq?: number; } export interface LoadCalibrationOption { - min: Array; - max: Array; + min: number[]; + max: number[]; } export namespace Reflect { @@ -229,7 +229,7 @@ export declare namespace IR { } export interface JoystickOption { - pins: Array; + pins: string[]; } export declare class Joystick { @@ -239,8 +239,8 @@ export declare class Joystick { on(event: "change", cb: () => void): void; on(event: "axismove", cb: (error: Error, date: Date) => void): void; - axis: Array; - raw: Array; + axis: number[]; + raw: number[]; } @@ -255,7 +255,7 @@ export interface LCDI2COption extends LCDGeneralOption { } export interface LCDParallelOption extends LCDGeneralOption { - pins: Array; + pins: any[]; backlight?: number; } @@ -325,7 +325,7 @@ export declare namespace Led { export interface MatrixIC2Option { controller: string; - addresses?: Array; + addresses?: any[]; isBicolor?: boolean; dims?: any; rotation?: number; @@ -352,7 +352,7 @@ export declare namespace Led { } export interface RGBOption { - pins: Array; + pins: number[]; isAnode?: boolean; controller?: string; } @@ -383,7 +383,7 @@ export interface MotorOption { } export declare class Motor { - constructor(option: Array | MotorOption); + constructor(option: number[] | MotorOption); forward(speed: number): void; fwd(speed: number): void; reverse(speed: number): void; @@ -415,7 +415,7 @@ export interface PinOption { } export interface PinState { - supportedModes: Array; + supportedModes: number[]; mode: number; value: number; report: number; @@ -467,7 +467,7 @@ export declare class Sensor { scale(range: number[]): Sensor; scale(): Sensor; booleanAt(barrier: number): boolean; - within(range: Array, cb: () => void): void; + within(range: number[], cb: () => void): void; on(event: string, cb: () => void): void; on(event: "data", cb: (data: any) => void): void; on(event: "change", cb: () => void): void; @@ -475,7 +475,7 @@ export declare class Sensor { export interface ServoGeneralOption { pin: number | string; - range?: Array; + range?: number[]; type?: string; startAt?: number; isInverted?: boolean; @@ -488,7 +488,7 @@ export interface ServoPCA9685Option extends ServoGeneralOption { } export interface ServoSweepOpts { - range: Array; + range: number[]; interval?: number; step?: number; } @@ -500,7 +500,7 @@ export declare class Servo { max(): void; center(): void; sweep(): void; - sweep(range: Array): void; + sweep(range: number[]): void; sweep(opt: ServoSweepOpts): void; stop(): void; cw(speed: number): void; @@ -527,8 +527,8 @@ export interface SonarOption { export declare class Sonar { constructor(option: number | string | SonarOption); - within(range: Array, cb: () => void): void; - within(range: Array, unit: string, cb: () => void): void; + within(range: number[], cb: () => void): void; + within(range: number[], unit: string, cb: () => void): void; on(event: string, cb: () => void): void; on(event: "data", cb: (data: any) => void): void; on(event: "change", cb: () => void): void; @@ -566,8 +566,8 @@ export declare class Stepper { cw(): Stepper; ccw(): Stepper; - within(range: Array, cb: () => void): void; - within(range: Array, unit: string, cb: () => void): void; + within(range: number[], cb: () => void): void; + within(range: number[], unit: string, cb: () => void): void; on(event: string, cb: () => void): void; on(event: "data", cb: (data: any) => void): void; on(event: "change", cb: () => void): void; diff --git a/joi/index.d.ts b/joi/index.d.ts index 973fe8c4e6..8244f0545b 100644 --- a/joi/index.d.ts +++ b/joi/index.d.ts @@ -120,7 +120,7 @@ export interface ReferenceOptions { } export interface IPOptions { - version?: Array; + version?: string[]; cidr?: string; } diff --git a/joi/joi-6.5.0.d.ts b/joi/joi-6.5.0.d.ts index f8bfd53479..af4f4a552e 100644 --- a/joi/joi-6.5.0.d.ts +++ b/joi/joi-6.5.0.d.ts @@ -116,7 +116,7 @@ declare module 'joi' { } export interface IPOptions { - version?: Array; + version?: string[]; cidr?: string; } diff --git a/jquery-jsonrpcclient/index.d.ts b/jquery-jsonrpcclient/index.d.ts index 1005db7c61..edae7768b7 100644 --- a/jquery-jsonrpcclient/index.d.ts +++ b/jquery-jsonrpcclient/index.d.ts @@ -34,7 +34,7 @@ interface JsonRpcClient { * * @return {object} Returns the deferred object that $.ajax returns or {null} for websockets */ - call(method: string, params: Object | Array, successCb: (result: any) => void, errorCb: (result: any) => void): JQueryDeferred; + call(method: string, params: Object | any[], successCb: (result: any) => void, errorCb: (result: any) => void): JQueryDeferred; /** * Notify sends a command to the server that won't need a response. In http, there is probably @@ -50,7 +50,7 @@ interface JsonRpcClient { * * @return {object} Returns the deferred object that $.ajax returns or {null} for websockets */ - notify(method: string, params: Object | Array): JQueryDeferred; + notify(method: string, params: Object | any[]): JQueryDeferred; /** * Make a batch-call by using a callback. diff --git a/jquery.address/index.d.ts b/jquery.address/index.d.ts index f15df23e8a..4df75afc09 100644 --- a/jquery.address/index.d.ts +++ b/jquery.address/index.d.ts @@ -82,7 +82,7 @@ interface JQueryAddressStatic { /** * Provides a list of all the query parameter names. */ - parameterNames(): Array; + parameterNames(): string[]; /** * Provides the deep linking value without the query string and the hash fragment. */ @@ -94,7 +94,7 @@ interface JQueryAddressStatic { /** * Provides a list of all the folders in the deep linking path. */ - pathNames(): Array; + pathNames(): string[]; /** * Provides the query string part of the deep linking value. */ diff --git a/jquery.simplemodal/index.d.ts b/jquery.simplemodal/index.d.ts index 7fff90f18a..1f6de655cb 100644 --- a/jquery.simplemodal/index.d.ts +++ b/jquery.simplemodal/index.d.ts @@ -71,7 +71,7 @@ declare namespace SimpleModal { overlayClose?: boolean; /** Position of container [top, left]. Can be number of pixels or percentage. Default: null. */ - position?: Array; + position?: any[]; /** Persist the data across modal calls? Only used for existing DOM elements. If true, the data will be maintained across modal calls, if false, the data will be reverted to its original state. Default: true. */ persist?: boolean; diff --git a/jqueryui/index.d.ts b/jqueryui/index.d.ts index d426c185da..950372eaa3 100644 --- a/jqueryui/index.d.ts +++ b/jqueryui/index.d.ts @@ -1729,12 +1729,12 @@ interface JQuery { slider(methodName: 'refresh'): void; slider(methodName: 'value'): number; slider(methodName: 'value', value: number): void; - slider(methodName: 'values'): Array; + slider(methodName: 'values'): number[]; slider(methodName: 'values', index: number): number; slider(methodName: string, index: number, value: number): void; slider(methodName: 'values', index: number, value: number): void; - slider(methodName: string, values: Array): void; - slider(methodName: 'values', values: Array): void; + slider(methodName: string, values: number[]): void; + slider(methodName: 'values', values: number[]): void; slider(methodName: 'widget'): JQuery; slider(methodName: string): JQuery; slider(options: JQueryUI.SliderOptions): JQuery; diff --git a/js-data/index.d.ts b/js-data/index.d.ts index 0c61ac6118..659c0bcde9 100644 --- a/js-data/index.d.ts +++ b/js-data/index.d.ts @@ -27,15 +27,15 @@ declare namespace JSData { clearEmptyQueries?: boolean; debug?: boolean; defaultAdapter?: string; - defaultFilter?: (collection: Array, resourceName: string, params: DSFilterArg, options: DSConfiguration) => Array; + defaultFilter?: (collection: any[], resourceName: string, params: DSFilterArg, options: DSConfiguration) => any[]; defaultValues?: Object; eagerEject?: boolean; endpoint?: string; error?: boolean | ((message?: any, ...optionalParams: any[]) => void); - fallbackAdapters?: Array; - findAllFallbackAdapters?: Array; + fallbackAdapters?: string[]; + findAllFallbackAdapters?: string[]; findAllStrategy?: string; - findFallbackAdapters?: Array; + findFallbackAdapters?: string[]; findStrategy?: string; findStrictCache?: boolean; idAttribute?: string; @@ -82,8 +82,8 @@ declare namespace JSData { skip?: number; offset?: number; - orderBy?: string | Array | Array>; - sort?: string | Array | Array>; + orderBy?: string | string[] | Array; + sort?: string | string[] | Array; } type DSFilterArg = DSFilterParams | Object; @@ -146,7 +146,7 @@ declare namespace JSData { is(resourceName: string, object: Object): boolean; lastModified(resourceName: string, id?: string | number): number; // timestamp lastSaved(resourceName: string, id?: string | number): number; // timestamp - loadRelations(resourceName: string, idOrInstance: string | number, relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + loadRelations(resourceName: string, idOrInstance: string | number, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; previous(resourceName: string, id: string | number): T & DSInstanceShorthands; reap(resourceName: string): JSDataPromise; refresh(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise>; @@ -185,7 +185,7 @@ declare namespace JSData { is(object: Object): boolean; lastModified(id?: string | number): number; // timestamp lastSaved(id?: string | number): number; // timestamp - loadRelations(idOrInstance: string | number, relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + loadRelations(idOrInstance: string | number, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; previous(id: string | number): T & DSInstanceShorthands; reap(): JSDataPromise; refresh(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise>; @@ -204,7 +204,7 @@ declare namespace JSData { DSUpdate(options?: DSAdapterOperationConfiguration): JSDataPromise>; DSDestroy(options?: DSAdapterOperationConfiguration): JSDataPromise; DSCreate(options?: DSAdapterOperationConfiguration): JSDataPromise>; - DSLoadRelations(relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + DSLoadRelations(relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; DSChangeHistory(): Array; DSChanges(): Object; DSHasChanges(): boolean; diff --git a/js-data/legacy/index.d.ts b/js-data/legacy/index.d.ts index a38e24eef8..39c3eaaa3d 100644 --- a/js-data/legacy/index.d.ts +++ b/js-data/legacy/index.d.ts @@ -36,7 +36,7 @@ declare namespace JSData { destroyAll(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise; find(resourceName: string, id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise>; findAll(resourceName: string, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise>>; - loadRelations(resourceName: string, idOrInstance: string | number | Object, relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + loadRelations(resourceName: string, idOrInstance: string | number | Object, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; update(resourceName: string, id: string | number, attrs: Object, options?: DSSaveConfiguration): JSDataPromise>; updateAll(resourceName: string, attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise>>; reap(resourceName: string, options?: DSConfiguration): JSDataPromise; @@ -60,12 +60,12 @@ declare namespace JSData { is(resourceName: string, object: Object): boolean; lastModified(resourceName: string, id?: string | number): number; // timestamp lastSaved(resourceName: string, id?: string | number): number; // timestamp - link(resourceName: string, id: string | number, relations?: Array): T & DSInstanceShorthands; - linkAll(resourceName: string, params: DSFilterArg, relations?: Array): T & DSInstanceShorthands; - linkInverse(resourceName: string, id: string | number, relations?: Array): T & DSInstanceShorthands; + link(resourceName: string, id: string | number, relations?: string[]): T & DSInstanceShorthands; + linkAll(resourceName: string, params: DSFilterArg, relations?: string[]): T & DSInstanceShorthands; + linkInverse(resourceName: string, id: string | number, relations?: string[]): T & DSInstanceShorthands; previous(resourceName: string, id: string | number): T & DSInstanceShorthands; revert(resourceName: string, id: string | number): T & DSInstanceShorthands; - unlinkInverse(resourceName: string, id: string | number, relations?: Array): T & DSInstanceShorthands; + unlinkInverse(resourceName: string, id: string | number, relations?: string[]): T & DSInstanceShorthands; defineResource(resourceNameOrDefinition: string | DSResourceDefinitionConfiguration): DSResourceDefinition; defineResource(resourceNameOrDefinition: string | DSResourceDefinitionConfiguration): DSResourceDefinition & TActions; @@ -79,15 +79,15 @@ declare namespace JSData { bypassCache?: boolean; cacheResponse?: boolean; defaultAdapter?: string; - defaultFilter?: (collection: Array, resourceName: string, params: DSFilterArg, options: DSConfiguration) => Array; + defaultFilter?: (collection: any[], resourceName: string, params: DSFilterArg, options: DSConfiguration) => any[]; eagerEject?: boolean; endpoint?: string; error?: boolean | ((message?: any, ...optionalParams: any[]) => void); - fallbackAdapters?: Array; - findAllFallbackAdapters?: Array; + fallbackAdapters?: string[]; + findAllFallbackAdapters?: string[]; findAllStrategy?: string; findBelongsTo?: boolean; - findFallbackAdapters?: Array; + findFallbackAdapters?: string[]; findHasOne?: boolean; findHasMany?: boolean; findInverseLinks?: boolean; @@ -138,7 +138,7 @@ declare namespace JSData { destroyAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise; find(id: string | number, options?: DSAdapterOperationConfiguration): JSDataPromise>; findAll(params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise>>; - loadRelations(idOrInstance: string | number | Object, relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + loadRelations(idOrInstance: string | number | Object, relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; update(id: string | number, attrs: Object, options?: DSSaveConfiguration): JSDataPromise>; updateAll(attrs: Object, params?: DSFilterArg, options?: DSAdapterOperationConfiguration): JSDataPromise>>; reap(options?: DSConfiguration): JSDataPromise; @@ -162,11 +162,11 @@ declare namespace JSData { is(object: Object): boolean; lastModified(id?: string | number): number; // timestamp lastSaved(id?: string | number): number; // timestamp - link(id: string | number, relations?: Array): T & DSInstanceShorthands; - linkAll(params: DSFilterArg, relations?: Array): T & DSInstanceShorthands; - linkInverse(id: string | number, relations?: Array): T & DSInstanceShorthands; + link(id: string | number, relations?: string[]): T & DSInstanceShorthands; + linkAll(params: DSFilterArg, relations?: string[]): T & DSInstanceShorthands; + linkInverse(id: string | number, relations?: string[]): T & DSInstanceShorthands; previous(id: string | number): T & DSInstanceShorthands; - unlinkInverse(id: string | number, relations?: Array): T & DSInstanceShorthands; + unlinkInverse(id: string | number, relations?: string[]): T & DSInstanceShorthands; } export interface DSInstanceShorthands { @@ -176,16 +176,16 @@ declare namespace JSData { DSUpdate(options?: DSAdapterOperationConfiguration): JSDataPromise>; DSDestroy(options?: DSAdapterOperationConfiguration): JSDataPromise; DSCreate(options?: DSConfiguration): JSDataPromise>; - DSLoadRelations(relations: string | Array, options?: DSAdapterOperationConfiguration): JSDataPromise>; + DSLoadRelations(relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; DSChangeHistory(): Array; DSChanges(): Object; DSHasChanges(): boolean; DSLastModified(): number; // timestamp DSLastSaved(): number; // timestamp - DSLink(relations?: Array): T & DSInstanceShorthands; - DSLinkInverse(relations?: Array): T & DSInstanceShorthands; + DSLink(relations?: string[]): T & DSInstanceShorthands; + DSLinkInverse(relations?: string[]): T & DSInstanceShorthands; DSPrevious(): T & DSInstanceShorthands; - DSUnlinkInverse(relations?: Array): T & DSInstanceShorthands; + DSUnlinkInverse(relations?: string[]): T & DSInstanceShorthands; } interface DSFilterParams { @@ -196,8 +196,8 @@ declare namespace JSData { skip?: number; offset?: number; - orderBy?: string | Array | Array>; - sort?: string | Array | Array>; + orderBy?: string | string[] | Array; + sort?: string | string[] | Array; } type DSFilterArg = DSFilterParams | Object; diff --git a/js-md5/index.d.ts b/js-md5/index.d.ts index 32ef8b30ff..fa8549ec91 100644 --- a/js-md5/index.d.ts +++ b/js-md5/index.d.ts @@ -7,25 +7,25 @@ interface JQuery { md5(value: string): string; - md5(value: Array): string; + md5(value: any[]): string; md5(value: Uint8Array): string; } interface JQueryStatic { md5(value: string): string; - md5(value: Array): string; + md5(value: any[]): string; md5(value: Uint8Array): string; } interface md5 { (value: string): string; - (value: Array): string; + (value: any[]): string; (value: Uint8Array): string; } interface String { md5(value: string): string; - md5(value: Array): string; + md5(value: any[]): string; md5(value: Uint8Array): string; } diff --git a/js-schema/index.d.ts b/js-schema/index.d.ts index c3f860e861..f32d16bd85 100644 --- a/js-schema/index.d.ts +++ b/js-schema/index.d.ts @@ -27,7 +27,7 @@ interface StringConstructor { } interface ArrayConstructor { - like(arr: Array): ArrayConstructor; + like(arr: any[]): ArrayConstructor; of(pattern: any): ArrayConstructor; of(length: number, pattern: any): ArrayConstructor; of(minLength: number, maxLength: number, pattern: any): ArrayConstructor; diff --git a/jsoneditor/index.d.ts b/jsoneditor/index.d.ts index 175c295df6..6f8eee5b74 100644 --- a/jsoneditor/index.d.ts +++ b/jsoneditor/index.d.ts @@ -9,7 +9,7 @@ declare module 'jsoneditor' { export interface JSONEditorNode { field: string; value: string; - path: Array; + path: string[]; } export type JSONEditorMode = 'tree' | 'view' | 'form' | 'code' | 'text'; diff --git a/jsts/index.d.ts b/jsts/index.d.ts index 661a3dd17c..83ebf3bfe9 100644 --- a/jsts/index.d.ts +++ b/jsts/index.d.ts @@ -1460,7 +1460,7 @@ declare namespace jsts { * @return {number} the first non-zero compareTo result, if any; * otherwise, zero. */ - compare(a: Array, b: Array): number; + compare(a: any[], b: any[]): number; /** * @param {jsts.geom.Coordinate} diff --git a/jug/index.d.ts b/jug/index.d.ts index dd10335b4a..c46b4cdd73 100644 --- a/jug/index.d.ts +++ b/jug/index.d.ts @@ -94,7 +94,7 @@ interface Vertex { * @param from * @param to */ - proximity(from: string, to: string): Array; + proximity(from: string, to: string): number[]; /** * Find a node. diff --git a/kafka-node/index.d.ts b/kafka-node/index.d.ts index 049278ac51..fb5834fcb5 100644 --- a/kafka-node/index.d.ts +++ b/kafka-node/index.d.ts @@ -17,7 +17,7 @@ export declare class Producer { on(eventName: string, cb: () => any): void; on(eventName: string, cb: (error: any) => any): void; send(payloads: Array, cb: (error: any, data: any) => any): void; - createTopics(topics: Array, async: boolean, cb?: (error: any, data: any) => any): void; + createTopics(topics: string[], async: boolean, cb?: (error: any, data: any) => any): void; } export declare class HighLevelProducer { @@ -25,22 +25,22 @@ export declare class HighLevelProducer { on(eventName: string, cb: () => any): void; on(eventName: string, cb: (error: any) => any): void; send(payloads: Array, cb: (error: any, data: any) => any): void; - createTopics(topics: Array, async: boolean, 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, options: ConsumerOptions); on(eventName: string, cb: (message: string) => any): void; on(eventName: string, cb: (error: any) => any): void; - addTopics(topics: Array, cb: (error: any, added: boolean) => any): void; + addTopics(topics: string[], cb: (error: any, added: boolean) => any): void; addTopics(topics: Array, cb: (error: any, added: boolean) => any, fromOffset: boolean): void; - removeTopics(topics: Array, cb: (error: any, removed: boolean) => any): 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: Array /* Array */): void; - resumeTopics(topics: Array /* Array */): void; + pauseTopics(topics: any[] /* Array */): void; + resumeTopics(topics: any[] /* Array */): void; close(force: boolean, cb: () => any): void; } @@ -48,15 +48,15 @@ export declare class HighLevelConsumer { constructor(client: Client, payloads: Array, options: ConsumerOptions); on(eventName: string, cb: (message: string) => any): void; on(eventName: string, cb: (error: any) => any): void; - addTopics(topics: Array, cb: (error: any, added: boolean) => any): void; + addTopics(topics: string[], cb: (error: any, added: boolean) => any): void; addTopics(topics: Array, cb: (error: any, added: boolean) => any, fromOffset: boolean): void; - removeTopics(topics: Array, cb: (error: any, removed: boolean) => any): 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: Array /* Array */): void; - resumeTopics(topics: Array /* Array */): void; + pauseTopics(topics: any[] /* Array */): void; + resumeTopics(topics: any[] /* Array */): void; close(force: boolean, cb: () => any): void; } @@ -83,7 +83,7 @@ export interface ZKOptions { export interface ProduceRequest { topic: string; - messages: any; // Array | Array | string | KeyedMessage + messages: any; // string[] | Array | string | KeyedMessage partition?: number; attributes?: number; } diff --git a/knex/index.d.ts b/knex/index.d.ts index 0b69f64109..cdd6785177 100644 --- a/knex/index.d.ts +++ b/knex/index.d.ts @@ -10,7 +10,7 @@ import * as events from "events"; type Callback = Function; type Client = Function; -type Value = string | number | boolean | Date | Array | Array | Array | Array | Buffer | Knex.Raw; +type Value = string | number | boolean | Date | string[] | number[] | Array | boolean[] | Buffer | Knex.Raw; type ColumnName = string | Knex.Raw | Knex.QueryBuilder; type TableName = string | Knex.Raw | Knex.QueryBuilder; diff --git a/knockout.es5/index.d.ts b/knockout.es5/index.d.ts index 4132ea37de..926868c7ad 100644 --- a/knockout.es5/index.d.ts +++ b/knockout.es5/index.d.ts @@ -6,8 +6,8 @@ /// interface KnockoutStatic { - track(obj: T, propertyNames?: Array): T; - untrack(obj: any, propertyNames?: Array): void; + track(obj: T, propertyNames?: string[]): T; + untrack(obj: any, propertyNames?: string[]): void; defineProperty(obj: T, propertyName: string, evaluator: Function): T; defineProperty(obj: T, propertyName: string, options: KnockoutDefinePropertyOptions): T; getObservable(obj: any, propertyName: string): KnockoutObservable; diff --git a/knockout/index.d.ts b/knockout/index.d.ts index 5481873a54..e8f8ea4de1 100644 --- a/knockout/index.d.ts +++ b/knockout/index.d.ts @@ -149,7 +149,7 @@ interface KnockoutAllBindingsAccessor { } interface KnockoutBindingHandler { - after?: Array; + after?: string[]; init?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void | { controlsDescendantBindings: boolean; }; update?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void; options?: any; diff --git a/koa-hbs/index.d.ts b/koa-hbs/index.d.ts index b5fd9829ea..8947f5487a 100644 --- a/koa-hbs/index.d.ts +++ b/koa-hbs/index.d.ts @@ -31,11 +31,11 @@ declare module "koa-hbs" { namespace Hbs { export interface Middleware { - viewPath: Array | string; + viewPath: string[] | string; handlebars?: Function; templateOptions?: {}; extname?: string; - partialsPath?: Array | string; + partialsPath?: string[] | string; defaultLayout?: string; layoutsPath?: string; contentHelperName?: string; diff --git a/leaflet/index.d.ts b/leaflet/index.d.ts index 1adf9f0b0b..ebba37af80 100644 --- a/leaflet/index.d.ts +++ b/leaflet/index.d.ts @@ -476,7 +476,7 @@ declare namespace L { minZoom?: number; maxZoom?: number; maxNativeZoom?: number; - subdomains?: string | Array; + subdomains?: string | string[]; errorTileUrl?: string; zoomOffset?: number; tms?: boolean; @@ -723,7 +723,7 @@ declare namespace L { * Calls methodName on every layer contained in this group, passing any additional parameters. * Has no effect if the layers contained do not implement methodName. */ - invoke(methodName: string, ...params: Array): this; + invoke(methodName: string, ...params: any[]): this; /** * Iterates over the layers of the group, @@ -894,7 +894,7 @@ declare namespace L { * arrays of points, etc., 0 by default). * Can use a custom coordsToLatLng function. */ - coordsToLatLngs(coords: Array, levelsDeep?: number, coordsToLatLng?: (coords: [number, number] | [number, number, number]) => LatLng): LatLng[]; // Not entirely sure how to define arbitrarily nested arrays + coordsToLatLngs(coords: number[], levelsDeep?: number, coordsToLatLng?: (coords: [number, number] | [number, number, number]) => LatLng): LatLng[]; // Not entirely sure how to define arbitrarily nested arrays /** * Reverse of coordsToLatLng diff --git a/lodash/index.d.ts b/lodash/index.d.ts index 4fb958dfd4..cb19d57f3c 100644 --- a/lodash/index.d.ts +++ b/lodash/index.d.ts @@ -279,7 +279,7 @@ declare namespace _ { (value: number): LoDashImplicitWrapper; (value: string): LoDashImplicitStringWrapper; (value: boolean): LoDashImplicitWrapper; - (value: Array): LoDashImplicitNumberArrayWrapper; + (value: number[]): LoDashImplicitNumberArrayWrapper; (value: Array): LoDashImplicitArrayWrapper; (value: T): LoDashImplicitObjectWrapper; (value: any): LoDashImplicitWrapper; diff --git a/lodash/lodash-3.10.d.ts b/lodash/lodash-3.10.d.ts index 2db7802837..aa423acfd9 100644 --- a/lodash/lodash-3.10.d.ts +++ b/lodash/lodash-3.10.d.ts @@ -41,7 +41,7 @@ declare namespace _ { (value: number): LoDashImplicitWrapper; (value: string): LoDashImplicitStringWrapper; (value: boolean): LoDashImplicitWrapper; - (value: Array): LoDashImplicitNumberArrayWrapper; + (value: number[]): LoDashImplicitNumberArrayWrapper; (value: Array): LoDashImplicitArrayWrapper; (value: T): LoDashImplicitObjectWrapper; (value: any): LoDashImplicitWrapper; diff --git a/log4javascript/index.d.ts b/log4javascript/index.d.ts index 6279b2f88a..22ff616004 100644 --- a/log4javascript/index.d.ts +++ b/log4javascript/index.d.ts @@ -930,7 +930,7 @@ declare namespace log4javascript { /** * Used internally by log4javascript in constructing formatted output for some layouts. */ - getDataValues(loggingEvent: LoggingEvent): Array; + getDataValues(loggingEvent: LoggingEvent): any[]; /** * This method is used to change the default keys used to create formatted name-value pairs for the properties of a log diff --git a/lovefield/index.d.ts b/lovefield/index.d.ts index babe84fcad..0f1c4a0985 100644 --- a/lovefield/index.d.ts +++ b/lovefield/index.d.ts @@ -195,13 +195,13 @@ declare namespace lf { addColumn(name: string, type: lf.Type): TableBuilder; addForeignKey(name: string, spec: RawForeignKeySpec): TableBuilder; addIndex( - name: string, columns: Array|Array, + name: string, columns: string[]|Array, unique?: boolean, order?: Order): TableBuilder; - addNullable(columns: Array): TableBuilder; + addNullable(columns: string[]): TableBuilder; addPrimaryKey( - columns: Array|Array, + columns: string[]|Array, autoInc?: boolean): TableBuilder; - addUnique(name: string, columns: Array): TableBuilder; + addUnique(name: string, columns: string[]): TableBuilder; } function create(dbName: string, dbVersion: number): Builder; diff --git a/magicsuggest/index.d.ts b/magicsuggest/index.d.ts index 300201ed0d..8f323b0191 100644 --- a/magicsuggest/index.d.ts +++ b/magicsuggest/index.d.ts @@ -354,7 +354,7 @@ declare namespace MagicSuggest { * @param items - json object or array of json objects * @param isSilent - (optional) set to true to suppress 'selectionchange' event from being triggered */ - addToSelection(objs: Array, isSilent?: boolean): void; + addToSelection(objs: any[], isSilent?: boolean): void; /** * Clears the current selection @@ -408,7 +408,7 @@ declare namespace MagicSuggest { * Retrieve an array of selected json objects * @return {Array} */ - getSelection(): Array; + getSelection(): any[]; /** * Retrieve the current text entered by the user @@ -418,7 +418,7 @@ declare namespace MagicSuggest { /** * Retrieve an array of selected values */ - getValue(): Array; + getValue(): any[]; /** * Remove one or multiples json items from the current selection @@ -449,13 +449,13 @@ declare namespace MagicSuggest { * @param items * @param isSilent - (optional) */ - setSelection(items: Array, isSilet?: boolean): void; + setSelection(items: any[], isSilet?: boolean): void; /** * Sets a value for the combo box. Value must be an array of values with data type matching valueField one. * @param data */ - setValue(values: Array): void; + setValue(values: any[]): void; /** * Sets data params for subsequent ajax requests diff --git a/mariasql/index.d.ts b/mariasql/index.d.ts index 9e2869a624..adbea56a60 100644 --- a/mariasql/index.d.ts +++ b/mariasql/index.d.ts @@ -13,7 +13,7 @@ declare namespace mariasql { } export interface MariaCallBackRow { - (result: Array): void; + (result: any[]): void; } export interface MariaCallBackBoolean { @@ -44,7 +44,7 @@ declare namespace mariasql { export interface MariaPreparedQuery { (values: Dictionary): string; - (values: Array): string; + (values: any[]): string; } export interface ClientConfig { @@ -90,7 +90,7 @@ declare namespace mariasql { destroy(): void; escape(query: string): string; query(q: string, placeHolders?: Dictionary, useArray?: boolean): MariaQuery; - query(q: string, placeHolders?: Array, useArray?: boolean): MariaQuery; + query(q: string, placeHolders?: any[], useArray?: boolean): MariaQuery; query(q: string, useArray?: boolean): MariaQuery; prepare(query: string): MariaPreparedQuery; isMariaDB(): boolean; diff --git a/masonry-layout/index.d.ts b/masonry-layout/index.d.ts index 90a47cb1f8..2e55e55f1e 100644 --- a/masonry-layout/index.d.ts +++ b/masonry-layout/index.d.ts @@ -21,15 +21,15 @@ declare namespace Masonry { // layout layout?(): void; - layoutItems?(items: Array, isStill?: boolean): void; - stamp?(elements: Array): void; - unstamp?(elements: Array): void; + layoutItems?(items: any[], isStill?: boolean): void; + stamp?(elements: any[]): void; + unstamp?(elements: any[]): void; // add and remove items - appended?(elements: Array): void; - prepended?(elements: Array): void; - addItems?(elements: Array): void; - remove?(elements: Array): void; + appended?(elements: any[]): void; + prepended?(elements: any[]): void; + addItems?(elements: any[]): void; + remove?(elements: any[]): void; // events on?(eventName: string, listener: any): void; @@ -39,7 +39,7 @@ declare namespace Masonry { // utilities reloadItems?(): void; destroy?(): void; - getItemElements?(): Array; + getItemElements?(): any[]; data?(element: Element): Masonry; } diff --git a/material-ui/legacy/material-ui-0.11.1.d.ts b/material-ui/legacy/material-ui-0.11.1.d.ts index 2c07c73a71..998c5f0303 100644 --- a/material-ui/legacy/material-ui-0.11.1.d.ts +++ b/material-ui/legacy/material-ui-0.11.1.d.ts @@ -1370,13 +1370,13 @@ declare namespace __MaterialUI { openDirection?: string; menuStyle?: React.CSSProperties; multiple?: boolean; - value?: string | Array; + value?: string | string[]; width?: string | number; touchTapCloseDelay?: number; onKeyboardFocus?: React.FocusEventHandler; onItemTouchTap?: (e: TouchTapEvent, item: React.ReactElement) => void; - onChange?: (e: React.FormEvent, value: string | Array) => void; + onChange?: (e: React.FormEvent, value: string | string[]) => void; } export class IconMenu extends React.Component { } @@ -1389,7 +1389,7 @@ declare namespace __MaterialUI { maxHeight?: number; multiple?: boolean; openDirection?: string; - value?: string | Array; + value?: string | string[]; width?: string | number; zDepth?: number; } diff --git a/material-ui/legacy/material-ui-0.12.1.d.ts b/material-ui/legacy/material-ui-0.12.1.d.ts index f0fb48b713..445aa75c7c 100644 --- a/material-ui/legacy/material-ui-0.12.1.d.ts +++ b/material-ui/legacy/material-ui-0.12.1.d.ts @@ -1418,13 +1418,13 @@ declare namespace __MaterialUI { openDirection?: string; menuStyle?: React.CSSProperties; multiple?: boolean; - value?: string | Array; + value?: string | string[]; width?: string | number; touchTapCloseDelay?: number; onKeyboardFocus?: React.FocusEventHandler; onItemTouchTap?: (e: TouchTapEvent, item: React.ReactElement) => void; - onChange?: (e: React.FormEvent, value: string | Array) => void; + onChange?: (e: React.FormEvent, value: string | string[]) => void; } export class IconMenu extends React.Component { } @@ -1437,7 +1437,7 @@ declare namespace __MaterialUI { maxHeight?: number; multiple?: boolean; openDirection?: string; - value?: string | Array; + value?: string | string[]; width?: string | number; zDepth?: number; } diff --git a/material-ui/legacy/material-ui-0.13.4.d.ts b/material-ui/legacy/material-ui-0.13.4.d.ts index 0441911b4f..5ed021d815 100644 --- a/material-ui/legacy/material-ui-0.13.4.d.ts +++ b/material-ui/legacy/material-ui-0.13.4.d.ts @@ -1482,14 +1482,14 @@ declare namespace __MaterialUI { openDirection?: string; menuStyle?: React.CSSProperties; multiple?: boolean; - value?: string | Array; + value?: string | string[]; width?: string | number; touchTapCloseDelay?: number; style?: React.CSSProperties; onKeyboardFocus?: React.FocusEventHandler; onItemTouchTap?: (e: TouchTapEvent, item: React.ReactElement) => void; - onChange?: (e: React.FormEvent, value: string | Array) => void; + onChange?: (e: React.FormEvent, value: string | string[]) => void; } export class IconMenu extends React.Component { } @@ -1502,7 +1502,7 @@ declare namespace __MaterialUI { maxHeight?: number; multiple?: boolean; openDirection?: string; - value?: string | Array; + value?: string | string[]; width?: string | number; zDepth?: number; style?: React.CSSProperties; diff --git a/matter-js/index.d.ts b/matter-js/index.d.ts index d19c54de1a..3f9fc777aa 100644 --- a/matter-js/index.d.ts +++ b/matter-js/index.d.ts @@ -31,7 +31,7 @@ declare namespace Matter { } interface IChamfer { - radius?: number | Array; + radius?: number | number[]; quality?: number; qualityMin?: number; qualityMax?: number; @@ -2227,7 +2227,7 @@ declare namespace Matter { * @param {number} [rayWidth] * @return {object[]} Collisions */ - static ray(bodies: Array, startPoint: Vector, endPoint: Vector, rayWidth?: number): Array; + static ray(bodies: Array, 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. @@ -2844,7 +2844,7 @@ declare namespace Matter { * @param {number} qualityMin * @param {number} qualityMax */ - static chamfer(vertices: Array, radius: number | Array, quality: number, qualityMin: number, qualityMax: number): void; + static chamfer(vertices: Array, radius: number | number[], quality: number, qualityMin: number, qualityMax: number): void; /** diff --git a/mdns/index.d.ts b/mdns/index.d.ts index 42c52c4025..0c69b39a07 100644 --- a/mdns/index.d.ts +++ b/mdns/index.d.ts @@ -62,7 +62,7 @@ declare namespace MDNS { // --- Services --- interface Service { - addresses: Array; + addresses: string[]; flags: number; fullname: string; host: string; @@ -77,22 +77,22 @@ declare namespace MDNS { interface ServiceType { new(serviceTypeIdentifier: string): ServiceType; new(name: string, protocol: string, ...subtypes: string[]): ServiceType; - new(serviceTypeIdentifier: Array): ServiceType; - new(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: Array}): ServiceType; + new(serviceTypeIdentifier: string[]): ServiceType; + new(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: string[]}): ServiceType; new(serviceType: ServiceType): ServiceType; fullyQualified: boolean; name: string; protocol: string; - subtypes: Array; + subtypes: string[]; toString(): string; fromString(serviceTypeIdentifier: string): ServiceType; - toArray(): Array; - fromArray(serviceTypeIdentifier: Array): ServiceType; + toArray(): string[]; + fromArray(serviceTypeIdentifier: string[]): ServiceType; - fromJSON(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: Array}): ServiceType; + fromJSON(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: string[]}): ServiceType; fromJSON(serviceType: ServiceType): ServiceType; } @@ -106,7 +106,7 @@ declare namespace MDNS { DNSServiceGetAddrInfo(options?: any): (service: Service, next: () => void) => boolean; getaddrinfo(options?: any): (service: Service, next: () => void) => boolean; makeAddressesUnique(): (service: Service, next: () => void) => boolean; - filterAddresses(fn: (address: string, index?: number, addresses?: Array) => boolean): void; + filterAddresses(fn: (address: string, index?: number, addresses?: string[]) => boolean): void; logService(): void; } @@ -127,9 +127,9 @@ declare namespace MDNS { function makeServiceType(serviceTypeIdentifier: string): ServiceType; - function makeServiceType(serviceTypeIdentifier: Array): ServiceType; + function makeServiceType(serviceTypeIdentifier: string[]): ServiceType; - function makeServiceType(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: Array}): ServiceType; + function makeServiceType(serviceTypeIdentifier: {name: string; protocol: string; subtypes?: string[]}): ServiceType; function makeServiceType(serviceType: ServiceType): ServiceType; diff --git a/meteor-accounts-phone/index.d.ts b/meteor-accounts-phone/index.d.ts index fe8a610d7f..87bb3cfdc9 100644 --- a/meteor-accounts-phone/index.d.ts +++ b/meteor-accounts-phone/index.d.ts @@ -36,8 +36,8 @@ declare namespace Accounts { verificationWaitTime?: number, sendPhoneVerificationCodeOnCreation?: boolean, forbidClientAccountCreation?: boolean, - phoneVerificationMasterCode?: Array, - adminPhoneNumbers?: Array + phoneVerificationMasterCode?: string[], + adminPhoneNumbers?: string[] }; function createUserWithPhone(options: Object, callback?: Function): void; @@ -56,8 +56,8 @@ declare module 'meteor/accounts-base' { verificationWaitTime?: number, sendPhoneVerificationCodeOnCreation?: boolean, forbidClientAccountCreation?: boolean, - phoneVerificationMasterCode?: Array, - adminPhoneNumbers?: Array + phoneVerificationMasterCode?: string[], + adminPhoneNumbers?: string[] }; function createUserWithPhone(options: Object, callback?: Function): void; diff --git a/microgears/index.d.ts b/microgears/index.d.ts index 399a701eb2..d231677027 100644 --- a/microgears/index.d.ts +++ b/microgears/index.d.ts @@ -20,7 +20,7 @@ declare namespace microgears { interface Plugin { name: string; - beforeChain(args: Array, metaInfo: MetaInformation): Array; + beforeChain(args: any[], metaInfo: MetaInformation): any[]; afterChain(result: T, metaInfo: MetaInformation): T; } diff --git a/microsoft-sdk-soap/index.d.ts b/microsoft-sdk-soap/index.d.ts index 710be3c664..b330b4fb90 100644 --- a/microsoft-sdk-soap/index.d.ts +++ b/microsoft-sdk-soap/index.d.ts @@ -138,7 +138,7 @@ declare namespace Sdk { * Adds a string array of column names. * @param columns A string array of column names. */ - addColumns( columns: Array ): void; + addColumns( columns: string[] ): void; /** * Sets the AllColumns property. @@ -473,7 +473,7 @@ declare namespace Sdk { /** * Gets an array of the names of attributes in a collection. */ - getNames(): Array; + getNames(): string[]; /** * The XML for an attribute collection. */ @@ -1189,7 +1189,7 @@ declare namespace Sdk.Query { * Sets the columns to include. * @param columns An array of attribute logical names for the columns to return. */ - setColumnSet( columns: Array ): void; + setColumnSet( columns: string[] ): void; /** * Sets the columns to include. @@ -2280,7 +2280,7 @@ declare namespace Sdk.Mdq { * @param languages An array of LCID number values. */ export class LabelQueryExpression { - constructor( languages: Array ); + constructor( languages: number[] ); } /** diff --git a/mongodb/index.d.ts b/mongodb/index.d.ts index c8d8260f90..8674ec183d 100644 --- a/mongodb/index.d.ts +++ b/mongodb/index.d.ts @@ -246,21 +246,21 @@ export class Db extends EventEmitter { export class Server extends EventEmitter { constructor(host: string, port: number, options?: ServerOptions); - connections(): Array; + connections(): any[]; } // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html export class ReplSet extends EventEmitter { constructor(servers: Array, options?: ReplSetOptions); - connections(): Array; + connections(): any[]; } // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html export class Mongos extends EventEmitter { constructor(servers: Array, options?: MongosOptions); - connections(): Array; + connections(): any[]; } // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser @@ -647,9 +647,9 @@ export interface Collection { geoNear(x: number, y: number, options?: GeoNearOptions): Promise; geoNear(x: number, y: number, options: GeoNearOptions, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#group - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; + group(keys: Object | any[] | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; + group(keys: Object | any[] | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; + group(keys: Object | any[] | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexes indexes(): Promise; indexes(callback: MongoCallback): void; @@ -1011,7 +1011,7 @@ export interface FindOperatorsUnordered { //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne export interface FindOneOptions { limit?: number; - sort?: Array | Object; + sort?: any[] | Object; fields?: Object; skip?: number; hint?: Object; @@ -1035,7 +1035,7 @@ export interface FindOneOptions { //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult export interface InsertWriteOpResult { insertedCount: number; - ops: Array; + ops: any[]; insertedIds: Array; connection: any; result: { ok: number, n: number }; @@ -1060,7 +1060,7 @@ export interface CollectionInsertOneOptions { //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult export interface InsertOneWriteOpResult { insertedCount: number; - ops: Array; + ops: any[]; insertedId: ObjectID; connection: any; result: { ok: number, n: number }; @@ -1110,7 +1110,7 @@ export interface MapReduceOptions { //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult export interface WriteOpResult { - ops: Array; + ops: any[]; connection: any; result: any; } diff --git a/mongoose-paginate/index.d.ts b/mongoose-paginate/index.d.ts index 6b06c65ac5..ab290de826 100644 --- a/mongoose-paginate/index.d.ts +++ b/mongoose-paginate/index.d.ts @@ -9,7 +9,7 @@ declare module 'mongoose' { export interface PaginateOptions { select?: Object | string; sort?: Object | string; - populate?: Array | Array | Object | string; + populate?: Array | string[] | Object | string; lean?: boolean; leanWithId?: boolean; offset?: number; diff --git a/mongoose-sequence/index.d.ts b/mongoose-sequence/index.d.ts index b01081944c..4cac9234bc 100644 --- a/mongoose-sequence/index.d.ts +++ b/mongoose-sequence/index.d.ts @@ -9,7 +9,7 @@ declare module 'mongoose' { export interface SequenceOptions { inc_field: string; // The name of the field to increment. Mandatory, default is _id id?: string; // Id of the sequence. Is mandatory only for scoped sequences but its use is strongly encouraged. - reference_fields?: Array; // The field to reference for a scoped counter. Optional + reference_fields?: string[]; // The field to reference for a scoped counter. Optional disable_hooks?: boolean; // If true, the counter will not be incremented on saving a new document. Default to false collection_name?: string; // By default the collection name to mantain the status of the counters is counters. You can override it using this option } diff --git a/msgpack-lite/index.d.ts b/msgpack-lite/index.d.ts index b017690006..98cb6c3b3f 100644 --- a/msgpack-lite/index.d.ts +++ b/msgpack-lite/index.d.ts @@ -56,7 +56,7 @@ declare module "msgpack-lite" { } export function encode(input: any, options?: BufferOptions): any; - export function decode(input: Buffer | Uint8Array | Array, options?: BufferOptions): any; + export function decode(input: Buffer | Uint8Array | number[], options?: BufferOptions): any; export function createEncodeStream (): EncodeStream; export function createDecodeStream (): DecodeStream; export function createCodec (options?: any): Codec; diff --git a/mysql/index.d.ts b/mysql/index.d.ts index 0a045f5a0b..9ed5cccfc7 100644 --- a/mysql/index.d.ts +++ b/mysql/index.d.ts @@ -14,7 +14,7 @@ declare function createPool(config: IPoolConfig): IPool; declare function createPoolCluster(config?: IPoolClusterConfig): IPoolCluster; declare function escape(value: any): string; declare function format(sql: string): string; -declare function format(sql: string, values: Array): string; +declare function format(sql: string, values: any[]): string; declare function format(sql: string, values: any): string; interface IMySql { @@ -24,15 +24,15 @@ interface IMySql { createPoolCluster(config?: IPoolClusterConfig): IPoolCluster; escape(value: any): string; format(sql: string): string; - format(sql: string, values: Array): string; + format(sql: string, values: any[]): string; format(sql: string, values: any): string; } interface IConnectionStatic { createQuery(sql: string): IQuery; createQuery(sql: string, callback: (err: IError, ...args: any[]) => void): IQuery; - createQuery(sql: string, values: Array): IQuery; - createQuery(sql: string, values: Array, callback: (err: IError, ...args: any[]) => void): IQuery; + createQuery(sql: string, values: any[]): IQuery; + createQuery(sql: string, values: any[], callback: (err: IError, ...args: any[]) => void): IQuery; } interface IConnection { @@ -67,10 +67,10 @@ interface IConnection { escape(value: any): string; escapeId(value: string): string; - escapeId(values: Array): string; + escapeId(values: string[]): string; format(sql: string): string; - format(sql: string, values: Array): string; + format(sql: string, values: any[]): string; format(sql: string, values: any): string; on(ev: string, callback: (...args: any[]) => void): IConnection; @@ -159,14 +159,14 @@ interface IQuery { interface IQueryFunction { (sql: string): IQuery; (sql: string, callback: (err: IError, ...args: any[]) => void): IQuery; - (sql: string, values: Array): IQuery; - (sql: string, values: Array, callback: (err: IError, ...args: any[]) => void): IQuery; + (sql: string, values: any[]): IQuery; + (sql: string, values: any[], callback: (err: IError, ...args: any[]) => void): IQuery; (sql: string, values: any): IQuery; (sql: string, values: any, callback: (err: IError, ...args: any[]) => void): IQuery; (options: IQueryOptions): IQuery; (options: IQueryOptions, callback: (err: IError, ...args: any[]) => void): IQuery; - (options: IQueryOptions, values: Array): IQuery; - (options: IQueryOptions, values: Array, callback: (err: IError, ...args: any[]) => void): IQuery; + (options: IQueryOptions, values: any[]): IQuery; + (options: IQueryOptions, values: any[], callback: (err: IError, ...args: any[]) => void): IQuery; (options: IQueryOptions, values: any): IQuery; (options: IQueryOptions, values: any, callback: (err: IError, ...args: any[]) => void): IQuery; } @@ -362,7 +362,7 @@ interface IConnectionConfig extends IConnectionOptions { /** * List of connection flags to use other than the default ones. It is also possible to blacklist default ones */ - flags?: Array; + flags?: string[]; /** * object with ssl parameters or a string containing name of ssl profile @@ -447,12 +447,12 @@ interface ISslCredentials { /** * Either a string or list of strings of PEM encoded CA certificates to trust. */ - ca?: Array; + ca?: string[]; /** * Either a string or list of strings of PEM encoded CRLs (Certificate Revocation List) */ - crl?: Array; + crl?: string[]; /** * A string describing the ciphers to use or exclude diff --git a/nedb/index.d.ts b/nedb/index.d.ts index 2f5f7f4ec3..b9e521cdaf 100644 --- a/nedb/index.d.ts +++ b/nedb/index.d.ts @@ -22,7 +22,7 @@ declare class NeDBDataStore { /** * Get an array of all the data in the database */ - getAllData(): Array; + getAllData(): any[]; /** diff --git a/ng-cordova/dialogs.d.ts b/ng-cordova/dialogs.d.ts index 05961a9408..a2a08c96f5 100644 --- a/ng-cordova/dialogs.d.ts +++ b/ng-cordova/dialogs.d.ts @@ -14,8 +14,8 @@ declare namespace ngCordova { export interface IDialogsService { alert(message: string, title?: string, buttonName?: string): ng.IPromise; - confirm(message: string, title?: string, buttonArray?: Array): ng.IPromise; - prompt(message: string, title?: string, buttonArray?: Array, defaultText?: string): ng.IPromise; + confirm(message: string, title?: string, buttonArray?: string[]): ng.IPromise; + prompt(message: string, title?: string, buttonArray?: string[], defaultText?: string): ng.IPromise; beep(repetitions: number): void; } diff --git a/ng-cordova/emailComposer.d.ts b/ng-cordova/emailComposer.d.ts index c3e95a7f88..9eec80aaaa 100644 --- a/ng-cordova/emailComposer.d.ts +++ b/ng-cordova/emailComposer.d.ts @@ -8,10 +8,10 @@ declare namespace ngCordova { export interface IEmailComposerOptions { - to: string | Array; - cc?: string | Array; - bcc?: string | Array; - attachments?: Array; + to: string | string[]; + cc?: string | string[]; + bcc?: string | string[]; + attachments?: any[]; subject?: string; body?: string; isHtml?: boolean; diff --git a/ng-facebook/index.d.ts b/ng-facebook/index.d.ts index a367956a2d..d3a0de1003 100644 --- a/ng-facebook/index.d.ts +++ b/ng-facebook/index.d.ts @@ -17,7 +17,7 @@ declare module 'angular' { setVersion(version: string): IFacebookProvider; getVersion(): string; - setPermissions(permissions: string | Array): IFacebookProvider; + setPermissions(permissions: string | string[]): IFacebookProvider; getPermissions(): string; setCustomInit(customInit: FBInitParams): IFacebookProvider; diff --git a/ng-file-upload/index.d.ts b/ng-file-upload/index.d.ts index 88210fe206..1985b20e45 100644 --- a/ng-file-upload/index.d.ts +++ b/ng-file-upload/index.d.ts @@ -129,7 +129,7 @@ declare module 'angular' { * @param {Array} * @return {angular.IPromise} */ - base64DataUrl(files: File | Array): angular.IPromise | string>; + base64DataUrl(files: File | Array): angular.IPromise; /** * Convert the file to blob url object or base64 data url based on boolean disallowObjectUrl value * diff --git a/ngeohash/index.d.ts b/ngeohash/index.d.ts index 25c8f29e5b..4410481cce 100644 --- a/ngeohash/index.d.ts +++ b/ngeohash/index.d.ts @@ -15,9 +15,9 @@ declare namespace ngeohash { function encode(latitude: number, longitude: number, precision?: number): string; function decode(hashstring: string): GeographicPoint; function decode_bbox(hashstring: string): GeographicBoundingBox; - function bboxes(minlat: number, minlon: number, maxlat: number, maxlon: number, precision?: number): Array; + function bboxes(minlat: number, minlon: number, maxlat: number, maxlon: number, precision?: number): string[]; function neighbor(hashstring: string, direction: NSEW): string; - function neighbors(hashstring: string): Array; + function neighbors(hashstring: string): string[]; function encode_int(latitude: number, longitude: number, bitDepth?: number): number; function decode_int(hashinteger: number, bitDepth?: number): GeographicPoint; diff --git a/node-7z/index.d.ts b/node-7z/index.d.ts index ef7781e324..0b40af6f8f 100644 --- a/node-7z/index.d.ts +++ b/node-7z/index.d.ts @@ -9,12 +9,12 @@ declare module "node-7z" { // (also the progress event emits an array of strings, which doesn't correlate with any promise) // so instead of patching `when` promises I'm extending the generic Promise for use internally interface PromiseWithProgress extends Promise { - progress(progress: (files: Array) => void): this; + progress(progress: (files: string[]) => void): this; } // Options are mapped to the 7z program so there is no idea to define all possible types here interface CommandLineSwitches { - raw?: Array; + raw?: string[]; [key: string]: any; } @@ -26,13 +26,13 @@ declare module "node-7z" { } class Zip { - add(archive: string, files: string | Array, options: CommandLineSwitches): PromiseWithProgress<{}>; - delete(archive: string, files: string | Array, options: CommandLineSwitches): PromiseWithProgress<{}>; + add(archive: string, files: string | string[], options: CommandLineSwitches): PromiseWithProgress<{}>; + delete(archive: string, files: string | string[], options: CommandLineSwitches): PromiseWithProgress<{}>; extract(archive: string, dest: string, options: CommandLineSwitches): PromiseWithProgress<{}>; extractFull(archive: string, dest: string, options: CommandLineSwitches): PromiseWithProgress<{}>; list(archive: string, options: CommandLineSwitches): PromiseWithProgress; test(archive: string, options: CommandLineSwitches): PromiseWithProgress<{}>; - update(archive: string, files: string | Array, options: CommandLineSwitches): PromiseWithProgress<{}>; + update(archive: string, files: string | string[], options: CommandLineSwitches): PromiseWithProgress<{}>; } export = Zip; diff --git a/node-fetch/index.d.ts b/node-fetch/index.d.ts index d6b075107e..2f8ee2ca3b 100644 --- a/node-fetch/index.d.ts +++ b/node-fetch/index.d.ts @@ -45,7 +45,7 @@ export class Headers { append(name: string, value: string): void; delete(name: string): void; get(name: string): string; - getAll(name: string): Array; + getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; forEach(callback: (value: string, name: string) => void): void; @@ -82,7 +82,7 @@ interface ResponseInit { headers?: HeaderInit; } -type HeaderInit = Headers | Array; +type HeaderInit = Headers | string[]; type BodyInit = ArrayBuffer | ArrayBufferView | Blob | FormData | string; type RequestInfo = Request | string; diff --git a/node-jsfl-runner/index.d.ts b/node-jsfl-runner/index.d.ts index 166570deeb..eee5d2477e 100644 --- a/node-jsfl-runner/index.d.ts +++ b/node-jsfl-runner/index.d.ts @@ -17,7 +17,7 @@ export interface JSFL { * @param initParams Parameters to pass to JSFL init function * @param callback Callback */ -export function createJSFL(jsfl: JSFL, fileName: string, initParams: Array, callback: (err: NodeJS.ErrnoException) => void): void; +export function createJSFL(jsfl: JSFL, fileName: string, initParams: any[], callback: (err: NodeJS.ErrnoException) => void): void; /** * Deletes a JSFL file diff --git a/node-mysql-wrapper/index.d.ts b/node-mysql-wrapper/index.d.ts index 5eefbe9290..10e4ae0e88 100644 --- a/node-mysql-wrapper/index.d.ts +++ b/node-mysql-wrapper/index.d.ts @@ -715,7 +715,7 @@ declare class Table { * @returnType {array} * @return {array} */ - getRowAsArray(jsObject: any): Array; + getRowAsArray(jsObject: any): any[]; /** * Returns the primary key's value from an object. diff --git a/node-persist/index.d.ts b/node-persist/index.d.ts index 42d72fe587..a966aeef7f 100644 --- a/node-persist/index.d.ts +++ b/node-persist/index.d.ts @@ -30,9 +30,9 @@ declare namespace NodePersist { export function removeItemSync(key: string): void; export function clear(callback?: (err: any) => any): Q.Promise; export function clearSync(): void; - export function values(): Array; - export function valuesWithKeyMatch(match: string): Array; - export function keys(): Array; + export function values(): any[]; + export function valuesWithKeyMatch(match: string): any[]; + export function keys(): string[]; export function length(): number; export function forEach(callback: (key: string, value: any) => void): void; diff --git a/node-validator/index.d.ts b/node-validator/index.d.ts index b8b4b25c37..dda8f66fd7 100644 --- a/node-validator/index.d.ts +++ b/node-validator/index.d.ts @@ -43,7 +43,7 @@ declare namespace Validator { function expressQuery(validator: Validatable): any; function queryValidator(validator: Validatable): any; - function run(validator: Validatable, value: any, callback: (errorCount: Number, errors: Array) => void): void; + function run(validator: Validatable, value: any, callback: (errorCount: Number, errors: any[]) => void): void; function isObject(): IsObjectValidator; function isString(options?: ValidatorOptions.IsStringOptions): Validatable; diff --git a/normalizr/index.d.ts b/normalizr/index.d.ts index 144839b5e4..8c9aa50b17 100644 --- a/normalizr/index.d.ts +++ b/normalizr/index.d.ts @@ -92,7 +92,7 @@ declare namespace Normalizr { * @param schema * @param options */ - export function normalize(obj: any | Array, schema: SchemaType, options?: { + export function normalize(obj: any | any[], schema: SchemaType, options?: { /** * This is useful if your backend emits additional fields, such as separate ID fields, you'd like to delete in the normalized entity. */ diff --git a/observe-js/index.d.ts b/observe-js/index.d.ts index dd42ac5d70..9d28afed51 100644 --- a/observe-js/index.d.ts +++ b/observe-js/index.d.ts @@ -76,7 +76,7 @@ declare namespace observejs { /** * an array of values representing the sequence of removed elements */ - removed: Array; + removed: any[]; /** * the number of element which were inserted @@ -90,7 +90,7 @@ declare namespace observejs { * Constructor * @param receiver the target for observation */ - new(receiver: Array): ArrayObserver_instance; + new(receiver: any[]): ArrayObserver_instance; /** * transforms a copy of an old state of an array into a copy of its current state. @@ -98,7 +98,7 @@ declare namespace observejs { * @param current array of current state * @param splices splices to apply */ - applySplices(previous: Array, current: Array, splices: Array): void; + applySplices(previous: any[], current: any[], splices: Array): void; } interface ArrayObserver_instance extends Observable { @@ -151,7 +151,7 @@ declare namespace observejs { } interface CompoundObserver_instance extends Observable { - open(onChange: (newValues: Array, oldValue: Array) => any): void; + open(onChange: (newValues: any[], oldValue: any[]) => any): void; /** * Adds the receivers property at the specified path to the list of observables. @@ -193,7 +193,7 @@ declare namespace observejs { * @param observer the observer to transform * @param valueFn function that gets invoked with all observed values. May return a single new value. */ - new(observer: Observable, valueFn: (values: Array) => any): ObserverTransform_instance; + new(observer: Observable, valueFn: (values: any[]) => any): ObserverTransform_instance; } interface ObserverTransform_instance extends Observable { diff --git a/office-js/index.d.ts b/office-js/index.d.ts index a5fdeb95c2..f558764e56 100644 --- a/office-js/index.d.ts +++ b/office-js/index.d.ts @@ -61,7 +61,7 @@ declare namespace Office { * @param minVersion - The minimum required version. */ isSetSupported(name: string, minVersion?: number): boolean; - }; + } } /** * Provides specific information about an error that occurred during an asynchronous data operation. @@ -101,15 +101,15 @@ declare namespace Office { /** * Optional. Defines the width of the dialog as a percentage of the current display. Defaults to 99%. 250px minimum. */ - height?: number; + height?: number, /** * Optional. Defines the height of the dialog as a percentage of the current display. Defaults to 99%. 150px minimum. */ - width?: number; + width?: number, /** * Optional. Determines whether the dialog is safe to display within a Web frame. */ - xFrameDenySafe?: boolean; + xFrameDenySafe?: boolean, } /** @@ -128,159 +128,6 @@ declare namespace Office { } } -declare namespace Office { - /** - * Returns a promise of an object described in the expression. Callback is invoked only if method fails. - * @param expression The object to be retrieved. Example "bindings#BindingName", retrieves a binding promise for a binding named 'BindingName' - * @param callback The optional callback method - */ - export function select(expression: string, callback?: (result: AsyncResult) => void): Binding; - // Enumerations - export enum ActiveView { - Read, - Edit - } - export enum BindingType { - /** - * Text based Binding - */ - Text, - /** - * Matrix based Binding - */ - Matrix, - /** - * Table based Binding - */ - Table - } - export enum CoercionType { - /** - * Coerce as Text - */ - Text, - /** - * Coerce as Matrix - */ - Matrix, - /** - * Coerce as Table - */ - Table, - /** - * Coerce as HTML - */ - Html, - /** - * Coerce as Office Open XML - */ - Ooxml, - /** - * Coerce as JSON object containing an array of the ids, titles, and indexes of the selected slides. - */ - SlideRange, - /** - * Coerce as Image - */ - Image - } -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b - export enum DocumentMode { -======= - - /** An Promise object that represents a deferred interaction with the host Office application. The publically-consumable OfficeExtension.Promise is available starting in ExcelApi 1.2 and WordApi 1.2. Promises can be chained via ".then", and errors can be caught via ".catch". Remember to always use a ".catch" on the outer promise, and to return intermediary promises so as not to break the promise chain. When a "native" Promise implementation is available, OfficeExtension.Promise will switch to use the native Promise instead. */ - export class Promise implements IPromise { ->>>>>>> WIP - /** - * Document in Read Only Mode - */ - ReadOnly, - /** - * Document in Read/Write Mode - */ - ReadWrite - } - export enum EventType { - /** - * Occurs when the user changes the current view of the document. - */ - ActiveViewChanged, - /** - * Triggers when a binding level data change happens - */ - BindingDataChanged, - /** - * Triggers when a binding level selection happens - */ - BindingSelectionChanged, - /** - * Triggers when Dialog sends a message via MessageParent. - */ - DialogMessageReceived, - /** - * Triggers when Dialog has a event, such as dialog closed, dialog navigation failed. - */ - DialogEventReceived, - /** - * Triggers when a document level selection happens - */ - DocumentSelectionChanged, - /** - * Triggers when a customXmlPart node was deleted - */ - NodeDeleted, - /** - * Triggers when a customXmlPart node was inserted - */ - NodeInserted, - /** - * Triggers when a customXmlPart node was replaced - */ - NodeReplaced, - /** -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b -======= - * Catches failures or exceptions from actions within the promise, or from an unhandled exception earlier in the call stack. - * @param onRejected function to be called if or when the promise rejects. - */ - catch(onRejected?: (error: any) => void): IPromise; - } -} - -declare namespace OfficeExtension { - /** Collection of tracked objects, contained within a request context. See "context.trackedObjects" for more information. */ - class TrackedObjects { - /** Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this. If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object to the tracked object collection when the object was first created. */ - add(object: ClientObject): void; - /** Track a new object for automatic adjustment based on surrounding changes in the document. Only some object types require this. If you are using an object across ".sync" calls and outside the sequential execution of a ".run" batch, and get an "InvalidObjectPath" error when setting a property or invoking a method on the object, you needed to have added the object to the tracked object collection when the object was first created. */ - add(objects: ClientObject[]): void; - /** Release the memory associated with an object that was previously added to this collection. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call "context.sync()" before the memory release takes effect. */ - remove(object: ClientObject): void; - /** Release the memory associated with an object that was previously added to this collection. Having many tracked objects slows down the host application, so please remember to free any objects you add, once you're done using them. You will need to call "context.sync()" before the memory release takes effect. */ - remove(objects: ClientObject[]): void; - } -} - -declare namespace OfficeExtension { - export class EventHandlers { - constructor(context: ClientRequestContext, parentObject: ClientObject, name: string, eventInfo: EventInfo); - add(handler: (args: T) => IPromise): EventHandlerResult; - remove(handler: (args: T) => IPromise): void; - removeAll(): void; - } - - export class EventHandlerResult { - constructor(context: ClientRequestContext, handlers: EventHandlers, handler: (args: T) => IPromise); - remove(): void; - } - - export interface EventInfo { - registerFunc: (callback: (args: any) => void) => IPromise; - unregisterFunc: (callback: (args: any) => void) => IPromise; - eventArgsTransformFunc: (args: any) => IPromise; - } -} - declare namespace Office { /** * Returns a promise of an object described in the expression. Callback is invoked only if method fails. @@ -385,7 +232,6 @@ declare namespace Office { */ NodeReplaced, /** ->>>>>>> WIP * Triggers when settings change in a co-Auth session. */ SettingsChanged, @@ -844,7 +690,7 @@ declare namespace Office { /** * File's URL */ - url: string; + url: string } export interface MatrixBinding extends Binding { columnCount: number; @@ -1565,7 +1411,6 @@ declare namespace Office { getWSSUrlAsync(options?: any, callback?: (result: AsyncResult) => void): void; } } -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b @@ -1585,20 +1430,6 @@ declare namespace Office.MailboxEnums { * The body is in text format */ text -======= -declare namespace Excel { - interface ThreeArrowsSet { - [index: number]: Icon; - redDownArrow: Icon; - yellowSideArrow: Icon; - greenUpArrow: Icon; - } - interface ThreeArrowsGraySet { - [index: number]: Icon; - grayDownArrow: Icon; - graySideArrow: Icon; - grayUpArrow: Icon; ->>>>>>> WIP } export enum EntityType { /** @@ -2256,7 +2087,7 @@ declare module OfficeExtension { /** Adds a trace message to the queue. If the promise returned by "context.sync()" is rejected due to an error, this adds a ".traceMessages" array to the OfficeExtension.Error object, containing all trace messages that were executed. These messages can help you monitor the program execution sequence and detect the cause of the error. */ trace(message: string): void; - /** Synchronizes the state between JavaScript proxy objects and the Office document, by executing instructions queued on the request context and retrieving properties of loaded Office objects for use in your code. This method returns a promise, which is resolved when the synchronization is complete. */ + /** Synchronizes the state between JavaScript proxy objects and the Office document, by executing instructions queued on the request context and retrieving properties of loaded Office objects for use in your code. This method returns a promise, which is resolved when the synchronization is complete. */ sync(passThroughValue?: T): IPromise; } } @@ -4545,111 +4376,11 @@ declare module Excel { /** * Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b load(option?: string | string[] | OfficeExtension.LoadOption): Excel.FormatProtection; toJSON(): { "formulaHidden": boolean; "locked": boolean; }; -======= - load(option?: string | string[] | OfficeExtension.LoadOption): Excel.PivotTable; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace BindingType { - var range: string; - var table: string; - var text: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace BorderIndex { - var edgeTop: string; - var edgeBottom: string; - var edgeLeft: string; - var edgeRight: string; - var insideVertical: string; - var insideHorizontal: string; - var diagonalDown: string; - var diagonalUp: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace BorderLineStyle { - var none: string; - var continuous: string; - var dash: string; - var dashDot: string; - var dashDotDot: string; - var dot: string; - var double: string; - var slantDashDot: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace BorderWeight { - var hairline: string; - var thin: string; - var medium: string; - var thick: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace CalculationMode { - var automatic: string; - var automaticExceptTables: string; - var manual: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace CalculationType { - var recalculate: string; - var full: string; - var fullRebuild: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace ClearApplyTo { - var all: string; - var formats: string; - var contents: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace ChartDataLabelPosition { - var invalid: string; - var none: string; - var center: string; - var insideEnd: string; - var insideBase: string; - var outsideEnd: string; - var left: string; - var right: string; - var top: string; - var bottom: string; - var bestFit: string; - var callout: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace ChartLegendPosition { - var invalid: string; - var top: string; - var bottom: string; - var left: string; - var right: string; - var corner: string; - var custom: string; ->>>>>>> WIP } /** * @@ -4657,18 +4388,13 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class RangeFill extends OfficeExtension.ClientObject { -======= - namespace ChartSeriesBy { ->>>>>>> WIP /** * * HTML color code representing the color of the border line, of the form #RRGGBB (e.g. "FFA500") or as a named HTML color (e.g. "orange") * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b color: string; /** * @@ -4684,90 +4410,6 @@ declare module Excel { toJSON(): { "color": string; }; -======= - var auto: string; - var columns: string; - var rows: string; - } - /** - * [Api set: ExcelApi 1.1] - */ - namespace ChartType { - var invalid: string; - var columnClustered: string; - var columnStacked: string; - var columnStacked100: string; - var _3DColumnClustered: string; - var _3DColumnStacked: string; - var _3DColumnStacked100: string; - var barClustered: string; - var barStacked: string; - var barStacked100: string; - var _3DBarClustered: string; - var _3DBarStacked: string; - var _3DBarStacked100: string; - var lineStacked: string; - var lineStacked100: string; - var lineMarkers: string; - var lineMarkersStacked: string; - var lineMarkersStacked100: string; - var pieOfPie: string; - var pieExploded: string; - var _3DPieExploded: string; - var barOfPie: string; - var xyscatterSmooth: string; - var xyscatterSmoothNoMarkers: string; - var xyscatterLines: string; - var xyscatterLinesNoMarkers: string; - var areaStacked: string; - var areaStacked100: string; - var _3DAreaStacked: string; - var _3DAreaStacked100: string; - var doughnutExploded: string; - var radarMarkers: string; - var radarFilled: string; - var surface: string; - var surfaceWireframe: string; - var surfaceTopView: string; - var surfaceTopViewWireframe: string; - var bubble: string; - var bubble3DEffect: string; - var stockHLC: string; - var stockOHLC: string; - var stockVHLC: string; - var stockVOHLC: string; - var cylinderColClustered: string; - var cylinderColStacked: string; - var cylinderColStacked100: string; - var cylinderBarClustered: string; - var cylinderBarStacked: string; - var cylinderBarStacked100: string; - var cylinderCol: string; - var coneColClustered: string; - var coneColStacked: string; - var coneColStacked100: string; - var coneBarClustered: string; - var coneBarStacked: string; - var coneBarStacked100: string; - var coneCol: string; - var pyramidColClustered: string; - var pyramidColStacked: string; - var pyramidColStacked100: string; - var pyramidBarClustered: string; - var pyramidBarStacked: string; - var pyramidBarStacked100: string; - var pyramidCol: string; - var _3DColumn: string; - var line: string; - var _3DLine: string; - var _3DPie: string; - var pie: string; - var xyscatter: string; - var _3DArea: string; - var area: string; - var doughnut: string; - var radar: string; ->>>>>>> WIP } /** * @@ -4775,7 +4417,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class RangeBorder extends OfficeExtension.ClientObject { /** * @@ -4815,11 +4456,6 @@ declare module Excel { "style": string; "weight": string; }; -======= - namespace ChartUnderlineStyle { - var none: string; - var single: string; ->>>>>>> WIP } /** * @@ -4827,7 +4463,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class RangeBorderCollection extends OfficeExtension.ClientObject { /** Gets the loaded child items in this collection. */ items: Array; @@ -4863,77 +4498,6 @@ declare module Excel { toJSON(): { "count": number; }; -======= - namespace DeleteShiftDirection { - var up: string; - var left: string; - } - /** - * [Api set: ExcelApi 1.2] - */ - namespace DynamicFilterCriteria { - var unknown: string; - var aboveAverage: string; - var allDatesInPeriodApril: string; - var allDatesInPeriodAugust: string; - var allDatesInPeriodDecember: string; - var allDatesInPeriodFebruray: string; - var allDatesInPeriodJanuary: string; - var allDatesInPeriodJuly: string; - var allDatesInPeriodJune: string; - var allDatesInPeriodMarch: string; - var allDatesInPeriodMay: string; - var allDatesInPeriodNovember: string; - var allDatesInPeriodOctober: string; - var allDatesInPeriodQuarter1: string; - var allDatesInPeriodQuarter2: string; - var allDatesInPeriodQuarter3: string; - var allDatesInPeriodQuarter4: string; - var allDatesInPeriodSeptember: string; - var belowAverage: string; - var lastMonth: string; - var lastQuarter: string; - var lastWeek: string; - var lastYear: string; - var nextMonth: string; - var nextQuarter: string; - var nextWeek: string; - var nextYear: string; - var thisMonth: string; - var thisQuarter: string; - var thisWeek: string; - var thisYear: string; - var today: string; - var tomorrow: string; - var yearToDate: string; - var yesterday: string; - } - /** - * [Api set: ExcelApi 1.2] - */ - namespace FilterDatetimeSpecificity { - var year: string; - var month: string; - var day: string; - var hour: string; - var minute: string; - var second: string; - } - /** - * [Api set: ExcelApi 1.2] - */ - namespace FilterOn { - var bottomItems: string; - var bottomPercent: string; - var cellColor: string; - var dynamic: string; - var fontColor: string; - var values: string; - var topItems: string; - var topPercent: string; - var icon: string; - var custom: string; ->>>>>>> WIP } /** * @@ -4941,7 +4505,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class RangeFont extends OfficeExtension.ClientObject { /** * @@ -4997,11 +4560,6 @@ declare module Excel { "size": number; "underline": string; }; -======= - namespace FilterOperator { - var and: string; - var or: string; ->>>>>>> WIP } /** * @@ -5009,7 +4567,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartCollection extends OfficeExtension.ClientObject { /** Gets the loaded child items in this collection. */ items: Array; @@ -5056,17 +4613,6 @@ declare module Excel { toJSON(): { "count": number; }; -======= - namespace HorizontalAlignment { - var general: string; - var left: string; - var center: string; - var right: string; - var fill: string; - var justify: string; - var centerAcrossSelection: string; - var distributed: string; ->>>>>>> WIP } /** * @@ -5074,7 +4620,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class Chart extends OfficeExtension.ClientObject { /** * @@ -5215,30 +4760,6 @@ declare module Excel { "top": number; "width": number; }; -======= - namespace IconSet { - var invalid: string; - var threeArrows: string; - var threeArrowsGray: string; - var threeFlags: string; - var threeTrafficLights1: string; - var threeTrafficLights2: string; - var threeSigns: string; - var threeSymbols: string; - var threeSymbols2: string; - var fourArrows: string; - var fourArrowsGray: string; - var fourRedToBlack: string; - var fourRating: string; - var fourTrafficLights: string; - var fiveArrows: string; - var fiveArrowsGray: string; - var fiveRating: string; - var fiveQuarters: string; - var threeStars: string; - var threeTriangles: string; - var fiveBoxes: string; ->>>>>>> WIP } /** * @@ -5246,7 +4767,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartAreaFormat extends OfficeExtension.ClientObject { /** * @@ -5270,12 +4790,6 @@ declare module Excel { "fill": ChartFill; "font": ChartFont; }; -======= - namespace ImageFittingMode { - var fit: string; - var fitAndCenter: string; - var fill: string; ->>>>>>> WIP } /** * @@ -5283,7 +4797,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartSeriesCollection extends OfficeExtension.ClientObject { /** Gets the loaded child items in this collection. */ items: Array; @@ -5310,11 +4823,6 @@ declare module Excel { toJSON(): { "count": number; }; -======= - namespace InsertShiftDirection { - var down: string; - var right: string; ->>>>>>> WIP } /** * @@ -5322,7 +4830,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartSeries extends OfficeExtension.ClientObject { /** * @@ -5353,14 +4860,6 @@ declare module Excel { "format": ChartSeriesFormat; "name": string; }; -======= - namespace NamedItemType { - var string: string; - var integer: string; - var double: string; - var boolean: string; - var range: string; ->>>>>>> WIP } /** * @@ -5368,7 +4867,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartSeriesFormat extends OfficeExtension.ClientObject { /** * @@ -5392,14 +4890,6 @@ declare module Excel { "fill": ChartFill; "line": ChartLineFormat; }; -======= - namespace RangeUnderlineStyle { - var none: string; - var single: string; - var double: string; - var singleAccountant: string; - var doubleAccountant: string; ->>>>>>> WIP } /** * @@ -5407,7 +4897,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartPointsCollection extends OfficeExtension.ClientObject { /** Gets the loaded child items in this collection. */ items: Array; @@ -5434,12 +4923,6 @@ declare module Excel { toJSON(): { "count": number; }; -======= - namespace SheetVisibility { - var visible: string; - var hidden: string; - var veryHidden: string; ->>>>>>> WIP } /** * @@ -5447,7 +4930,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartPoint extends OfficeExtension.ClientObject { /** * @@ -5471,32 +4953,6 @@ declare module Excel { "format": ChartPointFormat; "value": any; }; -======= - namespace RangeValueType { - var unknown: string; - var empty: string; - var string: string; - var integer: string; - var double: string; - var boolean: string; - var error: string; - } - /** - * [Api set: ExcelApi 1.2] - */ - namespace SortOrientation { - var rows: string; - var columns: string; - } - /** - * [Api set: ExcelApi 1.2] - */ - namespace SortOn { - var value: string; - var cellColor: string; - var fontColor: string; - var icon: string; ->>>>>>> WIP } /** * @@ -5504,7 +4960,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartPointFormat extends OfficeExtension.ClientObject { /** * @@ -5520,11 +4975,6 @@ declare module Excel { toJSON(): { "fill": ChartFill; }; -======= - namespace SortDataOption { - var normal: string; - var textAsNumber: string; ->>>>>>> WIP } /** * @@ -5532,7 +4982,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartAxes extends OfficeExtension.ClientObject { /** * @@ -5564,11 +5013,6 @@ declare module Excel { "seriesAxis": ChartAxis; "valueAxis": ChartAxis; }; -======= - namespace SortMethod { - var pinYin: string; - var strokeCount: string; ->>>>>>> WIP } /** * @@ -5576,7 +5020,6 @@ declare module Excel { * * [Api set: ExcelApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class ChartAxis extends OfficeExtension.ClientObject { /** * @@ -5648,14 +5091,6 @@ declare module Excel { "minorUnit": any; "title": ChartAxisTitle; }; -======= - namespace VerticalAlignment { - var top: string; - var center: string; - var bottom: string; - var justify: string; - var distributed: string; ->>>>>>> WIP } /** * @@ -9852,51 +9287,7 @@ declare module Excel { * * [Api set: ExcelApi 1.2] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b product(...values: Array>): FunctionResult; -======= - z_Test(array: number | Excel.Range | Excel.RangeReference | Excel.FunctionResult, x: number | Excel.Range | Excel.RangeReference | Excel.FunctionResult, sigma?: number | Excel.Range | Excel.RangeReference | Excel.FunctionResult): FunctionResult; - } - namespace ErrorCodes { - var accessDenied: string; - var generalException: string; - var insertDeleteConflict: string; - var invalidArgument: string; - var invalidBinding: string; - var invalidOperation: string; - var invalidReference: string; - var invalidSelection: string; - var itemAlreadyExists: string; - var itemNotFound: string; - var notImplemented: string; - var unsupportedOperation: string; - } -} -declare namespace Excel { - /** - * The RequestContext object facilitates requests to the Excel application. Since the Office add-in and the Excel application run in two different processes, the request context is required to get access to the Excel object model from the add-in. - */ - class RequestContext extends OfficeExtension.ClientRequestContext { - private m_workbook; - constructor(url?: string); - workbook: Workbook; - } - /** - * Executes a batch script that performs actions on the Excel object model. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released. - * @param batch - A function that takes in an Excel.RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Excel application. Since the Office add-in and the Excel application run in two different processes, the request context is required to get access to the Excel object model from the add-in. - */ - function run(batch: (context: Excel.RequestContext) => OfficeExtension.IPromise): OfficeExtension.IPromise; -} - -declare namespace Word { - /** - * - * The Application object. - * - * [Api set: WordApiDesktop 1.3 Beta] - */ - class Application extends OfficeExtension.ClientObject { ->>>>>>> WIP /** * * Converts a text string to proper case; the first letter in each word to uppercase, and all other letters to lowercase. @@ -12998,88 +12389,12 @@ declare namespace Word { /** * Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b load(option?: string | string[] | OfficeExtension.LoadOption): Word.RangeCollection; -======= - load(option?: string | string[] | OfficeExtension.LoadOption): Word.TableBorderStyle; - } - /** - * - * Specifies supported content control types and subtypes. - * - * [Api set: WordApi] - */ - namespace ContentControlType { - var unknown: string; - var richTextInline: string; - var richTextParagraphs: string; - var richTextTableCell: string; - var richTextTableRow: string; - var richTextTable: string; - var plainTextInline: string; - var plainTextParagraph: string; - var picture: string; - var buildingBlockGallery: string; - var checkBox: string; - var comboBox: string; - var dropDownList: string; - var datePicker: string; - var repeatingSection: string; - var richText: string; - var plainText: string; - } - /** - * - * ContentControl appearance - * - * [Api set: WordApi] - */ - namespace ContentControlAppearance { - var boundingBox: string; - var tags: string; - var hidden: string; - } - /** - * - * Underline types - * - * [Api set: WordApi] - */ - namespace UnderlineType { - var none: string; - var single: string; - var word: string; - var double: string; - var dotted: string; - var hidden: string; - var thick: string; - var dashLine: string; - var dotLine: string; - var dotDashLine: string; - var twoDotDashLine: string; - var wave: string; - } - /** - * [Api set: WordApi] - */ - namespace BreakType { - var page: string; - var column: string; - var next: string; - var sectionContinuous: string; - var sectionEven: string; - var sectionOdd: string; - var line: string; - var lineClearLeft: string; - var lineClearRight: string; - var textWrapping: string; ->>>>>>> WIP } /** * * Specifies the options to be included in a search operation. * -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b * [Api set: WordApi 1.1] */ class SearchOptions extends OfficeExtension.ClientObject { @@ -13156,143 +12471,6 @@ declare namespace Word { * Create a new instance of Word.SearchOptions object */ static newObject(context: OfficeExtension.ClientRequestContext): Word.SearchOptions; -======= - * [Api set: WordApi] - */ - namespace InsertLocation { - var before: string; - var after: string; - var start: string; - var end: string; - var replace: string; - } - /** - * [Api set: WordApi] - */ - namespace Alignment { - var unknown: string; - var left: string; - var centered: string; - var right: string; - var justified: string; - } - /** - * [Api set: WordApi] - */ - namespace HeaderFooterType { - var primary: string; - var firstPage: string; - var evenPages: string; - } - /** - * [Api set: WordApi] - */ - namespace BodyType { - var unknown: string; - var mainDoc: string; - var section: string; - var header: string; - var footer: string; - var tableCell: string; - } - /** - * [Api set: WordApi] - */ - namespace SelectionMode { - var select: string; - var start: string; - var end: string; - } - /** - * [Api set: WordApi] - */ - namespace ImageFormat { - var unsupported: string; - var undefined: string; - var bmp: string; - var jpeg: string; - var gif: string; - var tiff: string; - var png: string; - var icon: string; - var exif: string; - var wmf: string; - var emf: string; - var pict: string; - var pdf: string; - } - /** - * [Api set: WordApi] - */ - namespace RangeLocation { - var whole: string; - var start: string; - var end: string; - } - /** - * [Api set: WordApi] - */ - namespace LocationRelation { - var unrelated: string; - var equal: string; - var containsStart: string; - var containsEnd: string; - var contains: string; - var insideStart: string; - var insideEnd: string; - var inside: string; - var adjacentBefore: string; - var overlapsBefore: string; - var before: string; - var adjacentAfter: string; - var overlapsAfter: string; - var after: string; - } - /** - * [Api set: WordApi] - */ - namespace BorderLocation { - var top: string; - var left: string; - var bottom: string; - var right: string; - var insideHorizontal: string; - var insideVertical: string; - var inside: string; - var outside: string; - var all: string; - } - /** - * [Api set: WordApi] - */ - namespace BorderType { - var mixed: string; - var none: string; - var single: string; - var thick: string; - var double: string; - var hairline: string; - var dotted: string; - var dashed: string; - var dotDashed: string; - var dot2Dashed: string; - var triple: string; - var thinThickSmall: string; - var thickThinSmall: string; - var thinThickThinSmall: string; - var thinThickMed: string; - var thickThinMed: string; - var thinThickThinMed: string; - var thinThickLarge: string; - var thickThinLarge: string; - var thinThickThinLarge: string; - var wave: string; - var doubleWave: string; - var dashedSmall: string; - var dashDotStroked: string; - var threeDEmboss: string; - var threeDEngrave: string; ->>>>>>> WIP } /** * @@ -13300,7 +12478,6 @@ declare namespace Word { * * [Api set: WordApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class SearchResultCollection extends OfficeExtension.ClientObject { private m_first; private m__ReferenceId; @@ -13318,13 +12495,6 @@ declare namespace Word { * Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. */ load(option?: string | string[] | OfficeExtension.LoadOption): Word.SearchResultCollection; -======= - namespace VerticalAlignment { - var mixed: string; - var top: string; - var center: string; - var bottom: string; ->>>>>>> WIP } /** * @@ -13332,7 +12502,6 @@ declare namespace Word { * * [Api set: WordApi 1.1] */ -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b class Section extends OfficeExtension.ClientObject { private m_body; private m_next; @@ -13374,19 +12543,6 @@ declare namespace Word { * Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. */ load(option?: string | string[] | OfficeExtension.LoadOption): Word.Section; -======= - namespace ListLevelType { - var bullet: string; - var number: string; - var picture: string; - } - namespace ErrorCodes { - var accessDenied: string; - var generalException: string; - var invalidArgument: string; - var itemNotFound: string; - var notImplemented: string; ->>>>>>> WIP } /** * @@ -13730,7 +12886,6 @@ declare namespace Word { */ distributeRows(): void; /** -<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b * * Gets the border style for the specified border. * @@ -13831,254 +12986,6 @@ declare namespace Word { * Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. */ load(option?: string | string[] | OfficeExtension.LoadOption): Word.Table; -======= - * The attachment is an Exchange item - */ - Item - } -} -declare namespace Office { - export namespace Types { - export interface ItemRead extends Office.Item { - subject: any; - /** - * Displays a reply form that includes the sender and all the recipients of the selected message - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyAllForm(htmlBody: string): void; - /** - * Displays a reply form that includes only the sender of the selected message - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyForm(htmlBody: string): void; - /** - * Gets an array of entities found in an message - */ - getEntities(): Office.Entities; - /** - * Gets an array of entities of the specified entity type found in an message - * @param entityType One of the EntityType enumeration values - */ - getEntitiesByType(entityType: Office.MailboxEnums.EntityType): Office.Entities; - /** - * Returns well-known entities that pass the named filter defined in the manifest XML file - * @param name A TableData object with the headers and rows - */ - getFilteredEntitiesByName(name: string): Office.Entities; - /** - * Returns string values in the currently selected message object that match the regular expressions defined in the manifest XML file - */ - getRegExMatches(): string[]; - /** - * Returns string values that match the named regular expression defined in the manifest XML file - */ - getRegExMatchesByName(name: string): string[]; - } - export interface ItemCompose extends Office.Item { - body: Office.Body; - subject: any; - /** - * Adds a file to a message as an attachment - * @param uri The URI that provides the location of the file to attach to the message. The maximum length is 2048 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addFileAttachmentAsync(uri: string, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Adds an Exchange item, such as a message, as an attachment to the message - * @param itemId The Exchange identifier of the item to attach. The maximum length is 100 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addItemAttachmentAsync(itemId: any, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Removes an attachment from a message - * @param attachmentIndex The index of the attachment to remove. The maximum length of the string is 100 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - removeAttachmentAsync(attachmentIndex: string, option?: any, callback?: (result: AsyncResult) => void): void; - } - export interface MessageCompose extends Office.Message { - attachments: Office.AttachmentDetails[]; - body: Office.Body; - bcc: Office.Recipients; - cc: Office.Recipients; - subject: Office.Subject; - to: Office.Recipients; - /** - * Adds a file to a message as an attachment - * @param uri The URI that provides the location of the file to attach to the message. The maximum length is 2048 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addFileAttachmentAsync(uri: string, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Adds an Exchange item, such as a message, as an attachment to the message - * @param itemId The Exchange identifier of the item to attach. The maximum length is 100 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addItemAttachmentAsync(itemId: any, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Removes an attachment from a message - * @param attachmentIndex The index of the attachment to remove. The maximum length of the string is 100 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - removeAttachmentAsync(attachmentIndex: string, option?: any, callback?: (result: AsyncResult) => void): void; - } - export interface MessageRead extends Office.Message { - cc: Office.EmailAddressDetails[]; - from: Office.EmailAddressDetails; - internetMessageId: string; - normalizedSubject: string; - sender: Office.EmailAddressDetails; - subject: string; - to: Office.EmailAddressDetails; - /** - * Displays a reply form that includes the sender and all the recipients of the selected message - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyAllForm(htmlBody: string): void; - /** - * Displays a reply form that includes only the sender of the selected message - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyForm(htmlBody: string): void; - /** - * Gets an array of entities found in an message - */ - getEntities(): Office.Entities; - /** - * Gets an array of entities of the specified entity type found in an message - * @param entityType One of the EntityType enumeration values - */ - getEntitiesByType(entityType: Office.MailboxEnums.EntityType): Office.Entities; - /** - * Returns well-known entities that pass the named filter defined in the manifest XML file - * @param name A TableData object with the headers and rows - */ - getFilteredEntitiesByName(name: string): Office.Entities; - /** - * Returns string values in the currently selected message object that match the regular expressions defined in the manifest XML file - */ - getRegExMatches(): string[]; - /** - * Returns string values that match the named regular expression defined in the manifest XML file - */ - getRegExMatchesByName(name: string): string[]; - } - export interface AppointmentCompose extends Office.Appointment { - body: Office.Body; - end: Office.Time; - location: Office.Location; - optionalAttendees: Office.Recipients; - requiredAttendees: Office.Recipients; - start: Office.Time; - subject: Office.Subject; - /** - * Adds a file to an appointment as an attachment - * @param uri The URI that provides the location of the file to attach to the appointment. The maximum length is 2048 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addFileAttachmentAsync(uri: string, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Adds an Exchange item, such as a message, as an attachment to the appointment - * @param itemId The Exchange identifier of the item to attach. The maximum length is 100 characters - * @param attachmentName The name of the attachment that is shown while the attachment is uploading. The maximum length is 255 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - addItemAttachmentAsync(itemId: any, attachmentName: string, options?: any, callback?: (result: AsyncResult) => void): void; - /** - * Removes an attachment from a appointment - * @param attachmentIndex The index of the attachment to remove. The maximum length of the string is 100 characters - * @param options Any optional parameters or state data passed to the method - * @param callback The optional callback method - */ - removeAttachmentAsync(attachmentIndex: string, option?: any, callback?: (result: AsyncResult) => void): void; - } - export interface AppointmentRead extends Office.Appointment { - attachments: Office.AttachmentDetails[]; - end: Date; - location: string; - normalizedSubject: string; - optionalAttendees: Office.EmailAddressDetails; - organizer: Office.EmailAddressDetails; - requiredAttendees: Office.EmailAddressDetails; - resources: string[]; - start: Date; - subject: string; - /** - * Displays a reply form that includes the organizer and all the attendees of the selected appointment item - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyAllForm(htmlBody: string): void; - /** - * Displays a reply form that includes only the organizer of the selected appointment item - * @param htmlBody A string that contains text and HTML and that represents the body of the reply form. The string is limited to 32 KB - */ - displayReplyForm(htmlBody: string): void; - /** - * Gets an array of entities found in an appointment - */ - getEntities(): Office.Entities; - /** - * Gets an array of entities of the specified entity type found in an appointment - * @param entityType One of the EntityType enumeration values - */ - getEntitiesByType(entityType: Office.MailboxEnums.EntityType): Office.Entities; - /** - * Returns well-known entities that pass the named filter defined in the manifest XML file - * @param name A TableData object with the headers and rows - */ - getFilteredEntitiesByName(name: string): Office.Entities; - /** - * Returns string values in the currently selected appointment object that match the regular expressions defined in the manifest XML file - */ - getRegExMatches(): string[]; - /** - * Returns string values that match the named regular expression defined in the manifest XML file - */ - getRegExMatchesByName(name: string): string[]; - } - } - export namespace cast { - export namespace item { - function toAppointmentCompose(item: Office.Item): Office.Types.AppointmentCompose; - function toAppointmentRead(item: Office.Item): Office.Types.AppointmentRead; - function toAppointment(item: Office.Item): Office.Appointment; - function toMessageCompose(item: Office.Item): Office.Types.MessageCompose; - function toMessageRead(item: Office.Item): Office.Types.MessageRead; - function toMessage(item: Office.Item): Office.Message; - function toItemCompose(item: Office.Item): Office.Types.ItemCompose; - function toItemRead(item: Office.Item): Office.Types.ItemRead; - } - } - export interface AttachmentDetails { - attachmentType: Office.MailboxEnums.AttachmentType; - contentType: string; - id: string; - isInline: boolean; - name: string; - size: number; - } - export interface Contact { - personName: string; - businessName: string; - phoneNumbers: PhoneNumber[]; - emailAddresses: string[]; - urls: string[]; - addresses: string[]; - contactString: string; ->>>>>>> WIP } /** * @@ -16971,14 +15878,14 @@ declare namespace OneNote { /** * [Api set: OneNoteApi] */ - namespace InsertLocation { + module InsertLocation { var before: string; var after: string; } /** * [Api set: OneNoteApi] */ - namespace Alignment { + module Alignment { var left: string; var centered: string; var right: string; @@ -16987,7 +15894,7 @@ declare namespace OneNote { /** * [Api set: OneNoteApi] */ - namespace Selected { + module Selected { var notSelected: string; var partialSelected: string; var selected: string; @@ -16995,7 +15902,7 @@ declare namespace OneNote { /** * [Api set: OneNoteApi] */ - namespace PageContentType { + module PageContentType { var outline: string; var image: string; var ink: string; @@ -17004,14 +15911,14 @@ declare namespace OneNote { /** * [Api set: OneNoteApi] */ - namespace ParagraphType { + module ParagraphType { var richText: string; var image: string; var table: string; var ink: string; var other: string; } - namespace ErrorCodes { + module ErrorCodes { var generalException: string; } } diff --git a/openlayers/openlayers-3.14.2.d.ts b/openlayers/openlayers-3.14.2.d.ts index 8a10e815fe..44ce995003 100644 --- a/openlayers/openlayers-3.14.2.d.ts +++ b/openlayers/openlayers-3.14.2.d.ts @@ -129,7 +129,7 @@ declare namespace olx { ratio?: number; /** Resolutions. If specified, requests will be made for these resolutions only. */ - resolutions?: Array; + resolutions?: number[]; } interface TileWMSOptions { @@ -165,7 +165,7 @@ declare namespace olx { url?: string; /** WMS service urls. Use this instead of url when the WMS supports multiple urls for GetMap requests. */ - urls?: Array; + urls?: string[]; /** experimental The type of the remote WMS server. Currently only used when hidpi is true. Default is undefined. */ serverType?: ol.source.wms.ServerType; @@ -204,7 +204,7 @@ declare namespace olx { keyboardEventTarget?: any; /** Layers. If this is not defined, a map with no layers will be rendered. Note that layers are rendered in the order supplied, so if you want, for example, a vector layer to appear on top of a tile layer, it must come after the tile layer. */ - layers?: Array; + layers?: any[]; /** When set to true, tiles will be loaded during animations. This may improve the user experience, but can also make animations stutter on devices with slow memory. Default is false. */ loadTilesWhileAnimating?: boolean; @@ -238,7 +238,7 @@ declare namespace olx { /** * Offsets in pixels used when positioning the overlay. The fist element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is [0, 0]. */ - offset?: Array; + offset?: number[]; /** * The overlay position in map projection. @@ -309,7 +309,7 @@ declare namespace olx { resolution?: number; /** Resolutions to determine the resolution constraint. If set the maxResolution, minResolution, minZoom, maxZoom, and zoomFactor options are ignored. */ - resolutions?: Array; + resolutions?: number[]; /** The initial rotation for the view in radians (positive rotation clockwise). Default is 0. */ rotation?: number; @@ -358,7 +358,7 @@ declare namespace olx { /** * The validity extent for the SRS. */ - extent?: Array; + extent?: number[]; /** * The axis orientation as specified in Proj4. The default is enu. @@ -629,7 +629,7 @@ declare namespace olx { /** * The color gradient of the heatmap, specified as an array of CSS color strings. Default is ['#00f', '#0ff', '#0f0', '#ff0', '#f00']. */ - gradient?: Array; + gradient?: string[]; /** * Radius size in pixels. Default is 8. @@ -801,7 +801,7 @@ declare namespace olx { url?: string; maxZoom?: number; tileLoadFunction?: ol.TileLoadFunctionType; - urls?: Array; + urls?: string[]; wrapX: boolean; } } @@ -837,18 +837,18 @@ declare namespace olx { color?: ol.Color | string; lineCap?: string; lineJoin?: string; - lineDash?: Array; + lineDash?: number[]; miterLimit?: number; width?: number; } interface IconOptions { - anchor?: Array; + anchor?: number[]; anchorOrigin?: string; anchorXUnits?: string; anchorYUnits?: string; crossOrigin?: string; img?: ol.Image | HTMLCanvasElement; - offset?: Array; + offset?: number[]; offsetOrigin?: string; opacity?: number; scale?: number; @@ -894,7 +894,7 @@ declare namespace olx { /** * Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1. */ - resolutions?: Array; + resolutions?: number[]; /** * Tile size. Default is [256, 256]. @@ -927,12 +927,12 @@ declare namespace olx { /** * Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1 */ - resolutions?: Array; + resolutions?: number[]; /** * matrix IDs. The length of this array needs to match the length of the resolutions array. */ - matrixIds?: Array; + matrixIds?: string[]; /** * Number of tile rows and columns of the grid for each zoom level. The values here are the TileMatrixWidth and TileMatrixHeight advertised in the GetCapabilities response of the WMTS, and define the grid's extent together with the origin. An extent can be configured in addition, and will further limit the extent for which tile requests are made by sources. @@ -952,7 +952,7 @@ declare namespace olx { /** * Number of tile columns that cover the grid's extent for each zoom level. Only required when used with a source that has wrapX set to true, and only when the grid's origin differs from the one of the projection's extent. The array length has to match the length of the resolutions array, i.e. each resolution will have a matching entry here. */ - widths?: Array; + widths?: number[]; } interface XYZOptions { @@ -983,7 +983,7 @@ declare namespace olx { /** * Resolutions */ - resolutions: Array; + resolutions: number[]; } } @@ -994,7 +994,7 @@ declare namespace olx { /** * Padding (in pixels) to be cleared inside the view. Values in the array are top, right, bottom and left padding. Default is [0, 0, 0, 0]. */ - padding?: Array; + padding?: number[]; /** * Constrain the resolution. Default is true. @@ -1979,7 +1979,7 @@ declare namespace ol { * Get a list of object property names. * @returns List of property names. */ - getKeys(): Array; + getKeys(): string[]; /** * Get an object of all property names and values. @@ -2056,7 +2056,7 @@ declare namespace ol { * @param opt_this The object to use as this in listener. * @returns Unique key for the listener. */ - on(type: string | Array, listener: Function, opt_this?: GlobalObject): ol.events.Key | Array; + on(type: string | string[], listener: Function, opt_this?: GlobalObject): ol.events.Key | Array; /** * Listen once for a certain type of event. @@ -2065,7 +2065,7 @@ declare namespace ol { * @param opt_this The object to use as this in listener. * @returns Unique key for the listener. */ - once(type: string | Array, listener: Function, opt_this?: GlobalObject): ol.events.Key | Array; + once(type: string | string[], listener: Function, opt_this?: GlobalObject): ol.events.Key | Array; /** * Unlisten for a certain type of event. @@ -2074,7 +2074,7 @@ declare namespace ol { * @param opt_this The object to use as this in listener. * @returns Unique key for the listener. */ - un(type: string | Array, listener: Function, opt_this?: GlobalObject): void; + un(type: string | string[], listener: Function, opt_this?: GlobalObject): void; /** * Removes an event listener using the key returned by on() or once(). Note that using the ol.Observable.unByKey static function is to be preferred. @@ -2110,7 +2110,7 @@ declare namespace ol { * Get the offset of this overlay. * @returns The offset. */ - getOffset(): Array; + getOffset(): number[]; /** * Get the current position of this overlay. @@ -2140,7 +2140,7 @@ declare namespace ol { * Set the offset for this overlay. * @param offset Offset. */ - setOffset(offset: Array): void; + setOffset(offset: number[]): void; /** * Set the position for this overlay. If the position is undefined the overlay is hidden. @@ -3923,7 +3923,7 @@ declare namespace ol { * Return the gradient colors as array of strings. * @returns Colors */ - getGradient(): Array; + getGradient(): string[]; /** * Return the size of the radius in pixels. @@ -3941,7 +3941,7 @@ declare namespace ol { * Set the gradient colors as array of strings. * @param colors Gradient */ - setGradient(colors: Array): void; + setGradient(colors: string[]): void; /** * Set the size of the radius in pixels. @@ -4702,7 +4702,7 @@ declare namespace ol { * Get the list of resolutions for the tile grid. * @returns Resolutions */ - getResolutions(): Array; + getResolutions(): number[]; /** * Get the tile coordinate for the given map coordinate and resolution. This method considers that coordinates that intersect tile boundaries should be assigned the higher tile coordinate. @@ -4753,7 +4753,7 @@ declare namespace ol { * Get the list of matrix identifiers. * @returns MatrixIds */ - getMatrixIds(): Array; + getMatrixIds(): string[]; } /** @@ -4818,17 +4818,17 @@ declare namespace ol { /** * A color represented as a short array [red, green, blue, alpha]. red, green, and blue should be integers in the range 0..255 inclusive. alpha should be a float in the range 0..1 inclusive. */ - interface Color extends Array { } + interface Color extends number[] { } /** * An array of numbers representing an xy coordinate. Example: [16, 48]. */ - interface Coordinate extends Array { } + interface Coordinate extends number[] { } /** * An array of numbers representing an extent: [minx, miny, maxx, maxy]. */ - interface Extent extends Array { } + interface Extent extends number[] { } /** * Overlay position: 'bottom-left', 'bottom-center', 'bottom-right', 'center-left', 'center-center', 'center-right', 'top-left', 'top-center', 'top-right' @@ -4838,7 +4838,7 @@ declare namespace ol { /** * An array with two elements, representing a pixel. The first element is the x-coordinate, the second the y-coordinate of the pixel. */ - interface Pixel extends Array { } + interface Pixel extends number[] { } /** * Available renderers: 'canvas', 'dom' or 'webgl'. @@ -4848,12 +4848,12 @@ declare namespace ol { /** * An array of numbers representing a size: [width, height]. */ - interface Size extends Array { } + interface Size extends number[] { } /** * An array of three numbers representing the location of a tile in a tile grid. The order is z, x, and y. z is the zoom level. */ - interface TileCoord extends Array { } + interface TileCoord extends number[] { } // Functions @@ -4885,7 +4885,7 @@ declare namespace ol { /** * A transform function accepts an array of input coordinate values, an optional output array, and an optional dimension (default should be 2). The function transforms the input coordinate values, populates the output array, and returns the output array. */ - interface TransformFunction { (input: Array, output?: Array, dimension?: number): Array; } + interface TransformFunction { (input: number[], output?: number[], dimension?: number): number[]; } } declare module "openlayers" { diff --git a/openlayers/openlayers-3.6.0.d.ts b/openlayers/openlayers-3.6.0.d.ts index 31d33402e5..a8f752d9a0 100644 --- a/openlayers/openlayers-3.6.0.d.ts +++ b/openlayers/openlayers-3.6.0.d.ts @@ -207,7 +207,7 @@ declare namespace olx { ratio?: number; /** Resolutions. If specified, requests will be made for these resolutions only. */ - resolutions?: Array; + resolutions?: number[]; } interface TileWMSOptions { @@ -243,7 +243,7 @@ declare namespace olx { url?: string; /** WMS service urls. Use this instead of url when the WMS supports multiple urls for GetMap requests. */ - urls?: Array; + urls?: string[]; /** experimental The type of the remote WMS server. Currently only used when hidpi is true. Default is undefined. */ serverType?: ol.source.wms.ServerType; @@ -306,7 +306,7 @@ declare namespace olx { keyboardEventTarget?: any; /** Layers. If this is not defined, a map with no layers will be rendered. Note that layers are rendered in the order supplied, so if you want, for example, a vector layer to appear on top of a tile layer, it must come after the tile layer. */ - layers?: Array; + layers?: any[]; /** When set to true, tiles will be loaded during animations. This may improve the user experience, but can also make animations stutter on devices with slow memory. Default is false. */ loadTilesWhileAnimating?: boolean; @@ -340,7 +340,7 @@ declare namespace olx { /** * Offsets in pixels used when positioning the overlay. The fist element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is [0, 0]. */ - offset?: Array; + offset?: number[]; /** * The overlay position in map projection. @@ -411,7 +411,7 @@ declare namespace olx { resolution?: number; /** Resolutions to determine the resolution constraint. If set the maxResolution, minResolution, minZoom, maxZoom, and zoomFactor options are ignored. */ - resolutions?: Array; + resolutions?: number[]; /** The initial rotation for the view in radians (positive rotation clockwise). Default is 0. */ rotation?: number; @@ -460,7 +460,7 @@ declare namespace olx { /** * The validity extent for the SRS. */ - extent?: Array; + extent?: number[]; /** * The axis orientation as specified in Proj4. The default is enu. @@ -1032,7 +1032,7 @@ declare namespace olx { /** * The color gradient of the heatmap, specified as an array of CSS color strings. Default is ['#00f', '#0ff', '#0f0', '#ff0', '#f00']. */ - gradient?: Array; + gradient?: string[]; /** * Radius size in pixels. Default is 8. @@ -1211,7 +1211,7 @@ declare namespace olx { url?: string; maxZoom?: number; tileLoadFunction?: ol.TileLoadFunctionType; - urls?: Array; + urls?: string[]; wrapX: boolean; } } @@ -1247,18 +1247,18 @@ declare namespace olx { color?: ol.Color | string; lineCap?: string; lineJoin?: string; - lineDash?: Array; + lineDash?: number[]; miterLimit?: number; width?: number; } interface IconOptions { - anchor?: Array; + anchor?: number[]; anchorOrigin?: string; anchorXUnits?: string; anchorYUnits?: string; crossOrigin?: string; img?: ol.Image | HTMLCanvasElement; - offset?: Array; + offset?: number[]; offsetOrigin?: string; opacity?: number; scale?: number; @@ -1304,7 +1304,7 @@ declare namespace olx { /** * Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1. */ - resolutions?: Array; + resolutions?: number[]; /** * Tile size. Default is [256, 256]. @@ -1337,12 +1337,12 @@ declare namespace olx { /** * Resolutions. The array index of each resolution needs to match the zoom level. This means that even if a minZoom is configured, the resolutions array will have a length of maxZoom + 1 */ - resolutions?: Array; + resolutions?: number[]; /** * matrix IDs. The length of this array needs to match the length of the resolutions array. */ - matrixIds?: Array; + matrixIds?: string[]; /** * Number of tile rows and columns of the grid for each zoom level. The values here are the TileMatrixWidth and TileMatrixHeight advertised in the GetCapabilities response of the WMTS, and define the grid's extent together with the origin. An extent can be configured in addition, and will further limit the extent for which tile requests are made by sources. @@ -1362,7 +1362,7 @@ declare namespace olx { /** * Number of tile columns that cover the grid's extent for each zoom level. Only required when used with a source that has wrapX set to true, and only when the grid's origin differs from the one of the projection's extent. The array length has to match the length of the resolutions array, i.e. each resolution will have a matching entry here. */ - widths?: Array; + widths?: number[]; } interface XYZOptions { @@ -1393,7 +1393,7 @@ declare namespace olx { /** * Resolutions */ - resolutions: Array; + resolutions: number[]; } } @@ -1404,7 +1404,7 @@ declare namespace olx { /** * Padding (in pixels) to be cleared inside the view. Values in the array are top, right, bottom and left padding. Default is [0, 0, 0, 0]. */ - padding?: Array; + padding?: number[]; /** * Constrain the resolution. Default is true. @@ -1510,7 +1510,7 @@ declare namespace ol { interface ImageLoadFunctionType { (image: ol.Image, url: string): void; } - type AttributionLike = string | Array | ol.Attribution | Array; + type AttributionLike = string | string[] | ol.Attribution | Array; /** * An attribution for a layer source. @@ -2373,7 +2373,7 @@ declare namespace ol { * Get a list of object property names. * @returns List of property names. */ - getKeys(): Array; + getKeys(): string[]; /** * Get an object of all property names and values. @@ -2457,7 +2457,7 @@ declare namespace ol { * @param ref The object to use as this in listener. * @returns Unique key for the listener. */ - on(type: Array, listener: (event: ol.events.Event) => void, ref?: any): any; + on(type: string[], listener: (event: ol.events.Event) => void, ref?: any): any; /** * Listen once for a certain type of event. @@ -2475,7 +2475,7 @@ declare namespace ol { * @param ref The object to use as this in listener. * @returns Unique key for the listener. */ - once(type: Array, listener: (event: ol.events.Event) => void, ref?: any): any; + once(type: string[], listener: (event: ol.events.Event) => void, ref?: any): any; /** * Unlisten for a certain type of event. @@ -2484,7 +2484,7 @@ declare namespace ol { * @param ref The object to use as this in listener. * @returns Unique key for the listener. */ - un(type: Array, listener: (event: ol.events.Event) => void, ref?: any): any; + un(type: string[], listener: (event: ol.events.Event) => void, ref?: any): any; /** * Removes an event listener using the key returned by on() or once(). Note that using the ol.Observable.unByKey static function is to be preferred. @@ -2520,7 +2520,7 @@ declare namespace ol { * Get the offset of this overlay. * @returns The offset. */ - getOffset(): Array; + getOffset(): number[]; /** * Get the current position of this overlay. @@ -2550,7 +2550,7 @@ declare namespace ol { * Set the offset for this overlay. * @param offset Offset. */ - setOffset(offset: Array): void; + setOffset(offset: number[]): void; /** * Set the position for this overlay. If the position is undefined the overlay is hidden. @@ -4492,7 +4492,7 @@ declare namespace ol { * Return the gradient colors as array of strings. * @returns Colors */ - getGradient(): Array; + getGradient(): string[]; /** * Return the size of the radius in pixels. @@ -4510,7 +4510,7 @@ declare namespace ol { * Set the gradient colors as array of strings. * @param colors Gradient */ - setGradient(colors: Array): void; + setGradient(colors: string[]): void; /** * Set the size of the radius in pixels. @@ -5210,7 +5210,7 @@ declare namespace ol { * Get the list of resolutions for the tile grid. * @returns Resolutions */ - getResolutions(): Array; + getResolutions(): number[]; /** * Get the tile coordinate for the given map coordinate and resolution. This method considers that coordinates that intersect tile boundaries should be assigned the higher tile coordinate. @@ -5261,7 +5261,7 @@ declare namespace ol { * Get the list of matrix identifiers. * @returns MatrixIds */ - getMatrixIds(): Array; + getMatrixIds(): string[]; } /** @@ -5326,17 +5326,17 @@ declare namespace ol { /** * A color represented as a short array [red, green, blue, alpha]. red, green, and blue should be integers in the range 0..255 inclusive. alpha should be a float in the range 0..1 inclusive. */ - interface Color extends Array { } + interface Color extends number[] { } /** * An array of numbers representing an xy coordinate. Example: [16, 48]. */ - interface Coordinate extends Array { } + interface Coordinate extends number[] { } /** * An array of numbers representing an extent: [minx, miny, maxx, maxy]. */ - interface Extent extends Array { } + interface Extent extends number[] { } /** * Overlay position: 'bottom-left', 'bottom-center', 'bottom-right', 'center-left', 'center-center', 'center-right', 'top-left', 'top-center', 'top-right' @@ -5346,7 +5346,7 @@ declare namespace ol { /** * An array with two elements, representing a pixel. The first element is the x-coordinate, the second the y-coordinate of the pixel. */ - interface Pixel extends Array { } + interface Pixel extends number[] { } /** * Available renderers: 'canvas', 'dom' or 'webgl'. @@ -5356,12 +5356,12 @@ declare namespace ol { /** * An array of numbers representing a size: [width, height]. */ - interface Size extends Array { } + interface Size extends number[] { } /** * An array of three numbers representing the location of a tile in a tile grid. The order is z, x, and y. z is the zoom level. */ - interface TileCoord extends Array { } + interface TileCoord extends number[] { } // Functions @@ -5393,7 +5393,7 @@ declare namespace ol { /** * A transform function accepts an array of input coordinate values, an optional output array, and an optional dimension (default should be 2). The function transforms the input coordinate values, populates the output array, and returns the output array. */ - interface TransformFunction { (input: Array, output?: Array, dimension?: number): Array; } + interface TransformFunction { (input: number[], output?: number[], dimension?: number): number[]; } } declare module "openlayers" { diff --git a/openpgp/index.d.ts b/openpgp/index.d.ts index 31fe825af8..065b02f1ca 100644 --- a/openpgp/index.d.ts +++ b/openpgp/index.d.ts @@ -388,7 +388,7 @@ declare namespace openpgp.key { getKeyIds(): Array; getPreferredHashAlgorithm(): string; getPrimaryUser(): any; - getUserIds(): Array; + getUserIds(): string[]; isPrivate(): boolean; isPublic(): boolean; primaryKey: packet.PublicKey; @@ -513,7 +513,7 @@ declare namespace openpgp.util { /** Convert an array of integers(0.255) to a string @param bin An array of (binary) integers to convert */ - function bin2str(bin: Array): string; + function bin2str(bin: number[]): string; /** Calculates a 16bit sum of a string by adding each character codes modulus 65535 @param text string to create a sum of @@ -572,7 +572,7 @@ declare namespace openpgp.util { /** Convert a string to an array of integers(0.255) @param str string to convert */ - function str2bin(str: string): Array; + function str2bin(str: string): number[]; /** Convert a string to a Uint8Array @param str string to convert diff --git a/oracledb/index.d.ts b/oracledb/index.d.ts index 52401400cc..2b80f59e03 100644 --- a/oracledb/index.d.ts +++ b/oracledb/index.d.ts @@ -149,11 +149,11 @@ declare namespace oracledb { /** Metadata information - column names is always given. If the Oracledb extendedMetaData or execute() option extendedMetaData are true then additional information is included. */ metaData?: Array; /** 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?: Array | Object; + outBinds?: any[] | Object; /** For SELECT statements when the resultSet option is true, use the resultSet object to fetch rows. See ResultSet Class. */ resultSet?: IResultSet; /** For SELECT statements where the resultSet option is false or unspecified, rows contains an array of fetched rows. It will be NULL if there is an error or the SQL statement was not a SELECT statement. By default, the rows are in an array of column value arrays, but this can be changed to arrays of objects by setting outFormat to OBJECT. If a single row is fetched, then rows is an array that contains one single row. The number of rows returned is limited to the maxRows configuration property of the Oracledb object, although this may be overridden in any execute() call. */ - rows?: Array> | Array; + rows?: Array | any[]; /** For DML statements (including SELECT FOR UPDATE) this contains the number of rows affected, for example the number of rows inserted. For non-DML statements such as queries, or if no rows are affected, then rowsAffected will be zero. */ rowsAffected?: number; } @@ -203,14 +203,14 @@ declare namespace oracledb { * @param {(err:any,row:Array|Object) => void} callback Callback called when the row is available or when some error occurs. * @returns void */ - getRow(callback: (err: any, row: Array | Object) => void): void; + getRow(callback: (err: any, row: any[] | Object) => void): void; /** * This call fetches one row of the result set as an object or an array of column values, depending on the value of outFormat. * At the end of fetching, the ResultSet should be freed by calling close(). * @returns Promise when the row is available or when some error occurs. */ - getRow(): IPromise | Object>; + getRow(): IPromise; /** * This synchronous method converts a ResultSet into a stream. @@ -302,7 +302,7 @@ declare namespace oracledb { * @param {(err: any, value: IExecuteReturn) => void} callback Callback function to receive the result. */ execute(sql: string, - bindParams: Object | Array, + bindParams: Object | any[], options: IExecuteOptions, callback: (err: any, value: IExecuteReturn) => void): void; @@ -315,7 +315,7 @@ declare namespace oracledb { * @param {(err: any, value: IExecuteReturn) => void} callback Callback function to receive the result. */ execute(sql: string, - bindParams: Object | Array, + bindParams: Object | any[], callback: (err: any, value: IExecuteReturn) => void): void; /** @@ -349,7 +349,7 @@ declare namespace oracledb { * @returns A Promise of a result object, containing any fetched rows, the values of any OUT and IN OUT bind variables, and the number of rows affected by the execution of DML statements. */ execute(sql: string, - bindParams?: Object | Array, + bindParams?: Object | any[], options?: IExecuteOptions): IPromise; /** @@ -364,7 +364,7 @@ declare namespace oracledb { * @returns Readable Stream for queries. */ queryStream(sql: string, - bindParams?: Object | Array, + bindParams?: Object | any[], options?: IExecuteOptions): stream.Readable; /** @@ -558,7 +558,7 @@ declare namespace oracledb { * An array of node-oracledb types. When any column having the specified type is queried with execute(), the column data is returned as a string instead of the native representation. For column types not specified in fetchAsString, native types will be returned. * By default all columns are returned as native types. */ - var fetchAsString: Array; + var fetchAsString: number[]; /** Default size in bytes that the driver will fetch from LOBs in advance. */ var lobPrefetchSize: number; /** Default maximum number of rows to be fetched in statements not using ResultSets */ diff --git a/oracledb/oracledb-1.5.0.d.ts b/oracledb/oracledb-1.5.0.d.ts index 1e6d3dd441..c33ac5512f 100644 --- a/oracledb/oracledb-1.5.0.d.ts +++ b/oracledb/oracledb-1.5.0.d.ts @@ -89,11 +89,11 @@ declare module 'oracledb' { /** Number o rows affected by the statement (used for inserts / updates)*/ rowsAffected?: number; /** When the statement has out parameters, it comes here. */ - outBinds?: Array | Object; + outBinds?: any[] | Object; /** Metadata information - just columns names for now. */ metaData?: Array; /** When not using ResultSet, query results comes here. */ - rows?: Array> | Array; + rows?: Array | any[]; /** When using ResultSet, query results comes here. */ resultSet?: IResultSet; } @@ -115,10 +115,10 @@ declare module 'oracledb' { close(callback: (err: any) => void): void; /** * Fetch one row from ResultSet. - * @param {(err:any,row:Array|Object) => void} callback Callback called when the row is available or when some error occurs. + * @param {(err:any,row:any[]|Object) => void} callback Callback called when the row is available or when some error occurs. * @returns void */ - getRow(callback: (err: any, row: Array | Object) => void): void; + getRow(callback: (err: any, row: any[] | Object) => void): void; /** * Fetch some rows from ResultSet. * @param {number} rowCount Number of rows to be fetched. @@ -149,7 +149,7 @@ declare module 'oracledb' { * @param {(err: any, value: IExecuteReturn) => void} callback Callback function to receive the result. */ execute(sql: string, - binds: Object | Array, + binds: Object | any[], options: IExecuteOptions, callback: (err: any, value: IExecuteReturn) => void): void; @@ -160,7 +160,7 @@ declare module 'oracledb' { * @param {(err: any, value: IExecuteReturn) => void} callback Callback function to receive the result. */ execute(sql: string, - binds: Object | Array, + binds: Object | any[], callback: (err: any, value: IExecuteReturn) => void): void; /** diff --git a/orientjs/index.d.ts b/orientjs/index.d.ts index 3bb33db572..0cc1a1c703 100644 --- a/orientjs/index.d.ts +++ b/orientjs/index.d.ts @@ -279,7 +279,7 @@ declare module "orientjs" { lucene(property: any, luceneQuery: string): Statement; near(latitudeProperty: string, longitudeProperty: string, longitude: number, latitude: number, maxDistanceInKms: number): Statement; near(prop: any, maxDistanceInKms: number, longitude: number, latitude: number): Statement; - within(latitudeProperty: string, longitudeProperty: string, box: Array): Statement; + within(latitudeProperty: string, longitudeProperty: string, box: number[]): Statement; addParams(key: string, value: any): Statement; addParams(value: any): Statement; token(value: any): Statement; diff --git a/packery/index.d.ts b/packery/index.d.ts index 9141bbfd52..012ad09f6b 100644 --- a/packery/index.d.ts +++ b/packery/index.d.ts @@ -182,7 +182,7 @@ declare class Packery { * [layoutItems Lay out specified items] * @param {Array} items [description] */ - layoutItems(items: Array): void; + layoutItems(items: any[]): void; /** * [off Remove an event listener] diff --git a/pako/index.d.ts b/pako/index.d.ts index 2838272dbf..959d4aecb8 100644 --- a/pako/index.d.ts +++ b/pako/index.d.ts @@ -10,52 +10,52 @@ declare namespace Pako { /** * Compress data with deflate algorithm and options. */ - export function deflate( data: Uint8Array | Array | string, options?: any ): string; + export function deflate( data: Uint8Array | number[] | string, options?: any ): string; /** * The same as deflate, but creates raw data, without wrapper (header and adler32 crc). */ - export function deflateRaw( data: Uint8Array | Array | string, options?: any ): string; + export function deflateRaw( data: Uint8Array | number[] | string, options?: any ): string; /** * The same as deflate, but create gzip wrapper instead of deflate one. */ - export function gzip( data: Uint8Array | Array | string, options?: any ): string; + export function gzip( data: Uint8Array | number[] | string, options?: any ): string; /** * Decompress data with inflate/ungzip and options. Autodetect format via wrapper header * by default. That's why we don't provide separate ungzip method. */ - export function inflate( data: Uint8Array | Array | string, options?: any ): Uint8Array; - export function inflate( data: Uint8Array | Array | string, options?: any ): Array; - export function inflate( data: Uint8Array | Array | string, options?: any ): String; + export function inflate( data: Uint8Array | number[] | string, options?: any ): Uint8Array; + export function inflate( data: Uint8Array | number[] | string, options?: any ): number[]; + export function inflate( data: Uint8Array | number[] | string, options?: any ): String; /** * The same as inflate, but creates raw data, without wrapper (header and adler32 crc). */ - export function inflateRaw( data: Uint8Array | Array | string, options?: any ): Uint8Array; - export function inflateRaw( data: Uint8Array | Array | string, options?: any ): Array; - export function inflateRaw( data: Uint8Array | Array | string, options?: any ): string; + export function inflateRaw( data: Uint8Array | number[] | string, options?: any ): Uint8Array; + export function inflateRaw( data: Uint8Array | number[] | string, options?: any ): number[]; + export function inflateRaw( data: Uint8Array | number[] | string, options?: any ): string; /** * Just shortcut to inflate, because it autodetects format by header.content. Done for convenience. */ - export function ungzip( data: Uint8Array | Array | string, options?: any ): Uint8Array; - export function ungzip( data: Uint8Array | Array | string, options?: any ): Array; - export function ungzip( data: Uint8Array | Array | string, options?: any ): string; + export function ungzip( data: Uint8Array | number[] | string, options?: any ): Uint8Array; + export function ungzip( data: Uint8Array | number[] | string, options?: any ): number[]; + export function ungzip( data: Uint8Array | number[] | string, options?: any ): string; export class Deflate { constructor( options?: any ); err: number; msg: string; - result: Uint8Array | Array; - onData( chunk: Uint8Array | Array | string ): void; + result: Uint8Array | number[]; + onData( chunk: Uint8Array | number[] | string ): void; onEnd( status: number ): void; - push( data: Uint8Array | Array | ArrayBuffer | string, mode?: number | boolean ): boolean; + push( data: Uint8Array | number[] | ArrayBuffer | string, mode?: number | boolean ): boolean; } export class Inflate { constructor( options?: any ); err: number; msg: string; - result: Uint8Array | Array | string; - onData( chunk: Uint8Array | Array | string ): void; + result: Uint8Array | number[] | string; + onData( chunk: Uint8Array | number[] | string ): void; onEnd( status: number ): void; - push( data: Uint8Array | Array | ArrayBuffer | string, mode?: number | boolean ): boolean; + push( data: Uint8Array | number[] | ArrayBuffer | string, mode?: number | boolean ): boolean; } } diff --git a/papaparse/index.d.ts b/papaparse/index.d.ts index a529cb845e..a3ea5f487a 100644 --- a/papaparse/index.d.ts +++ b/papaparse/index.d.ts @@ -17,7 +17,7 @@ declare namespace PapaParse { */ unparse(data: Array, config?: UnparseConfig): string; - unparse(data: Array>, config?: UnparseConfig): string; + unparse(data: Array, config?: UnparseConfig): string; unparse(data: UnparseObject, config?: UnparseConfig): string; @@ -25,7 +25,7 @@ declare namespace PapaParse { * Read-Only Properties */ // An array of characters that are not allowed as delimiters. - BAD_DELIMETERS: Array; + BAD_DELIMETERS: string[]; // The true delimiter. Invisible. ASCII code 30. Should be doing the job we strangely rely upon commas and tabs for. RECORD_SEP: string; @@ -88,8 +88,8 @@ declare namespace PapaParse { } interface UnparseObject { - fields: Array; - data: string | Array; + fields: any[]; + data: string | any[]; } interface ParseError { @@ -103,7 +103,7 @@ declare namespace PapaParse { delimiter: string; // Delimiter used linebreak: string; // Line break sequence used aborted: boolean; // Whether process was aborted - fields: Array; // Array of field names + fields: string[]; // Array of field names truncated: boolean; // Whether preview consumed all input } @@ -115,7 +115,7 @@ declare namespace PapaParse { * meta: contains extra information about the parse, such as delimiter used, the newline sequence, whether the process was aborted, etc. Properties in this object are not guaranteed to exist in all situations */ interface ParseResult { - data: Array; + data: any[]; errors: Array; meta: ParseMeta; } diff --git a/parse-torrent/index.d.ts b/parse-torrent/index.d.ts index b3cc997b7c..676cfc33a6 100644 --- a/parse-torrent/index.d.ts +++ b/parse-torrent/index.d.ts @@ -18,13 +18,13 @@ declare namespace ParseTorrent { private?: boolean; created?: Date; comment?: string; - announce?: Array; - urlList?: Array; + announce?: string[]; + urlList?: string[]; files?: Array<{path: string, name: string, length: number, offset: number}>; length?: number; pieceLength?: number; lastPieceLength?: number; - pieces?: Array; + pieces?: string[]; } interface StaticInstance { diff --git a/passport-http-bearer/index.d.ts b/passport-http-bearer/index.d.ts index 07ed927d57..26fa893f8e 100644 --- a/passport-http-bearer/index.d.ts +++ b/passport-http-bearer/index.d.ts @@ -10,13 +10,13 @@ import passport = require("passport"); import express = require("express"); interface IStrategyOptions { - scope: string | Array; + scope: string | string[]; realm: string; passReqToCallback: boolean; } interface IVerifyOptions { message: string; - scope: string | Array; + scope: string | string[]; } interface VerifyFunction { diff --git a/passport-local-mongoose/index.d.ts b/passport-local-mongoose/index.d.ts index eabe00f978..3882e6b0f6 100644 --- a/passport-local-mongoose/index.d.ts +++ b/passport-local-mongoose/index.d.ts @@ -49,7 +49,7 @@ declare module 'mongoose' { usernameField?: string; usernameUnique?: boolean; - usernameQueryFields: Array; + usernameQueryFields: string[]; selectFields?: string; populateFields?: string; diff --git a/pdfkit/index.d.ts b/pdfkit/index.d.ts index 97b0d7e000..4efe501235 100644 --- a/pdfkit/index.d.ts +++ b/pdfkit/index.d.ts @@ -31,12 +31,12 @@ declare namespace PDFKit.Mixins { interface AnnotationOption { Type?: string; Rect?: any; - Border?: Array; + Border?: number[]; SubType?: string; Contents?: string; Name?: string; color?: string; - QuadPoints?: Array; + QuadPoints?: number[]; A?: any; B?: any; diff --git a/peerjs/index.d.ts b/peerjs/index.d.ts index a7336193ae..7a1027360d 100644 --- a/peerjs/index.d.ts +++ b/peerjs/index.d.ts @@ -158,7 +158,7 @@ declare namespace PeerJs { * Get a list of available peer IDs * @param callback */ - listAllPeers(callback: (peerIds: Array) => void): void; + listAllPeers(callback: (peerIds: string[]) => void): void; /** * The brokering ID of this peer */ diff --git a/pem/index.d.ts b/pem/index.d.ts index 8a5f71b729..3a5b37cf75 100644 --- a/pem/index.d.ts +++ b/pem/index.d.ts @@ -145,7 +145,7 @@ declare module "pem" { * @param {Array} ca List of CA certificates * @param {Function} callback Callback function with an error object and a boolean valid */ - function verifySigningChain(certificate: string, ca: Array, callback: Function): void; + function verifySigningChain(certificate: string, ca: string[], callback: Function): void; /** * config the pem module diff --git a/phantomcss/index.d.ts b/phantomcss/index.d.ts index 9f57e26c46..a3bf5ae5a9 100644 --- a/phantomcss/index.d.ts +++ b/phantomcss/index.d.ts @@ -50,7 +50,7 @@ declare namespace PhantomCSS { /** * Get a list of image diffs generated in this test run */ - getCreatedDiffFiles(): Array; + getCreatedDiffFiles(): string[]; } interface PhantomCSSTest { diff --git a/phone/index.d.ts b/phone/index.d.ts index f3bcb7576a..8106124f26 100644 --- a/phone/index.d.ts +++ b/phone/index.d.ts @@ -3,5 +3,5 @@ // Definitions by: Hagai Cohen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare function phone(phoneNumber: string, countryCode?: string): Array; +declare function phone(phoneNumber: string, countryCode?: string): string[]; export = phone; diff --git a/phonegap-nfc/index.d.ts b/phonegap-nfc/index.d.ts index 5eb143f2cb..ae21035cf6 100644 --- a/phonegap-nfc/index.d.ts +++ b/phonegap-nfc/index.d.ts @@ -20,8 +20,8 @@ declare namespace PhoneGapNfc { } interface Tag { - id: Array; - techTypes: Array; + id: number[]; + techTypes: string[]; type: string; date: string; } @@ -34,15 +34,15 @@ declare namespace PhoneGapNfc { /** * byte array, containing zero to 255 bytes, must not be null */ - type: Array; + type: number[]; /** * byte array, containing zero to 255 bytes, must not be null */ - id: Array; + id: number[]; /** * byte array, containing zero to (2 ** 32 - 1) bytes, must not be null */ - payload: Array; + payload: number[]; } interface NdefTag extends Tag { @@ -65,7 +65,7 @@ declare namespace PhoneGapNfc { * URI identifier codes from URI Record Type Definition NFCForum-TS-RTD_URI_1.0 2006-07-24 * index in array matches code in the spec */ - protocols: Array; + protocols: string[]; /** * Decode a URI payload bytes @@ -77,7 +77,7 @@ declare namespace PhoneGapNfc { * shorten a URI with standard prefix * @param uri */ - encodePayload(uri: string): Array; + encodePayload(uri: string): number[]; } interface TextHelper { @@ -94,7 +94,7 @@ declare namespace PhoneGapNfc { * @param lang * @param encoding */ - encodePayload(text: string, lang: string, encoding: string): Array; + encodePayload(text: string, lang: string, encoding: string): number[]; } /** @@ -111,13 +111,13 @@ declare namespace PhoneGapNfc { TNF_UNCHANGED: number; TNF_RESERVED: number; - RTD_TEXT: Array; // "T" - RTD_URI: Array; // "U" - RTD_SMART_POSTER: Array; // "Sp" - RTD_ALTERNATIVE_CARRIER: Array; // "ac" - RTD_HANDOVER_CARRIER: Array; // "Hc" - RTD_HANDOVER_REQUEST: Array; // "Hr" - RTD_HANDOVER_SELECT: Array; // "Hs" + RTD_TEXT: number[]; // "T" + RTD_URI: number[]; // "U" + RTD_SMART_POSTER: number[]; // "Sp" + RTD_ALTERNATIVE_CARRIER: number[]; // "ac" + RTD_HANDOVER_CARRIER: number[]; // "Hc" + RTD_HANDOVER_REQUEST: number[]; // "Hr" + RTD_HANDOVER_SELECT: number[]; // "Hs" uriHelper: UriHelper; textHelper: TextHelper; @@ -133,7 +133,7 @@ declare namespace PhoneGapNfc { * * @see Ndef.textRecord, Ndef.uriRecord and Ndef.mimeMediaRecord for examples */ - record(tnf: number, type: Array, id: Array, payload: Array): NdefRecord; + record(tnf: number, type: number[], id: number[], payload: number[]): NdefRecord; /** * Helper that creates an NdefRecord containing plain text. @@ -144,7 +144,7 @@ declare namespace PhoneGapNfc { * * @return NdefRecord */ - textRecord(text: string, languageCode: string, id: Array): NdefRecord; + textRecord(text: string, languageCode: string, id: number[]): NdefRecord; /** * Helper that creates a NdefRecord containing a URI. @@ -154,7 +154,7 @@ declare namespace PhoneGapNfc { * * @return NdefRecord */ - uriRecord(uri: string, id: Array): NdefRecord; + uriRecord(uri: string, id: number[]): NdefRecord; /** * Helper that creates a NdefRecord containing an absolute URI. @@ -181,7 +181,7 @@ declare namespace PhoneGapNfc { * * @return NdefRecord */ - absoluteUriRecord(uri: string, payload: Array, id: Array): NdefRecord; + absoluteUriRecord(uri: string, payload: number[], id: number[]): NdefRecord; /** * Helper that creates a NdefRecordcontaining an mimeMediaRecord. @@ -190,7 +190,7 @@ declare namespace PhoneGapNfc { * @param payload byte[] * @param id byte[] (optional) */ - mimeMediaRecord(mimeType: string, payload: Array, id: Array): NdefRecord; + mimeMediaRecord(mimeType: string, payload: number[], id: number[]): NdefRecord; /** * Helper that creates an NDEF record containing an Smart Poster. @@ -200,7 +200,7 @@ declare namespace PhoneGapNfc { * * @return NdefRecord */ - smartPoster(ndefRecords: Array, id: Array): NdefRecord; + smartPoster(ndefRecords: Array, id: number[]): NdefRecord; /** * Helper that creates an empty NdefRecord. @@ -221,22 +221,22 @@ declare namespace PhoneGapNfc { * * @param ndefRecords an Array of NdefRecord * - * @return Array + * @return number[] * * @see NFC Data Exchange Format (NDEF) http://www.nfc-forum.org/specs/spec_list/ */ - encodeMessage(ndefRecords: Array): Array; + encodeMessage(ndefRecords: Array): number[]; /** * Decodes an array bytes into an NDEF Message * - * @param bytes Array read from a NFC tag + * @param bytes number[] read from a NFC tag * * @return array of NdefRecord * * @see NFC Data Exchange Format (NDEF) http://www.nfc-forum.org/specs/spec_list/ */ - decodeMessage(bytes: Array): Array; + decodeMessage(bytes: number[]): Array; /** * Decode the bit flags from a TNF Byte. @@ -269,19 +269,19 @@ declare namespace PhoneGapNfc { * Convert bytes to string * @param bytes */ - bytesToString(bytes: Array): string; + bytesToString(bytes: number[]): string; /** * Convert string to bytes * @param string */ - stringToBytes(string: string): Array; + stringToBytes(string: string): number[]; /** * Convert bytes to hexadecimal string * @param bytes */ - bytesToHexString(bytes: Array): string; + bytesToHexString(bytes: number[]): string; } /** @@ -376,7 +376,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. */ - handover(uris: string|Array, win?: () => void, fail?: () => void): void; + handover(uris: string|string[], win?: () => void, fail?: () => void): void; /** * Function nfc.stopHandover stops sharing data via peer-to-peer. diff --git a/playerframework/index.d.ts b/playerframework/index.d.ts index cae16a307c..9bb53fb251 100644 --- a/playerframework/index.d.ts +++ b/playerframework/index.d.ts @@ -273,7 +273,7 @@ declare namespace PlayerFramework { interface PlaylistItem { src: string; - tracks?: Array; //TODO + tracks?: any[]; //TODO } class PluginBase { @@ -291,7 +291,7 @@ declare namespace PlayerFramework { namespace Plugins { class TrackingPluginBase extends PluginBase { - trackingEvents: Array; + trackingEvents: any[]; } @@ -1019,7 +1019,7 @@ declare namespace PlayerFramework { /** * TODO **/ - visualMarkers: Array; + visualMarkers: any[]; /** * TODO **/ @@ -1086,7 +1086,7 @@ declare namespace PlayerFramework { /** * Gets the audio tracks for the current media source. **/ - audioTracks: Array; + audioTracks: any[]; /** * Gets or sets a value that indicates whether to automatically start buffering the current media source. @@ -1115,11 +1115,11 @@ declare namespace PlayerFramework { /** * Gets the buffered time ranges for the current media source. **/ - buffered: Array; //TODO: (type: TimeRanges, read - only) + buffered: any[]; //TODO: (type: TimeRanges, read - only) /** * Gets the caption and subtitle tracks for the current media source. **/ - captionTracks: Array; + captionTracks: any[]; /** * Gets or sets a value that specifies whether to display the native controls for the current media source. **/ @@ -1579,7 +1579,7 @@ declare namespace PlayerFramework { /** * Gets the played time ranges for the current media source. **/ - played: Array; //TODO: (type: TimeRanges, read - only) + played: any[]; //TODO: (type: TimeRanges, read - only) /** * Gets the playlist plugin. **/ @@ -1591,7 +1591,7 @@ declare namespace PlayerFramework { /* * Gets the plugins associated with the player. **/ - plugins: Array; //TODO: (type: ?, read - only) + plugins: any[]; //TODO: (type: ?, read - only) /* * Gets or sets the URL of an image to display while the current media source is loading. **/ @@ -1643,7 +1643,7 @@ declare namespace PlayerFramework { /** * Gets or sets the media sources to be considered. **/ - sources: Array; //TODO: (type: Array, read / write) + sources: any[]; //TODO: (type: Array, read / write) /** * Gets or sets the URL of the current media source to be considered. **/ @@ -1667,7 +1667,7 @@ declare namespace PlayerFramework { /** * Gets or sets the tracks for the player. **/ - tracks: Array; // TODO: (type: Array, read / write) + tracks: any[]; // TODO: (type: Array, read / write) /** * Gets the intrinsic height of the current video (in pixels). **/ @@ -1919,7 +1919,7 @@ declare namespace PlayerFramework { vertical: boolean; disabled: boolean; hidden: boolean; - markers: Array; + markers: any[]; thumbnailImageSrc: string; isThumbnailVisible: boolean; } diff --git a/pleasejs/index.d.ts b/pleasejs/index.d.ts index 1742fc38b8..3c93483efb 100644 --- a/pleasejs/index.d.ts +++ b/pleasejs/index.d.ts @@ -12,7 +12,7 @@ declare namespace PleaseJS { * @param {MakeColorOption} options * @returns {Array} */ - make_color(options?: MakeColorOption): Array; + make_color(options?: MakeColorOption): string[]; make_color(options?: MakeColorOption): Array; make_color(options?: MakeColorOption): Array; @@ -21,7 +21,7 @@ declare namespace PleaseJS { * @param {MakeSchemeOption} options * @returns {Array} */ - make_scheme(base_color: HSV, options?: MakeSchemeOption): Array; + make_scheme(base_color: HSV, options?: MakeSchemeOption): string[]; make_scheme(base_color: HSV, options?: MakeSchemeOption): Array; make_scheme(base_color: HSV, options?: MakeSchemeOption): Array; diff --git a/polylabel/index.d.ts b/polylabel/index.d.ts index 0b913d68ff..a5d8ab892b 100644 --- a/polylabel/index.d.ts +++ b/polylabel/index.d.ts @@ -21,10 +21,10 @@ declare module "polylabel" { * * @name polylabel * @function - * @param {Array} polygon - Given polygon coordinates in GeoJSON-like format + * @param {number[]} polygon - Given polygon coordinates in GeoJSON-like format * @param {number} precision - Precision (1.0 by default) * @param {boolean} debug - Debugging for Console - * @return {Array} + * @return {number[]} * @example * var p = polylabel(polygon, 1.0); */ diff --git a/polymer-ts/index.d.ts b/polymer-ts/index.d.ts index b14ff58c4c..200d012b58 100644 --- a/polymer-ts/index.d.ts +++ b/polymer-ts/index.d.ts @@ -42,9 +42,9 @@ declare namespace polymer { notifyPath(path: string, value: any, fromAbove?: any): void; notifySplices(path: string, splices: { index: number; - removed: Array; + removed: any[]; addedCount: number; - object: Array; + object: any[]; type: "splice"; }): void; pop(path: string): any; diff --git a/prismjs/index.d.ts b/prismjs/index.d.ts index e12788f8d3..776c56a316 100644 --- a/prismjs/index.d.ts +++ b/prismjs/index.d.ts @@ -54,7 +54,7 @@ declare namespace PrismJS { * @param {LanguageDefinition} language * @returns Array - An array of strings, tokens (class Prism.Token) and other arrays. */ - tokenize(text: string, grammar: LanguageDefinition, language?: LanguageDefinition): Array; + tokenize(text: string, grammar: LanguageDefinition, language?: LanguageDefinition): string[]; fileHighlight(): void; @@ -70,8 +70,8 @@ declare namespace PrismJS { type?: string; content?: string; tag?: string; - classes?: Array; - attributes?: Array | Object; + classes?: string[]; + attributes?: string[] | Object; parent?: Element; } @@ -157,7 +157,7 @@ declare namespace PrismJS { type: string; content: Token | Array | string; alias: string; - stringify(o: string| Array, language: LanguageDefinition, parent: HTMLPreElement): string; + stringify(o: string| any[], language: LanguageDefinition, parent: HTMLPreElement): string; } } diff --git a/proj4/index.d.ts b/proj4/index.d.ts index 541fbac0cd..c349e6efec 100644 --- a/proj4/index.d.ts +++ b/proj4/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "proj4" { - const TemplateCoordinates: Array | InterfaceCoordinates; + const TemplateCoordinates: number[] | InterfaceCoordinates; interface InterfaceCoordinates { x: number; @@ -22,8 +22,8 @@ declare module "proj4" { } interface Proj4Static { - forward(coordinates: typeof TemplateCoordinates): Array; - inverse(coordinates: typeof TemplateCoordinates): Array; + forward(coordinates: typeof TemplateCoordinates): number[]; + inverse(coordinates: typeof TemplateCoordinates): number[]; } interface InterfaceProjection { @@ -34,8 +34,8 @@ declare module "proj4" { es: number; e: number; ep2: number; - forward(coordinates: typeof TemplateCoordinates): Array; - inverse(coordinates: typeof TemplateCoordinates): Array; + forward(coordinates: typeof TemplateCoordinates): number[]; + inverse(coordinates: typeof TemplateCoordinates): number[]; } namespace proj4 { @@ -59,21 +59,21 @@ declare module "proj4" { * @name Point */ export function Point(x: number, y: number, z?: number): InterfaceCoordinates; - export function Point(coordinates: Array): InterfaceCoordinates; + export function Point(coordinates: number[]): InterfaceCoordinates; export function Point(coordinates: InterfaceCoordinates): InterfaceCoordinates; export function Point(coordinates: string): InterfaceCoordinates; /** * @name toPoint */ - export function toPoint(array: Array): InterfaceCoordinates; + export function toPoint(array: number[]): InterfaceCoordinates; /** * @name defs */ export function defs(name: string): any; export function defs(name: string, projection: string): any; - export function defs(name: Array>): any; + export function defs(name: Array): any; /** * @name transform @@ -83,7 +83,7 @@ declare module "proj4" { /** * @name mgrs */ - export function mgrs(coordinates: Array, accuracy: number): string; + export function mgrs(coordinates: number[], accuracy: number): string; /** * @name version @@ -96,7 +96,7 @@ declare module "proj4" { */ function proj4(fromProjection: string): Proj4Static; function proj4(fromProjection: string, toProjection: string): Proj4Static; - function proj4(fromProjection: string, coordinates: typeof TemplateCoordinates): Array; - function proj4(fromProjection: string, toProjection: string, coordinates: typeof TemplateCoordinates): Array; + function proj4(fromProjection: string, coordinates: typeof TemplateCoordinates): number[]; + function proj4(fromProjection: string, toProjection: string, coordinates: typeof TemplateCoordinates): number[]; export = proj4; } diff --git a/promise/index.d.ts b/promise/index.d.ts index d51e11de3d..5682a724b0 100644 --- a/promise/index.d.ts +++ b/promise/index.d.ts @@ -14,7 +14,7 @@ declare namespace Promise { resolve: (value: T) => IThenable; reject: (value: T) => IThenable; - all: (array: Array>) => IThenable>; + all: (array: Array>) => IThenable; denodeify: (fn: Function) => (...args: any[]) => IThenable; nodeify: (fn: Function) => Function; } diff --git a/protractor-http-mock/index.d.ts b/protractor-http-mock/index.d.ts index 5f9dbcd79a..2c416ed6a4 100644 --- a/protractor-http-mock/index.d.ts +++ b/protractor-http-mock/index.d.ts @@ -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. */ - (mocks?: Array>, plugins?: Array, skipDefaults?: boolean): ProtractorHttpMock; + (mocks?: Array>, 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: Array, plugins?: Array, skipDefaults?: boolean): ProtractorHttpMock; + (mocks: string[], plugins?: Array, skipDefaults?: boolean): ProtractorHttpMock; /** * Instantiate mock modules from files. This must be done before the browser connects. @@ -41,7 +41,7 @@ declare namespace mock { * @param plugins An array of NPM modules as strings. * @param skipDefaults Set true to skip loading of default mocks. */ - (mocks: Array, plugins?: Array, skipDefaults?: boolean): ProtractorHttpMock; + (mocks: string[], plugins?: string[], skipDefaults?: boolean): ProtractorHttpMock; /** * Clean up. diff --git a/radium/index.d.ts b/radium/index.d.ts index 89ee64dc45..e625c0a977 100644 --- a/radium/index.d.ts +++ b/radium/index.d.ts @@ -67,7 +67,7 @@ declare namespace Radium { /** * List of plugins */ - plugins?: Array; + plugins?: any[]; } /** diff --git a/radius/index.d.ts b/radius/index.d.ts index bb4515d14d..b7dd72fe3d 100644 --- a/radius/index.d.ts +++ b/radius/index.d.ts @@ -101,5 +101,5 @@ interface RadiusPacket { identifier: number; length: number; attributes: any; - raw_attributes: Array>; + raw_attributes: Array; } diff --git a/random-js/index.d.ts b/random-js/index.d.ts index 45e0f20b20..aa04a9d449 100644 --- a/random-js/index.d.ts +++ b/random-js/index.d.ts @@ -12,7 +12,7 @@ declare namespace TemporaryName { export interface MT19937 extends Engine { seed (value: number): Engine; - seedWithArray(array: Array): Engine; + seedWithArray(array: number[]): Engine; autoSeed(): Engine; discard(count: number): Engine; getUseCount(): Engine; diff --git a/rc-select/index.d.ts b/rc-select/index.d.ts index 65934fd02b..0129ce61fb 100644 --- a/rc-select/index.d.ts +++ b/rc-select/index.d.ts @@ -39,13 +39,13 @@ declare namespace RcSelect { filterOption?: boolean; optionFilterProp?: string; optionLabelProp?: string; - defaultValue?: string | Array; - value?: string | Array; + defaultValue?: string | string[]; + value?: string | string[]; onChange?: (value: string, label: string) => void; onSearch?: Function; onSelect?: (value: string, ontion: Option) => void; onDeselect?: Function; - defaultLabel?: string | Array; + defaultLabel?: string | string[]; defaultActiveFirstOption?: boolean; getPopupContainer?: (trigger: Node) => Node; } diff --git a/react-helmet/index.d.ts b/react-helmet/index.d.ts index 3ddfd1ebb5..471ce23362 100644 --- a/react-helmet/index.d.ts +++ b/react-helmet/index.d.ts @@ -16,9 +16,9 @@ declare namespace ReactHelmet { base?: any; defaultTitle?: string; htmlAttributes?: any; - link?: Array; - meta?: Array; - script?: Array; + link?: any[]; + meta?: any[]; + script?: any[]; title?: string; titleTemplate?: string; onChangeClientState?: (newState: any) => void; diff --git a/react-mdl/index.d.ts b/react-mdl/index.d.ts index 48a38ac342..0e6f9c0893 100644 --- a/react-mdl/index.d.ts +++ b/react-mdl/index.d.ts @@ -328,7 +328,7 @@ declare namespace __ReactMDL { class Checkbox extends __MDLComponent { } interface UndecoratedTableProps extends __MDLClassProps, MDLHTMLAttributes, React.DOMAttributes, ShadowedComponent { - rows: Array; + rows: any[]; rowKeyColumn?: string; name?: string; diff --git a/react-native/index.d.ts b/react-native/index.d.ts index 3029578f69..46d16581b7 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -745,7 +745,7 @@ declare module "react" { export interface TransformsStyle { transform?: [{ perspective: number }, { rotate: string }, { rotateX: string }, { rotateY: string }, { rotateZ: string }, { scale: number }, { scaleX: number }, { scaleY: number }, { translateX: number }, { translateY: number }, { skewX: string }, { skewY: string }]; - transformMatrix?: Array; + transformMatrix?: number[]; rotation?: number; scaleX?: number; scaleY?: number; @@ -4699,7 +4699,7 @@ declare module "react" { * handle merging of old and new data separately and then pass that into * this function as the `dataBlob`. */ - cloneWithRows(dataBlob: Array | { [key: string]: any }, rowIdentities?: Array): ListViewDataSource; + cloneWithRows(dataBlob: any[] | { [key: string]: any }, rowIdentities?: Array): ListViewDataSource; /** * This performs the same function as the `cloneWithRows` function but here @@ -4712,7 +4712,7 @@ declare module "react" { * * Note: this returns a new object! */ - cloneWithRowsAndSections(dataBlob: Array | { [key: string]: any }, sectionIdentities?: Array, rowIdentities?: Array>): ListViewDataSource; + cloneWithRowsAndSections(dataBlob: any[] | { [key: string]: any }, sectionIdentities?: Array, rowIdentities?: Array>): ListViewDataSource; getRowCount(): number; getRowAndSectionCount(): number; @@ -4742,7 +4742,7 @@ declare module "react" { /** * Returns an array containing the number of rows in each section */ - getSectionLengths(): Array; + getSectionLengths(): number[]; /** * Returns if the section header is dirtied and needs to be rerendered @@ -5678,12 +5678,12 @@ declare module "react" { */ export interface SwipeableListViewDataSource { cloneWithRowsAndSections(dataBlob: any, - sectionIdentities?: Array, - rowIdentities?: Array>): SwipeableListViewDataSource - getDataSource(): ListViewDataSource - getOpenRowID(): string - getFirstRowID(): string - setOpenRowID(rowID: string): SwipeableListViewDataSource + sectionIdentities?: string[], + rowIdentities?: string[][]): SwipeableListViewDataSource + getDataSource(): ListViewDataSource; + getOpenRowID(): string; + getFirstRowID(): string; + setOpenRowID(rowID: string): SwipeableListViewDataSource; } export interface SwipeableListViewProps extends React.Props { diff --git a/recompose/index.d.ts b/recompose/index.d.ts index c934a87350..9de14f3ff0 100644 --- a/recompose/index.d.ts +++ b/recompose/index.d.ts @@ -124,7 +124,7 @@ declare module 'recompose' { // onlyUpdateForKeys: https://github.com/acdlite/recompose/blob/master/docs/API.md#onlyUpdateForKeys export function onlyUpdateForKeys( - propKeys: Array + propKeys: string[] ): InferableComponentEnhancer; // onlyUpdateForPropTypes: https://github.com/acdlite/recompose/blob/master/docs/API.md#onlyUpdateForPropTypes diff --git a/relateurl/index.d.ts b/relateurl/index.d.ts index 88f3342895..85c564aae0 100644 --- a/relateurl/index.d.ts +++ b/relateurl/index.d.ts @@ -20,7 +20,7 @@ declare namespace RelateUrl { * * Extend the list with any resources you need. Works with options.removeDirectoryIndexes. */ - directoryIndexes?: Array; + directoryIndexes?: string[]; /** * Type: Boolean @@ -49,7 +49,7 @@ declare namespace RelateUrl { * * Extend the list with any additional schemes. Example: javascript:something will not be modified. */ - rejectedSchemes?: Array; + rejectedSchemes?: string[]; /** * Type: Boolean diff --git a/rest-io/index.d.ts b/rest-io/index.d.ts index 5b5424dbd1..47d4f823b1 100644 --- a/rest-io/index.d.ts +++ b/rest-io/index.d.ts @@ -97,21 +97,21 @@ export declare class AuthorizedResource extends Resource { getRoles(id: string): Promise; - hasAuthorizedRole(roles: Array, authorizedRoles: Array): boolean; + hasAuthorizedRole(roles: any[], authorizedRoles: string[]): boolean; - hasAccessRightsDefined(req: Request, authorizedRoles: Array): boolean; + hasAccessRightsDefined(req: Request, authorizedRoles: string[]): boolean; - isAuthorized(req: Request, authorizedRoles: Array): boolean; + isAuthorized(req: Request, authorizedRoles: string[]): boolean; sendUnauthorized(error: Error, res: Response): void; } export interface IMethodAccess { - getAll: Array; - getById: Array; - create: Array; - update: Array; - del: Array; + getAll: string[]; + getById: string[]; + create: string[]; + update: string[]; + del: string[]; } export declare class UserResource extends AuthorizedResource { diff --git a/riot-games-api/index.d.ts b/riot-games-api/index.d.ts index d2789dc648..462c22f5d5 100644 --- a/riot-games-api/index.d.ts +++ b/riot-games-api/index.d.ts @@ -281,9 +281,9 @@ declare namespace RiotGamesAPI { version: string; } interface ChampionDto { - allytips: Array; + allytips: string[]; blurb: string; - enemytips: Array; + enemytips: string[]; id: number; image: ImageDto; info: InfoDto; @@ -296,25 +296,25 @@ declare namespace RiotGamesAPI { skins: Array; spells: Array; stats: StatsDto; - tags: Array; + tags: string[]; title: string; } interface ChampionSpellDto { altimages: Array; - cooldown: Array; + cooldown: number[]; cooldownBurn: string; - cost: Array; + cost: number[]; costBurn: string; costType: string; description: string; - effect: Array>; - effectBurn: Array; + effect: Array; + effectBurn: string[]; image: ImageDto; key: string; leveltip: LevelTipDto; maxrank: number; name: string; - range: Array | string; + range: number[] | string; rangeBurn: string; resource: string; sanitizedDescription: string; @@ -380,11 +380,11 @@ declare namespace RiotGamesAPI { spellblockperlevel: number; } interface LevelTipDto { - effect: Array; - label: Array; + effect: string[]; + label: string[]; } interface SpellVarsDto { - coeff: Array; + coeff: number[]; dyn: string; key: string; link: string; @@ -413,14 +413,14 @@ declare namespace RiotGamesAPI { consumed: boolean; depth: number; description: string; - from: Array; + from: string[]; gold: GoldDto; group: string; hideFromAll: boolean; id: number; image: ImageDto; inStore: boolean; - into: Array; + into: string[]; maps: Array<{[str: string]: boolean}>; name: string; plaintext: string; @@ -430,7 +430,7 @@ declare namespace RiotGamesAPI { specialRecipe: number; stacks: number; stats: BasicDataStatsDto; - tags: Array; + tags: string[]; } interface GroupDto { MaxGroupOwnable: string; @@ -443,14 +443,14 @@ declare namespace RiotGamesAPI { depth: number; description: string; effect: Array<{[str: string]: string}>; - from: Array; + from: string[]; gold: GoldDto; group: string; hideFromAll: boolean; id: number; image: ImageDto; inStore: boolean; - into: Array; + into: string[]; maps: Array<{[str: string]: boolean}>; name: string; plaintext: string; @@ -460,11 +460,11 @@ declare namespace RiotGamesAPI { specialRecipe: number; stacks: number; stats: BasicDataStatsDto; - tags: Array; + tags: string[]; } interface ItemTreeDto { header: string; - tags: Array; + tags: string[]; } interface BasicDataStatsDto { FlatArmorMod: number; @@ -558,7 +558,7 @@ declare namespace RiotGamesAPI { image: ImageDto; mapId: number; mapName: string; - unpurchasableItemList: Array; + unpurchasableItemList: number[]; } interface MasteryListDto { data: Array<{[str: string]: MasteryDto}>; @@ -567,14 +567,14 @@ declare namespace RiotGamesAPI { version: string; } interface MasteryDto { - description: Array; + description: string[]; id: number; image: ImageDto; masteryTree: string; name: string; prereq: string; ranks: number; - sanitizedDescription: Array; + sanitizedDescription: string[]; } interface MasteryTreeDto { Defense: Array; @@ -611,13 +611,13 @@ declare namespace RiotGamesAPI { consumed: boolean; depth: number; description: string; - from: Array; + from: string[]; group: string; hideFromAll: boolean; id: number; image: ImageDto; inStore: boolean; - into: Array; + into: string[]; maps: Array<{[str: string]: boolean}>; name: string; plaintext: string; @@ -627,7 +627,7 @@ declare namespace RiotGamesAPI { specialRecipe: number; stacks: number; stats: BasicDataStatsDto; - tags: Array; + tags: string[]; } interface SummonerSpellListDto { data: Array<{[str: string]: SummonerSpellDto}>; @@ -635,22 +635,22 @@ declare namespace RiotGamesAPI { version: string; } interface SummonerSpellDto { - cooldown: Array; + cooldown: number[]; cooldownBurn: string; - cost: Array; + cost: number[]; costBurn: string; costType: string; description: string; - effect: Array>; - effectBurn: Array; + effect: Array; + effectBurn: string[]; id: number; image: ImageDto; key: string; leveltip: LevelTipDto; maxrank: number; - modes: Array; + modes: string[]; name: string; - range: Array | string; + range: number[] | string; rangeBurn: string; resource: string; sanitizedDescription: string; @@ -667,14 +667,14 @@ declare namespace RiotGamesAPI { namespace LolStatus { interface Shard { hostname: string; - locales: Array; + locales: string[]; name: string; region_tag: string; slug: string; } interface ShardStatus { hostname: string; - locales: Array; + locales: string[]; name: string; region_tag: string; services: Array; @@ -889,7 +889,7 @@ declare namespace RiotGamesAPI { } interface Event { ascendedType: string; - assistingParticipantIds: Array; + assistingParticipantIds: number[]; buildingType: string; creatorId: number; eventType: string; diff --git a/rivets/index.d.ts b/rivets/index.d.ts index 4dbf02c128..858826c0c7 100644 --- a/rivets/index.d.ts +++ b/rivets/index.d.ts @@ -30,7 +30,7 @@ declare namespace Rivets { prefix: string; // Default template delimiters. - templateDelimiters: Array; + templateDelimiters: string[]; // Default sightglass root interface. rootInterface: string; @@ -52,7 +52,7 @@ declare namespace Rivets { rootInterface?: string; // Template delimiters for text bindings - templateDelimiters?: Array + templateDelimiters?: string[] // Augment the event handler of the on-* binder handler?: Function; diff --git a/router5/index.d.ts b/router5/index.d.ts index dcfbd60bec..0a113104e5 100644 --- a/router5/index.d.ts +++ b/router5/index.d.ts @@ -32,7 +32,7 @@ interface RouteNode { getPath(routeName: String): String; getPathFromSegments(segments: Array): String; getSegmentsByName(routeName: String): Array; - getSegmentsMatchingPath(path: any, options: Object): Array; + getSegmentsMatchingPath(path: any, options: Object): any[]; matchPath(path: any, options?: Object): State; setPath(path?: any): void; } @@ -53,15 +53,15 @@ interface Router5 { canActivate(name: String, canActivate: Function): Router5; canDeactivate(name: String, canDeactivate: Boolean): any; cancel(): void; - getAdditionalArgs(): Array; + getAdditionalArgs(): any[]; getState(): Object; isActive(name: String, params?: Object, strictEquality?: Boolean, ignoreQueryParams?: Boolean): Boolean; matchPath(path: String): Object; matchUrl(url: String): Object; navigate(name: String, ...args: Array): Function; - setAdditionalArgs(args: Array): void; + setAdditionalArgs(args: any[]): void; setOption(opt: String, val: any): Router5; - start(...args: Array): Router5; + start(...args: any[]): Router5; stop(): Router5; urlToPath(path: String): String; useMiddleware(...args: Array): Router5; diff --git a/safari-extension/index.d.ts b/safari-extension/index.d.ts index 000abff006..b8a40937e1 100644 --- a/safari-extension/index.d.ts +++ b/safari-extension/index.d.ts @@ -266,10 +266,10 @@ interface SafariExtension { createPopover(identifier: string, url: string, width?: number, height?: number): SafariExtensionPopover; removePopover(identifier: string): void; - addContentScript (source: string, whitelist: Array, blacklist: Array, runAtEnd: boolean): string; - addContentScriptFromURL (url: string, whitelist: Array, blacklist: Array, runAtEnd: boolean): string; - addContentStyleSheet (source: string, whitelist: Array, blacklist: Array): string; - addContentStyleSheetFromURL (url: string, whitelist: Array, blacklist: Array): string; + addContentScript (source: string, whitelist: string[], blacklist: string[], runAtEnd: boolean): string; + addContentScriptFromURL (url: string, whitelist: string[], blacklist: string[], runAtEnd: boolean): string; + addContentStyleSheet (source: string, whitelist: string[], blacklist: string[]): string; + addContentStyleSheetFromURL (url: string, whitelist: string[], blacklist: string[]): string; removeContentScript(url: string): void; removeContentScripts(): void; removeContentStyleSheet(url: string): void; diff --git a/samchon-framework/index.d.ts b/samchon-framework/index.d.ts index 7f816097e2..e121a60661 100644 --- a/samchon-framework/index.d.ts +++ b/samchon-framework/index.d.ts @@ -2746,7 +2746,7 @@ declare namespace samchon.library { * If omitted, it's same with split(start) not having first item. * @return An array of substrings. */ - static betweens(str: string, start?: string, end?: string): Array; + static betweens(str: string, start?: string, end?: string): string[]; /** * An array containing whitespaces. */ @@ -5130,7 +5130,7 @@ declare namespace samchon.protocol { * * @return An array containing values of the contained parameters. */ - getArguments(): Array; + getArguments(): any[]; /** * Apply to a matched function. * diff --git a/selenium-webdriver/index.d.ts b/selenium-webdriver/index.d.ts index d43fce2d29..13160ffcfe 100644 --- a/selenium-webdriver/index.d.ts +++ b/selenium-webdriver/index.d.ts @@ -73,7 +73,7 @@ declare namespace chrome { * List of Chrome command line switches to exclude that ChromeDriver by default * passes when starting Chrome. Do not prefix switches with "--". * - * @param {...(string|!Array)} var_args The switches to exclude. + * @param {...(string|!string[])} var_args The switches to exclude. * @return {!Options} A self reference. */ excludeSwitches(...var_args: string[]): Options; @@ -1091,7 +1091,7 @@ declare namespace ie { * @param {...(string|!Array.)} var_args The arguments to add. * @return {!Options} A self reference. */ - addArguments(...var_args: Array): Options; + addArguments(...var_args: string[]): Options; /** * Configures whether proxies should be configured on a per-process basis. If @@ -1274,7 +1274,7 @@ declare namespace opera { * @param {...(string|!Array.)} var_args The arguments to add. * @return {!Options} A self reference. */ - addArguments(...var_args: Array): Options; + addArguments(...var_args: string[]): Options; /** * Add additional extensions to install when launching Opera. Each extension @@ -1284,7 +1284,7 @@ declare namespace opera { * extensions to add. * @return {!Options} A self reference. */ - addExtensions(...var_args: Array): Options; + addExtensions(...var_args: any[]): Options; /** * Sets the path to the Opera binary to use. On Mac OS X, this path should @@ -3344,7 +3344,7 @@ declare namespace webdriver { * @return {!webdriver.ActionSequence} A self reference. * @throws {Error} If the key is not a valid modifier key. */ - sendKeys(...var_args: Array): ActionSequence; + sendKeys(...var_args: string[]): ActionSequence; //endregion } @@ -4064,7 +4064,7 @@ declare namespace webdriver { * @return {function(!./webdriver.WebDriver): !./promise.Promise} * A new JavaScript-based locator function. */ - static js(script: string|Function, ...var_args: Array): (webdriver: webdriver.WebDriver) => webdriver.promise.Promise; + static js(script: string|Function, ...var_args: any[]): (webdriver: webdriver.WebDriver) => webdriver.promise.Promise; /** * Locates elements whose `name` attribute has the given value. diff --git a/sequelize/index.d.ts b/sequelize/index.d.ts index e7616ae262..b02ea3bc04 100644 --- a/sequelize/index.d.ts +++ b/sequelize/index.d.ts @@ -1796,7 +1796,7 @@ declare namespace sequelize { * Accepts subtype any of the DataTypes * Array of required attributes that are available on the model */ - new (subtype: DataTypeAbstract, requireAttributes?: Array): DataTypeVirtual; + new (subtype: DataTypeAbstract, requireAttributes?: string[]): DataTypeVirtual; } interface DataTypeEnum extends DataTypeAbstract { diff --git a/sequelize/sequelize-2.0.0.d.ts b/sequelize/sequelize-2.0.0.d.ts index 89ab5a386f..b6d40c4c55 100644 --- a/sequelize/sequelize-2.0.0.d.ts +++ b/sequelize/sequelize-2.0.0.d.ts @@ -620,7 +620,7 @@ declare namespace sequelize { * dataValues is different from the value in _previousDataValues. If changed is called without an argument, it will * return an array of keys that have changed. */ - changed(): Array; + changed(): string[]; /** * Returns the previous value for key from _previousDataValues. @@ -630,7 +630,7 @@ declare namespace sequelize { /** * Validate this instance, and if the validation passes, persist it to the database. */ - save(fields?: Array, options?: SaveOptions): PromiseT; + save(fields?: string[], options?: SaveOptions): PromiseT; /** * Refresh the current instance in-place, i.e. update the object with current data from the DB and return the same @@ -833,22 +833,22 @@ declare namespace sequelize { /** * A named hook that is run before creating instances in bulk. */ - beforeBulkCreate(name: string, validator: (daos: Array, fields: Array, callback: (err?: Error, dao?: T) => void) => void): void; + beforeBulkCreate(name: string, validator: (daos: Array, fields: string[], callback: (err?: Error, dao?: T) => void) => void): void; /** * A hook that is run before creating instances in bulk. */ - beforeBulkCreate(validator: (daos: Array, fields: Array, callback: (err?: Error, dao?: T) => void) => void): void; + beforeBulkCreate(validator: (daos: Array, fields: string[], callback: (err?: Error, dao?: T) => void) => void): void; /** * A named hook that is run after creating instances in bulk. */ - afterBulkCreate(name: string, validator: (daos: Array, fields: Array, callback: (err?: Error, dao?: T) => void) => void): void; + afterBulkCreate(name: string, validator: (daos: Array, fields: string[], callback: (err?: Error, dao?: T) => void) => void): void; /** * A hook that is run after creating instances in bulk. */ - afterBulkCreate(validator: (daos: Array, fields: Array, callback: (err?: Error, dao?: T) => void) => void): void; + afterBulkCreate(validator: (daos: Array, fields: string[], callback: (err?: Error, dao?: T) => void) => void): void; /** * A named hook that is run before destroying instances in bulk. @@ -1030,8 +1030,8 @@ declare namespace sequelize { renameColumn(tableName: string, attrNameBefore: string, attrNameAfter: string): EventEmitter; addIndex(tableName: string, attributes: Array, options?: QueryOptions): EventEmitter; showIndex(tableName: string, options?: QueryOptions): EventEmitter; - getForeignKeysForTables(tableNames: Array): EventEmitter; - removeIndex(tableName: string, attributes: Array): EventEmitter; + getForeignKeysForTables(tableNames: string[]): EventEmitter; + removeIndex(tableName: string, attributes: string[]): EventEmitter; removeIndex(tableName: string, indexName: string): EventEmitter; insert(dao: TModel, tableName: string, values: any, options?: QueryOptions): EventEmitter; /** @@ -1062,7 +1062,7 @@ declare namespace sequelize { * @param functionParams * @param optionsArray */ - createTrigger(tableName: string, triggerName: string, timingType: string, fireOnArray: Array, functionName: string, functionParams: Array, optionsArray: Array): EventEmitter; + createTrigger(tableName: string, triggerName: string, timingType: string, fireOnArray: Array, functionName: string, functionParams: Array, optionsArray: string[]): EventEmitter; /** * Postgres only. Drops the specified trigger. * @@ -1126,15 +1126,15 @@ declare namespace sequelize { */ showIndexQuery(tableName: string, options?: any): string; // options is actually not used removeIndexQuery(tableName: string, indexNameOrAttributes: string): string; - removeIndexQuery(tableName: string, indexNameOrAttributes: Array): string; + removeIndexQuery(tableName: string, indexNameOrAttributes: string[]): string; attributesToSQL(attributes: Array): string; - findAutoIncrementField(factory: Model): Array; + findAutoIncrementField(factory: Model): string[]; quoteTable(param: any, as: boolean): string; quote(obj: any, parent: any, force: boolean): string; createTrigger(tableName: string, triggerName: string, timingType: string, fireOnArray: TriggerOptions, functionName: string, functionParams: Array): string; dropTrigger(tableName: string, triggerName: string): string; renameTrigger(tableName: string, oldTriggerName: string, newTriggerName: string): string; - createFunction(functionName: string, params: Array, returnType: string, language: string, body: string, options?: Array): string; + createFunction(functionName: string, params: Array, returnType: string, language: string, body: string, options?: string[]): string; dropFunction(functionName: string, params: Array): string; renameFunction(oldFunctionName: string, params: Array, newFunctionName: string): string; quoteIdentifier(identifier: string, force?: boolean): string; @@ -1149,8 +1149,8 @@ declare namespace sequelize { getForeignKeysQuery(tableName: string, schemaName: string): string; dropForeignKeyQuery(tableName: string, foreignKey: string): string; selectQuery(tableName: string, options: SelectOptions, model?: Model): string; - selectQuery(tableName: Array, options: SelectOptions, model?: Model): string; - selectQuery(tableName: Array>, options: SelectOptions, model?: Model): string; + selectQuery(tableName: string[], options: SelectOptions, model?: Model): string; + selectQuery(tableName: Array, options: SelectOptions, model?: Model): string; setAutocommitQuery(value: boolean): string; setIsolationLevelQuery(value: string): string; /** @@ -1176,7 +1176,7 @@ declare namespace sequelize { isAssociationFilter(filterStr: string, dao: Model, options?: any): string; getAssociationFilterColumn(filterStr: string, dao: Model, options?: { include: boolean }): string; getConditionalJoins(options: { where?: any }, originalDao: Model): string; - arrayValue(value: Array, key: string, _key: string, factory?: any, logicResult?: any): string; + arrayValue(value: string[], key: string, _key: string, factory?: any, logicResult?: any): string; hashToWhereConditions(hash: any, dao: Model, options?: HashToWhereConditionsOption): string; booleanValue(value: boolean): string; } @@ -1894,7 +1894,7 @@ declare namespace sequelize { /** * If set, only columns matching those in fields will be saved. */ - fields?: Array; + fields?: string[]; /** * @@ -1910,7 +1910,7 @@ declare namespace sequelize { /** * Fields to insert (defaults to all fields). */ - fields?: Array; + fields?: string[]; /** * Should each row be subject to validation before it is inserted. The whole insert will fail if one row fails @@ -2011,7 +2011,7 @@ declare namespace sequelize { /** * An array of strings. All properties that are in this array will not be validated. */ - skip: Array; + skip: string[]; } interface IncrementOptions { @@ -2034,7 +2034,7 @@ declare namespace sequelize { /** * An array of the events to proxy. Defaults to sql, error and success. */ - events: Array; + events: string[]; } interface AssociationOptions { @@ -2089,10 +2089,10 @@ declare namespace sequelize { } interface TriggerOptions { - insert?: Array; - update?: Array; - delete?: Array; - truncate?: Array; + insert?: string[]; + update?: string[]; + delete?: string[]; + truncate?: string[]; } interface TriggerParam { @@ -2755,7 +2755,7 @@ declare namespace sequelize { interface DataTypeVirtual { } interface DataTypeEnum { - (...values: Array): DataTypeEnum; + (...values: string[]): DataTypeEnum; } interface DataTypeArray { } diff --git a/sequelize/sequelize-3.0.0.d.ts b/sequelize/sequelize-3.0.0.d.ts index 55b10fe9af..95fb857031 100644 --- a/sequelize/sequelize-3.0.0.d.ts +++ b/sequelize/sequelize-3.0.0.d.ts @@ -1795,7 +1795,7 @@ declare namespace sequelize { * Accepts subtype any of the DataTypes * Array of required attributes that are available on the model */ - new (subtype: DataTypeAbstract, requireAttributes?: Array): DataTypeVirtual; + new (subtype: DataTypeAbstract, requireAttributes?: string[]): DataTypeVirtual; } interface DataTypeEnum extends DataTypeAbstract { diff --git a/service_worker_api/index.d.ts b/service_worker_api/index.d.ts index 49846d57e8..826337fdd9 100644 --- a/service_worker_api/index.d.ts +++ b/service_worker_api/index.d.ts @@ -91,7 +91,7 @@ interface Header { * from the Headers object. If the given name is not the name of an * HTTP header, this method throws a TypeError. */ - getAll(name: string): Array; + getAll(name: string): string[]; /** * Returns a boolean stating whether a Headers object contains a @@ -382,7 +382,7 @@ interface CacheStorage { * CacheStorage. Use this method to iterate over a list of all the * Cache objects. */ - keys(): Promise>; + keys(): Promise; } /** diff --git a/shapefile/index.d.ts b/shapefile/index.d.ts index 9d2be8cee9..d664b55953 100644 --- a/shapefile/index.d.ts +++ b/shapefile/index.d.ts @@ -17,7 +17,7 @@ declare namespace shapefile { value: GeoJSON.Feature; } interface Shapefile { - bbox: Array; + bbox: number[]; read(): Promise; } interface ShapefileStatic { diff --git a/signalr/index.d.ts b/signalr/index.d.ts index 619d9cd77c..44f8598aea 100644 --- a/signalr/index.d.ts +++ b/signalr/index.d.ts @@ -165,7 +165,7 @@ declare namespace SignalR { } interface ConnectionOptions { - transport?: string | Array | Transport; + transport?: string | string[] | Transport; callback?: Function; waitForPageLoad?: boolean; jsonp?: boolean; diff --git a/sjcl/index.d.ts b/sjcl/index.d.ts index cdbf45b68e..33ed43d089 100644 --- a/sjcl/index.d.ts +++ b/sjcl/index.d.ts @@ -154,7 +154,7 @@ declare namespace sjcl { // ________________________________________________________________________ - interface BitArray extends Array { + interface BitArray extends number[] { } interface BitArrayStatic { diff --git a/skyway/index.d.ts b/skyway/index.d.ts index 3a8c8676ef..d1d013d676 100644 --- a/skyway/index.d.ts +++ b/skyway/index.d.ts @@ -145,7 +145,7 @@ declare namespace PeerJs { * Get a list of available peer IDs * @param callback */ - listAllPeers(callback: (peerIds: Array) => void): void; + listAllPeers(callback: (peerIds: string[]) => void): void; /** * The brokering ID of this peer diff --git a/snapsvg/index.d.ts b/snapsvg/index.d.ts index 89f1561e44..e91528f78e 100644 --- a/snapsvg/index.d.ts +++ b/snapsvg/index.d.ts @@ -73,7 +73,7 @@ declare namespace Snap { export function plugin(f: Function): void; export function select(query: string): Snap.Element; export function selectAll(query: string): any; - export function snapTo(values: Array, value: number, tolerance?: number): number; + export function snapTo(values: number[], value: number, tolerance?: number): number; export function animate(from: number|number[], to: number|number[], updater: (n: number) => void, duration: number, easing?: (num: number) => number, callback?: () => void): mina.MinaAnimation; export function animation(attr: Object, duration: number, easing?: (num: number) => number, callback?: () => void): Snap.Animation; @@ -103,10 +103,10 @@ declare namespace Snap { export function len2(x1: number, y1: number, x2: number, y2: number): number; export function parse(svg: string): Fragment; - export function parsePathString(pathString: string): Array; - export function parsePathString(pathString: Array): Array; - export function parseTransformString(TString: string): Array; - export function parseTransformString(TString: Array): Array; + export function parsePathString(pathString: string): any[]; + export function parsePathString(pathString: string[]): any[]; + export function parseTransformString(TString: string): any[]; + export function parseTransformString(TString: string[]): any[]; export function closest(x: number, y: number, X: number, Y: number): boolean; @@ -361,7 +361,7 @@ declare namespace Snap { interface Path { bezierBBox(...args: number[]): BBox; - bezierBBox(bez: Array): BBox; + bezierBBox(bez: number[]): BBox; findDotsAtSegment(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number, t: number): Object; @@ -375,10 +375,10 @@ declare namespace Snap { isPointInsideBBox(bbox: BBox, x: number, y: number): boolean; map(path: string, matrix: Snap.Matrix): string; map(path: string, matrix: Object): string; - toAbsolute(path: string): Array; - toCubic(pathString: string): Array; - toCubic(pathString: Array): Array; - toRelative(path: string): Array; + toAbsolute(path: string): any[]; + toCubic(pathString: string): any[]; + toCubic(pathString: string[]): any[]; + toRelative(path: string): any[]; } interface IntersectionDot { @@ -388,7 +388,7 @@ declare namespace Snap { t2: number; segment1: number; segment2: number; - bez1: Array; - bez2: Array; + bez1: number[]; + bez2: number[]; } } diff --git a/spotify-api/index.d.ts b/spotify-api/index.d.ts index dac4884c3c..0479ed219c 100644 --- a/spotify-api/index.d.ts +++ b/spotify-api/index.d.ts @@ -317,7 +317,7 @@ declare namespace SpotifyApi { * GET /v1/me/following/contains * https://developer.spotify.com/web-api/check-current-user-follows/ */ - interface UserFollowsUsersOrArtistsResponse extends Array {} + interface UserFollowsUsersOrArtistsResponse extends boolean[] {} /** * Follow a Playlist @@ -365,7 +365,7 @@ declare namespace SpotifyApi { * GET /v1/me/tracks/contains?ids={ids} * https://developer.spotify.com/web-api/check-users-saved-tracks/ */ - interface CheckUsersSavedTracksResponse extends Array {} + interface CheckUsersSavedTracksResponse extends boolean[] {} /** * Save albums for user @@ -397,7 +397,7 @@ declare namespace SpotifyApi { * GET /v1/me/albums/contains?ids={ids} * https://developer.spotify.com/web-api/check-users-saved-albums/ */ - interface CheckUserSavedAlbumsResponse extends Array {} + interface CheckUserSavedAlbumsResponse extends boolean[] {} /** * Get a User’s Top Artists and Tracks (Note: This is only Artists) @@ -585,7 +585,7 @@ declare namespace SpotifyApi { * GET /v1/users/{user_id}/playlists/{playlist_id}/followers/contains * https://developer.spotify.com/web-api/check-user-following-playlist/ */ - interface UsersFollowPlaylistReponse extends Array {} + interface UsersFollowPlaylistReponse extends boolean[] {} diff --git a/state-machine/index.d.ts b/state-machine/index.d.ts index 758f4e813e..cd8f538e53 100644 --- a/state-machine/index.d.ts +++ b/state-machine/index.d.ts @@ -67,7 +67,7 @@ interface StateMachineCan { } interface StateMachineTransitions { - (): Array; + (): string[]; } interface StateMachine { diff --git a/statuses/index.d.ts b/statuses/index.d.ts index f6e22d2176..e21d5d7023 100644 --- a/statuses/index.d.ts +++ b/statuses/index.d.ts @@ -8,7 +8,7 @@ interface Status { [code: number]: string; [msg: string]: any | number; - codes: Array; + codes: number[]; redirect: { [code: number]: boolean }; empty: { [code: number]: boolean }; retry: { [code: number]: boolean }; diff --git a/strftime/index.d.ts b/strftime/index.d.ts index 138bed207e..88713c2bd5 100644 --- a/strftime/index.d.ts +++ b/strftime/index.d.ts @@ -42,10 +42,10 @@ declare module "strftime" { * @interface */ export interface Locale { - days?: Array; - shortDays?: Array; - months?: Array; - shortMonths?: Array; + days?: string[]; + shortDays?: string[]; + months?: string[]; + shortMonths?: string[]; AM?: string; PM?: string; am?: string; diff --git a/stripe-node/index.d.ts b/stripe-node/index.d.ts index 0acedec89c..dcd511ac85 100644 --- a/stripe-node/index.d.ts +++ b/stripe-node/index.d.ts @@ -150,7 +150,7 @@ declare namespace StripeNode { * standing. Nested fields are separated by "." (for example, * "legal_entity.first_name"). */ - fields_needed: Array; + fields_needed: string[]; }; } @@ -2479,7 +2479,7 @@ declare namespace StripeNode { /** * Only return orders with the given IDs */ - ids?: Array; + ids?: string[]; /** * Only return orders that have the given status. One of "created", "paid", "fulfilled", or "refunded". @@ -2734,7 +2734,7 @@ declare namespace StripeNode { /** * A list of up to 5 attributes that each SKU can provide values for (e.g. ["color", "size"]). */ - attributes: Array; + attributes: string[]; /** * A short one-line description of the product, meant to be displayable to the customer. @@ -2746,7 +2746,7 @@ declare namespace StripeNode { /** * An array of connect application identifiers that cannot purchase this product. */ - deactivated_on: Array; + deactivated_on: string[]; /** * The product’s description, meant to be displayable to the customer. @@ -2756,7 +2756,7 @@ declare namespace StripeNode { /** * A list of up to 8 URLs of images for this product, meant to be displayable to the customer. */ - images: Array; + images: string[]; livemode: boolean; metadata: IMetadata; @@ -2805,7 +2805,7 @@ declare namespace StripeNode { /** * A list of up to 5 alphanumeric attributes that each SKU can provide values for (e.g. ["color", "size"]). */ - attribute?: Array; + attribute?: string[]; /** * A short one-line description of the product, meant to be displayable to the customer. @@ -2815,7 +2815,7 @@ declare namespace StripeNode { /** * An array of Connect application names or identifiers that should not be able to order the SKUs for this product. */ - deactivate_on?: Array; + deactivate_on?: string[]; /** * The product’s description, meant to be displayable to the customer. @@ -2825,7 +2825,7 @@ declare namespace StripeNode { /** * A list of up to 8 URLs of images for this product, meant to be displayable to the customer. */ - images?: Array; + images?: string[]; package_dimensions?: IPackageDimensions; @@ -2856,7 +2856,7 @@ declare namespace StripeNode { * An array of Connect application names or identifiers that should not be able to order the SKUs for this product. This can be unset * by updating the value to null and then saving. */ - deactivate_on?: Array; + deactivate_on?: string[]; /** * The product’s description, meant to be displayable to the customer. @@ -2867,7 +2867,7 @@ declare namespace StripeNode { * A list of up to 8 URLs of images for this product, meant to be displayable to the customer. This can be unset by updating the value to * null and then saving. */ - images?: Array; + images?: string[]; /** * The product’s name, meant to be displayable to the customer. @@ -2896,7 +2896,7 @@ declare namespace StripeNode { /** * Only return products with the given IDs. */ - ids?: Array; + ids?: string[]; /** * Only return products that can be shipped (i.e., physical, not digital products). @@ -3084,7 +3084,7 @@ declare namespace StripeNode { /** * Only return SKUs with the given IDs. */ - ids?: Array; + ids?: string[]; /** * Only return SKUs that are either in stock or out of stock (e.g. pass false to list all SKUs that are out of stock). @@ -4398,13 +4398,13 @@ declare namespace StripeNode { /** * Currencies that can be accepted in the specified country (for payments). */ - supported_payment_currencies: Array; + supported_payment_currencies: string[]; /** * Payment methods available in the specified country. You will need to enable bitcoin and ACH payments on your account for those methods to * appear in this list. The stripe payment method refers to charging through your platform. */ - supported_payment_methods: Array; + supported_payment_methods: string[]; /** * Lists the types of verification data needed to keep an account open. Includes 'minimum' fields, which every account must eventually @@ -4412,12 +4412,12 @@ declare namespace StripeNode { */ verification_fields: { individual: { - minimum: Array; - additional: Array; + minimum: string[]; + additional: string[]; }, company: { - minimum: Array; - additional: Array; + minimum: string[]; + additional: string[]; } }; } @@ -6439,8 +6439,8 @@ declare namespace StripeNode { } interface IDataOptions { - expand?: Array; - include?: Array; + expand?: string[]; + include?: string[]; } interface IDataOptionsWithMetadata extends IDataOptions { diff --git a/survey-knockout/index.d.ts b/survey-knockout/index.d.ts index ee925f3886..a78c9a18a9 100644 --- a/survey-knockout/index.d.ts +++ b/survey-knockout/index.d.ts @@ -34,7 +34,7 @@ declare namespace Survey { } class ItemValue { static Separator: string; - static setData(items: Array, values: Array): void; + static setData(items: Array, values: any[]): void; static getData(items: Array): any; private itemValue; private itemText; @@ -65,7 +65,7 @@ declare namespace Survey { constructor(); loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void; sendResult(postId: string, result: JSON, onSendResult: (success: boolean, response: any) => void, clientId?: string, isPartialCompleted?: boolean): void; - getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: Array, response: any) => void): void; + getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: any[], response: any) => void): void; isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void; } } @@ -140,8 +140,8 @@ declare namespace Survey { setValue(obj: any, value: any, jsonConv: JsonObject): void; getObjType(objType: string): string; getClassName(className: string): string; - choices: Array; - setChoices(value: Array, valueFunc: () => Array): void; + choices: any[]; + setChoices(value: any[], valueFunc: () => any[]): void; } class JsonMetadataClass { name: string; @@ -150,8 +150,8 @@ declare namespace Survey { static requiredSymbol: string; static typeSymbol: string; properties: Array; - requiredProperties: Array; - constructor(name: string, propertiesNames: Array, creator?: () => any, parentName?: string); + requiredProperties: string[]; + constructor(name: string, propertiesNames: string[], creator?: () => any, parentName?: string); find(name: string): JsonObjectProperty; private getPropertyName(propertyName); } @@ -160,15 +160,15 @@ declare namespace Survey { private childrenClasses; private classProperties; private classRequiredProperties; - addClass(name: string, propertiesNames: Array, creator?: () => any, parentName?: string): JsonMetadataClass; + addClass(name: string, propertiesNames: string[], creator?: () => any, parentName?: string): JsonMetadataClass; overrideClassCreatore(name: string, creator: () => any): void; setPropertyValues(name: string, propertyName: string, propertyClassName: string, defaultValue?: any, onGetValue?: (obj: any) => any, onSetValue?: (obj: any, value: any, jsonConv: JsonObject) => any): void; - setPropertyChoices(name: string, propertyName: string, choices: Array, choicesFunc?: () => Array): void; + setPropertyChoices(name: string, propertyName: string, choices: any[], choicesFunc?: () => any[]): void; setPropertyClassInfo(name: string, propertyName: string, baseClassName: string, classNamePart?: string): void; getProperties(name: string): Array; createClass(name: string): any; getChildrenClasses(name: string, canBeCreated?: boolean): Array; - getRequiredProperties(name: string): Array; + getRequiredProperties(name: string): string[]; private fillChildrenClasses(name, canBeCreated, result); private findClass(name); private findProperty(name, propertyName); @@ -267,7 +267,7 @@ declare namespace Survey { })[]; private creatorHash; registerQuestion(questionType: string, questionCreator: (name: string) => QuestionBase): void; - getAllTypes(): Array; + getAllTypes(): string[]; createQuestion(questionType: string, name: string): QuestionBase; } } @@ -417,7 +417,7 @@ declare namespace Survey { choicesOrderValue: string; constructor(name: string); isOtherSelected: boolean; - choices: Array; + choices: any[]; choicesOrder: string; otherText: string; visibleChoices: Array; @@ -511,8 +511,8 @@ declare namespace Survey { constructor(name: string); getType(): string; hasRows: boolean; - columns: Array; - rows: Array; + columns: any[]; + rows: any[]; visibleRows: Array; protected createMatrixRow(name: any, text: string, fullName: string, value: any): MatrixRowModel; protected onValueChanged(): void; @@ -554,7 +554,7 @@ declare namespace Survey { interface IMatrixDropdownData { onCellChanged(cell: MatrixDropdownCellModel): any; columns: Array; - choices: Array; + choices: any[]; optionsCaption: string; } class MatrixDropdownColumn extends Base { @@ -567,7 +567,7 @@ declare namespace Survey { constructor(name: string, title?: string); getType(): string; title: string; - choices: Array; + choices: any[]; cellType: string; colCount: number; } @@ -577,7 +577,7 @@ declare namespace Survey { private data; private questionValue; constructor(column: MatrixDropdownColumn, row: MatrixDropdownRowModel, data: IMatrixDropdownData, value: any); - choices: Array; + choices: any[]; optionsCaption: string; question: Question; value: any; @@ -616,8 +616,8 @@ declare namespace Survey { constructor(name: string); getType(): string; columns: Array; - rows: Array; - choices: Array; + rows: any[]; + choices: any[]; optionsCaption: string; addColumn(name: string, title?: string): MatrixDropdownColumn; visibleRows: Array; @@ -658,7 +658,7 @@ declare namespace Survey { items: Array; AddItem(name: string, title?: string): MultipleTextItemModel; colCount: number; - getRows(): Array; + getRows(): any[]; private isMultipleItemValueChanging; protected onValueChanged(): void; protected createTextItem(name: string, title: string): MultipleTextItemModel; @@ -680,7 +680,7 @@ declare namespace Survey { maximumRateDescription: string; rateValuesChangedCallback: () => void; constructor(name: string); - rateValues: Array; + rateValues: any[]; visibleRateValues: ItemValue[]; getType(): string; supportComment(): boolean; diff --git a/swagger-express-middleware/index.d.ts b/swagger-express-middleware/index.d.ts index 366a95f435..c1c5cf0a45 100644 --- a/swagger-express-middleware/index.d.ts +++ b/swagger-express-middleware/index.d.ts @@ -243,7 +243,7 @@ declare module "swagger-express-middleware" { * If a string is provided, this is used as the secret. * If an array is provided, an attempt will be made to unsign the cookie with each secret in order. */ - secret?: string | Array; + secret?: string | string[]; /** * an object that is passed to cookie.parse as the second option */ diff --git a/sylvester/index.d.ts b/sylvester/index.d.ts index cdcd1f10c9..c2969b3190 100644 --- a/sylvester/index.d.ts +++ b/sylvester/index.d.ts @@ -12,7 +12,7 @@ declare namespace Sylvester { /** * Constructor function. */ - create(elements: Vector|Array): Vector; + create(elements: Vector|number[]): Vector; i: Vector; j: Vector; @@ -36,9 +36,9 @@ declare namespace Sylvester { /** * Constructor function. * - * @param {Array|Array>|Vector|Matrix} elements The elements. + * @param {number[]|Array|Vector|Matrix} elements The elements. */ - create(elements: Array|Array>|Vector | Matrix): Matrix; + create(elements: number[]|Array|Vector | Matrix): Matrix; /** * Identity matrix of size n. @@ -52,7 +52,7 @@ declare namespace Sylvester { * * @param {any} elements The elements. */ - Diagonal(elements: Array|Array>|Vector | Matrix): Matrix; + Diagonal(elements: number[]|Array|Vector | Matrix): Matrix; /** * Rotation matrix about some axis. If no axis is supplied, assume we're after a 2D transform. @@ -87,10 +87,10 @@ declare namespace Sylvester { /** * Constructor function. * - * @param Array|Vector anchor The anchor vector. - * @param Array|Vector direction The direction vector. + * @param number[]|Vector anchor The anchor vector. + * @param number[]|Vector direction The direction vector. */ - create(anchor: Array|Vector, direction: Array|Vector): Line; + create(anchor: number[]|Vector, direction: number[]|Vector): Line; X: Line; Y: Line; @@ -100,12 +100,12 @@ declare namespace Sylvester { /** * Constructor function. */ - create(anchor: Array|Vector, normal: Array|Vector): Plane; + create(anchor: number[]|Vector, normal: number[]|Vector): Plane; /** * Constructor function. */ - create(anchor: Array|Vector, v1: Array|Vector, v2: Array|Vector): Plane; + create(anchor: number[]|Vector, v1: number[]|Vector, v2: number[]|Vector): Plane; XY: Plane; YZ: Plane; @@ -118,7 +118,7 @@ interface Vector { /** * Gets an array containing the vector's elements. */ - elements: Array; + elements: number[]; /** * Returns element i of the vector. @@ -138,9 +138,9 @@ interface Vector { /** * Returns true if the vector is equal to the argument. * - * @param {Vector|Array} vector The vector to compare equality. + * @param {Vector|number[]} vector The vector to compare equality. */ - eql(vector: Vector|Array): boolean; + eql(vector: Vector|number[]): boolean; /** * Returns a copy of the vector. @@ -197,16 +197,16 @@ interface Vector { /** * Returns the result of adding the argument to the vector. * - * @param {Vector|Array} vector The vector. + * @param {Vector|number[]} vector The vector. */ - add(vector: Vector|Array): Vector; + add(vector: Vector|number[]): Vector; /** * Returns the result of subtracting the argument from the vector. * - * @param {Vector|Array} vector The vector. + * @param {Vector|number[]} vector The vector. */ - subtract(vector: Vector|Array): Vector; + subtract(vector: Vector|number[]): Vector; /** * Returns the result of multiplying the elements of the vector by the argument. @@ -225,16 +225,16 @@ interface Vector { /** * Returns the scalar product of the vector with the argument. Both vectors must have equal dimensionality. * - * @param: {Vector|Array} vector The other vector. + * @param: {Vector|number[]} vector The other vector. */ - dot(vector: Vector|Array): number; + dot(vector: Vector|number[]): number; /** * Returns the vector product of the vector with the argument. Both vectors must have dimensionality 3. * - * @param {Vector|Array} vector The other vector. + * @param {Vector|number[]} vector The other vector. */ - cross(vector: Vector|Array): Vector; + cross(vector: Vector|number[]): Vector; /** * Returns the (absolute) largest element of the vector. @@ -316,16 +316,16 @@ interface Vector { /** * Set vector's elements from an array. * - * @param {Vector|Array} els The elements. + * @param {Vector|number[]} els The elements. */ - setElements(els: Vector|Array): Vector; + setElements(els: Vector|number[]): Vector; } interface Matrix { /** * Gets a nested array containing the matrix's elements. */ - elements: Array>; + elements: Array; /** * Returns element (i,j) of the matrix. * @@ -541,9 +541,9 @@ interface Matrix { * Set the matrix's elements from an array. If the argument passed is a vector, the resulting matrix * will be a single column. * - * @param {Array|Array>|Vector|Matrix} matrix The elements. + * @param {number[]|Array|Vector|Matrix} matrix The elements. */ - setElements(matrix: Array|Array>|Vector|Matrix): Matrix; + setElements(matrix: number[]|Array|Vector|Matrix): Matrix; } interface Line { @@ -572,9 +572,9 @@ interface Line { /** * Returns the result of translating the line by the given vector/array. * - * @param {Vector|Array} vector The translation vector. + * @param {Vector|number[]} vector The translation vector. */ - translate(vector: Vector|Array): Line; + translate(vector: Vector|number[]): Line; /** * Returns true if the line is parallel to the argument. Here, 'parallel to' means that the argument's @@ -648,10 +648,10 @@ interface Line { /** * Set the line's anchor point and direction. * - * @param {Array|Vector} anchor The anchor vector. - * @param {Array|Vector} direction The direction vector. + * @param {number[]|Vector} anchor The anchor vector. + * @param {number[]|Vector} direction The direction vector. */ - setVectors(anchor: Array|Vector, direction: Array|Vector): Line; + setVectors(anchor: number[]|Vector, direction: number[]|Vector): Line; } interface Plane { @@ -680,9 +680,9 @@ interface Plane { /** * Returns the result of translating the plane by the given vector. * - * @param {Array|Vector} vector The translation vector. + * @param {number[]|Vector} vector The translation vector. */ - translate(vector: Array|Vector): Plane; + translate(vector: number[]|Vector): Plane; /** * Returns true if the plane is parallel to the argument. Will return true if the planes are equal, @@ -759,20 +759,20 @@ interface Plane { /** * Sets the anchor point and normal to the plane. Normal vector is normalised before storage. * - * @param {Array|Vector} anchor The anchor vector. - * @param {Array|Vector} normal The normal vector. + * @param {number[]|Vector} anchor The anchor vector. + * @param {number[]|Vector} normal The normal vector. */ - setVectors(anchor: Array|Vector, normal: Array|Vector): Plane; + setVectors(anchor: number[]|Vector, normal: number[]|Vector): Plane; /** * Sets the anchor point and normal to the plane. The normal is calculated by assuming the three points * should lie in the same plane. Normal vector is normalised before storage. * - * @param {Array|Vector} anchor The anchor vector. - * @param {Array|Vector} v1 The first direction vector. - * @param {Array|Vector} v2 The second direction vector. + * @param {number[]|Vector} anchor The anchor vector. + * @param {number[]|Vector} v1 The first direction vector. + * @param {number[]|Vector} v2 The second direction vector. */ - setVectors(anchor: Array|Vector, v1: Array|Vector, v2: Array|Vector): Plane; + setVectors(anchor: number[]|Vector, v1: number[]|Vector, v2: number[]|Vector): Plane; } declare namespace Sylvester { @@ -790,36 +790,36 @@ declare var Plane: Sylvester.PlaneStatic; * * @param {Vector|Array): Vector; +declare function $V(elements: Vector|number[]): Vector; /** * Constructor function. * -* @param {Array|Array>|Vector|Matrix} elements The elements. +* @param {number[]|Array|Vector|Matrix} elements The elements. */ -declare function $M(elements: Array|Array>|Vector | Matrix): Matrix; +declare function $M(elements: number[]|Array|Vector | Matrix): Matrix; /** * Constructor function. * -* @param Array|Vector anchor The anchor vector. -* @param Array|Vector direction The direction vector. +* @param number[]|Vector anchor The anchor vector. +* @param number[]|Vector direction The direction vector. */ -declare function $L(anchor: Array|Vector, direction: Array|Vector): Line; +declare function $L(anchor: number[]|Vector, direction: number[]|Vector): Line; /** * Constructor function. * -* @param {Array|Vector} anchor The anchor vector. -* @param {Array|Vector} normal The normal vector. +* @param {number[]|Vector} anchor The anchor vector. +* @param {number[]|Vector} normal The normal vector. */ -declare function $P(anchor: Array|Vector, normal: Array|Vector): Plane; +declare function $P(anchor: number[]|Vector, normal: number[]|Vector): Plane; /** * Constructor function. * - * @param {Array|Vector} anchor The anchor vector. - * @param {Array|Vector} v1 The first direction vector. - * @param {Array|Vecotr} v2 The second direction vector. + * @param {number[]|Vector} anchor The anchor vector. + * @param {number[]|Vector} v1 The first direction vector. + * @param {number[]|Vecotr} v2 The second direction vector. */ -declare function $P(anchor: Array|Vector, v1: Array|Vector, v2: Array|Vector): Plane; \ No newline at end of file +declare function $P(anchor: number[]|Vector, v1: number[]|Vector, v2: number[]|Vector): Plane; \ No newline at end of file diff --git a/systemjs/index.d.ts b/systemjs/index.d.ts index 20cc5883ed..e32994cbd1 100644 --- a/systemjs/index.d.ts +++ b/systemjs/index.d.ts @@ -6,7 +6,7 @@ declare namespace SystemJSLoader { - type ModulesList = { [bundleName: string]: Array }; + type ModulesList = { [bundleName: string]: string[] }; type PackageList = { [packageName: string]: T }; @@ -49,7 +49,7 @@ declare namespace SystemJSLoader { * Dependencies to load before this module. Goes through regular paths and map normalization. * Only supported for the cjs, amd and global formats. */ - deps?: Array; + deps?: string[]; /** * A map of global names to module names that should be defined only for the execution of this module. @@ -231,7 +231,7 @@ declare namespace SystemJSLoader { interface SystemJSSystemFields { env: string; loaderErrorStack: boolean; - packageConfigPaths: Array; + packageConfigPaths: string[]; pluginFirst: boolean; version: string; warnings: boolean; @@ -292,15 +292,15 @@ declare namespace SystemJSLoader { /** * Declaration function for defining modules of the System.register polyfill module format. */ - register(name: string, deps: Array, declare: Function): void; - register(deps: Array, declare: Function): void; + register(name: string, deps: string[], declare: Function): void; + register(deps: string[], declare: Function): void; /** * Companion module format to System.register for non-ES6 modules. * Provides a