This commit is contained in:
Andy Hanson
2016-11-28 11:18:27 -08:00
parent 89fa98a712
commit e59de0ca36
258 changed files with 2623 additions and 3982 deletions
+11 -11
View File
@@ -55,11 +55,11 @@ declare namespace AltJS {
export interface SourceModel<S> {
local(state: any, ...args: any[]): any;
remote(state: any, ...args: any[]): Promise<S>;
shouldFetch?(fetchFn: (...args: Array<any>) => 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<any>, ...args: Array<any>): any;
interceptResponse?(response: any, action: Action<any>, ...args: any[]): any;
}
export interface AltStore<S> {
@@ -85,8 +85,8 @@ declare namespace AltJS {
}
export interface ActionsClass {
generateActions?( ...action: Array<string>): void;
dispatch( ...payload: Array<any>): 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<StateTransform>;
batchingFunction?: (callback: ( ...data: Array<any>) => any) => void;
batchingFunction?: (callback: ( ...data: any[]) => any) => void;
}
class Alt {
constructor(config?: AltConfig);
actions: Actions;
bootstrap(jsonData: string): void;
takeSnapshot( ...storeNames: Array<string>): string;
takeSnapshot( ...storeNames: string[]): string;
flush(): Object;
recycle( ...stores: Array<AltJS.AltStore<any>>): void;
rollback(): void;
@@ -113,8 +113,8 @@ declare namespace AltJS {
//Actions methods
addActions(actionsName: string, ActionsClass: ActionsClassConstructor): void;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object): T;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: Array<any>): T;
generateActions<T>( ...actions: Array<string>): T;
createActions<T>(ActionsClass: ActionsClassConstructor, exportObj?: Object, ...constructorArgs: any[]): T;
generateActions<T>( ...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>) => any;
type ExportConfig = {[key: string]: (...args: Array<any>) => 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<AltJS.AltStore<any>>;
inject?: {[key: string]: any};
actions?: {[key: string]: Object};
render?: (...props: Array<any>) => React.ReactElement<any>;
render?: (...props: any[]) => React.ReactElement<any>;
flux?: AltJS.Alt;
transform?: (store: AltJS.AltStore<any>, actions: any) => any;
shouldComponentUpdate?: (props: any) => boolean;
+1 -1
View File
@@ -48,7 +48,7 @@ declare namespace angular.environment {
/**
* Map of domains to their environments
*/
domains: { [environment: string]: Array<string> };
domains: { [environment: string]: string[] };
/**
* List of variables split by environment
*/
+6 -6
View File
@@ -19,9 +19,9 @@ declare module 'angular-es' {
interface ngESDecorator extends ClassDecorator, MethodDecorator {
(target: Object|Function,
ngName?: string,
ngArguments?: Array<any>,
ngArguments?: any[],
ngType?: string,
injectAsProperty?: Array<string>): void;
injectAsProperty?: string[]): void;
}
/**
@@ -109,20 +109,20 @@ declare module 'angular-es' {
/**
* Add $inject property to target
*
* @param {Array<string>} dependencies - dependencies to inject
* @param {string[]} dependencies - dependencies to inject
*
* @returns {ngESDecorator} - decorated class
*/
function Inject(...dependencies: Array<string>): ngESDecorator;
function Inject(...dependencies: string[]): ngESDecorator;
/**
* Inject dependencies as properties to target
*
* @param {Array<string>} dependencies - dependencies to inject
* @param {string[]} dependencies - dependencies to inject
*
* @returns {ngESDecorator} - decorated class
*/
function InjectAsProperty(...dependencies: Array<string>): ngESDecorator;
function InjectAsProperty(...dependencies: string[]): ngESDecorator;
/**
* Attach target to the specified module
+3 -3
View File
@@ -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<string>, 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<string>, 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<string>;
allowIn?: string[];
persistent?: boolean;
}
}
+4 -4
View File
@@ -29,15 +29,15 @@ declare module 'angular' {
setDriver(name: string | string[]): angular.IPromise<void>;
setItem(key: string, value: any): angular.IPromise<void>;
setItem(keys: Array<string>, values: Array<any>): angular.IPromise<void>;
setItem(keys: string[], values: any[]): angular.IPromise<void>;
getItem(key: string): angular.IPromise<any>;
getItem(keys: Array<string>): angular.IPromise<Array<any>>;
getItem(keys: string[]): angular.IPromise<any[]>;
removeItem(key: string | Array<string>): angular.IPromise<void>;
removeItem(key: string | string[]): angular.IPromise<void>;
pull(key: string): angular.IPromise<any>;
pull(keys: Array<string>): angular.IPromise<Array<any>>;
pull(keys: string[]): angular.IPromise<any[]>;
clear(): angular.IPromise<void>;
+4 -4
View File
@@ -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<string>, 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<string>;
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<string>): 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<string>, defaultValue?: any): any;
pull(key: string | string[], defaultValue?: any): any;
/**
* Bind a storage key to a $scope property
*
+4 -4
View File
@@ -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> | 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> | 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> | 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> | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean;
when(list: string[] | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean;
}
}
}
+4 -4
View File
@@ -73,7 +73,7 @@ declare namespace angular.permission {
*/
defineRole(
role: string,
permissions: Array<string>,
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<string>): 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<string> | angular.IPromise<any>;
except?: (() => void) | Array<string> | angular.IPromise<any>;
only?: (() => void) | string[] | angular.IPromise<any>;
except?: (() => void) | string[] | angular.IPromise<any>;
redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | {[index: string]: PermissionRedirectConfigation}
};
}
+5
View File
@@ -183,8 +183,13 @@ declare module 'angular' {
export interface DataWithPermissions {
permissions?: {
<<<<<<< 031c230832f552d889e1df6834530c0218a336bb
only?: (() => void) | string | string[] | angular.IPromise<any>;
except?: (() => void) | string | string[] | angular.IPromise<any>;
=======
only?: (() => void) | string[] | angular.IPromise<any>;
except?: (() => void) | string[] | angular.IPromise<any>;
>>>>>>> WIP
redirectTo: string | (() => string) | (() => PermissionRedirectConfigation) | { [index: string]: PermissionRedirectConfigation }
};
}
+1 -1
View File
@@ -199,7 +199,7 @@ declare module 'angular' {
declare global {
interface Array<T> {
/** the promise of the original server interaction that created this collection. **/
$promise: angular.IPromise<Array<T>>;
$promise: angular.IPromise<T[]>;
$resolved: boolean;
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ declare namespace ngSignalr {
/**
* String array of server side methods which the client can call
*/
methods?: Array<string>;
methods?: string[];
/**
* Sets the root path for the SignalR web service
+1 -1
View File
@@ -36,7 +36,7 @@ declare module 'angular' {
}
interface ITranslatePartialLoaderService extends IPartialLoader<ITranslatePartialLoaderService> {
getRegisteredParts(): Array<string>;
getRegisteredParts(): string[];
isPartLoaded(name: string, lang: string): boolean;
}
+2 -2
View File
@@ -616,7 +616,7 @@ declare module 'angular' {
*
* @default: ["one", "two", "three", "four", "five"]
*/
titles?: Array<string>;
titles?: string[];
}
@@ -647,7 +647,7 @@ declare module 'angular' {
*
* @default null
*/
meridians?: Array<string>;
meridians?: string[];
/**
* Whether the user can type inside the hours & minutes input.
+1 -1
View File
@@ -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<T>) => any): void;
get(index: number, count: number, success: (results: T[]) => any): void;
}
interface IScrollAdapter {
+2 -2
View File
@@ -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<T>;
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<T>;
sourceModel: T[];
/**
* Can be called inside the `update` callback, in order to prevent/revert a sorting.
+1 -1
View File
@@ -122,7 +122,7 @@ declare namespace angular {
fromJson(json: string): any;
identity<T>(arg?: T): T;
injector(modules?: any[], strictDi?: boolean): auto.IInjectorService;
isArray(value: any): value is Array<any>;
isArray(value: any): value is any[];
isDate(value: any): value is Date;
isDefined(value: any): boolean;
isElement(value: any): boolean;
+3 -3
View File
@@ -122,7 +122,7 @@ declare namespace ng.resource {
/**
* Really just a regular Array object with $promise and $resolve attached to it
*/
interface IResourceArray<T> extends Array<T> {
interface IResourceArray<T> extends T[] {
/** the promise of the original server interaction that created this collection. **/
$promise: ng.IPromise<IResourceArray<T>>;
$resolved: boolean;
@@ -144,8 +144,8 @@ declare namespace ng {
}
}
interface Array<T> {
interface T[] {
/** the promise of the original server interaction that created this collection. **/
$promise: ng.IPromise<Array<T>>;
$promise: ng.IPromise<T[]>;
$resolved: boolean;
}
+1 -1
View File
@@ -179,6 +179,6 @@ declare namespace angular {
interface Array<T> {
/** the promise of the original server interaction that created this collection. **/
$promise: angular.IPromise<Array<T>>;
$promise: angular.IPromise<T[]>;
$resolved: boolean;
}
+50 -50
View File
@@ -242,9 +242,9 @@ declare namespace Antd {
/** 可选项数据源*/
options: Object;
/** 默认的选中项*/
defaultValue?: Array<any>;
defaultValue?: any[];
/** 指定选中项*/
value?: Array<any>;
value?: any[];
/** 选择完成后的回调*/
onChange?: Function;
/** 选择后展示的渲染函数*/
@@ -296,11 +296,11 @@ declare namespace Antd {
interface CheckboxGroupProps {
/** 默认选中的选项*/
defaultValue?: Array<any>;
defaultValue?: any[];
/** 指定选中的选项*/
value?: Array<any>;
value?: any[];
/** 指定可选项*/
options?: Array<any>;
options?: any[];
/** 变化时回调函数*/
onChange?: Function;
}
@@ -328,9 +328,9 @@ declare namespace Antd {
interface CollapseProps {
/** 当前激活 tab 面板的 key*/
activeKey?: Array<any> | string;
activeKey?: any[] | string;
/** 初始化选中面板的key */
defaultActiveKey?: Array<string>;
defaultActiveKey?: string[];
/** 切换面板的回调*/
onChange?: Function;
@@ -415,7 +415,7 @@ declare namespace Antd {
interface DropdownProps {
/** 触发下拉的行为 ['click'] or ['hover']*/
trigger?: Array<string>;
trigger?: string[];
/** 菜单节点*/
overlay: React.ReactNode;
@@ -487,7 +487,7 @@ declare namespace Antd {
// function create
type CreateFormOptions = {
/** 获取一组输入控件的值,如不传入参数,则获取全部组件的值*/
getFieldsValue(): (fieldNames?: Array<string>) => any;
getFieldsValue(): (fieldNames?: string[]) => any;
/** 获取一个输入控件的值*/
getFieldValue(): (fieldName: string) => any;
/** 设置一组输入控件的值*/
@@ -495,15 +495,15 @@ declare namespace Antd {
/** 设置一组输入控件的值*/
setFields(): (obj: Object) => void;
/** 校验并获取一组输入域的值与 Error*/
validateFields(): (fieldNames?: Array<string>, 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<string>, 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<string>) => 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<any>,
rules?: any[],
/** 必填输入控件唯一标志*/
id?: string
}) => Array<any>;
}) => any[];
};
interface ComponentDecorator {
@@ -552,7 +552,7 @@ declare namespace Antd {
/**
* 当 `Form.Item` 子节点的值发生改变时触发,可以把对应的值转存到 Redux store
*/
onFieldsChange?: (props: Object, fields: Array<any>) => 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<string>;
selectedKeys?: string[];
/** 初始选中的菜单项 key 数组*/
defaultSelectedKeys?: Array<string>;
defaultSelectedKeys?: string[];
/** 当前展开的菜单项 key 数组*/
openKeys?: Array<string>;
openKeys?: string[];
/** 初始展开的菜单项 key 数组*/
defaultOpenKeys?: Array<string>;
defaultOpenKeys?: string[];
/**
* 被选中时调用
*
* @type {(item: any, key: string, selectedKeys: Array<string>) => void}
* @type {(item: any, key: string, selectedKeys: string[]) => void}
*/
onSelect?: (item: any, key: string, selectedKeys: Array<string>) => void;
onSelect?: (item: any, key: string, selectedKeys: string[]) => void;
/** 取消选中时调用*/
onDeselect?: (item: any, key: string, selectedKeys: Array<string>) => 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<number>;
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<string>;
type?: string | string[];
/** 配置动画参数 如 `{opacity:[1, 0],translateY:[0, -30]}` 具体参考 [velocity](http://julian.com/research/velocity) 的写法*/
animConfig?: Object | Array<any>;
animConfig?: Object | any[];
/** 整个动画的延时,以毫秒为单位*/
delay?: number | Array<any>;
delay?: number | any[];
/** 每个动画的时间,以毫秒为单位*/
duration?: number | Array<any>;
duration?: number | any[];
/** 每个动画的间隔时间,以毫秒为单位*/
interval?: number | Array<any>;
interval?: number | any[];
/** 出场时是否倒放,从最后一个 dom 开始往上播放 */
leaveReverse?: boolean;
/** 动画的缓动函数,[查看详细](http://julian.com/research/velocity/#easing)*/
ease?: string | Array<any>;
ease?: string | any[];
/** 进出场动画进行中的类名*/
animatingClassName?: Array<string>;
animatingClassName?: string[];
/** QueueAnim 替换的标签名*/
component?: string;
}
@@ -1235,9 +1235,9 @@ declare namespace Antd {
interface SelectProps {
/** 指定当前选中的条目*/
value?: string | Array<any>;
value?: string | any[];
/** 指定默认选中的条目*/
defaultValue?: string | Array<any>;
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<number>;
value?: number | number[];
/** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/
defaultValue?: number | Array<number>;
defaultValue?: number | number[];
/** `marks` 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列*/
included?: boolean;
/** 值为 `true` 时,滑块为禁用状态*/
@@ -1432,7 +1432,7 @@ declare namespace Antd {
checkbox,
radio
}
type SelectedRowKeys = Array<any>;
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<any>;
filters?: any[];
/** 本地模式下,确定筛选的运行函数*/
onFilter?: Function;
/** 是否多选*/
@@ -1473,7 +1473,7 @@ declare namespace Antd {
/** 正常或迷你类型 : `default` or `small` */
size?: string;
/** 数据数组*/
dataSource: Array<any>;
dataSource: any[];
/** 表格列的配置描述*/
columns: Columns;
/** 表格行 key 的取值*/
@@ -1481,7 +1481,7 @@ declare namespace Antd {
/** 额外的展开行*/
expandedRowRender?: Function;
/** 默认展开的行*/
defaultExpandedRowKeys?: Array<string>;
defaultExpandedRowKeys?: string[];
/** 分页、排序、筛选变化时触发*/
onChange?: (pagination: Object, filters: any, sorter: any) => void;
/** 页面是否加载中*/
@@ -1699,11 +1699,11 @@ declare namespace Antd {
// Transfer
interface TransferProps {
/** 数据源*/
dataSource: Array<any>;
dataSource: any[];
/** 每行数据渲染函数*/
render?: (record: Object) => any;
/** 显示在右侧框数据的key集合*/
targetKeys: Array<string>;
targetKeys: string[];
/** 变化时回调函数*/
onChange?: (targetKeys: any, direction: string, moveKeys: any) => void;
/** 两个穿梭框的自定义样式*/
@@ -1711,9 +1711,9 @@ declare namespace Antd {
/** 自定义类*/
className?: string;
/** 标题集合,顺序从左至右*/
titles?: Array<string>;
titles?: string[];
/** 操作文案集合,顺序从上至下*/
operations?: Array<string>;
operations?: string[];
/** 是否显示搜索框*/
showSearch?: boolean;
/** 搜索框的默认值*/
@@ -1761,17 +1761,17 @@ declare namespace Antd {
/** 默认展开所有树节点*/
defaultExpandAll?: boolean;
/** 默认展开指定的树节点*/
defaultExpandedKeys?: Array<string>;
defaultExpandedKeys?: string[];
/** (受控)展开指定的树节点*/
expandedKeys?: Array<string>;
expandedKeys?: string[];
/** (受控)选中复选框的树节点*/
checkedKeys?: Array<string>;
checkedKeys?: string[];
/** 默认选中复选框的树节点*/
defaultCheckedKeys?: Array<string>;
defaultCheckedKeys?: string[];
/** (受控)设置选中的树节点*/
selectedKeys?: Array<string>;
selectedKeys?: string[];
/** 默认选中的树节点*/
defaultSelectedKeys?: Array<string>;
defaultSelectedKeys?: string[];
/** 展开/收起节点时触发 */
onExpand?: (node: any, expanded: any, expandedKeys: any) => void;
/** 点击复选框触发*/
@@ -1830,9 +1830,9 @@ declare namespace Antd {
interface TreeSelectProps {
style?: Object;
/** 指定当前选中的条目*/
value?: string | Array<any>;
value?: string | any[];
/** 指定默认选中的条目*/
defaultValue?: string | Array<any>;
defaultValue?: string | any[];
/** 支持多选*/
multiple?: boolean;
/** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/
+20 -20
View File
@@ -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<any>): 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<number>;
sphereCenter: number[];
sphereRadius: number;
boxMinimum: Array<number>;
boxMaximum: Array<number>;
boxMinimum: number[];
boxMaximum: number[];
worldMatrixFromCache: any;
subMeshes: Array<SerializedSubMesh>;
checkCollisions: boolean;
@@ -2174,10 +2174,10 @@ declare namespace BABYLON {
indexStart: number;
indexCount: number;
hasMaterial: boolean;
sphereCenter: Array<number>;
sphereCenter: number[];
sphereRadius: number;
boxMinimum: Array<number>;
boxMaximum: Array<number>;
boxMinimum: number[];
boxMaximum: number[];
}
interface SerializedGeometry {
id: string;
@@ -2190,9 +2190,9 @@ declare namespace BABYLON {
payload: InitPayload | CollidePayload | UpdatePayload;
}
interface SerializedColliderToWorker {
position: Array<number>;
velocity: Array<number>;
radius: Array<number>;
position: number[];
velocity: number[];
radius: number[];
}
enum WorkerTaskType {
INIT = 0,
@@ -2205,7 +2205,7 @@ declare namespace BABYLON {
payload?: any;
}
interface CollisionReplyPayload {
newPosition: Array<number>;
newPosition: number[];
collisionId: number;
collidedMeshUniqueId: number;
}
@@ -2224,8 +2224,8 @@ declare namespace BABYLON {
updatedGeometries: {
[s: string]: SerializedGeometry;
};
removedMeshes: Array<number>;
removedGeometries: Array<string>;
removedMeshes: number[];
removedGeometries: string[];
}
enum WorkerReplyType {
SUCCESS = 0,
@@ -4673,7 +4673,7 @@ declare namespace BABYLON {
class DecimationTriangle {
vertices: Array<DecimationVertex>;
normal: Vector3;
error: Array<number>;
error: number[];
deleted: boolean;
isDirty: boolean;
borderFactor: number;
@@ -4688,16 +4688,16 @@ declare namespace BABYLON {
isBorder: boolean;
triangleStart: number;
triangleCount: number;
originalOffsets: Array<number>;
originalOffsets: number[];
constructor(position: Vector3, id: any);
updatePosition(newPosition: Vector3): void;
}
class QuadraticMatrix {
data: Array<number>;
constructor(data?: Array<number>);
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<number>): 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<T> {
data: Array<T>;
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<any>;
static MakeArray(obj: any, allowsNullUndefined?: boolean): any[];
static GetPointerPrefix(): string;
static QueueNewFrame(func: any): void;
static RequestFullscreen(element: any): void;
+6 -6
View File
@@ -20,7 +20,7 @@ declare namespace BabyParse {
*/
unparse(data: Array<Object>, config?: UnparseConfig): string;
unparse(data: Array<Array<any>>, config?: UnparseConfig): string;
unparse(data: Array<any[]>, 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<string>;
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<any>;
data: string | Array<any>;
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<string>; // 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<any>;
data: any[];
errors: Array<ParseError>;
meta: ParseMeta;
}
+1 -1
View File
@@ -36,7 +36,7 @@ declare namespace BetterCurryModule {
export interface BetterCurry {
predefine: <T extends Function>(fn: T, args: any[], context?: Object, len?: number, checkArguments?: boolean) => OriginalFunctionReminder<T>;
wrap: <T extends Function>(fn: T, context?: Object, len?: number, checkArguments?: boolean) => OriginalFunctionReminder<T>;
flatten: (...args: Array<Array<any>|any>) => any[];
flatten: (...args: (any[]|any)[]) => any[];
delegate: <T>(proto: T, target: string) => Delegate<T>;
MAX_OPTIMIZED: number;
}
+1 -1
View File
@@ -7,7 +7,7 @@
// For answers, fixes and cutting edge version please see development repository.
declare namespace BigInt {
export interface BigInt extends Array<number> {
export interface BigInt extends number[] {
}
export interface IRandom {
+5 -5
View File
@@ -242,8 +242,8 @@ declare namespace Microsoft.Maps.Directions {
maneuver: Maneuver;
maneuverImageName: string;
monetaryCost: number;
postIntersectionHints: Array<string>;
preIntersectionHings: Array<string>;
postIntersectionHints: string[];
preIntersectionHings: string[];
startStopName: string;
transitLine: TransitLine;
transitStepIcon: string;
@@ -384,9 +384,9 @@ declare namespace Microsoft.Maps.Directions {
}
export interface RoutePath {
decodedLatitudes: Array<number>;
decodedLongitudes: Array<number>;
decodedRegions: Array<any>;
decodedLatitudes: number[];
decodedLongitudes: number[];
decodedRegions: any[];
}
export interface RouteSummary {
+2 -2
View File
@@ -41,12 +41,12 @@ declare namespace Microsoft.Maps.VenueMaps {
export interface Floor {
name: string;
primitives: Array<Primitive>;
zoomRange: Array<number>;
zoomRange: number[];
}
export interface Footprint {
polygons: Array<Polygon>;
zoomRange: Array<number>;
zoomRange: number[];
}
export interface Metadata {
+3 -3
View File
@@ -108,8 +108,8 @@ declare namespace Microsoft.Maps {
focus(): void;
getBounds(): LocationRect;
getCenter(): Location;
getCopyrights(callback: (copyrights: Array<string>) => void): void;
getCredentials(callback: (credentials: Array<string>) => 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<string>;
styleURLS?: string[];
culture?: string;
homeRegion?: string;
}
+12 -12
View File
@@ -13,7 +13,7 @@ interface Array<T> {
declare namespace BlissNS {
export type BlissDecoratedElement<T> = Element & T;
export type BlissDecoratedArrayElement<T> = Array<T> & BlissNS.BlissCollectionArray<T>;
export type BlissDecoratedArrayElement<T> = T[] & BlissNS.BlissCollectionArray<T>;
interface BlissStatic {
<T>(selector: string, context?: Element): BlissDecoratedElement<T>;
@@ -129,8 +129,8 @@ declare namespace BlissNS {
create<T>(...args: any[]): BlissDecoratedElement<T>;
set<T>(subject: BlissDecoratedElement<T>, options: Object): BlissDecoratedElement<T>;
contents<T>(subject: BlissDecoratedElement<T> , elements: Object | Array<any> | string | Number | Node): BlissDecoratedElement<T>;
contents<T>(subject: BlissDecoratedElement<T>[], elements: Object | Array<any> | string | Number | Node): BlissDecoratedElement<T>[];
contents<T>(subject: BlissDecoratedElement<T> , elements: Object | any[] | string | Number | Node): BlissDecoratedElement<T>;
contents<T>(subject: BlissDecoratedElement<T>[], elements: Object | any[] | string | Number | Node): BlissDecoratedElement<T>[];
clone<T>(subject: BlissDecoratedElement<T>): BlissDecoratedElement<T>;
after<T>(subject: BlissDecoratedElement<T>, element: Element): BlissDecoratedElement<T>;
around<T>(subject: BlissDecoratedElement<T>, element: Element): BlissDecoratedElement<T>;
@@ -160,8 +160,8 @@ declare namespace BlissNS {
remove(subject: Element | BlissStatic): void;
all(array: Array<any>, method: string, ...args: Array<any>): Array<any>;
all<T>(array: Array<T>, method: string, ...args: Array<any>): Array<T>;
all(array: any[], method: string, ...args: any[]): any[];
all<T>(array: T[], method: string, ...args: any[]): T[];
Class<T>(options: {
constructor?: Function;
@@ -233,8 +233,8 @@ declare namespace BlissNS {
include(condition: any, url: string ): Promise<void>;
include(url: string ): Promise<void>;
add(name: string, callback: Function, on?: BlissStatic | BlissStaticCollection | Element | Array<any>): void;
add(callbacks: {[callbackName: string]: Function}, on?: BlissStatic | BlissStaticCollection | Element | Array<any>): 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 {
<T>(selector: string, context?: Element): BlissDecoratedArrayElement<T>;
<T>(expr: Object, context?: Element): Array<T>;
<T>(expr: Object, context?: Element): T[];
(expr: Window, context?: Element): [Window];
(expr: Node, context?: Element): [Node];
}
@@ -613,7 +613,7 @@ declare namespace BlissNS {
interface BlissBindedElement<T> extends BlissNativeExtentions<T> {
set(options: Object): BlissDecoratedElement<T>;
contents(elements: Object | Array<any> | string | Number | Node): BlissDecoratedElement<T>;
contents(elements: Object | any[] | string | Number | Node): BlissDecoratedElement<T>;
clone(): BlissDecoratedElement<T>;
after(element: Element): BlissDecoratedElement<T>;
around(element: Element): BlissDecoratedElement<T>;
@@ -635,13 +635,13 @@ declare namespace BlissNS {
}
interface BlissBindedArray<T> {
all(method: string, ...args: Array<any>): Array<any>;
all<T>(method: string, ...args: Array<any>): Array<T>;
all(method: string, ...args: any[]): any[];
all<T>(method: string, ...args: any[]): T[];
}
interface BlissCollectionArray<T> {
set(options: Object): BlissCollectionArray<T>;
contents(elements: Object | Array<any> | string | Number | Node): BlissCollectionArray<T>;
contents(elements: Object | any[] | string | Number | Node): BlissCollectionArray<T>;
clone(): BlissCollectionArray<T>;
after(element: Element): BlissCollectionArray<T>;
around(element: Element): BlissCollectionArray<T>;
@@ -49,7 +49,7 @@ export interface DatetimepickerOptions {
useStrict?: boolean;
direction?: string;
sideBySide?: boolean;
daysOfWeekDisabled?: Array<number>;
daysOfWeekDisabled?: number[];
calendarWeeks?: boolean;
format?: string | boolean;
locale?: string;
+12 -12
View File
@@ -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<number>;
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<number>): 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<string | Date | moment.Moment>): void;
/**Returns the options.disabledHours option.
* NOTES: probably should be: disabledHours(): boolean | Array<number>; 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<number>): 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": [<moment.Moment1>, <moment.Moment2>], "1": [...] }
@@ -142,16 +142,16 @@ export interface Datetimepicker {
*/
enabledDates(dates: boolean | Array<string | Date | moment.Moment>): void;
/**Returns the options.enabledHours option.
* NOTES: probably should be: enabledHours(): boolean | Array<number>; 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<number>): void;
enabledHours(value: boolean | number[]): void;
/**Returns a boolean or array with the options.extraFormats option configuration */
extraFormats(): boolean | Array<string>;
extraFormats(): boolean | string[];
/**Takes an array of valid input moment format options, or boolean:false */
extraFormats(formats: boolean | Array<string>): 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<number> | 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<number> | 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<number>;
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<string>;
extraFormats?: boolean | string[];
/**If false, the textbox will not be given focus when the picker is shown
* @default: true
*/
+1 -1
View File
@@ -480,7 +480,7 @@ declare class ByteBuffer {
* ] : markedOffset and limit,
* ! : offset, markedOffset and limit
*/
toDebug( columns?: boolean ): string | Array<string>
toDebug( columns?: boolean ): string | string[]
/**
* Encodes this ByteBuffer's contents to a hex encoded string.
+23 -23
View File
@@ -17,7 +17,7 @@ declare namespace c3 {
ids: ArrayOrString;
}
type ArrayOrString = Array<string> | string;
type ArrayOrString = string[] | string;
interface ChartConfiguration {
/**
@@ -63,7 +63,7 @@ declare namespace c3 {
/**
* Set custom color pattern.
*/
pattern?: Array<string>;
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<string>; };
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<Array<string>>;
groups?: Array<string[]>;
/**
* 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<string>;
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<string>;
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<number> | (() => Array<number>);
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<number>;
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<number> | Array<string>;
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<number>;
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<string>; }
keys?: { x?: string; value: string[]; }
rows?: Array<PrimitiveArray>;
columns?: Array<PrimitiveArray>;
classes?: { [key: string]: string };
categories?: Array<string>;
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<string>; }
keys?: { x?: string; value: string[]; }
rows?: Array<PrimitiveArray>;
columns?: Array<PrimitiveArray>;
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<string>, indices?: Array<number>, 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<string>, indices?: Array<number>): 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<Array<string>>): void;
groups(groups: Array<string[]>): 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<any>): 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<any> | 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<any>;
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<string>): Array<string>;
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<number>): Array<number>;
(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<any>): 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<any> | 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.
+5 -5
View File
@@ -211,7 +211,7 @@ declare namespace CacheFactory {
* Return the keys of all items in the cache as an array.
* @returns []
*/
keys(): Array<string>;
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<any>
* @returns any[]
*/
values(): Array<any>;
values(): any[];
}
export interface ICacheFactory {
@@ -331,9 +331,9 @@ declare namespace CacheFactory {
/**
* Return the ids of all registered caches as an array.
* @returns Array<string>
* @returns string[]
*/
keys(): Array<string>;
keys(): string[];
/**
* Destroy the cache with the given cacheId.
+3 -3
View File
@@ -87,7 +87,7 @@ interface CashStatic {
* @argument collection Array, callback Function
* @return Array
*/
each(collection: Array<any>, callback: Function): Array<any>;
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<string>, 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<string>, delegate: any, callback?: Function, runOnce?: boolean): Cash;
one(eventName: string|string[], delegate: any, callback?: Function, runOnce?: boolean): Cash;
/**
* outerHeight
+26 -26
View File
@@ -64,7 +64,7 @@ export namespace policies {
interface TokenAwarePolicy extends LoadBalancingPolicy { }
interface WhiteListPolicyStatic {
new (childPolicy: LoadBalancingPolicy, whiteList: Array<string>): WhiteListPolicy;
new (childPolicy: LoadBalancingPolicy, whiteList: string[]): WhiteListPolicy;
}
interface WhiteListPolicy extends LoadBalancingPolicy { }
@@ -237,11 +237,11 @@ export namespace types {
}
interface IntegerStatic {
new (bits: Array<number>, sign: number): Integer;
new (bits: number[], sign: number): Integer;
fromInt(value: number): Integer;
fromNumber(value: number): Integer;
fromBits(bits: Array<number>): 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<string>,
warnings: string[],
customPayload: any
};
rows: Array<Row>;
@@ -376,7 +376,7 @@ export namespace types {
interface Row {
get(columnName: string | number): { [key: string]: any; };
values(): Array<{ [key: string]: any; }>;
keys(): Array<string>;
keys(): string[];
forEach(callback: Callback): void;
}
@@ -398,19 +398,19 @@ export namespace types {
}
interface TupleStatic {
new (...args: Array<any>): Tuple;
new (...args: any[]): Tuple;
fromArray(elements: Array<any>): Tuple;
fromArray(elements: any[]): Tuple;
}
interface Tuple {
elements: Array<any>;
elements: any[];
length: number;
get(index: number): any;
toString(): string;
toJSON(): string;
values(): Array<any>;
values(): any[];
}
interface UuidStatic {
@@ -437,7 +437,7 @@ export var HostMap: HostMapStatic;
export var Encoder: EncoderStatic;
export interface ClientOptions {
contactPoints: Array<string>;
contactPoints: string[];
keyspace: string;
policies?: {
addressResolution?: policies.addressResolution.AddressTranslator,
@@ -481,16 +481,16 @@ export interface QueryOptions {
consistency?: number;
customPayload?: any;
fetchSize?: number;
hints?: Array<string> | Array<Array<string>>;
hints?: string[] | Array<string[]>;
logged?: boolean;
pageState?: Buffer | string;
prepare?: boolean;
readTimeout?: number;
retry?: policies.retry.RetryPolicy;
retryOnTimeout?: boolean;
routingIndexes?: Array<number>;
routingIndexes?: number[];
routingKey?: Buffer | Array<Buffer>;
routingNames?: Array<string>;
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<string> | 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<any>; // 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<string>;
tokens: string[];
canBeConsideredAsUp(): boolean;
getCassandraVersion(): Array<number>;
getCassandraVersion(): number[];
isUp(): boolean;
}
@@ -539,9 +539,9 @@ export interface HostMap extends events.EventEmitter {
forEach(callback: Callback): void;
get(key: string): Host;
keys(): Array<string>;
keys(): string[];
remove(key: string): void;
removeMultiple(keys: Array<string>): void;
removeMultiple(keys: string[]): void;
set(key: string, value: Host): void;
values(): Array<Host>;
}
@@ -634,7 +634,7 @@ export namespace metadata {
initCondition: string;
keyspaceName: string;
returnType: string;
signature: Array<string>;
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<string>;
clusteringOrder: string[];
columns: Array<ColumnInfo>;
columnsByName: { [key: string]: ColumnInfo };
comment: string;
@@ -715,12 +715,12 @@ export namespace metadata {
interface Metadata {
clearPrepared(): void;
getAggregate(keyspaceName: string, name: string, signature: Array<string> | 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<string> | 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<any>;
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<string>;
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<string>;
signature: string[];
}
interface TableMetadataStatic {
+10 -10
View File
@@ -38,11 +38,11 @@ declare namespace Chartist {
quantity(input: string | number): Object;
query(query: Node | string): Node;
times(length: number): Array<any>;
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<any>, cb: Function): Array<any>;
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<string> | Array<number> | Array<Date>;
series: Array<IChartistSeriesData> | Array<number> | Array<Array<number>>;
labels?: string[] | number[] | Array<Date>;
series: Array<IChartistSeriesData> | number[] | Array<number[]>;
}
interface IChartistSeriesData {
name?: string;
value?: number;
data?: Array<number>;
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<any>; // 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<any>;
plugins?: any[];
}
interface IPieChartOptions extends IChartOptions {
@@ -312,7 +312,7 @@ declare namespace Chartist {
interface IChartistStepAxis extends ILineChartAxis {
type?: IStepAxisStatic;
ticks?: Array<string> | Array<number>;
ticks?: string[] | number[];
stretch?: boolean;
}
@@ -321,7 +321,7 @@ declare namespace Chartist {
high?: number;
low?: number;
divisor?: number;
ticks?: Array<string> | Array<number>;
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<string>;
classes(): string[];
/**
* Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.
+3 -3
View File
@@ -8,9 +8,9 @@
declare module "fs" {
interface FSWatcher {
add(fileDirOrGlob: string): void;
add(filesDirsOrGlobs: Array<string>): void;
add(filesDirsOrGlobs: string[]): void;
unwatch(fileDirOrGlob: string): void;
unwatch(filesDirsOrGlobs: Array<string>): 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<string>, options?: WatchOptions): fs.FSWatcher;
function watch(filesDirsOrGlobs: string[], options?: WatchOptions): fs.FSWatcher;
}
+14 -14
View File
@@ -106,10 +106,10 @@ declare namespace chrome.cast {
}
/**
* @const {!Array<number>}
* @const {!number[]}
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.VERSION
*/
var VERSION: Array<number>;
var VERSION: number[];
/**
* @type {boolean}
@@ -583,7 +583,7 @@ declare namespace chrome.cast.media {
mediaInfo: chrome.cast.media.MediaInfo
): QueueItem;
activeTrackIds: Array<Number>;
activeTrackIds: number[];
autoplay: boolean;
customData: Object;
itemId: number;
@@ -625,31 +625,31 @@ declare namespace chrome.cast.media {
interface QueueRemoveItemsRequest {
/**
* @param {!Array<number>}
* @param {!number[]}
* @constructor
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueRemoveItemsRequest
*/
new(
itemIdsToRemove: Array<number>
itemIdsToRemove: number[]
): QueueRemoveItemsRequest;
customData: Object;
itemIds: Array<number>;
itemIds: number[];
}
interface QueueReorderItemsRequest {
/**
* @param {!Array<number>}
* @param {!number[]}
* @constructor
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueReorderItemsRequest
*/
new(
itemIdsToReorder: Array<number>
itemIdsToReorder: number[]
): QueueReorderItemsRequest;
customData: Object;
insertBefore: number;
itemIds: Array<number>;
itemIds: number[];
}
interface QueueUpdateItemsRequest {
@@ -811,7 +811,7 @@ declare namespace chrome.cast.media {
mediaInfo: chrome.cast.media.MediaInfo
): LoadRequest;
activeTrackIds: Array<number>;
activeTrackIds: number[];
autoplay: boolean;
currentTime: number;
customData: Object;
@@ -820,17 +820,17 @@ declare namespace chrome.cast.media {
interface EditTracksInfoRequest {
/**
* @param {Array<number>=} 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<number>,
activeTrackIds?: number[],
textTrackStyle?: chrome.cast.media.TextTrackStyle
): EditTracksInfoRequest;
activeTrackIds: Array<number>;
activeTrackIds: number[];
textTrackStyle: chrome.cast.media.TextTrackStyle;
}
@@ -981,7 +981,7 @@ declare namespace chrome.cast.media {
mediaSessionId: number
): Media;
activeTrackIds: Array<number>;
activeTrackIds: number[];
currentItemId: number;
customData: Object;
idleReason: chrome.cast.media.IdleReason;
+2 -2
View File
@@ -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<any>, 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<any>, callback: Function, args?: any): any;
forEach(obj: any[], callback: Function, args?: any): any;
/**
* Alias for cross-platform events: pointerdown, MSPointerDown, touchstart and mousedown.
+3 -3
View File
@@ -144,7 +144,7 @@ declare namespace self {
* @description
* Get the item data given its path, or 'undefined' if missing.
*
* @param {Array<string>} 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<string>} 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<any>} otherJson Optional. The parts of the JSON.
* @param {any[]} otherJson Optional. The parts of the JSON.
*
* @returns {void}
*/
+4 -4
View File
@@ -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<string>;
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<string>;
errors: string[];
// A list of warnings raised
warnings: Array<string>;
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<string> | 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;
+1 -1
View File
@@ -22,7 +22,7 @@ interface CLI {
no_color: boolean;
enable(...plugins: string[]): CLI;
disable(...plugins: string[]): CLI;
setArgv(argv: string | Array<any>, 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;
+1 -1
View File
@@ -30,7 +30,7 @@ declare namespace commonmark {
resumeAt(node: Node, entering?: boolean): void;
}
export interface Position extends Array<Array<number>> {
export interface Position extends Array<number[]> {
}
export interface ListData {
+2 -2
View File
@@ -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<Array<number>>} points is an array of [x, y] points.
* @param {Array<number[]>} 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<Array<number>>}
* @return {Array<number[]>}
* @example
* var points = [[10, 20], [30, 12.5], ...];
* var polygon = concaveman(points);
+1 -1
View File
@@ -27,7 +27,7 @@ declare namespace convict {
*
* The docs also state that any function that validates is ok too
*/
format?: string | Array<any> | Function;
format?: string | any[] | Function;
env?: string;
arg?: string;
};
+1 -1
View File
@@ -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<string>;
keys?: string[];
/**
* A string which will be used as single key if keys is not provided.
+1 -1
View File
@@ -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<string>): cookies.ICookies;
new (request: http.IncomingMessage, response: http.ServerResponse, keys?: string[]): cookies.ICookies;
}
declare const cookies: CookiesStatic;
+15 -15
View File
@@ -108,7 +108,7 @@ interface Array<T> {
* @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<T>) => 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<T>(arrayLike: ArrayLike<T>): Array<T>;
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T>): Array<T>;
from<T>(iterable: Iterable<T>): T[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): Array<T>;
of<T>(...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<T>(array: ArrayLike<T>, predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
find<T>(array: ArrayLike<T>, 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<T>(array: ArrayLike<T>, target: number, start: number, end?: number): T[];
includes<T>(array: ArrayLike<T>, value: T, fromIndex?: number): boolean;
turn<T, U>(array: ArrayLike<T>, callbackfn: (memo: U, value: T, index: number, array: Array<T>) => void, memo?: U): U;
turn<T>(array: ArrayLike<T>, callbackfn: (memo: Array<T>, value: T, index: number, array: Array<T>) => void, memo?: Array<T>): Array<T>;
turn<T, U>(array: ArrayLike<T>, callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U;
turn<T>(array: ArrayLike<T>, callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[];
}
// #############################################################################################
@@ -1257,12 +1257,12 @@ interface Array<T> {
/**
* Non-standard.
*/
turn<U>(callbackfn: (memo: U, value: T, index: number, array: Array<T>) => void, memo?: U): U;
turn<U>(callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U;
/**
* Non-standard.
*/
turn(callbackfn: (memo: Array<T>, value: T, index: number, array: Array<T>) => void, memo?: Array<T>): Array<T>;
turn(callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[];
}
// #############################################################################################
@@ -1359,9 +1359,9 @@ declare namespace core {
var Array: {
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
from<T, U>(iterable: Iterable<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>;
from<T>(arrayLike: ArrayLike<T>): Array<T>;
from<T>(iterable: Iterable<T>): Array<T>;
of<T>(...items: T[]): Array<T>;
from<T>(arrayLike: ArrayLike<T>): T[];
from<T>(iterable: Iterable<T>): T[];
of<T>(...items: T[]): T[];
push<T>(array: ArrayLike<T>, ...items: T[]): number;
pop<T>(array: ArrayLike<T>): T;
concat<T>(array: ArrayLike<T>, ...items: (T[]| T)[]): T[];
@@ -1387,13 +1387,13 @@ declare namespace core {
entries<T>(array: ArrayLike<T>): IterableIterator<[number, T]>;
keys<T>(array: ArrayLike<T>): IterableIterator<number>;
values<T>(array: ArrayLike<T>): IterableIterator<T>;
find<T>(array: ArrayLike<T>, predicate: (value: T, index: number, obj: Array<T>) => boolean, thisArg?: any): T;
find<T>(array: ArrayLike<T>, predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T;
findIndex<T>(array: ArrayLike<T>, predicate: (value: T) => boolean, thisArg?: any): number;
fill<T>(array: ArrayLike<T>, value: T, start?: number, end?: number): T[];
copyWithin<T>(array: ArrayLike<T>, target: number, start: number, end?: number): T[];
includes<T>(array: ArrayLike<T>, value: T, fromIndex?: number): boolean;
turn<T>(array: ArrayLike<T>, callbackfn: (memo: Array<T>, value: T, index: number, array: Array<T>) => void, memo?: Array<T>): Array<T>;
turn<T, U>(array: ArrayLike<T>, callbackfn: (memo: U, value: T, index: number, array: Array<T>) => void, memo?: U): U;
turn<T>(array: ArrayLike<T>, callbackfn: (memo: T[], value: T, index: number, array: T[]) => void, memo?: T[]): T[];
turn<T, U>(array: ArrayLike<T>, callbackfn: (memo: U, value: T, index: number, array: T[]) => void, memo?: U): U;
};
var String: {
+1 -1
View File
@@ -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<any>, 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.
+2 -2
View File
@@ -27,8 +27,8 @@ declare namespace countdown {
}
interface Format {
singular?: string | Array<string>;
plural?: string | Array<string>;
singular?: string | string[];
plural?: string | string[];
last?: string;
delim?: string;
empty?: string;
+3 -3
View File
@@ -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<string>;
selectors?: string[];
/** Array of nodes with the types declaration and comment. */
declarations?: Array<Declaration | Comment>;
}
@@ -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<string>;
values?: string[];
/** Array of nodes with the types declaration and comment. */
declarations?: Array<Declaration | Comment>;
}
@@ -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<string>;
selectors?: string[];
/** Array of nodes with the types declaration and comment. */
declarations?: Array<Declaration | Comment>;
}
+2 -2
View File
@@ -13,8 +13,8 @@ declare namespace cucumber {
}
export interface TableDefinition {
raw: () => Array<any>;
rows: () => Array<any>;
raw: () => any[];
rows: () => any[];
rowsHash: () => {};
hashes: () => {};
}
+2 -2
View File
@@ -33,10 +33,10 @@ export interface AxisTimeInterval {
export interface AxisScale<Domain> {
(x: Domain): number;
domain(): Array<Domain>;
range(): Array<number>;
range(): number[];
copy(): AxisScale<Domain>;
bandwidth?(): number;
ticks?(count: number | AxisTimeInterval): Array<number> | Array<Date>;
ticks?(count: number | AxisTimeInterval): number[] | Array<Date>;
tickFormat?(count: number | AxisTimeInterval, specifier?: string): ((d: number) => string) | ((d: Date) => string);
}
+9 -9
View File
@@ -14,11 +14,11 @@ type Stringifiable = {
// Objects
// ---------------------------------------------------------------------
export function keys(object: { [key: string]: any }): Array<string>;
export function keys(object: Object): Array<string>;
export function keys(object: { [key: string]: any }): string[];
export function keys(object: Object): string[];
export function values<T>(object: { [key: string]: T }): Array<T>;
export function values(object: Object): Array<any>;
export function values<T>(object: { [key: string]: T }): T[];
export function values(object: Object): any[];
export function entries<T>(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<T> {
set(key: string, value: T): this;
remove(key: string): boolean;
clear(): void;
keys(): Array<string>;
values(): Array<T>;
keys(): string[];
values(): T[];
entries(): Array<{ key: string, value: T }>;
each(func: (value: T, key: string, map: Map<T>) => void): void;
empty(): boolean;
@@ -46,7 +46,7 @@ export function map<T>(): Map<T>;
export function map<T>(d3Map: Map<T>): Map<T>;
export function map<T>(object: { [key: string]: T }): Map<T>;
export function map<T>(object: { [key: number]: T }): Map<T>;
export function map<T>(array: Array<T>, key?: (value: T, i?: number, array?: Array<T>) => string): Map<T>;
export function map<T>(array: T[], key?: (value: T, i?: number, array?: T[]) => string): Map<T>;
export function map(object: Object): Map<any>;
// ---------------------------------------------------------------------
@@ -59,7 +59,7 @@ export interface Set {
add(value: string | Stringifiable): this;
remove(value: string | Stringifiable): boolean;
clear(): void;
values(): Array<string>;
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<string | Stringifiable>): Set;
export function set<T>(array: Array<T>, key: (value: T, index?: number, array?: Array<T>) => string): Set;
export function set<T>(array: T[], key: (value: T, index?: number, array?: T[]) => string): Set;
// ---------------------------------------------------------------------
// nest / Nest
+16 -16
View File
@@ -16,7 +16,7 @@ export interface DSVRowAny {
}
export interface DSVParsedArray<T> extends Array<T> {
columns: Array<string>;
columns: string[];
}
// ------------------------------------------------------------------------------------------
@@ -26,21 +26,21 @@ export interface DSVParsedArray<T> extends Array<T> {
// csvParse(...) ============================================================================
export function csvParse(csvString: string): DSVParsedArray<DSVRowString>;
export function csvParse<ParsedRow extends DSVRowAny>(csvString: string, row: (rawRow: DSVRowString, index: number, columns: Array<string>) => ParsedRow): DSVParsedArray<ParsedRow>;
export function csvParse<ParsedRow extends DSVRowAny>(csvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DSVParsedArray<ParsedRow>;
// csvParseRows(...) ========================================================================
export function csvParseRows(csvString: string): Array<Array<string>>;
export function csvParseRows<ParsedRow extends DSVRowAny>(csvString: string, row: (rawRow: Array<string>, index: number) => ParsedRow): Array<ParsedRow>;
export function csvParseRows(csvString: string): Array<string[]>;
export function csvParseRows<ParsedRow extends DSVRowAny>(csvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array<ParsedRow>;
// csvFormat(...) ============================================================================
export function csvFormat(rows: Array<DSVRowAny>): string;
export function csvFormat(rows: Array<DSVRowAny>, columns: Array<string>): string;
export function csvFormat(rows: Array<DSVRowAny>, columns: string[]): string;
// csvFormatRows(...) ========================================================================
export function csvFormatRows(rows: Array<Array<string>>): string;
export function csvFormatRows(rows: Array<string[]>): string;
// ------------------------------------------------------------------------------------------
// TSV Parsers and Formatters
@@ -49,21 +49,21 @@ export function csvFormatRows(rows: Array<Array<string>>): string;
// tsvParse(...) ============================================================================
export function tsvParse(tsvString: string): DSVParsedArray<DSVRowString>;
export function tsvParse<MappedRow extends DSVRowAny>(tsvString: string, row: (rawRow: DSVRowString, index: number, columns: Array<string>) => MappedRow): DSVParsedArray<MappedRow>;
export function tsvParse<MappedRow extends DSVRowAny>(tsvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => MappedRow): DSVParsedArray<MappedRow>;
// tsvParseRows(...) ========================================================================
export function tsvParseRows(tsvString: string): Array<Array<string>>;
export function tsvParseRows<MappedRow extends DSVRowAny>(tsvString: string, row: (rawRow: Array<string>, index: number) => MappedRow): Array<MappedRow>;
export function tsvParseRows(tsvString: string): Array<string[]>;
export function tsvParseRows<MappedRow extends DSVRowAny>(tsvString: string, row: (rawRow: string[], index: number) => MappedRow): Array<MappedRow>;
// tsvFormat(...) ============================================================================
export function tsvFormat(rows: Array<DSVRowAny>): string;
export function tsvFormat(rows: Array<DSVRowAny>, columns: Array<string>): string;
export function tsvFormat(rows: Array<DSVRowAny>, columns: string[]): string;
// tsvFormatRows(...) ========================================================================
export function tsvFormatRows(rows: Array<Array<string>>): string;
export function tsvFormatRows(rows: Array<string[]>): string;
// ------------------------------------------------------------------------------------------
// DSV Generalized Parsers and Formatters
@@ -71,12 +71,12 @@ export function tsvFormatRows(rows: Array<Array<string>>): string;
export interface DSV {
parse(dsvString: string): DSVParsedArray<DSVRowString>;
parse<ParsedRow extends DSVRowAny>(dsvString: string, row: (rawRow: DSVRowString, index: number, columns: Array<string>) => ParsedRow): DSVParsedArray<ParsedRow>;
parseRows(dsvString: string): Array<Array<string>>;
parseRows<ParsedRow extends DSVRowAny>(dsvString: string, row: (rawRow: Array<string>, index: number) => ParsedRow): Array<ParsedRow>;
parse<ParsedRow extends DSVRowAny>(dsvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DSVParsedArray<ParsedRow>;
parseRows(dsvString: string): Array<string[]>;
parseRows<ParsedRow extends DSVRowAny>(dsvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array<ParsedRow>;
format(rows: Array<DSVRowAny>): string;
format(rows: Array<DSVRowAny>, columns: Array<string>): string;
formatRows(rows: Array<Array<string>>): string;
format(rows: Array<DSVRowAny>, columns: string[]): string;
formatRows(rows: Array<string[]>): string;
}
export function dsvFormat(delimiter: string): DSV;
+4 -4
View File
@@ -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<U extends Array<any>>(a: Array<any>, b: U): ((t: number) => U);
export function interpolate<U extends any[]>(a: any[], b: U): ((t: number) => U);
export function interpolate(a: number | { valueOf(): number }, b: { valueOf(): number }): ((t: number) => number);
export function interpolate<U extends Object>(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 extends Array<any>>(a: Array<any>, b: A): ((t: number) => A);
export function interpolateArray<A extends any[]>(a: any[], b: A): ((t: number) => A);
export function interpolateObject<U extends Object>(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<number>): ((t: number) => number);
export function interpolateBasisClosed(splineNodes: Array<number>): ((t: number) => number);
export function interpolateBasis(splineNodes: number[]): ((t: number) => number);
export function interpolateBasisClosed(splineNodes: number[]): ((t: number) => number);
+3 -3
View File
@@ -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<any>) => 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<any>) => 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<any>) => void): this;
awaitAll(callback: (error: any | null, results?: any[]) => void): this;
}
/**
+3 -3
View File
@@ -57,12 +57,12 @@ export interface Request {
}
export interface DsvRequest extends Request {
row<ParsedRow extends DSVRowAny>(value: (rawRow: DSVRowString, index: number, columns: Array<string>) => ParsedRow): DsvRequest;
row<ParsedRow extends DSVRowAny>(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<DSVRowString>) => void): DsvRequest;
export function csv<ParsedRow extends DSVRowAny>(url: string, row: (rawRow: DSVRowString, index: number, columns: Array<string>) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray<ParsedRow>) => void): DsvRequest;
export function csv<ParsedRow extends DSVRowAny>(url: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray<ParsedRow>) => 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<DSVRowString>) => void): DsvRequest;
export function tsv<ParsedRow extends DSVRowAny>(url: string, row: (rawRow: DSVRowString, index: number, columns: Array<string>) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray<ParsedRow>) => void): DsvRequest;
export function tsv<ParsedRow extends DSVRowAny>(url: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow, callback: (this: DsvRequest, error: any, d: DSVParsedArray<ParsedRow>) => void): DsvRequest;
export function xml(url: string): Request;
export function xml(url: string, callback: (this: Request, error: any, d: any) => void): Request;
+8 -8
View File
@@ -7,21 +7,21 @@
// Categorical
// -----------------------------------------------------------------------
/**An array of eight categorical colors represented as RGB hexadecimal strings. */
export const schemeAccent: Array<string>;
export const schemeAccent: string[];
/**An array of eight categorical colors represented as RGB hexadecimal strings. */
export const schemeDark2: Array<string>;
export const schemeDark2: string[];
/**An array of twelve categorical colors represented as RGB hexadecimal strings. */
export const schemePaired: Array<string>;
export const schemePaired: string[];
/**An array of nine categorical colors represented as RGB hexadecimal strings. */
export const schemePastel1: Array<string>;
export const schemePastel1: string[];
/**An array of eight categorical colors represented as RGB hexadecimal strings. */
export const schemePastel2: Array<string>;
export const schemePastel2: string[];
/**An array of nine categorical colors represented as RGB hexadecimal strings. */
export const schemeSet1: Array<string>;
export const schemeSet1: string[];
/**An array of eight categorical colors represented as RGB hexadecimal strings. */
export const schemeSet2: Array<string>;
export const schemeSet2: string[];
/**An array of twelve categorical colors represented as RGB hexadecimal strings. */
export const schemeSet3: Array<string>;
export const schemeSet3: string[];
// -----------------------------------------------------------------------
// Diverging
+16 -16
View File
@@ -27,7 +27,7 @@ export interface ScaleLinear<Range, Output> {
* values that can be coerced to numeric. Otherwise, returns NaN
*/
invert(value: number | { valueOf(): number }): number;
domain(): Array<number>;
domain(): number[];
domain(domain: Array<number | { valueOf(): number }>): this;
range(): Array<Range>;
range(range: Array<Range>): this;
@@ -41,7 +41,7 @@ export interface ScaleLinear<Range, Output> {
interpolate(): InterpolatorFactory<any, any>;
interpolate(interpolate: InterpolatorFactory<Range, Output>): this;
interpolate<NewOutput>(interpolate: InterpolatorFactory<Range, NewOutput>): ScaleLinear<Range, NewOutput>;
ticks(count?: number): Array<number>;
ticks(count?: number): number[];
tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string);
nice(count?: number): this;
copy(): ScaleLinear<Range, Output>;
@@ -63,7 +63,7 @@ export interface ScalePower<Range, Output> {
* values that can be coerced to numeric. Otherwise, returns NaN
*/
invert(value: number | { valueOf(): number }): number;
domain(): Array<number>;
domain(): number[];
domain(domain: Array<number | { valueOf(): number }>): this;
range(): Array<Range>;
range(range: Array<Range>): this;
@@ -77,7 +77,7 @@ export interface ScalePower<Range, Output> {
interpolate(): InterpolatorFactory<any, any>;
interpolate(interpolate: InterpolatorFactory<Range, Output>): this;
interpolate<NewOutput>(interpolate: InterpolatorFactory<Range, NewOutput>): ScalePower<Range, NewOutput>;
ticks(count?: number): Array<number>;
ticks(count?: number): number[];
tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string);
nice(count?: number): this;
copy(): ScalePower<Range, Output>;
@@ -106,7 +106,7 @@ export interface ScaleLogarithmic<Range, Output> {
* values that can be coerced to numeric. Otherwise, returns NaN
*/
invert(value: number | { valueOf(): number }): number;
domain(): Array<number>;
domain(): number[];
domain(domain: Array<number | { valueOf(): number }>): this;
range(): Array<Range>;
range(range: Array<Range>): this;
@@ -120,7 +120,7 @@ export interface ScaleLogarithmic<Range, Output> {
interpolate(): InterpolatorFactory<any, any>;
interpolate(interpolate: InterpolatorFactory<Range, Output>): this;
interpolate<NewOutput>(interpolate: InterpolatorFactory<Range, NewOutput>): ScaleLogarithmic<Range, NewOutput>;
ticks(count?: number): Array<number>;
ticks(count?: number): number[];
tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string);
nice(count?: number): this;
copy(): ScaleLogarithmic<Range, Output>;
@@ -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<number>;
domain(): number[];
domain(domain: Array<number | { valueOf(): number }>): this;
range(): Array<number>;
range(): number[];
range(range: Array<Range | { valueOf(): number }>): this;
ticks(count?: number): Array<number>;
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<Range> {
domain(domain: [number | { valueOf(): number }, number | { valueOf(): number }]): this;
range(): Array<Range>;
range(range: Array<Range>): this;
ticks(count?: number): Array<number>;
ticks(count?: number): number[];
tickFormat(count?: number, specifier?: string): ((d: number | { valueOf(): number }) => string);
nice(count?: number): this;
copy(): ScaleQuantize<Range>;
@@ -274,11 +274,11 @@ export function scaleQuantize<Range>(): ScaleQuantize<Range>;
export interface ScaleQuantile<Range> {
(value: number | { valueOf(): number }): Range;
invertExtent(value: Range): [number, number];
domain(): Array<number>;
domain(): number[];
domain(domain: Array<number | { valueOf(): number }>): this;
range(): Array<Range>;
range(range: Array<Range>): this;
quantiles(): Array<number>;
quantiles(): number[];
copy(): ScaleQuantile<Range>;
}
@@ -404,10 +404,10 @@ export function scalePoint<Domain extends { toString(): string }>(): ScalePoint<
// Categorical Color Schemas for Ordinal Scales
// -------------------------------------------------------------------------------
export const schemeCategory10: Array<string>;
export const schemeCategory10: string[];
export const schemeCategory20: Array<string>;
export const schemeCategory20: string[];
export const schemeCategory20b: Array<string>;
export const schemeCategory20b: string[];
export const schemeCategory20c: Array<string>;
export const schemeCategory20c: string[];
+15 -15
View File
@@ -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<Datum> extends Array<number> {
export interface SeriesPoint<Datum> extends number[] {
0: number;
1: number;
index: number;
@@ -351,14 +351,14 @@ export interface Stack<This, Datum, Key> {
value(value: number): this;
value(value: (d: Datum, key: Key, j: number, data: Array<Datum>) => number): this;
order(): (series: Series<Datum, Key>) => Array<number>;
order(): (series: Series<Datum, Key>) => number[];
order(order: null): this;
order(order: Array<number>): this;
order(order: (series: Series<Datum, Key>) => Array<number>): this;
order(order: number[]): this;
order(order: (series: Series<Datum, Key>) => number[]): this;
offset(): (series: Series<Datum, Key>, order: Array<number>) => void;
offset(): (series: Series<Datum, Key>, order: number[]) => void;
offset(offset: null): this;
offset(offset: (series: Series<Datum, Key>, order: Array<number>) => void): this;
offset(offset: (series: Series<Datum, Key>, order: number[]) => void): this;
}
@@ -368,13 +368,13 @@ export function stack<Datum, Key>(): Stack<any, Datum, Key>;
export function stack<This, Datum, Key>(): Stack<This, Datum, Key>;
export function stackOrderAscending(series: Series<any, any>): Array<number>;
export function stackOrderDescending(series: Series<any, any>): Array<number>;
export function stackOrderInsideOut(series: Series<any, any>): Array<number>;
export function stackOrderNone(series: Series<any, any>): Array<number>;
export function stackOrderReverse(series: Series<any, any>): Array<number>;
export function stackOrderAscending(series: Series<any, any>): number[];
export function stackOrderDescending(series: Series<any, any>): number[];
export function stackOrderInsideOut(series: Series<any, any>): number[];
export function stackOrderNone(series: Series<any, any>): number[];
export function stackOrderReverse(series: Series<any, any>): number[];
export function stackOffsetExpand(series: Series<any, any>, order: Array<number>): void;
export function stackOffsetNone(series: Series<any, any>, order: Array<number>): void;
export function stackOffsetSilhouette(series: Series<any, any>, order: Array<number>): void;
export function stackOffsetWiggle(series: Series<any, any>, order: Array<number>): void;
export function stackOffsetExpand(series: Series<any, any>, order: number[]): void;
export function stackOffsetNone(series: Series<any, any>, order: number[]): void;
export function stackOffsetSilhouette(series: Series<any, any>, order: number[]): void;
export function stackOffsetWiggle(series: Series<any, any>, order: number[]): void;
+1 -1
View File
@@ -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<number> {
export interface VoronoiPoint extends number[] {
0: number;
1: number;
}
+4 -4
View File
@@ -23,10 +23,10 @@ type ZoomedElementBaseType = Element;
* that can be passed into zoomTransform methods rescaleX and rescaleY
*/
export interface ZoomScale {
domain(): Array<number>;
domain(domain: Array<number>): this;
range(): Array<number>;
range(range: Array<number>): this;
domain(): number[];
domain(domain: number[]): this;
range(): number[];
range(range: number[]): this;
copy(): ZoomScale;
invert(value: number): number;
}
+14 -14
View File
@@ -28,10 +28,10 @@ declare namespace d3kit {
export class Skeleton {
constructor(selector: string|Element, options?: ChartOptions, customEvents?: Array<string>);
constructor(selector: string|Element, options?: ChartOptions, customEvents?: string[]);
// Getters
getCustomEventNames(): Array<string>;
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<number>, 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<any>) => 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<string>);
customEventName?: string[]);
// Getter functions
getDispatcher(): d3.Dispatch;
getCustomEventNames(): Array<string>;
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<string>, child_property_names?: Array<string>): 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<string>;
names?: string[];
sublayers?: LayerConfig;
}
@@ -116,7 +116,7 @@ declare namespace d3kit {
constructor(container: d3.Selection<any>, tag?: string);
create(config: string|Array<string>|LayerConfig|Array<LayerConfig>|any): d3.Selection<any>|Array<d3.Selection<any>>;
create(config: string|string[]|LayerConfig|Array<LayerConfig>|any): d3.Selection<any>|Array<d3.Selection<any>>;
get(name: string): d3.Selection<any>;
has(name: string): boolean;
}
@@ -124,19 +124,19 @@ declare namespace d3kit {
export namespace factory {
export function createChart(
defaultOptions: ChartOptions,
customEvents: Array<string>,
customEvents: string[],
constructor: (skeleton: Skeleton) => void
): (selector: string|Element, options?: ChartOptions, customEvents?: Array<string>) => Skeleton;
): (selector: string|Element, options?: ChartOptions, customEvents?: string[]) => Skeleton;
}
export namespace helper {
export function debounce(fn: (...args: Array<any>) => void, wait: number, immediate: boolean): (...args: Array<any>) => 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<any>, dispatch: d3.Dispatch, prefix: string): void;
export function removeAllChildren(selection: d3.Selection<any>, noTransition: boolean): d3.Selection<any>;
export function on(element: Element, type: string, listener: (...args: Array<any>) => void): void;
export function off(element: Element, type: string, listener: (...args: Array<any>) => 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;
+10 -10
View File
@@ -70,7 +70,7 @@ export class Base {
createDatabase(...options: any[]): void;
switchDatabase(...options: any[]): void;
dropDatabase(...options: any[]): void;
recurseCallbackArray(foreignKeys: Array<string>, 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<string>): Array<string>;
quoteArr(arr: Array<string>): Array<string>;
addIndex(tableName: string, indexName: string, columns: string | Array<string>, 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<any> | 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<any> | 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<any>;
switchDatabaseAsync(...options: any[]): Promise<any>;
dropDatabaseAsync(...options: any[]): Promise<any>;
recurseCallbackArrayAsync(foreignKeys: Array<string>): Promise<any>;
recurseCallbackArrayAsync(foreignKeys: string[]): Promise<any>;
createMigrationsTableAsync(): Promise<any>;
createSeedsTableAsync(): Promise<any>;
createTableAsync(tableName: string, options: any | CreateTableOptions): Promise<any>;
@@ -126,7 +126,7 @@ export class Base {
removeColumnAsync(tableName: string, columnName: string): Promise<any>;
renameColumnAsync(tableName: string, oldColumnName: string, newColumnName: string): Promise<any>;
changeColumnAsync(tableName: string, columnName: string, columnSpec: ColumnSpec): Promise<any>;
addIndexAsync(tableName: string, indexName: string, columns: string | Array<string>, unique?: boolean): Promise<any>;
addIndexAsync(tableName: string, indexName: string, columns: string | string[], unique?: boolean): Promise<any>;
insertAsync(tableName: string, columnNameOrValueArray: any, valueArrayOrCb?: any | CallbackFunction, callback?: CallbackFunction): Promise<any>;
updateAsync(tableName: string, columnNameOrValueArray: any, valueArrayOrIds?: any, idsOrCb?: any | CallbackFunction, callback?: CallbackFunction): Promise<any>;
lookupAsync(tableName: string, column: string, id?: any, callback?: CallbackFunction): Promise<any>;
@@ -137,11 +137,11 @@ export class Base {
addSeedRecordAsync(name: string): Promise<any>;
startMigrationAsync(): Promise<any>;
endMigrationAsync(callback: CallbackFunction): Promise<any>;
runSqlAsync(sql?: string, params?: Array<any>): Promise<any>;
runSqlAsync(sql?: string, params?: any[]): Promise<any>;
allLoadedMigrationsAsync(): Promise<any>;
allLoadedSeedsAsync(): Promise<any>;
deleteMigrationAsync(migrationName: string): Promise<any>;
removeAsync(table: string, ids: any): Promise<any>;
deleteSeedAsync(seedName: string): Promise<any>;
allAsync(sql: string, params?: Array<any>): Promise<any>;
allAsync(sql: string, params?: any[]): Promise<any>;
}
+21 -21
View File
@@ -40,7 +40,7 @@ declare namespace DC {
}
export interface UnitFunction {
(start: number, end: number, domain?: Array<any>): number|Array<any>;
(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<any>): Filter;
RangedTwoDimensionalFilter(arr: Array<any>): 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<any>): string;
filters(filters: any[]): string;
filter(filter: any): string;
}
@@ -123,7 +123,7 @@ declare namespace DC {
minWidth: IGetSet<number, T>;
minHeight: IGetSet<number, T>;
dimension: IGetSet<any, T>;
data: IGetSetComputed<(group: any) => Array<any>, Array<any>, T>;
data: IGetSetComputed<(group: any) => any[], any[], T>;
group: IGetSet<any, T>;
ordering: IGetSet<Accessor<any, any>, T>;
filterAll(): void;
@@ -133,20 +133,20 @@ declare namespace DC {
anchorName(): string;
svg: IGetSet<d3.Selection<any>, d3.Selection<any>>;
resetSvg(): void;
filterPrinter: IGetSet<(filters: Array<any>) => string, T>;
filterPrinter: IGetSet<(filters: any[]) => string, T>;
turnOnControls(): void;
turnOffControls(): void;
transitionDuration: IGetSet<number, T>;
render(): void;
redraw(): void;
redrawGroup(): void;
hasFilterHandler: IGetSet<(filters: Array<any>, filter: any) => boolean, T>;
hasFilterHandler: IGetSet<(filters: any[], filter: any) => boolean, T>;
hasFilter(filter?: any): boolean;
removeFilterHandler: IGetSet<(filters: Array<any>) => Array<any>, T>;
addFilterHandler: IGetSet<(filters: Array<any>) => Array<any>, T>;
resetFilterHandler: IGetSet<(filters: Array<any>) => Array<any>, T>;
removeFilterHandler: IGetSet<(filters: any[]) => any[], T>;
addFilterHandler: IGetSet<(filters: any[]) => any[], T>;
resetFilterHandler: IGetSet<(filters: any[]) => any[], T>;
filter: IGetSet<any, T>;
filters(): Array<any>;
filters(): any[];
onClick(datum: any): void;
filterHandler: IGetSet<(dimension: any, filter: any) => any, T>;
keyAccessor: IGetSet<Accessor<any, any>, T>;
@@ -184,11 +184,11 @@ declare namespace DC {
}
export interface ColorMixin<T> {
colors: IGetSet<Array<string> | Scale<string | d3.Color>, T>;
ordinalColors(r: Array<string>): void;
linearColors(r: Array<string>): void;
colors: IGetSet<string[] | Scale<string | d3.Color>, T>;
ordinalColors(r: string[]): void;
linearColors(r: string[]): void;
colorAccessor: IGetSet<Accessor<any, string>, T>;
colorDomain: IGetSet<Array<any>, T>;
colorDomain: IGetSet<any[], T>;
calculateColorDomain(): void;
getColor(datum: any, index?: number): string;
colorCalculator: IGetSet<Accessor<any, string>, T>;
@@ -196,7 +196,7 @@ declare namespace DC {
export interface CoordinateGridMixin<T> extends BaseMixin<T>, MarginMixin<T>, ColorMixin<T> {
rangeChart: IGetSet<BaseMixin<any>, T>;
zoomScale: IGetSet<Array<any>, T>;
zoomScale: IGetSet<any[], T>;
zoomOutRestrict: IGetSet<boolean, T>;
g: IGetSet<d3.Selection<any>, T>;
mouseZoomable: IGetSet<boolean, T>;
@@ -223,7 +223,7 @@ declare namespace DC {
yAxisPadding: IGetSet<number, T>;
round: IGetSet<(value: any) => any, T>;
clipPadding: IGetSet<number, T>;
focus(range?: Array<any>): void;
focus(range?: any[]): void;
brushOn: IGetSet<boolean, T>;
}
@@ -239,7 +239,7 @@ declare namespace DC {
export interface CapMixin<T> {
cap: IGetSet<number, T>;
othersLabel: IGetSet<string, T>;
othersGrouper: IGetSet<(data: Array<any>) => Array<any>, T>;
othersGrouper: IGetSet<(data: any[]) => any[], T>;
}
export interface BubbleMixin<T> extends ColorMixin<T> {
@@ -276,7 +276,7 @@ declare namespace DC {
interpolate: IGetSet<string, LineChart>;
tension: IGetSet<number, LineChart>;
defined: IGetSet<Accessor<any, boolean>, LineChart>;
dashStyle: IGetSet<Array<number>, LineChart>;
dashStyle: IGetSet<number[], LineChart>;
renderArea: IGetSet<boolean, LineChart>;
dotRadius: IGetSet<number, LineChart>;
renderDataPoints: IGetSet<RenderDataPointOptions|any, LineChart>;
@@ -385,8 +385,8 @@ declare namespace DC {
export interface HeatMap extends ColorMixin<HeatMap>, MarginMixin<HeatMap>, BaseMixin<HeatMap> {
colsLabel: IGetSet<Accessor<any, string>, HeatMap>;
rowsLabel: IGetSet<Accessor<any, string>, HeatMap>;
rows: IGetSet<Array<any>, HeatMap>;
cols: IGetSet<Array<any>, HeatMap>;
rows: IGetSet<any[], HeatMap>;
cols: IGetSet<any[], HeatMap>;
boxOnClick: IGetSet<(d: any) => void, HeatMap>;
xAxisOnClick: IGetSet<(d: any) => void, HeatMap>;
yAxisOnClick: IGetSet<(d: any) => void, HeatMap>;
+6 -6
View File
@@ -54,9 +54,9 @@ declare namespace DeployJava {
/**
* @summary JRE versions installed.
* @member {Array<string>}
* @member {string[]}
*/
preInstallJREList: Array<string>;
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<string>} 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<string>, 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<string>} JRE Version list.
* @return {string[]} JRE Version list.
*/
getJREs(): Array<string>;
getJREs(): string[];
/**
* Gets a Java plugin.
+73 -73
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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<any>;
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. */
+73 -73
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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. */
+73 -73
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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. */
+70 -70
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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. */
+73 -73
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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. */
+73 -73
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
values: number[];
/** Returns the value of an attribute. */
attribute(name: string): any;
/** Returns the coordinates of a specific marker. */
coordinates(): Array<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
centerChanged?: (center: Array<number>) => void;
center?: number[];
centerChanged?: (center: number[]) => void;
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Returns an array with all the map areas. */
getAreas(): Array<Area>;
/** Returns an array with all the map markers. */
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<any>;
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. */
+76 -76
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>;
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
rowPath?: Array<any>;
columnPath?: any[];
rowPath?: any[];
dataIndex?: number;
maxRowCount?: number;
customColumns?: Array<string>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
customTicks?: any[];
/** Specifies an array of custom minor ticks. */
customMinorTicks?: Array<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
center?: number[];
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Gets all map layers. */
getLayers(): Array<MapLayer>;
/** Gets the layer by its index. */
@@ -7175,9 +7175,9 @@ declare namespace DevExpress.viz.map {
*/
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<number>) => Array<number>;
from?: (coordinates: Array<number>) => Array<number>;
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<any>;
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. */
+78 -78
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>;
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<DataSource> {
constructor(url: string);
constructor(data: Array<any>);
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** Clears currently loaded DataSource items and calls the load() method. */
reload(): JQueryPromise<Array<any>>;
reload(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
rowPath?: Array<any>;
columnPath?: any[];
rowPath?: any[];
dataIndex?: number;
maxRowCount?: number;
customColumns?: Array<string>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
customTicks?: any[];
/** Specifies an array of custom minor ticks. */
customMinorTicks?: Array<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
center?: number[];
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Gets all map layers. */
getLayers(): Array<MapLayer>;
/** Gets the layer by its index. */
@@ -7233,9 +7233,9 @@ declare namespace DevExpress.viz.map {
*/
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<number>) => Array<number>;
from?: (coordinates: Array<number>) => Array<number>;
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<any>;
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. */
+78 -78
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>;
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<DataSource> {
constructor(url: string);
constructor(data: Array<any>);
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): JQueryPromise<any[]>;
/** Clears currently loaded DataSource items and calls the load() method. */
reload(): JQueryPromise<Array<any>>;
reload(): JQueryPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
rowPath?: Array<any>;
columnPath?: any[];
rowPath?: any[];
dataIndex?: number;
maxRowCount?: number;
customColumns?: Array<string>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
customTicks?: any[];
/** Specifies an array of custom minor ticks. */
customMinorTicks?: Array<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
center?: number[];
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Gets all map layers. */
getLayers(): Array<MapLayer>;
/** Gets the layer by its index. */
@@ -7279,9 +7279,9 @@ declare namespace DevExpress.viz.map {
*/
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<number>) => Array<number>;
from?: (coordinates: Array<number>) => Array<number>;
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<any>;
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. */
+78 -78
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>;
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<DataSource> {
constructor(url: string);
constructor(data: Array<any>);
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): OperationPromise<Array<any>>;
load(): OperationPromise<any[]>;
/** Clears currently loaded DataSource items and calls the load() method. */
reload(): OperationPromise<Array<any>>;
reload(): OperationPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
rowPath?: Array<any>;
columnPath?: any[];
rowPath?: any[];
dataIndex?: number;
maxRowCount?: number;
customColumns?: Array<string>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
customTicks?: any[];
/** Specifies an array of custom minor ticks. */
customMinorTicks?: Array<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
center?: number[];
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Gets all map layers. */
getLayers(): Array<MapLayer>;
/** Gets the layer by its index. */
@@ -7293,9 +7293,9 @@ declare namespace DevExpress.viz.map {
*/
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<number>) => Array<number>;
from?: (coordinates: Array<number>) => Array<number>;
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<any>;
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. */
+75 -75
View File
@@ -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<number>;
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<any>) => 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<any>) => 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<any>) => 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<any>;
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<DataSource> {
constructor(url: string);
constructor(data: Array<any>);
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<any>;
items(): any[];
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): OperationPromise<Array<any>>;
load(): OperationPromise<any[]>;
/** Clears currently loaded DataSource items and calls the load() method. */
reload(): OperationPromise<Array<any>>;
reload(): OperationPromise<any[]>;
/** 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<any>;
/** Filters the current Query data. */
filter(criteria: Array<any>): 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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
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<any>;
sortBySummaryPath?: any[];
/** The filter values for the current field. */
filterValues?: Array<any>;
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<any>): void;
collapseHeaderItem(area: string, path: any[]): void;
/** Expands a specified header item. */
expandHeaderItem(area: string, path: Array<any>): 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<any>;
rowPath?: Array<any>;
columnPath?: any[];
rowPath?: any[];
dataIndex?: number;
maxRowCount?: number;
customColumns?: Array<string>;
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<string>;
views?: string[];
/** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */
groups?: Array<string>;
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<any>;
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<any>;
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<any>;
filterOperations?: any[];
/** Specifies a filter value for a column. */
filterValue?: any;
/** Specifies initial filter values for the column's header filter. */
filterValues?: Array<any>;
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<any>;
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<any>;
currentDeselectedRowKeys: Array<any>;
selectedRowKeys: Array<any>;
selectedRowsData: Array<any>;
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<any>, preserve: boolean): void;
selectRows(keys: any[], preserve: boolean): void;
/** Deselects specific grid records. */
deselectRows(keys: Array<any>): void;
deselectRows(keys: any[]): void;
/** Selects grid rows by indexes. */
selectRowsByIndexes(indexes: Array<any>): 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<string>;
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<any>;
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<any>;
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<any>): 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<any>;
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<any>;
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<any>;
customTicks?: any[];
/** Specifies an array of custom minor ticks. */
customMinorTicks?: Array<any>;
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<any>;
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<number>;
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<number>;
subvalues(): number[];
/** Updates gauge subvalues. */
subvalues(subvalues: Array<number>): 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<number>;
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<number>;
values(): number[];
/** Updates the values displayed by a gauge. */
values(values: Array<number>): 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<any>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
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<number>;
center?: number[];
/** A handler for the centerChanged event. */
onCenterChanged?: (e: {
center: Array<number>;
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<number>;
center(): number[];
/** Sets the coordinates of the map center. */
center(centerCoordinates: Array<number>): 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<number>;
convertCoordinates(x: number, y: number): number[];
/** Gets all map layers. */
getLayers(): Array<MapLayer>;
/** Gets the layer by its index. */
@@ -7354,9 +7354,9 @@ declare namespace DevExpress.viz.map {
*/
getMarkers(): Array<Marker>;
/** Gets the current coordinates of the map viewport. */
viewport(): Array<any>;
viewport(): any[];
/** Sets the coordinates of the map viewport. */
viewport(viewportCoordinates: Array<number>): 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<number>) => Array<number>;
from?: (coordinates: Array<number>) => Array<number>;
to?: (coordinates: number[]) => number[];
from?: (coordinates: number[]) => number[];
aspectRatio?: number;
}): Object;
/** Gets the default or custom projection from the projection storage. */
+1 -1
View File
@@ -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<string>;
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'. */
+1 -1
View File
@@ -27,7 +27,7 @@ declare module "draft-js" {
}
interface CompositeDecorator {
getDecorations(): Array<any>;
getDecorations(): any[];
getComponentForKey(): any;
getPropsForKey(): any;
}
+6 -6
View File
@@ -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<string>;
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<string>;
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<number>;
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<number>;
perPageOptions?: number[];
/**
* Object describing the current request's sorting
*
@@ -462,7 +462,7 @@ declare namespace JQueryDynatable {
*
* @default null
*/
sortsKeys?: Array<string>;
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<number>;
pageBounds(): number[];
/** Update the records with the new page */
paginate(): void;
/** Reset the records */
+1 -1
View File
@@ -9,7 +9,7 @@ declare namespace ECharts {
renderer?: string
}): ECharts;
function connect(group: string|Array<string>): void;
function connect(group: string|string[]): void;
function disConnect(group: string): void;
+334 -334
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -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<any>): Expectation;
toHaveBeenCalledWith(...args: any[]): Expectation;
toNotHaveBeenCalled(message?: string): Expectation;
withContext(context: any): Expectation;
withArgs(...args: Array<any>): Expectation;
withArgs(...args: any[]): Expectation;
}
export interface Extension {
[name: string]: (args?: Array<any>) => void;
[name: string]: (args?: any[]) => void;
}
export interface Call {
context: Spy;
arguments: Array<any>;
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<any>): void;
export declare function assert(condition: any, messageFormat: string, ...extraArgs: any[]): void;
export declare function extend(extension: Extension): void;
export default expect;
+2 -2
View File
@@ -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<any>;
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<string>, options?: MemcachedStoreOptions);
constructor(hosts: string | string[], options?: MemcachedStoreOptions);
}
+1 -1
View File
@@ -34,7 +34,7 @@ declare namespace FalcorRouter {
type RoutePathSet = FalcorJsonGraph.PathSet;
interface CallRoute extends Route {
call(callPath: RoutePathSet, args: Array<any>): RouteResult | Promise<RouteResult>;
call(callPath: RoutePathSet, args: any[]): RouteResult | Promise<RouteResult>;
}
interface GetRoute extends Route {
+3 -3
View File
@@ -53,7 +53,7 @@ declare namespace FalcorModel {
/**
* Invokes a function in the DataSource's JSONGraph object.
**/
call(functionPath: Path, args?: Array<any>, refSuffixes?: Array<PathSet>, thisPaths?: Array<PathSet>): Observable<JSONGraphEnvelope>;
call(functionPath: Path, args?: any[], refSuffixes?: Array<PathSet>, thisPaths?: Array<PathSet>): Observable<JSONGraphEnvelope>;
}
@@ -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<PathSet>.
// However, model implementation returns an error with setting refPaths as Array<PathSet> and it works with refPaths as PathSet.
// So refPaths is defined as a PathSet in this .d.ts.
call(functionPath: string | Path, args?: Array<any>, refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<any>>;
call<T>(functionPath: string | Path, args?: Array<any>, refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<T>>;
call(functionPath: string | Path, args?: any[], refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<any>>;
call<T>(functionPath: string | Path, args?: any[], refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<T>>;
/**
* The invalidate method synchronously removes several {@link Path}s or {@link PathSet}s from a {@link Model} cache.
+1 -1
View File
@@ -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; }[];
+8 -8
View File
@@ -140,10 +140,10 @@ declare namespace FoundationSites {
// http://foundation.zurb.com/sites/docs/equalizer.html#javascript-reference
interface Equalizer {
getHeights(element: Object): Array<any>;
getHeights(element: Object): any[];
getHeightsByRow(cb: Function): void;
applyHeight(heights: Array<any>): void;
applyHeightByRow(groups: Array<any>): void;
applyHeight(heights: any[]): void;
applyHeightByRow(groups: any[]): void;
destroy(): void;
}
@@ -160,7 +160,7 @@ declare namespace FoundationSites {
}
interface IInterchangeOptions {
rules?: Array<any>;
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<string>;
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<any>): void;
reInit(plugins: any[]): void;
GetYoDigits(length: number, namespace?: string): string;
reflow(elem: Object, plugins?: Array<string>|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<any>): JQuery;
foundation(method?: string|any[]): JQuery;
}
declare var Foundation: FoundationSites.FoundationSitesStatic;
+7 -7
View File
@@ -20,7 +20,7 @@ export interface Calendar {
export interface BusinessHours {
start: moment.Duration | string | Date;
end: moment.Duration | string | Date;
dow: Array<number>;
dow: number[];
}
export interface Timespan {
@@ -83,10 +83,10 @@ export interface Options extends AgendaOptions, EventDraggingResizingOptions, Dr
titleFormat?: any; // String
buttonText?: ButtonTextObject;
monthNames?: Array<string>;
monthNamesShort?: Array<string>;
dayNames?: Array<string>;
dayNamesShort?: Array<string>;
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<string>;
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<string>
className?: any; // string/string[]
editable?: boolean;
allDayDefault?: boolean;
ignoreTimezone?: boolean;
+7 -7
View File
@@ -38,7 +38,7 @@ declare namespace FullCalendar {
export interface BusinessHours {
start: moment.Duration;
end: moment.Duration;
dow: Array<number>;
dow: number[];
}
export interface Timespan {
@@ -99,10 +99,10 @@ declare namespace FullCalendar {
titleFormat?: any; // String/ViewOptionHash
buttonText?: ButtonTextObject;
monthNames?: Array<string>;
monthNamesShort?: Array<string>;
dayNames?: Array<string>;
dayNamesShort?: Array<string>;
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<string>
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<string>
className?: any; // string/string[]
editable?: boolean;
allDayDefault?: boolean;
ignoreTimezone?: boolean;
+2 -2
View File
@@ -6,11 +6,11 @@
declare namespace mod {
export interface Lookup {
range: Array<number>; // range start, end
range: number[]; // range start, end
country: string;
region: string;
city: string;
ll: Array<number>; // latitude, longitude
ll: number[]; // latitude, longitude
}
export function lookup(ip: string): Lookup;
+4 -4
View File
@@ -186,8 +186,8 @@ declare namespace GeometryDom {
transformPoint(point?: DOMPointInit): DOMPoint;
toFloat32Array(): Array<number>;
toFloat64Array(): Array<number>;
toFloat32Array(): number[];
toFloat64Array(): number[];
}
interface DOMMatrix extends DOMMatrixReadOnly {
@@ -312,7 +312,7 @@ declare var DOMQuad: {
declare var DOMMatrixReadOnly: {
prototype: GeometryDom.DOMMatrixReadOnly;
new (numberSequence: Array<number>): 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<number>): GeometryDom.DOMMatrix;
new (array: number[]): GeometryDom.DOMMatrix;
new (a: number, b: number, c: number, d: number, e: number, f: number): GeometryDom.DOMMatrix;
};
+2 -2
View File
@@ -8,7 +8,7 @@ declare namespace Gijgo {
//Grid
interface GridPager {
limit?: number;
sizes?: Array<number>;
sizes?: number[];
leftControls?: any;
rightControls?: any;
}
@@ -105,7 +105,7 @@ declare namespace Gijgo {
getById(id: string): Entity;
getChanges(): Array<Entity>;
getSelected(): string;
getSelections(): Array<string>;
getSelections(): string[];
hideColumn(field: string): Grid<Entity, Params>;
makeResponsive(): void;
reload(params?: Params): Grid<Entity, Params>;
+13 -13
View File
@@ -19,7 +19,7 @@ declare namespace go {
type PropertyAccessor = string | ((data: any, newval: any) => any);
/** A constructor */
type Constructor = new (...args: Array<any>) => 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<any>) => 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<any>, 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>): 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<string, (args: Array<any>) => Object>; // undocumented
static getBuilders(): Map<string, (args: any[]) => 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<number>;
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<number>;
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<any>;
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<number>;
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<number>;
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<any>, 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<any>, 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<any>, idx?: number): void;
removeArrayItem(arr: any[], idx?: number): void;
/**
* Unregister an event handler listener.
+1 -1
View File
@@ -13,7 +13,7 @@ declare namespace GoogleMapsLoader {
export var CLIENT: string;
export var VERSION: string;
export var SENSOR: boolean;
export var LIBRARIES: Array<string>;
export var LIBRARIES: string[];
export var LANGUAGE: string;
export function release(callBack: Function): void;
export function onLoad(callBack?: CallBack): void;
+3 -3
View File
@@ -40,7 +40,7 @@ declare class HandleObject extends BaseObject {
declare class Collection<T extends BaseObject> extends BaseObject {
protected items_: Array<any>;
protected items_: any[];
protected classType: any;
/**
@@ -48,7 +48,7 @@ declare class Collection<T extends BaseObject> extends BaseObject {
*/
length: number;
constructor(items: Array<any>, 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<Mechanism> {
protected slotHandle: Handle;
constructor(items: Array<number>, 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]`
+10 -281
View File
@@ -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<DefinitionNode>;
}
export type DefinitionNode = OperationDefinitionNode
| FragmentDefinitionNode
| TypeSystemDefinitionNode // experimental non-spec addition.
=======
definitions: Array<Definition>;
};
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<VariableDefinitionNode>;
directives?: Array<DirectiveNode>;
selectionSet: SelectionSetNode;
}
=======
operation: OperationType;
name?: Name;
variableDefinitions?: Array<VariableDefinition>;
directives?: Array<Directive>;
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<SelectionNode>;
}
export type SelectionNode = FieldNode
| FragmentSpreadNode
| InlineFragmentNode
=======
selections: Array<Selection>;
};
export type Selection = Field
| FragmentSpread
| InlineFragment;
>>>>>>> WIP
export type FieldNode = {
kind: 'Field';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
alias?: NameNode;
name: NameNode;
arguments?: Array<ArgumentNode>;
directives?: Array<DirectiveNode>;
selectionSet?: SelectionSetNode;
}
=======
alias?: Name;
name: Name;
arguments?: Array<Argument>;
directives?: Array<Directive>;
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<DirectiveNode>;
}
=======
name: Name;
directives?: Array<Directive>;
};
>>>>>>> WIP
export type InlineFragmentNode = {
kind: 'InlineFragment';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
typeCondition?: NamedTypeNode;
directives?: Array<DirectiveNode>;
selectionSet: SelectionSetNode;
}
=======
typeCondition?: NamedType;
directives?: Array<Directive>;
selectionSet: SelectionSet;
};
>>>>>>> WIP
export type FragmentDefinitionNode = {
kind: 'FragmentDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
typeCondition: NamedTypeNode;
directives?: Array<DirectiveNode>;
selectionSet: SelectionSetNode;
}
=======
name: Name;
typeCondition: NamedType;
directives?: Array<Directive>;
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<ValueNode>;
}
=======
values: Array<Value>;
};
>>>>>>> WIP
export type ObjectValueNode = {
kind: 'ObjectValue';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
fields: Array<ObjectFieldNode>;
}
=======
fields: Array<ObjectField>;
};
>>>>>>> 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<ArgumentNode>;
}
=======
name: Name;
arguments?: Array<Argument>;
};
>>>>>>> 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<DirectiveNode>;
operationTypes: Array<OperationTypeDefinitionNode>;
}
=======
directives: Array<Directive>;
operationTypes: Array<OperationTypeDefinition>;
};
>>>>>>> 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<DirectiveNode>;
}
=======
name: Name;
directives?: Array<Directive>;
};
>>>>>>> WIP
export type ObjectTypeDefinitionNode = {
kind: 'ObjectTypeDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
interfaces?: Array<NamedTypeNode>;
directives?: Array<DirectiveNode>;
fields: Array<FieldDefinitionNode>;
}
=======
name: Name;
interfaces?: Array<NamedType>;
directives?: Array<Directive>;
fields: Array<FieldDefinition>;
};
>>>>>>> WIP
export type FieldDefinitionNode = {
kind: 'FieldDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
arguments: Array<InputValueDefinitionNode>;
type: TypeNode;
directives?: Array<DirectiveNode>;
}
=======
name: Name;
arguments: Array<InputValueDefinition>;
type: Type;
directives?: Array<Directive>;
};
>>>>>>> WIP
export type InputValueDefinitionNode = {
kind: 'InputValueDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
type: TypeNode;
defaultValue?: ValueNode;
directives?: Array<DirectiveNode>;
}
=======
name: Name;
type: Type;
defaultValue?: Value;
directives?: Array<Directive>;
};
>>>>>>> WIP
export type InterfaceTypeDefinitionNode = {
kind: 'InterfaceTypeDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
directives?: Array<DirectiveNode>;
fields: Array<FieldDefinitionNode>;
}
=======
name: Name;
directives?: Array<Directive>;
fields: Array<FieldDefinition>;
};
>>>>>>> WIP
export type UnionTypeDefinitionNode = {
kind: 'UnionTypeDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
directives?: Array<DirectiveNode>;
types: Array<NamedTypeNode>;
}
=======
name: Name;
directives?: Array<Directive>;
types: Array<NamedType>;
};
>>>>>>> WIP
export type EnumTypeDefinitionNode = {
kind: 'EnumTypeDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
directives?: Array<DirectiveNode>;
values: Array<EnumValueDefinitionNode>;
}
=======
name: Name;
directives?: Array<Directive>;
values: Array<EnumValueDefinition>;
};
>>>>>>> WIP
export type EnumValueDefinitionNode = {
kind: 'EnumValueDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
directives?: Array<DirectiveNode>;
}
=======
name: Name;
directives?: Array<Directive>;
};
>>>>>>> WIP
export type InputObjectTypeDefinitionNode = {
kind: 'InputObjectTypeDefinition';
loc?: Location;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
name: NameNode;
directives?: Array<DirectiveNode>;
fields: Array<InputValueDefinitionNode>;
}
=======
name: Name;
directives?: Array<Directive>;
fields: Array<InputValueDefinition>;
};
>>>>>>> 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<InputValueDefinitionNode>;
locations: Array<NameNode>;
}
=======
name: Name;
arguments?: Array<InputValueDefinition>;
locations: Array<Name>;
};
>>>>>>> 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<TSource, TContext> {
name: string;
interfaces?: Thunk<Array<GraphQLInterfaceType>>;
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
fields: Thunk<GraphQLFieldConfigMap<TSource, TContext>>;
isTypeOf?: GraphQLIsTypeOfFn<TSource, TContext>;
description?: string
=======
fields: Thunk<GraphQLFieldConfigMap<TSource>>;
isTypeOf?: GraphQLIsTypeOfFn;
description?: string;
>>>>>>> WIP
}
export type GraphQLTypeResolver<TSource, TContext> = (
@@ -1587,33 +1355,16 @@ declare module "graphql/type/definition" {
toString(): string;
}
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
name: string,
fields: Thunk<GraphQLFieldConfigMap<TSource, TContext>>,
=======
<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61
export interface GraphQLInterfaceTypeConfig {
name: string,
fields: Thunk<GraphQLFieldConfigMap<any>>,
=======
interface GraphQLInterfaceTypeConfig {
name: string;
fields: Thunk<GraphQLFieldConfigMap<any>>;
>>>>>>> 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<TSource, TContext>,
description?: string
=======
resolveType?: GraphQLTypeResolveFn;
description?: string;
>>>>>>> WIP
}
/**
@@ -1651,19 +1402,9 @@ declare module "graphql/type/definition" {
toString(): string;
}
<<<<<<< cd4debea25a280da0808d4ff2ca5a4bdb34bd28b
export interface GraphQLUnionTypeConfig<TSource, TContext> {
=======
<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61
export interface GraphQLUnionTypeConfig {
>>>>>>> WIP
name: string,
types: Thunk<Array<GraphQLObjectType>>,
=======
interface GraphQLUnionTypeConfig {
name: string;
types: Thunk<Array<GraphQLObjectType>>;
>>>>>>> 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<typeof DirectiveLocation>
type DirectiveLocationEnum = any //$Keys<typeof DirectiveLocation>
/**
* 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<ExecutionResult>;
<<<<<<< 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<any, any>;
=======
>>>>>>> WIP
}
declare module "graphql/execution/values" {
@@ -2280,7 +2013,7 @@ declare module "graphql/execution/values" {
schema: GraphQLSchema,
varDefNodes: Array<VariableDefinitionNode>,
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
+1 -1
View File
@@ -9,7 +9,7 @@ import gulp = require('gulp');
interface IOptions {
configFile?: string;
args?: Array<string>;
args?: string[];
debug?: boolean;
}
+1 -1
View File
@@ -9,7 +9,7 @@
declare namespace revReplace {
interface Options {
canonicalUris?: boolean;
replaceInExtensions?: Array<string>;
replaceInExtensions?: string[];
prefix?: string;
manifest?: NodeJS.ReadWriteStream;
modifyUnreved?: Function;
+4 -4
View File
@@ -8,7 +8,7 @@
interface IOptions {
ignoreInitial?: boolean;
events?: Array<string>;
events?: string[];
base?: string;
name?: string;
verbose?: boolean;
@@ -16,11 +16,11 @@ interface IOptions {
}
interface IWatchStream extends NodeJS.ReadWriteStream {
add(path: string | Array<string>): NodeJS.ReadWriteStream;
unwatch(path: string | Array<string>): NodeJS.ReadWriteStream;
add(path: string | string[]): NodeJS.ReadWriteStream;
unwatch(path: string | string[]): NodeJS.ReadWriteStream;
close(): NodeJS.ReadWriteStream;
}
declare function watch(glob: string | Array<string>, options?: IOptions, callback?: Function): IWatchStream;
declare function watch(glob: string | string[], options?: IOptions, callback?: Function): IWatchStream;
declare namespace watch { }
export = watch;

Some files were not shown because too many files have changed in this diff Show More