diff --git a/alt/index.d.ts b/alt/index.d.ts index c5bcb4c4fd..a47131d963 100644 --- a/alt/index.d.ts +++ b/alt/index.d.ts @@ -34,7 +34,7 @@ declare namespace AltJS { onDeserialize?(fn: (data: any) => any): void; on?(event: AltJS.lifeCycleEvents, callback: () => any): void; emitChange?(): void; - waitFor?(storeOrStores: AltStore | Array>): void; + waitFor?(storeOrStores: AltStore | AltStore[]): void; otherwise?(data: any, action: AltJS.Action): void; observe?(alt: Alt): any; reduce?(state: any, config: StoreReduce): Object; @@ -96,7 +96,7 @@ declare namespace AltJS { dispatcher?: any; serialize?: (serializeFn: (data: Object) => string) => void; deserialize?: (deserializeFn: (serialData: string) => Object) => void; - storeTransforms?: Array; + storeTransforms?: StateTransform[]; batchingFunction?: (callback: ( ...data: any[]) => any) => void; } @@ -106,7 +106,7 @@ declare namespace AltJS { bootstrap(jsonData: string): void; takeSnapshot( ...storeNames: string[]): string; flush(): Object; - recycle( ...stores: Array>): void; + recycle( ...stores: AltJS.AltStore[]): void; rollback(): void; dispatch(action?: AltJS.Action, data?: Object, details?: any): void; @@ -144,7 +144,7 @@ declare module "alt/AltContainer" { interface ContainerProps { store?: AltJS.AltStore; - stores?: Array>; + stores?: AltJS.AltStore[]; inject?: {[key: string]: any}; actions?: {[key: string]: Object}; render?: (...props: any[]) => React.ReactElement; diff --git a/analytics-node/index.d.ts b/analytics-node/index.d.ts index fa0b8d6426..90e416cd20 100644 --- a/analytics-node/index.d.ts +++ b/analytics-node/index.d.ts @@ -70,9 +70,7 @@ declare namespace AnalyticsNode { /* Flush batched calls to make sure nothing is left in the queue */ flush(fn?: (err: Error, batch: { - batch: Array<{ - type: string; - }>; + batch: { type: string; }[]; messageId: string; sentAt: Date; timestamp: Date; diff --git a/angular-feature-flags/index.d.ts b/angular-feature-flags/index.d.ts index 06cb6f5add..81c5eb3956 100644 --- a/angular-feature-flags/index.d.ts +++ b/angular-feature-flags/index.d.ts @@ -32,7 +32,7 @@ declare module "angular" { } export interface FeatureFlagsProvider { - setInitialFlags(flags: Array): void; + setInitialFlags(flags: FlagData[]): void; } export interface FeatureFlagsService { diff --git a/angular-formly/index.d.ts b/angular-formly/index.d.ts index aed12f5360..75a93690b7 100644 --- a/angular-formly/index.d.ts +++ b/angular-formly/index.d.ts @@ -121,7 +121,7 @@ declare namespace AngularFormly { [key: string]: any; // types for select/radio fields - options?: Array; + options?: ISelectOption[]; groupProp?: string; // default: group valueProp?: string; // default: value labelProp?: string; // default: name diff --git a/angular-notifications/index.d.ts b/angular-notifications/index.d.ts index 1f33a7c840..d8b77d20d9 100644 --- a/angular-notifications/index.d.ts +++ b/angular-notifications/index.d.ts @@ -53,8 +53,8 @@ declare module 'angular' { /* ============ QUERYING RELATED METHODS ============*/ - getAll(): Array; - getQueue(): Array; + getAll(): INotification[]; + getQueue(): INotification[]; /* ============== NOTIFICATION METHODS ==============*/ diff --git a/angular-route/index.d.ts b/angular-route/index.d.ts index b0fbbe6bf9..ae68b5b888 100644 --- a/angular-route/index.d.ts +++ b/angular-route/index.d.ts @@ -44,7 +44,7 @@ declare module 'angular' { updateParams(newParams: { [key: string]: string }): void; } - type InlineAnnotatedFunction = Function | Array; + type InlineAnnotatedFunction = Function | (string | Function)[]; /** * see http://docs.angularjs.org/api/ngRoute/provider/$routeProvider#when for API documentation diff --git a/angular-ui-bootstrap/index.d.ts b/angular-ui-bootstrap/index.d.ts index bc23d9cd8d..1c964b8466 100644 --- a/angular-ui-bootstrap/index.d.ts +++ b/angular-ui-bootstrap/index.d.ts @@ -307,7 +307,7 @@ declare module 'angular' { * A controller can be injected with `$modalInstance` * If value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method) */ - controller?: string | Function | Array; + controller?: string | Function | (string | Function)[]; /** * an alternative to the controller-as syntax, matching the API of directive definitions. @@ -326,7 +326,7 @@ declare module 'angular' { * members that will be resolved and passed to the controller as locals; it is equivalent of the `resolve` property for AngularJS routes * If property value is an array, it must be in Inline Array Annotation format for injection (strings followed by factory method) */ - resolve?: { [key: string]: string | Function | Array | Object }; + resolve?: { [key: string]: string | Function | (string | Function)[] | Object }; /** * Set to false to disable animations on new modal/backdrop. Does not toggle animations for modals/backdrops that are already displayed. diff --git a/angular-ui-router/index.d.ts b/angular-ui-router/index.d.ts index c27d554e0e..496d0b1666 100644 --- a/angular-ui-router/index.d.ts +++ b/angular-ui-router/index.d.ts @@ -35,7 +35,7 @@ declare module 'angular' { /** * Function, returns HTML content string */ - templateProvider?: Function | Array; + templateProvider?: Function | (string | Function)[]; /** * String, component name */ @@ -43,12 +43,12 @@ declare module 'angular' { /** * A controller paired to the state. Function, annotated array or name as String */ - controller?: Function | string | Array; + controller?: Function | string | (string | Function)[]; controllerAs?: string; /** * Function (injectable), returns the actual controller function or string. */ - controllerProvider?: Function | Array; + controllerProvider?: Function | (string | Function)[]; /** * Specifies the parent state of this state @@ -74,12 +74,12 @@ declare module 'angular' { * Callback function for when a state is entered. Good way to trigger an action or dispatch an event, such as opening a dialog. * If minifying your scripts, make sure to explicitly annotate this function, because it won't be automatically annotated by your build tools. */ - onEnter?: Function | Array; + onEnter?: Function | (string | Function)[]; /** * Callback functions for when a state is entered and exited. Good way to trigger an action or dispatch an event, such as opening a dialog. * If minifying your scripts, make sure to explicitly annotate this function, because it won't be automatically annotated by your build tools. */ - onExit?: Function | Array; + onExit?: Function | (string | Function)[]; /** * Arbitrary data object, useful for custom configuration. */ diff --git a/antd/index.d.ts b/antd/index.d.ts index 0a69e7d0c7..a52e5f3d87 100644 --- a/antd/index.d.ts +++ b/antd/index.d.ts @@ -148,7 +148,7 @@ declare namespace Antd { interface BreadcrumbProps { /** router 的路由栈信息 */ - routes?: Array; + routes?: React.ReactNode[]; /** 路由的参数*/ params?: Object; /** 分隔符自定义*/ @@ -1826,7 +1826,7 @@ declare namespace Antd { render(): JSX.Element; } - type TreeData = Array<{ value: any, label: string, children: TreeData }>; + type TreeData = { value: any, label: string, children: TreeData }[]; interface TreeSelectProps { style?: Object; /** 指定当前选中的条目*/ diff --git a/babel-core/index.d.ts b/babel-core/index.d.ts index a3cd7019ab..5fef3a4c39 100644 --- a/babel-core/index.d.ts +++ b/babel-core/index.d.ts @@ -65,7 +65,7 @@ export interface TransformOptions { * A glob, regex, or mixed array of both, matching paths to only compile. Can also be an array of arrays containing * paths to explicitly match. When attempting to compile a non-matching file it's returned verbatim. */ - only?: string | RegExp | Array; + only?: string | RegExp | (string | RegExp)[]; /** Enable code generation. Default: `true`. */ code?: boolean; diff --git a/babel-types/index.d.ts b/babel-types/index.d.ts index 29d10fffa9..7066a57de4 100644 --- a/babel-types/index.d.ts +++ b/babel-types/index.d.ts @@ -32,9 +32,9 @@ export interface SourceLocation { export interface Node { type: string; - leadingComments?: Array; - innerComments?: Array; - trailingComments?: Array; + leadingComments?: Comment[]; + innerComments?: Comment[]; + trailingComments?: Comment[]; start: number; end: number; loc: SourceLocation; @@ -42,7 +42,7 @@ export interface Node { export interface ArrayExpression extends Node { type: "ArrayExpression"; - elements: Array; + elements: (Expression | SpreadElement)[]; } export interface AssignmentExpression extends Node { @@ -83,7 +83,7 @@ export interface BreakStatement extends Node { export interface CallExpression extends Node { type: "CallExpression"; callee: Expression | Super; - arguments: Array; + arguments: (Expression | SpreadElement)[]; } export interface CatchClause extends Node { @@ -228,19 +228,19 @@ export interface MemberExpression extends Node { export interface NewExpression extends Node { type: "NewExpression"; callee: Expression | Super; - arguments: Array; + arguments: (Expression | SpreadElement)[]; } export interface Program extends Node { type: "Program"; sourceType: "script" | "module"; directives?: Directive[]; - body: Array; + body: (Statement | ModuleDeclaration)[]; } export interface ObjectExpression extends Node { type: "ObjectExpression"; - properties: Array; + properties: (ObjectProperty | ObjectMethod | SpreadProperty)[]; } export interface ObjectMethod extends Node { @@ -359,7 +359,7 @@ export interface AssignmentPattern extends Node { export interface ArrayPattern extends Node { type: "ArrayPattern"; - elements: Array; + elements: Pattern[]; typeAnnotation?: TypeAnnotation; } @@ -377,7 +377,7 @@ export interface ArrowFunctionExpression extends Node { export interface ClassBody extends Node { type: "ClassBody"; - body: Array; + body: (ClassMethod | ClassProperty)[]; } export interface ClassDeclaration extends Node { @@ -437,7 +437,7 @@ export interface ForOfStatement extends Node { export interface ImportDeclaration extends Node { type: "ImportDeclaration"; - specifiers: Array; + specifiers: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[]; source: StringLiteral; } @@ -493,7 +493,7 @@ export interface AssignmentProperty extends Node { export interface ObjectPattern extends Node { type: "ObjectPattern"; - properties: Array; + properties: (AssignmentProperty | RestProperty)[]; typeAnnotation?: TypeAnnotation; } @@ -773,7 +773,7 @@ export interface JSXElement extends Node { type: "JSXElement"; openingElement: JSXOpeningElement; closingElement: JSXClosingElement; - children: Array; + children: (JSXElement | JSXExpressionContainer | JSXText)[]; selfClosing?: boolean; } @@ -907,14 +907,14 @@ export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | Mix export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareTypeAlias | DeclareVariable | InterfaceDeclaration | TypeAlias; export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText; -export function arrayExpression(elements?: Array): ArrayExpression; +export function arrayExpression(elements?: (Expression | SpreadElement)[]): ArrayExpression; export function assignmentExpression(operator?: string, left?: LVal, right?: Expression): AssignmentExpression; export function binaryExpression(operator?: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left?: Expression, right?: Expression): BinaryExpression; export function directive(value?: DirectiveLiteral): Directive; export function directiveLiteral(value?: string): DirectiveLiteral; export function blockStatement(body?: Statement[], directives?: Directive[]): BlockStatement; export function breakStatement(label?: Identifier): BreakStatement; -export function callExpression(callee?: Expression, _arguments?: Array): CallExpression; +export function callExpression(callee?: Expression, _arguments?: (Expression | SpreadElement)[]): CallExpression; export function catchClause(param?: Identifier, body?: BlockStatement): CatchClause; export function conditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression; export function continueStatement(label?: Identifier): ContinueStatement; @@ -937,9 +937,9 @@ export function booleanLiteral(value?: boolean): BooleanLiteral; export function regExpLiteral(pattern?: string, flags?: string): RegExpLiteral; export function logicalExpression(operator?: "||" | "&&", left?: Expression, right?: Expression): LogicalExpression; export function memberExpression(object?: Expression | Super, property?: Expression, computed?: boolean): MemberExpression; -export function newExpression(callee?: Expression | Super, _arguments?: Array): NewExpression; -export function program(body?: Array, directives?: Directive[]): Program; -export function objectExpression(properties?: Array): ObjectExpression; +export function newExpression(callee?: Expression | Super, _arguments?: (Expression | SpreadElement)[]): NewExpression; +export function program(body?: (Statement | ModuleDeclaration)[], directives?: Directive[]): Program; +export function objectExpression(properties?: (ObjectProperty | ObjectMethod | SpreadProperty)[]): ObjectExpression; export function objectMethod(kind?: "get" | "set" | "method", key?: Expression, params?: Pattern[], body?: BlockStatement, computed?: boolean): ObjectMethod; export function objectProperty(key?: Expression, value?: Expression, computed?: boolean, shorthand?: boolean, decorators?: Decorator[]): ObjectProperty; export function restElement(argument?: LVal, typeAnnotation?: TypeAnnotation): RestElement; @@ -957,9 +957,9 @@ export function variableDeclarator(id?: LVal, init?: Expression): VariableDeclar export function whileStatement(test?: Expression, body?: BlockStatement | Statement): WhileStatement; export function withStatement(object?: Expression, body?: BlockStatement | Statement): WithStatement; export function assignmentPattern(left?: Identifier, right?: Expression): AssignmentPattern; -export function arrayPattern(elements?: Array, typeAnnotation?: TypeAnnotation): ArrayPattern; +export function arrayPattern(elements?: Pattern[], typeAnnotation?: TypeAnnotation): ArrayPattern; export function arrowFunctionExpression(params?: Pattern[], body?: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression; -export function classBody(body?: Array): ClassBody; +export function classBody(body?: (ClassMethod | ClassProperty)[]): ClassBody; export function classDeclaration(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassDeclaration; export function classExpression(id?: Identifier, superClass?: Expression, body?: ClassBody, decorators?: Decorator[]): ClassExpression; export function exportAllDeclaration(source?: StringLiteral): ExportAllDeclaration; diff --git a/babylonjs/index.d.ts b/babylonjs/index.d.ts index 05413db931..b09f328993 100644 --- a/babylonjs/index.d.ts +++ b/babylonjs/index.d.ts @@ -2135,8 +2135,8 @@ declare namespace BABYLON { _initialize(source: Vector3, dir: Vector3, e: number): void; _checkPointInTriangle(point: Vector3, pa: Vector3, pb: Vector3, pc: Vector3, n: Vector3): boolean; _canDoCollision(sphereCenter: Vector3, sphereRadius: number, vecMin: Vector3, vecMax: Vector3): boolean; - _testTriangle(faceIndex: number, trianglePlaneArray: Array, p1: Vector3, p2: Vector3, p3: Vector3, hasMaterial: boolean): void; - _collide(trianglePlaneArray: Array, pts: Vector3[], indices: number[] | Int32Array, indexStart: number, indexEnd: number, decal: number, hasMaterial: boolean): void; + _testTriangle(faceIndex: number, trianglePlaneArray: Plane[], p1: Vector3, p2: Vector3, p3: Vector3, hasMaterial: boolean): void; + _collide(trianglePlaneArray: Plane[], pts: Vector3[], indices: number[] | Int32Array, indexStart: number, indexEnd: number, decal: number, hasMaterial: boolean): void; _getResponse(pos: Vector3, vel: Vector3): void; } } @@ -2546,7 +2546,7 @@ declare namespace BABYLON { constructor(name: string, direction: Vector3, scene: Scene); getAbsolutePosition(): Vector3; setDirectionToTarget(target: Vector3): Vector3; - setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: Array): void; + setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: AbstractMesh[]): void; supportsVSM(): boolean; needRefreshPerFrame(): boolean; needCube(): boolean; @@ -2580,7 +2580,7 @@ declare namespace BABYLON { name: string; computeTransformedPosition(): boolean; getScene(): Scene; - setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: Array): void; + setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: AbstractMesh[]): void; supportsVSM(): boolean; needRefreshPerFrame(): boolean; needCube(): boolean; @@ -2626,7 +2626,7 @@ declare namespace BABYLON { supportsVSM(): boolean; needRefreshPerFrame(): boolean; getShadowDirection(faceIndex?: number): Vector3; - setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: Array): void; + setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: AbstractMesh[]): void; _getWorldMatrix(): Matrix; serialize(): any; } @@ -2643,7 +2643,7 @@ declare namespace BABYLON { private _worldMatrix; constructor(name: string, position: Vector3, direction: Vector3, angle: number, exponent: number, scene: Scene); getAbsolutePosition(): Vector3; - setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: Array): void; + setShadowProjectionMatrix(matrix: Matrix, viewMatrix: Matrix, renderList: AbstractMesh[]): void; needCube(): boolean; supportsVSM(): boolean; needRefreshPerFrame(): boolean; @@ -6033,7 +6033,7 @@ declare namespace BABYLON { meshesNames: any; rootUrl: string; sceneFilename: string; - loadedMeshes: Array; + loadedMeshes: AbstractMesh[]; loadedParticleSystems: Array; loadedSkeletons: Array; onSuccess: (task: IAssetTask) => void; @@ -6710,11 +6710,11 @@ declare namespace BABYLON { declare namespace BABYLON { interface IOctreeContainer { - blocks: Array>; + blocks: OctreeBlock[]; } class Octree { maxDepth: number; - blocks: Array>; + blocks: OctreeBlock[]; dynamicContent: T[]; private _maxBlockCapacity; private _selectionContent; @@ -6734,7 +6734,7 @@ declare namespace BABYLON { declare namespace BABYLON { class OctreeBlock { entries: T[]; - blocks: Array>; + blocks: OctreeBlock[]; private _depth; private _maxDepth; private _capacity; diff --git a/babyparse/index.d.ts b/babyparse/index.d.ts index 3cf0f2dc6a..f43e506427 100644 --- a/babyparse/index.d.ts +++ b/babyparse/index.d.ts @@ -18,9 +18,9 @@ declare namespace BabyParse { /** * Unparses javascript data objects and returns a csv string */ - unparse(data: Array, config?: UnparseConfig): string; + unparse(data: Object[], config?: UnparseConfig): string; - unparse(data: Array, config?: UnparseConfig): string; + unparse(data: any[][], config?: UnparseConfig): string; unparse(data: UnparseObject, config?: UnparseConfig): string; diff --git a/cassandra-driver/index.d.ts b/cassandra-driver/index.d.ts index 8c5915328a..f0ecef7f61 100644 --- a/cassandra-driver/index.d.ts +++ b/cassandra-driver/index.d.ts @@ -481,7 +481,7 @@ export interface QueryOptions { consistency?: number; customPayload?: any; fetchSize?: number; - hints?: string[] | Array; + hints?: string[] | string[][]; logged?: boolean; pageState?: Buffer | string; prepare?: boolean; diff --git a/chai-jquery/index.d.ts b/chai-jquery/index.d.ts index 540928091c..e85efaa1d1 100644 --- a/chai-jquery/index.d.ts +++ b/chai-jquery/index.d.ts @@ -216,7 +216,7 @@ interface ChaiJQueryStatic { * * @param deferreds One or more Deferred objects, or plain JavaScript objects. */ - when(...deferreds: Array/* as JQueryDeferred */>): JQueryPromise; + when(...deferreds: (T|JQueryPromise/* as JQueryDeferred */)[]): JQueryPromise; /** * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties. diff --git a/chartist/index.d.ts b/chartist/index.d.ts index 1e964bb348..80cbf2f28a 100644 --- a/chartist/index.d.ts +++ b/chartist/index.d.ts @@ -76,8 +76,8 @@ 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?: string[] | number[] | Array; - series: Array | number[] | Array; + labels?: string[] | number[] | Date[]; + series: IChartistSeriesData[] | number[] | number[][]; } interface IChartistSeriesData { @@ -93,7 +93,7 @@ declare namespace Chartist { data: IChartistData; defaultOptions: T; options: T; - responsiveOptions: Array>; + responsiveOptions: IResponsiveOptionTuple[]; // this most likely doesn't need to be exposed to the user eventEmitter: any; @@ -127,15 +127,15 @@ declare namespace Chartist { } interface IChartistPieChart extends IChartistBase { - new (target: any, data: IChartistData, options?: IPieChartOptions, responsiveOptions?: Array>): IChartistPieChart; + new (target: any, data: IChartistData, options?: IPieChartOptions, responsiveOptions?: IResponsiveOptionTuple[]): IChartistPieChart; } interface IChartistLineChart extends IChartistBase { - new (target: any, data: IChartistData, options?: ILineChartOptions, responsiveOptions?: Array>): IChartistLineChart; + new (target: any, data: IChartistData, options?: ILineChartOptions, responsiveOptions?: IResponsiveOptionTuple[]): IChartistLineChart; } interface IChartistBarChart extends IChartistBase { - new (target: any, data: IChartistData, options?: IBarChartOptions, responsiveOptions?: Array>): IChartistBarChart; + new (target: any, data: IChartistData, options?: IBarChartOptions, responsiveOptions?: IResponsiveOptionTuple[]): IChartistBarChart; } interface IChartOptions { @@ -237,7 +237,7 @@ declare namespace Chartist { height?: number | string; high?: number; low?: number; - ticks?: Array; + ticks?: (string | number)[]; onlyInteger?: boolean; chartPadding?: IChartPadding; seriesBarDistance?: number; @@ -292,7 +292,7 @@ declare namespace Chartist { lineSmooth?: Function | boolean; low?: number; high?: number; - ticks?: Array; + ticks?: (string | number)[]; chartPadding?: IChartPadding; fullWidth?: boolean; classNames?: ILineChartClasses; diff --git a/chartjs/index.d.ts b/chartjs/index.d.ts index 13b5b6e48f..c7788c12c5 100644 --- a/chartjs/index.d.ts +++ b/chartjs/index.d.ts @@ -117,7 +117,7 @@ interface CircularInstance extends ChartInstance { update: () => void; addData: (valuesArray: CircularChartData, index?: number) => void; removeData: (index: number) => void; - segments: Array; + segments: CircularChartData[]; } interface LineChartOptions extends ChartOptions { diff --git a/cheap-ruler/index.d.ts b/cheap-ruler/index.d.ts index 1b3e1f17e8..e59b94ad5f 100644 --- a/cheap-ruler/index.d.ts +++ b/cheap-ruler/index.d.ts @@ -6,9 +6,9 @@ declare module "cheap-ruler" { type BBox = [number, number, number, number] | number[]; type Point = [number, number] | number[]; - type Line = Array; - type Points = Array; - type Polygon = Array>; + type Line = Point[]; + type Points = Point[]; + type Polygon = Point[][]; interface TemplateUnits { kilometers: number; diff --git a/chrome/chrome-cast.d.ts b/chrome/chrome-cast.d.ts index 257c46bedf..6a7f734b44 100644 --- a/chrome/chrome-cast.d.ts +++ b/chrome/chrome-cast.d.ts @@ -175,7 +175,7 @@ declare namespace chrome.cast { * @param {function(chrome.cast.Error)} errorCallback */ export function setCustomReceivers( - receivers: Array, + receivers: chrome.cast.Receiver[], successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void; @@ -195,7 +195,7 @@ declare namespace chrome.cast { /** * @param {!chrome.cast.SessionRequest} sessionRequest * @param {function(!chrome.cast.Session)} sessionListener - * @param {function(!chrome.cast.ReceiverAvailability,Array)} + * @param {function(!chrome.cast.ReceiverAvailability,Object[])} * receiverListener * @param {chrome.cast.AutoJoinPolicy=} opt_autoJoinPolicy * @param {chrome.cast.DefaultActionPolicy=} opt_defaultActionPolicy @@ -277,12 +277,12 @@ declare namespace chrome.cast { */ new( appId: string, - capabilities?: Array, + capabilities?: chrome.cast.Capability[], timeout?: number ): SessionRequest; appId: string; - capabilities: Array; + capabilities: chrome.cast.Capability[]; requestSessionTimeout: number; language?: string; } @@ -301,18 +301,18 @@ declare namespace chrome.cast { sessionId: string, appId: string, displayName: string, - appImages: Array, + appImages: chrome.cast.Image[], receiver: chrome.cast.Receiver ): Session; sessionId: string; appId: string; displayName: string; - appImages: Array; + appImages: chrome.cast.Image[]; receiver: chrome.cast.Receiver; - senderApps: Array; - namespaces: Array<{name: string}>; - media: Array; + senderApps: chrome.cast.SenderApplication[]; + namespaces: {name: string}[]; + media: chrome.cast.media.Media[]; status: chrome.cast.SessionStatus; /** @@ -449,13 +449,13 @@ declare namespace chrome.cast { new( label: string, friendlyName: string, - capabilities?: Array, + capabilities?: chrome.cast.Capability[], volume?: chrome.cast.Volume ): Receiver; label: string; friendlyName: string; - capabilities: Array; + capabilities: chrome.cast.Capability[]; volume: chrome.cast.Volume; receiverType: chrome.cast.ReceiverType; displayStatus: chrome.cast.ReceiverDisplayStatus; @@ -470,11 +470,11 @@ declare namespace chrome.cast { */ new( statusText: string, - appImages: Array + appImages: chrome.cast.Image[] ): ReceiverDisplayStatus; statusText: string; - appImages: Array; + appImages: chrome.cast.Image[]; } interface Volume { @@ -599,11 +599,11 @@ declare namespace chrome.cast.media { * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueLoadRequest */ new( - items: Array + items: chrome.cast.media.QueueItem[] ): QueueLoadRequest; customData: Object; - items: Array; + items: chrome.cast.media.QueueItem[]; repeatMode: chrome.cast.media.RepeatMode; startIndex: number; } @@ -615,12 +615,12 @@ declare namespace chrome.cast.media { * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueInsertItemsRequest */ new( - itemsToInsert: Array + itemsToInsert: chrome.cast.media.QueueItem[] ): QueueInsertItemsRequest; customData: Object; insertBefore: number; - items: Array; + items: chrome.cast.media.QueueItem[]; } interface QueueRemoveItemsRequest { @@ -659,11 +659,11 @@ declare namespace chrome.cast.media { * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueUpdateItemsRequest */ new( - itemsToUpdate: Array + itemsToUpdate: chrome.cast.media.QueueItem[] ): QueueUpdateItemsRequest; customData: Object; - item: Array; + item: chrome.cast.media.QueueItem[]; } /** @@ -841,7 +841,7 @@ declare namespace chrome.cast.media { */ new(): GenericMediaMetadata; - images: Array; + images: chrome.cast.Image[]; metadataType: chrome.cast.media.MetadataType; releaseDate: string; /** @deprecated. Use releaseDate instead. */ @@ -859,7 +859,7 @@ declare namespace chrome.cast.media { */ new(): MovieMediaMetadata; - images: Array; + images: chrome.cast.Image[]; metadataType: chrome.cast.media.MetadataType; releaseDate: string; /** @deprecated. Use releaseDate instead. */ @@ -883,7 +883,7 @@ declare namespace chrome.cast.media { title: string; season: number; episode: number; - images: Array; + images: chrome.cast.Image[]; originalAirdate: string; /** @deprecated. Use metadataType instead. */ @@ -914,7 +914,7 @@ declare namespace chrome.cast.media { songName: string; trackNumber: number; discNumber: number; - images: Array; + images: chrome.cast.Image[]; releaseDate: string; /** @deprecated. Use metadataType instead. */ @@ -936,7 +936,7 @@ declare namespace chrome.cast.media { title: string; artist: string; location: string; - images: Array; + images: chrome.cast.Image[]; latitude: number; longitude: number; width: number; @@ -964,7 +964,7 @@ declare namespace chrome.cast.media { contentType: string; metadata: Object; duration: number; - tracks: Array; + tracks: chrome.cast.media.Track[]; textTrackStyle: chrome.cast.media.TextTrackStyle; customData: Object; } @@ -985,7 +985,7 @@ declare namespace chrome.cast.media { currentItemId: number; customData: Object; idleReason: chrome.cast.media.IdleReason; - items: Array; + items: chrome.cast.media.QueueItem[]; loadingItemId: number; media: chrome.cast.media.MediaInfo; mediaSessionId: number; @@ -994,7 +994,7 @@ declare namespace chrome.cast.media { preloadedItemId: number; repeatMode: chrome.cast.media.RepeatMode; sessionId: string; - supportedMediaCommands: Array; + supportedMediaCommands: chrome.cast.media.MediaCommand[]; volume: chrome.cast.Volume; /** @deprecated. Use getEstimatedTime instead */ diff --git a/cliff/index.d.ts b/cliff/index.d.ts index 446e63517a..132ca1fa43 100644 --- a/cliff/index.d.ts +++ b/cliff/index.d.ts @@ -5,7 +5,7 @@ export function inspect(obj: any): string; export function stringifyRows(rows: string[][], colors?: string[]): string; -export function stringifyObjectRows(rows: Array<{}>, keys: string[], colors?: string[]): string; +export function stringifyObjectRows(rows: {}[], keys: string[], colors?: string[]): string; export function putRows(level: string, rows: string[][], colors?: string[]): void; -export function putObjectRows(level: string, rows: Array<{}>, keys: string[], colors?: string[]): void; +export function putObjectRows(level: string, rows: {}[], keys: string[], colors?: string[]): void; export function putObject(level: string, object: any, rewriters?: any, padding?: any): void; \ No newline at end of file diff --git a/concaveman/index.d.ts b/concaveman/index.d.ts index 5e302ce5b8..2a4a755983 100644 --- a/concaveman/index.d.ts +++ b/concaveman/index.d.ts @@ -8,10 +8,10 @@ declare module "concaveman" { * A very fast 2D concave hull algorithm in JavaScript (generates a general outline of a point set). * * @name concaveman - * @param {Array} points is an array of [x, y] points. + * @param {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} + * @return {number[][]} * @example * var points = [[10, 20], [30, 12.5], ...]; * var polygon = concaveman(points); diff --git a/core-js/index.d.ts b/core-js/index.d.ts index 03cddf8ae6..660ec6d1a5 100644 --- a/core-js/index.d.ts +++ b/core-js/index.d.ts @@ -152,7 +152,7 @@ interface ArrayConstructor { * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; /** * Creates an array from an iterable object. @@ -160,7 +160,7 @@ interface ArrayConstructor { * @param mapfn A mapping function to call on every element of the array. * @param thisArg Value of 'this' used to invoke the mapfn. */ - from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): Array; + from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; /** * Creates an array from an array-like object. @@ -882,7 +882,7 @@ declare namespace Reflect { function getPrototypeOf(target: any): any; function has(target: any, propertyKey: PropertyKey): boolean; function isExtensible(target: any): boolean; - function ownKeys(target: any): Array; + function ownKeys(target: any): PropertyKey[]; function preventExtensions(target: any): boolean; function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean; function setPrototypeOf(target: any, proto: any): boolean; @@ -1316,7 +1316,7 @@ declare namespace core { function has(target: any, propertyKey: string): boolean; function has(target: any, propertyKey: symbol): boolean; function isExtensible(target: any): boolean; - function ownKeys(target: any): Array; + function ownKeys(target: any): PropertyKey[]; function preventExtensions(target: any): boolean; function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean; function setPrototypeOf(target: any, proto: any): boolean; @@ -1357,8 +1357,8 @@ declare namespace core { }; var Array: { - from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): Array; - from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): Array; + from(arrayLike: ArrayLike, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; + from(iterable: Iterable, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; from(arrayLike: ArrayLike): T[]; from(iterable: Iterable): T[]; of(...items: T[]): T[]; diff --git a/css/index.d.ts b/css/index.d.ts index f204b2617a..7643bfc594 100644 --- a/css/index.d.ts +++ b/css/index.d.ts @@ -92,7 +92,7 @@ export interface Rule extends Node { /** The list of selectors of the rule, split on commas. Each selector is trimmed from whitespace and comments. */ selectors?: string[]; /** Array of nodes with the types declaration and comment. */ - declarations?: Array; + declarations?: (Declaration | Comment)[]; } export interface Declaration extends Node { @@ -136,7 +136,7 @@ export interface Document { /** The vendor prefix in @document, or undefined if there is none. */ vendor?: string; /** Array of nodes with the types rule, comment and any of the at-rule types. */ - rules?: Array; + rules?: (Rule | Comment | AtRule)[]; } /** @@ -144,7 +144,7 @@ export interface Document { */ export interface FontFace { /** Array of nodes with the types declaration and comment. */ - declarations?: Array; + declarations?: (Declaration | Comment)[]; } /** @@ -152,7 +152,7 @@ export interface FontFace { */ export interface Host { /** Array of nodes with the types rule, comment and any of the at-rule types. */ - rules?: Array; + rules?: (Rule | Comment | AtRule)[]; } /** @@ -172,14 +172,14 @@ export interface KeyFrames { /** The vendor prefix in @keyframes, or undefined if there is none. */ vendor?: string; /** Array of nodes with the types keyframe and comment. */ - keyframes?: Array; + keyframes?: (KeyFrame | Comment)[]; } export interface KeyFrame { /** The list of "selectors" of the keyframe rule, split on commas. Each “selector” is trimmed from whitespace. */ values?: string[]; /** Array of nodes with the types declaration and comment. */ - declarations?: Array; + declarations?: (Declaration | Comment)[]; } /** @@ -189,7 +189,7 @@ export interface Media { /** The part following @media. */ media?: string; /** Array of nodes with the types rule, comment and any of the at-rule types. */ - rules?: Array; + rules?: (Rule | Comment | AtRule)[]; } /** @@ -207,7 +207,7 @@ export interface Page { /** The list of selectors of the rule, split on commas. Each selector is trimmed from whitespace and comments. */ selectors?: string[]; /** Array of nodes with the types declaration and comment. */ - declarations?: Array; + declarations?: (Declaration | Comment)[]; } /** @@ -217,7 +217,7 @@ export interface Supports { /** The part following @supports. */ supports?: string; /** Array of nodes with the types rule, comment and any of the at-rule types. */ - rules?: Array; + rules?: (Rule | Comment | AtRule)[]; } /** All at-rules. */ @@ -229,9 +229,9 @@ export type AtRule = Charset | CustomMedia | Document | FontFace | Host | Import export interface Stylesheet extends Node { stylesheet?: { /** Array of nodes with the types rule, comment and any of the at-rule types. */ - rules?: Array; + rules?: (Rule | Comment | AtRule)[]; /** Array of Errors. Errors collected during parsing when option silent is true. */ - parsingErrors?: Array + parsingErrors?: ParserError[] }; } diff --git a/cucumber/index.d.ts b/cucumber/index.d.ts index c567d3f4af..c81d709ac0 100644 --- a/cucumber/index.d.ts +++ b/cucumber/index.d.ts @@ -22,7 +22,7 @@ declare namespace cucumber { type StepDefinitionParam = string | CallbackStepDefinition | TableDefinition; interface StepDefinitionCode { - (...stepArgs: Array): PromiseLike | any | void; + (...stepArgs: StepDefinitionParam[]): PromiseLike | any | void; } interface StepDefinitionOptions { diff --git a/d3-axis/index.d.ts b/d3-axis/index.d.ts index da52ced500..29076990ab 100644 --- a/d3-axis/index.d.ts +++ b/d3-axis/index.d.ts @@ -32,11 +32,11 @@ export interface AxisTimeInterval { */ export interface AxisScale { (x: Domain): number; - domain(): Array; + domain(): Domain[]; range(): number[]; copy(): AxisScale; bandwidth?(): number; - ticks?(count: number | AxisTimeInterval): number[] | Array; + ticks?(count: number | AxisTimeInterval): number[] | Date[]; tickFormat?(count: number | AxisTimeInterval, specifier?: string): ((d: number) => string) | ((d: Date) => string); } diff --git a/d3-dsv/index.d.ts b/d3-dsv/index.d.ts index 71dee66c46..3dec5cb71f 100644 --- a/d3-dsv/index.d.ts +++ b/d3-dsv/index.d.ts @@ -30,7 +30,7 @@ export function csvParse(csvString: string, row: (r // csvParseRows(...) ======================================================================== -export function csvParseRows(csvString: string): Array; +export function csvParseRows(csvString: string): string[][]; export function csvParseRows(csvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array; // csvFormat(...) ============================================================================ @@ -40,7 +40,7 @@ export function csvFormat(rows: Array, columns: string[]): string; // csvFormatRows(...) ======================================================================== -export function csvFormatRows(rows: Array): string; +export function csvFormatRows(rows: string[][]): string; // ------------------------------------------------------------------------------------------ // TSV Parsers and Formatters @@ -53,7 +53,7 @@ export function tsvParse(tsvString: string, row: (r // tsvParseRows(...) ======================================================================== -export function tsvParseRows(tsvString: string): Array; +export function tsvParseRows(tsvString: string): string[][]; export function tsvParseRows(tsvString: string, row: (rawRow: string[], index: number) => MappedRow): Array; // tsvFormat(...) ============================================================================ @@ -63,7 +63,7 @@ export function tsvFormat(rows: Array, columns: string[]): string; // tsvFormatRows(...) ======================================================================== -export function tsvFormatRows(rows: Array): string; +export function tsvFormatRows(rows: string[][]): string; // ------------------------------------------------------------------------------------------ // DSV Generalized Parsers and Formatters @@ -72,11 +72,11 @@ export function tsvFormatRows(rows: Array): string; export interface DSV { parse(dsvString: string): DSVParsedArray; parse(dsvString: string, row: (rawRow: DSVRowString, index: number, columns: string[]) => ParsedRow): DSVParsedArray; - parseRows(dsvString: string): Array; + parseRows(dsvString: string): string[][]; parseRows(dsvString: string, row: (rawRow: string[], index: number) => ParsedRow): Array; format(rows: Array): string; format(rows: Array, columns: string[]): string; - formatRows(rows: Array): string; + formatRows(rows: string[][]): string; } export function dsvFormat(delimiter: string): DSV; diff --git a/db-migrate-base/index.d.ts b/db-migrate-base/index.d.ts index f2cf9634a0..ef31400378 100644 --- a/db-migrate-base/index.d.ts +++ b/db-migrate-base/index.d.ts @@ -52,7 +52,7 @@ export interface ColumnDef { } export interface CreateTableOptions { - columns?: Array; + columns?: ColumnSpec[]; ifNotExists?: boolean; } diff --git a/dc/index.d.ts b/dc/index.d.ts index de01d4fb44..2850efb1e0 100644 --- a/dc/index.d.ts +++ b/dc/index.d.ts @@ -294,7 +294,7 @@ declare namespace DC { export interface DataTableWidget extends BaseMixin { size: IGetSet; - columns: IGetSet|string|Array|string>>, DataTableWidget>; + columns: IGetSet<(Accessor|string|(Accessor|string)[])[], DataTableWidget>; sortBy: IGetSet, DataTableWidget>; order: IGetSet<(a: any, b: any) => number, DataTableWidget>; } diff --git a/devextreme/devextreme-15.1.3.d.ts b/devextreme/devextreme-15.1.3.d.ts index a371d14ff6..e30f71a850 100644 --- a/devextreme/devextreme-15.1.3.d.ts +++ b/devextreme/devextreme-15.1.3.d.ts @@ -778,7 +778,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -894,7 +894,7 @@ declare namespace DevExpress.data { /** Specifies data filtering conditions. */ filter?: Object; /** An array of pivot grid fields. */ - fields?: Array; + fields?: PivotGridField[]; /** Indicates whether or not the local sorting of the XMLA data should be performed. */ localSorting?: boolean; /** A handler for the changed event. */ @@ -904,7 +904,7 @@ declare namespace DevExpress.data { /** A handler for the loadError event. */ onLoadError?: (e?: Object) => void; /** A handler for the fieldsPrepared event. */ - onFieldsPrepared?: (e?: Array) => void; + onFieldsPrepared?: (e?: PivotGridField[]) => void; } /** An object that provides access to data for the dxPivotGrid widget. */ export class PivotGridDataSource implements EventsMixin { @@ -916,11 +916,11 @@ declare namespace DevExpress.data { /** Gets data displayed in a PivotGrid. */ getData(): Object; /** Gets all fields within a specified area. */ - getAreaFields(area: string, collectGroups: boolean): Array; + getAreaFields(area: string, collectGroups: boolean): PivotGridField[]; /** Gets all fields from the data source. */ - fields(): Array; + fields(): PivotGridField[]; /** Sets the fields option. */ - fields(fields: Array): void; + fields(fields: PivotGridField[]): void; /** Gets current options of a specified field. */ field(id: number): PivotGridField; /** Sets one or more options of a specified field. */ @@ -1115,7 +1115,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -1178,7 +1178,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -2229,9 +2229,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2748,7 +2748,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -2976,7 +2976,7 @@ Specifies the data source providing data for a lookup column. /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3533,9 +3533,9 @@ Specifies the message displayed in a group row when the corresponding group cont /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ diff --git a/devextreme/devextreme-15.1.4.d.ts b/devextreme/devextreme-15.1.4.d.ts index dc8544b8af..4f6643217c 100644 --- a/devextreme/devextreme-15.1.4.d.ts +++ b/devextreme/devextreme-15.1.4.d.ts @@ -794,7 +794,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1847,9 +1847,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2746,7 +2746,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -2974,7 +2974,7 @@ Specifies the data source providing data for a lookup column. /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3531,9 +3531,9 @@ Specifies the message displayed in a group row when the corresponding group cont /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -3939,7 +3939,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -4002,7 +4002,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; diff --git a/devextreme/devextreme-15.1.5.d.ts b/devextreme/devextreme-15.1.5.d.ts index 84e17ebf72..162ae9e0f0 100644 --- a/devextreme/devextreme-15.1.5.d.ts +++ b/devextreme/devextreme-15.1.5.d.ts @@ -796,7 +796,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1852,9 +1852,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2753,7 +2753,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -2981,7 +2981,7 @@ Specifies the data source providing data for a lookup column. /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3540,9 +3540,9 @@ Specifies the message displayed in a group row when the corresponding group cont /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -3952,7 +3952,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -4015,7 +4015,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; diff --git a/devextreme/devextreme-15.1.6.d.ts b/devextreme/devextreme-15.1.6.d.ts index 48c2733766..7eff8fd9ef 100644 --- a/devextreme/devextreme-15.1.6.d.ts +++ b/devextreme/devextreme-15.1.6.d.ts @@ -802,7 +802,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1873,9 +1873,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2843,7 +2843,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3071,7 +3071,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3630,9 +3630,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4044,7 +4044,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -4107,7 +4107,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; diff --git a/devextreme/devextreme-15.1.7.d.ts b/devextreme/devextreme-15.1.7.d.ts index 4d020ce475..36007d9607 100644 --- a/devextreme/devextreme-15.1.7.d.ts +++ b/devextreme/devextreme-15.1.7.d.ts @@ -805,7 +805,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1871,9 +1871,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2805,7 +2805,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3031,7 +3031,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3589,9 +3589,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4003,7 +4003,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -4066,7 +4066,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; diff --git a/devextreme/devextreme-15.1.8.d.ts b/devextreme/devextreme-15.1.8.d.ts index fef832662f..d219e49d0f 100644 --- a/devextreme/devextreme-15.1.8.d.ts +++ b/devextreme/devextreme-15.1.8.d.ts @@ -809,7 +809,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1875,9 +1875,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -2816,7 +2816,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3042,7 +3042,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3597,9 +3597,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4011,7 +4011,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; @@ -4074,7 +4074,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "viewDisposed", eventHandler: (e: { viewInfo: Object; diff --git a/devextreme/devextreme-15.2.4.d.ts b/devextreme/devextreme-15.2.4.d.ts index e155e6e680..dc73548903 100644 --- a/devextreme/devextreme-15.2.4.d.ts +++ b/devextreme/devextreme-15.2.4.d.ts @@ -777,7 +777,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1838,9 +1838,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -3009,7 +3009,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3248,7 +3248,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3815,9 +3815,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4291,7 +4291,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; @@ -4360,7 +4360,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; diff --git a/devextreme/devextreme-15.2.5.d.ts b/devextreme/devextreme-15.2.5.d.ts index 4137259364..2c63ec72fd 100644 --- a/devextreme/devextreme-15.2.5.d.ts +++ b/devextreme/devextreme-15.2.5.d.ts @@ -784,7 +784,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1845,9 +1845,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -3039,7 +3039,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3278,7 +3278,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3854,9 +3854,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4337,7 +4337,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; @@ -4406,7 +4406,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; diff --git a/devextreme/devextreme-15.2.7.d.ts b/devextreme/devextreme-15.2.7.d.ts index 5544432def..444c3f027b 100644 --- a/devextreme/devextreme-15.2.7.d.ts +++ b/devextreme/devextreme-15.2.7.d.ts @@ -784,7 +784,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1854,9 +1854,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -3065,7 +3065,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3314,7 +3314,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3889,9 +3889,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4371,7 +4371,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; @@ -4440,7 +4440,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; diff --git a/devextreme/devextreme-15.2.9.d.ts b/devextreme/devextreme-15.2.9.d.ts index 190bb773cd..6d80693c4d 100644 --- a/devextreme/devextreme-15.2.9.d.ts +++ b/devextreme/devextreme-15.2.9.d.ts @@ -788,7 +788,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1858,9 +1858,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -3069,7 +3069,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3318,7 +3318,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3899,9 +3899,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4381,7 +4381,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; @@ -4450,7 +4450,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; diff --git a/devextreme/index.d.ts b/devextreme/index.d.ts index 30f277dba3..f77f1527a1 100644 --- a/devextreme/index.d.ts +++ b/devextreme/index.d.ts @@ -795,7 +795,7 @@ declare namespace DevExpress { /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ confirm(message: string, title: string): JQueryPromise; /** Creates a custom dialog using the options specified by the passed configuration object. */ - custom(options: { title?: string; message?: string; buttons?: Array; }): { + custom(options: { title?: string; message?: string; buttons?: Object[]; }): { show(): JQueryPromise; hide(): void; hide(value: any): void; @@ -1913,9 +1913,9 @@ declare namespace DevExpress.ui { } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ - rows?: Array; + rows?: Object[]; /** Specifies the collection of columns for the grid used to position layout elements. */ - cols?: Array; + cols?: Object[]; /** Specifies the function returning the screen factor depending on the screen width. */ screenByWidth?: (width: number) => string; /** Specifies the screen factor with which all elements are located in a single column. */ @@ -3125,7 +3125,7 @@ declare namespace DevExpress.ui { /** Collapses the specified item. */ collapseItem(itemElement: any): void; /** Returns all nodes of the tree view. */ - getNodes(): Array; + getNodes(): Object[]; /** Selects all widget items. */ selectAll(): void; /** Unselects all widget items. */ @@ -3379,7 +3379,7 @@ declare namespace DevExpress.ui { /** Specifies a column width in pixels or percentages. */ width?: any; /** Specifies an array of validation rules to be checked when updating column cell values. */ - validationRules?: Array; + validationRules?: Object[]; /** Specifies whether or not to display the header of a hidden column in the column chooser. */ showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ @@ -3960,9 +3960,9 @@ declare namespace DevExpress.ui { /** Returns a filter expression applied to the grid using all possible scenarious. */ getCombinedFilter(): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; + getSelectedRowKeys(): Object[]; /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowsData(): Object[]; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ @@ -4442,7 +4442,7 @@ declare namespace DevExpress.framework { on(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; on(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; @@ -4511,7 +4511,7 @@ declare namespace DevExpress.framework { off(eventName: "resolveLayoutController", eventHandler: (e: { viewInfo: Object; layoutController: Object; - availableLayoutControllers: Array; + availableLayoutControllers: Object[]; }) => void): HtmlApplication; off(eventName: "resolveViewCacheKey", eventHandler: (e: { key: string; diff --git a/documentdb-server/index.d.ts b/documentdb-server/index.d.ts index 8b6437d9b0..b96969d5b1 100644 --- a/documentdb-server/index.d.ts +++ b/documentdb-server/index.d.ts @@ -38,7 +38,7 @@ interface IQueryAPI { */ filter(predicate: (document: Object) => boolean, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; filter(predicate: (document: Object) => boolean, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -51,7 +51,7 @@ interface IQueryAPI { */ map(predicate: (document: Object) => Object, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; map(predicate: (document: Object) => Object, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -64,7 +64,7 @@ interface IQueryAPI { */ pluck(propertyName: string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; pluck(propertyName: string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -77,7 +77,7 @@ interface IQueryAPI { */ flatten(isShallow?: boolean, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; flatten(isShallow?: boolean, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -90,10 +90,10 @@ interface IQueryAPI { */ sortBy(predicate: (document: Object) => string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; sortBy(predicate: (document: Object) => number, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; sortBy(predicate: (document: Object) => string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -109,10 +109,10 @@ interface IQueryAPI { */ sortByDescending(predicate: (document: Object) => string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; sortByDescending(predicate: (document: Object) => number, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; sortByDescending(predicate: (document: Object) => string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; @@ -126,7 +126,7 @@ interface IQueryAPI { * @param callback Optional callback for the operation. If no callback is provided, any error in the operation will be thrown and the result document set will be written to the Response body. */ value(options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): IQueryResponse; value(options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): IQueryResponse; } @@ -201,11 +201,11 @@ interface ICollection extends IQueryAPI { queryAttachments(documentLink: string, query: string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; queryAttachments(documentLink: string, query: IParameterizedQuery, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; /** * Execute a SQL query on the documents of the collection. @@ -217,7 +217,7 @@ interface ICollection extends IQueryAPI { queryDocuments(collectionLink: string, filterQuery: string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; queryDocuments(collectionLink: string, filterQuery: string, options?: IFeedOptions, @@ -225,7 +225,7 @@ interface ICollection extends IQueryAPI { queryDocuments(collectionLink: string, filterQuery: IParameterizedQuery, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; queryDocuments(collectionLink: string, filterQuery: IParameterizedQuery, options?: IFeedOptions, @@ -249,7 +249,7 @@ interface ICollection extends IQueryAPI { */ readAttachments(documentLink: string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; /** * Read a document. @@ -272,7 +272,7 @@ interface ICollection extends IQueryAPI { */ readDocuments(collectionLink: string, options?: IFeedOptions, - callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; + callback?: (error: IFeedCallbackError, resources: Object[], options: IFeedCallbackOptions) => void): boolean; readDocuments(collectionLink: string, options?: IFeedOptions, callback?: (error: IFeedCallbackError, resources: Array, options: IFeedCallbackOptions) => void): boolean; diff --git a/dynatable/index.d.ts b/dynatable/index.d.ts index 751e5857ef..1f32117220 100644 --- a/dynatable/index.d.ts +++ b/dynatable/index.d.ts @@ -869,7 +869,7 @@ declare namespace JQueryDynatable { * * @return An Array with the records */ - getFromTable(): Array; + getFromTable(): Object[]; /** Create and init the records */ init(): void; /** diff --git a/echarts/index.d.ts b/echarts/index.d.ts index 2f6830046d..ad4e734864 100644 --- a/echarts/index.d.ts +++ b/echarts/index.d.ts @@ -81,16 +81,16 @@ declare namespace ECharts { radiusAxis?: Object; angleAxis?: Object; radar?: Object; - dataZoom?: Array; - visualMap?: Array; + dataZoom?: Object[]; + visualMap?: Object[]; tooltip?: Object; toolbox?: Object; geo?: Object; parallel?: Object; parallelAxis?: Object; timeline?: Object; - series?: Array; - color?: Array; + series?: Object[]; + color?: Object[]; backgroundColor?: string; textStyle?: Object; animation?: boolean; diff --git a/ej.web.all/index.d.ts b/ej.web.all/index.d.ts index 84f2213c02..a79afa9862 100644 --- a/ej.web.all/index.d.ts +++ b/ej.web.all/index.d.ts @@ -407,7 +407,7 @@ declare module ej { constructor(field: string, operator: ej.FilterOperators, value: any, ignoreCase: boolean); and(field: string, operator: any, value:any, ignoreCase:boolean): void; or(field: string, operator: any, value: any, ignoreCase: boolean): void; - or(predicate: Array): any; + or(predicate: Object[]): any; validate(record: Object): boolean; toJSON(): { isComplex: boolean; diff --git a/elasticsearch/index.d.ts b/elasticsearch/index.d.ts index a0d702398f..10f01a0722 100644 --- a/elasticsearch/index.d.ts +++ b/elasticsearch/index.d.ts @@ -590,15 +590,7 @@ declare namespace Elasticsearch { took: number; timed_out: boolean; _scroll_id?: string; -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 _shards: ShardsResponse; -======= - _shards: { - total: number; - successful: number; - failed: number; - }; ->>>>>>> WIP hits: { total: number; max_score: number; @@ -613,21 +605,9 @@ declare namespace Elasticsearch { fields?: any; highlight?: any; inner_hits?: any; -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 }[]; }; aggregations?: any; -======= - }[] - }; - aggregations?: any; - } - - export interface MSearchParams extends GenericParams { - index?: string | string[] | Boolean; - type?: string | string[] | Boolean; - search_type?: string; ->>>>>>> WIP } export interface SearchShardsParams extends GenericParams { @@ -716,23 +696,6 @@ declare namespace Elasticsearch { id: string; index: string; type: string; -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 -======= - id: string; - body?: string | any; - version?: Number; - timesstamp?: Date | Number; - scriptedUpsert?: Boolean; - scriptId?: any; - script?: any; - routing?: string; - retryOnConflict?: Number; - refresh?: Boolean; - parent?: string; - lang?: string; - fields?: string | string[] | Boolean; - consistensy?: string; ->>>>>>> WIP } export interface UpdateDocumentByQueryParams extends GenericParams { @@ -784,7 +747,6 @@ declare namespace Elasticsearch { } export interface Cat { -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 aliases(params: CatAliasesParams, callback: (error: any, response: any) => void): void; aliases(params: CatAliasesParams): PromiseLike; allocation(params: CatAllocationParams, callback: (error: any, response: any) => void): void; @@ -823,10 +785,6 @@ declare namespace Elasticsearch { tasks(params: CatTasksParams): PromiseLike; threadPool(params: CatThreadPoolParams, callback: (error: any, response: any) => void): void; threadPool(params: CatThreadPoolParams): PromiseLike; -======= - health(params: CatHealthOptions, callback: (error: any, response: any) => void): void; - health(params: CatHealthOptions): PromiseLike; ->>>>>>> WIP } export type CatBytes = "b" | "k" | "kb" | "m" | "mb" | "g" | "gb" | "t" | "tb" | "p" | "pb"; diff --git a/epub/index.d.ts b/epub/index.d.ts index fe4f36ce87..8b91adcd53 100644 --- a/epub/index.d.ts +++ b/epub/index.d.ts @@ -48,7 +48,7 @@ declare module "epub" { metadata: Object; manifest: Object; spine: Object; - flow: Array; + flow: Object[]; toc: Array; parse(): void; diff --git a/express-serve-static-core/index.d.ts b/express-serve-static-core/index.d.ts index aff9d6f444..932b8075b1 100644 --- a/express-serve-static-core/index.d.ts +++ b/express-serve-static-core/index.d.ts @@ -856,7 +856,6 @@ interface RequestParamHandler { (req: Request, res: Response, next: NextFunction, value: any, name: string): any; } -<<<<<<< 8c65c84d30d181c36ffd00c77f85181e5350ef61 interface Application extends IRouter, Express.Application { /** * Express instance itself is a request handler, which could be invoked without @@ -1098,249 +1097,6 @@ interface Application extends IRouter, Express.Application { */ _router: any; } -======= - interface Application extends IRouter, Express.Application { - /** - * Express instance itself is a request handler, which could be invoked without - * third argument. - */ - (req: Request, res: Response): any; - - /** - * Initialize the server. - * - * - setup default configuration - * - setup default middleware - * - setup route reflection methods - */ - init(): void; - - /** - * Initialize application configuration. - */ - defaultConfiguration(): void; - - /** - * Register the given template engine callback `fn` - * as `ext`. - * - * By default will `require()` the engine based on the - * file extension. For example if you try to render - * a "foo.jade" file Express will invoke the following internally: - * - * app.engine('jade', require('jade').__express); - * - * For engines that do not provide `.__express` out of the box, - * or if you wish to "map" a different extension to the template engine - * you may use this method. For example mapping the EJS template engine to - * ".html" files: - * - * app.engine('html', require('ejs').renderFile); - * - * In this case EJS provides a `.renderFile()` method with - * the same signature that Express expects: `(path, options, callback)`, - * though note that it aliases this method as `ejs.__express` internally - * so if you're using ".ejs" extensions you dont need to do anything. - * - * Some template engines do not follow this convention, the - * [Consolidate.js](https://github.com/visionmedia/consolidate.js) - * library was created to map all of node's popular template - * engines to follow this convention, thus allowing them to - * work seamlessly within Express. - */ - engine(ext: string, fn: Function): Application; - - /** - * Assign `setting` to `val`, or return `setting`'s value. - * - * app.set('foo', 'bar'); - * app.get('foo'); - * // => "bar" - * app.set('foo', ['bar', 'baz']); - * app.get('foo'); - * // => ["bar", "baz"] - * - * Mounted servers inherit their parent server's settings. - * - * @param setting - * @param val - */ - set(setting: string, val: any): Application; - get: {(name: string): any} & IRouterMatcher; - - param(name: string | string[], handler: RequestParamHandler): this; - // Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() API - param(callback: (name: string, matcher: RegExp) => RequestParamHandler): this; - - /** - * Return the app's absolute pathname - * based on the parent(s) that have - * mounted it. - * - * For example if the application was - * mounted as "/admin", which itself - * was mounted as "/blog" then the - * return value would be "/blog/admin". - */ - path(): string; - - /** - * Check if `setting` is enabled (truthy). - * - * app.enabled('foo') - * // => false - * - * app.enable('foo') - * app.enabled('foo') - * // => true - */ - enabled(setting: string): boolean; - - /** - * Check if `setting` is disabled. - * - * app.disabled('foo') - * // => true - * - * app.enable('foo') - * app.disabled('foo') - * // => false - * - * @param setting - */ - disabled(setting: string): boolean; - - /** - * Enable `setting`. - * - * @param setting - */ - enable(setting: string): Application; - - /** - * Disable `setting`. - * - * @param setting - */ - disable(setting: string): Application; - - /** - * Configure callback for zero or more envs, - * when no `env` is specified that callback will - * be invoked for all environments. Any combination - * can be used multiple times, in any order desired. - * - * Examples: - * - * app.configure(function(){ - * // executed for all envs - * }); - * - * app.configure('stage', function(){ - * // executed staging env - * }); - * - * app.configure('stage', 'production', function(){ - * // executed for stage and production - * }); - * - * Note: - * - * These callbacks are invoked immediately, and - * are effectively sugar for the following: - * - * var env = process.env.NODE_ENV || 'development'; - * - * switch (env) { - * case 'development': - * ... - * break; - * case 'stage': - * ... - * break; - * case 'production': - * ... - * break; - * } - * - * @param env - * @param fn - */ - configure(fn: Function): Application; - configure(env0: string, fn: Function): Application; - configure(env0: string, env1: string, fn: Function): Application; - configure(env0: string, env1: string, env2: string, fn: Function): Application; - configure(env0: string, env1: string, env2: string, env3: string, fn: Function): Application; - configure(env0: string, env1: string, env2: string, env3: string, env4: string, fn: Function): Application; - - /** - * Render the given view `name` name with `options` - * and a callback accepting an error and the - * rendered template string. - * - * Example: - * - * app.render('email', { name: 'Tobi' }, function(err, html){ - * // ... - * }) - * - * @param name - * @param options or fn - * @param fn - */ - render(name: string, options?: Object, callback?: (err: Error, html: string) => void): void; - render(name: string, callback: (err: Error, html: string) => void): void; - - - /** - * Listen for connections. - * - * A node `http.Server` is returned, with this - * application (which is a `Function`) as its - * callback. If you wish to create both an HTTP - * and HTTPS server you may do so with the "http" - * and "https" modules as shown here: - * - * var http = require('http') - * , https = require('https') - * , express = require('express') - * , app = express(); - * - * http.createServer(app).listen(80); - * https.createServer({ ... }, app).listen(443); - */ - listen(port: number, hostname: string, backlog: number, callback?: Function): http.Server; - listen(port: number, hostname: string, callback?: Function): http.Server; - listen(port: number, callback?: Function): http.Server; - listen(path: string, callback?: Function): http.Server; - listen(handle: any, listeningListener?: Function): http.Server; - - router: string; - - settings: any; - - resource: any; - - map: any; - - locals: any; - - /** - * The app.routes object houses all of the routes defined mapped by the - * associated HTTP verb. This object may be used for introspection - * capabilities, for example Express uses this internally not only for - * routing but to provide default OPTIONS behaviour unless app.options() - * is used. Your application or framework may also remove routes by - * simply by removing them from this object. - */ - routes: any; - - /** - * Used to get all registered routes in Express Application - */ - _router: any; - } ->>>>>>> WIP interface Express extends Application { request: Request; diff --git a/go/index.d.ts b/go/index.d.ts index 9bc75628bf..1d13ace5d8 100644 --- a/go/index.d.ts +++ b/go/index.d.ts @@ -830,7 +830,7 @@ declare namespace go { * that match those specified by the given example data. * @param {...Object} examples */ - findLinksByExample(...examples: Array): Iterator; + findLinksByExample(...examples: Object[]): Iterator; /** * Look for a Node or Group corresponding to a model's node data object. @@ -849,7 +849,7 @@ declare namespace go { * that match those specified by the given example data. * @param {...Object} examples */ - findNodesByExample(...examples: Array): Iterator; + findNodesByExample(...examples: Object[]): Iterator; /** * Find the front-most GraphObject at the given point in document coordinates. @@ -4993,10 +4993,10 @@ declare namespace go { class GraphLinksModel extends Model { /** * This constructs an empty GraphLinksModel unless one provides arguments as the initial data array values for the Model.nodeDataArray and GraphLinksModel.linkDataArray properties. - * @param {Array=} nodedataarray an optional Array containing JavaScript objects to be represented by Nodes. - * @param {Array=} linkdataarray an optional Array containing JavaScript objects to be represented by Links. + * @param {Object[]=} nodedataarray an optional Array containing JavaScript objects to be represented by Nodes. + * @param {Object[]=} linkdataarray an optional Array containing JavaScript objects to be represented by Links. */ - constructor(nodedataarray?: Array, linkdataarray?: Array); + constructor(nodedataarray?: Object[], linkdataarray?: Object[]); /** * Gets or sets a data object that will be copied and added to the model as a new node data each time there @@ -5028,7 +5028,7 @@ declare namespace go { linkCategoryProperty: PropertyAccessor; /**Gets or sets the array of link data objects that correspond to Links in the Diagram; the initial value is an empty Array.*/ - linkDataArray: Array; + linkDataArray: Object[]; /** * Gets or sets the name of the data property that returns @@ -5128,9 +5128,9 @@ declare namespace go { /** * Add to this model all of the link data held in an Array or in an Iterable of link data objects. - * @param {Iterable|Array} coll a collection of link data objects to add to the .linkDataArray + * @param {Iterable|Object[]} coll a collection of link data objects to add to the .linkDataArray */ - addLinkDataCollection(coll: Iterable | Array): void; + addLinkDataCollection(coll: Iterable | Object[]): void; /** * Decide if a given link data is in this model. @@ -5264,9 +5264,9 @@ declare namespace go { /** * Remove from this model all of the link data held in an Array or in an Iterable of link data objects. - * @param {Iterable|Array} coll a collection of link data objects to remove from the .linkDataArray + * @param {Iterable|Object[]} coll a collection of link data objects to remove from the .linkDataArray */ - removeLinkDataCollection(coll: Iterable | Array): void; + removeLinkDataCollection(coll: Iterable | Object[]): void; /** * Change the category of a given link data, a string naming the link template @@ -5352,9 +5352,9 @@ declare namespace go { class Model { /** * You probably don't want to call this constructor, because this class does not support links (relationships between nodes) or groups (nodes and links and subgraphs as nodes): instead, create instances of a subclass such as GraphLinksModel or TreeModel. - * @param {Array=} nodedataarray an optional Array containing JavaScript objects to be represented by Parts. + * @param {Object[]=} nodedataarray an optional Array containing JavaScript objects to be represented by Parts. */ - constructor(nodedataarray?: Array); + constructor(nodedataarray?: Object[]); /**Gets or sets whether the default behavior for copyNodeData makes copies of property values that are Arrays.*/ copiesArrays: boolean; @@ -5384,7 +5384,7 @@ declare namespace go { nodeCategoryProperty: PropertyAccessor; /**Gets or sets the array of node data objects that correspond to Nodes, Groups, or non-Link Parts in the Diagram; the initial value is an empty Array.*/ - nodeDataArray: Array; + nodeDataArray: Object[]; /**Gets or sets the name of the data property that returns a unique id number or string for each node data object, or a function taking a node data object and returning the key value; the default value is the name 'key'.*/ nodeKeyProperty: PropertyAccessor; @@ -5425,9 +5425,9 @@ declare namespace go { /** * Add to this model all of the node data held in an Array or in an Iterable of node data objects. - * @param {Iterable|Array} coll a collection of node data objects to add to the .nodeDataArray + * @param {Iterable|Object[]} coll a collection of node data objects to add to the .nodeDataArray */ - addNodeDataCollection(coll: Iterable | Array): void; + addNodeDataCollection(coll: Iterable | Object[]): void; /** * Modify this model by applying the changes given in an "incremental" model change in JSON format @@ -5612,9 +5612,9 @@ declare namespace go { /** * Remove from this model all of the node data held in an Array or in an Iterable of node data objects. - * @param {Iterable|Array} coll a collection of node data objects to remove from the .nodeDataArray + * @param {Iterable|Object[]} coll a collection of node data objects to remove from the .nodeDataArray */ - removeNodeDataCollection(coll: Iterable | Array): void; + removeNodeDataCollection(coll: Iterable | Object[]): void; /** * Rollback the current transaction, undoing any recorded changes. @@ -5771,9 +5771,9 @@ declare namespace go { class TreeModel extends Model { /** * This constructs an empty TreeModel unless one provides arguments as the initial data array values for the Model.nodeDataArray property. - * @param {Array=} nodedataarray an optional Array containing JavaScript objects to be represented by Nodes. + * @param {Object[]=} nodedataarray an optional Array containing JavaScript objects to be represented by Nodes. */ - constructor(nodedataarray?: Array); + constructor(nodedataarray?: Object[]); /** * Gets or sets the name of the property on node data that specifies diff --git a/heremaps/index.d.ts b/heremaps/index.d.ts index 1d2acc6926..53a9ad71d3 100644 --- a/heremaps/index.d.ts +++ b/heremaps/index.d.ts @@ -2117,9 +2117,9 @@ declare namespace H { /** * This method clips this polyline against a rectangular area and returns the intersecting sub-lines. * @param geoRect {H.geo.Rect} - * @returns {Array} + * @returns {number[][]} */ - clip(geoRect: H.geo.Rect): Array; + clip(geoRect: H.geo.Rect): number[][]; } export namespace Polyline { diff --git a/hopscotch/index.d.ts b/hopscotch/index.d.ts index 49c72b0842..0efb9d04e0 100644 --- a/hopscotch/index.d.ts +++ b/hopscotch/index.d.ts @@ -45,7 +45,7 @@ interface TourDefinition extends HopscotchConfiguration { interface StepDefinition { placement: string; - target: string | HTMLElement | Array; + target: string | HTMLElement | (string | HTMLElement)[]; title?: string; content?: string; diff --git a/hystrixjs/index.d.ts b/hystrixjs/index.d.ts index 03620e912b..56329313cc 100644 --- a/hystrixjs/index.d.ts +++ b/hystrixjs/index.d.ts @@ -105,7 +105,7 @@ declare namespace HystrixJS { interface MetricsFactory { getOrCreate(config: MetricsProperties): CommandMetrics; resetCache(): void; - getAllMetrics(): Array; + getAllMetrics(): CommandMetrics[]; } interface CirctuiBreakerConfig { @@ -127,7 +127,7 @@ declare namespace HystrixJS { interface CircuitFactory { getOrCreate(config: CirctuiBreakerConfig): CircuitBreaker; - getCache(): Array; + getCache(): CircuitBreaker[]; resetCache(): void; } diff --git a/imagesloaded/index.d.ts b/imagesloaded/index.d.ts index 24ab26d3cd..217000f8ca 100644 --- a/imagesloaded/index.d.ts +++ b/imagesloaded/index.d.ts @@ -6,7 +6,7 @@ /// declare namespace ImagesLoaded { - type ElementSelector = Element | NodeList | Array | string; + type ElementSelector = Element | NodeList | Element[] | string; /** interface for an image currently loading or completed */ interface LoadingImage { @@ -25,7 +25,7 @@ declare namespace ImagesLoaded { interface ImagesLoaded { new (elem: ElementSelector, callback: ImagesLoadedCallback): ImagesLoaded; - images: Array; + images: LoadingImage[]; // event listeners on(event: string, listener: ImagesLoadedListener): void; diff --git a/imgur-rest-api/index.d.ts b/imgur-rest-api/index.d.ts index b2b08b32e2..3c260c9601 100644 --- a/imgur-rest-api/index.d.ts +++ b/imgur-rest-api/index.d.ts @@ -29,7 +29,7 @@ declare namespace ImgurRestApi { accepted_gallery_terms: boolean; active_emails: string[]; messaging_enabled: boolean; - blocked_users: Array; + blocked_users: BlockedUser[]; } interface Album { @@ -52,7 +52,7 @@ declare namespace ImgurRestApi { order: number; deletehash?: string; images_count: number; - images: Array; + images: Image[]; } interface BlockedUser { @@ -75,7 +75,7 @@ declare namespace ImgurRestApi { parent_id: number; deleted: boolean; vote?: string; - children: Array; + children: Comment[]; } interface Conversation { @@ -85,7 +85,7 @@ declare namespace ImgurRestApi { with_account_id: number; with_account: string; message_count: number; - messages?: Array; + messages?: Message[]; done?: boolean; page?: number; } @@ -95,7 +95,7 @@ declare namespace ImgurRestApi { link: string; tags: string[]; item_count: number; - items: Array; + items: GalleryItem[]; } interface GalleryItem { @@ -126,7 +126,7 @@ declare namespace ImgurRestApi { privacy: string; layout: string; images_count: number; - images: Array; + images: Image[]; } interface GalleryImage extends GalleryItem { @@ -148,7 +148,7 @@ declare namespace ImgurRestApi { total_gallery_comments: number; total_gallery_favorites: number; total_gallery_submissions: number; - trophies: Array; + trophies: Trophy[]; } interface Trophy { @@ -214,8 +214,8 @@ declare namespace ImgurRestApi { } interface AccountNotifications { - replies: Array>; - messages: Array>; + replies: Notification[]; + messages: Notification[]; } interface Tag { @@ -223,7 +223,7 @@ declare namespace ImgurRestApi { followers: number; total_items: number; following?: boolean; - items: Array; + items: GalleryItem[]; } interface TagVote { diff --git a/immutable/index.d.ts b/immutable/index.d.ts index 1a5e2a3ffa..c6bb474788 100644 --- a/immutable/index.d.ts +++ b/immutable/index.d.ts @@ -153,7 +153,7 @@ declare namespace Immutable { export function List(iter: Iterable.Indexed): List; export function List(iter: Iterable.Set): List; export function List(iter: Iterable.Keyed): List<[K, V]>; - export function List(array: Array): List; + export function List(array: T[]): List; export function List(iterator: Iterator): List; export function List(iterable: Iterable): List; @@ -254,7 +254,7 @@ declare namespace Immutable { * @see `Map#merge` */ merge(...iterables: Iterable.Indexed[]): List; - merge(...iterables: Array[]): List; + merge(...iterables: T[][]): List; /** * @see `Map#mergeWith` @@ -272,7 +272,7 @@ declare namespace Immutable { * @see `Map#mergeDeep` */ mergeDeep(...iterables: Iterable.Indexed[]): List; - mergeDeep(...iterables: Array[]): List; + mergeDeep(...iterables: T[][]): List; /** * @see `Map#mergeDeepWith` @@ -357,7 +357,7 @@ declare namespace Immutable { ): List; mergeIn( keyPath: any[], - ...iterables: Array[] + ...iterables: T[][] ): List; /** @@ -373,7 +373,7 @@ declare namespace Immutable { ): List; mergeDeepIn( keyPath: any[], - ...iterables: Array[] + ...iterables: T[][] ): List; @@ -467,7 +467,7 @@ declare namespace Immutable { export function Map(): Map; export function Map(iter: Iterable.Keyed): Map; export function Map(iter: Iterable): Map; - export function Map(array: Array<[K, V]>): Map; + export function Map(array: [K, V][]): Map; export function Map(obj: {[key: string]: V}): Map; export function Map(iterator: Iterator<[K, V]>): Map; export function Map(iterable: Iterable): Map; @@ -774,7 +774,7 @@ declare namespace Immutable { export function OrderedMap(): OrderedMap; export function OrderedMap(iter: Iterable.Keyed): OrderedMap; export function OrderedMap(iter: Iterable): OrderedMap; - export function OrderedMap(array: Array<[K, V]>): OrderedMap; + export function OrderedMap(array: [K, V][]): OrderedMap; export function OrderedMap(obj: {[key: string]: V}): OrderedMap; export function OrderedMap(iterator: Iterator<[K, V]>): OrderedMap; export function OrderedMap(iterable: Iterable): OrderedMap; @@ -821,7 +821,7 @@ declare namespace Immutable { export function Set(iter: Iterable.Set): Set; export function Set(iter: Iterable.Indexed): Set; export function Set(iter: Iterable.Keyed): Set<[K, V]>; - export function Set(array: Array): Set; + export function Set(array: T[]): Set; export function Set(iterator: Iterator): Set; export function Set(iterable: Iterable): Set; @@ -854,9 +854,9 @@ declare namespace Immutable { * @alias merge */ union(...iterables: Iterable[]): Set; - union(...iterables: Array[]): Set; + union(...iterables: T[][]): Set; merge(...iterables: Iterable[]): Set; - merge(...iterables: Array[]): Set; + merge(...iterables: T[][]): Set; /** @@ -864,13 +864,13 @@ declare namespace Immutable { * within `iterables`. */ intersect(...iterables: Iterable[]): Set; - intersect(...iterables: Array[]): Set; + intersect(...iterables: T[][]): Set; /** * Returns a Set excluding any values contained within `iterables`. */ subtract(...iterables: Iterable[]): Set; - subtract(...iterables: Array[]): Set; + subtract(...iterables: T[][]): Set; // Transient changes @@ -933,7 +933,7 @@ declare namespace Immutable { export function OrderedSet(iter: Iterable.Set): OrderedSet; export function OrderedSet(iter: Iterable.Indexed): OrderedSet; export function OrderedSet(iter: Iterable.Keyed): OrderedSet<[K, V]>; - export function OrderedSet(array: Array): OrderedSet; + export function OrderedSet(array: T[]): OrderedSet; export function OrderedSet(iterator: Iterator): OrderedSet; export function OrderedSet(iterable: Iterable): OrderedSet; @@ -977,7 +977,7 @@ declare namespace Immutable { export function Stack(iter: Iterable.Indexed): Stack; export function Stack(iter: Iterable.Set): Stack; export function Stack(iter: Iterable.Keyed): Stack<[K, V]>; - export function Stack(array: Array): Stack; + export function Stack(array: T[]): Stack; export function Stack(iterator: Iterator): Stack; export function Stack(iterable: Iterable): Stack; @@ -1010,7 +1010,7 @@ declare namespace Immutable { * Like `Stack#unshift`, but accepts a iterable rather than varargs. */ unshiftAll(iter: Iterable): Stack; - unshiftAll(iter: Array): Stack; + unshiftAll(iter: T[]): Stack; /** * Returns a new Stack with a size ones less than this Stack, excluding @@ -1031,7 +1031,7 @@ declare namespace Immutable { * Alias for `Stack#unshiftAll`. */ pushAll(iter: Iterable): Stack; - pushAll(iter: Array): Stack; + pushAll(iter: T[]): Stack; /** * Alias for `Stack#shift` and is not equivalent to `List#pop`. @@ -1229,7 +1229,7 @@ declare namespace Immutable { export function Keyed(): Seq.Keyed; export function Keyed(seq: Iterable.Keyed): Seq.Keyed; export function Keyed(seq: Iterable): Seq.Keyed; - export function Keyed(array: Array<[K, V]>): Seq.Keyed; + export function Keyed(array: [K, V][]): Seq.Keyed; export function Keyed(obj: {[key: string]: V}): Seq.Keyed; export function Keyed(iterator: Iterator<[K, V]>): Seq.Keyed; export function Keyed(iterable: Iterable): Seq.Keyed; @@ -1262,7 +1262,7 @@ declare namespace Immutable { export function Indexed(seq: Iterable.Indexed): Seq.Indexed; export function Indexed(seq: Iterable.Set): Seq.Indexed; export function Indexed(seq: Iterable.Keyed): Seq.Indexed<[K, V]>; - export function Indexed(array: Array): Seq.Indexed; + export function Indexed(array: T[]): Seq.Indexed; export function Indexed(iterator: Iterator): Seq.Indexed; export function Indexed(iterable: Iterable): Seq.Indexed; @@ -1296,7 +1296,7 @@ declare namespace Immutable { export function Set(seq: Iterable.Set): Seq.Set; export function Set(seq: Iterable.Indexed): Seq.Set; export function Set(seq: Iterable.Keyed): Seq.Set<[K, V]>; - export function Set(array: Array): Seq.Set; + export function Set(array: T[]): Seq.Set; export function Set(iterator: Iterator): Seq.Set; export function Set(iterable: Iterable): Seq.Set; @@ -1326,7 +1326,7 @@ declare namespace Immutable { export function Seq(): Seq; export function Seq(seq: Seq): Seq; export function Seq(iterable: Iterable): Seq; - export function Seq(array: Array): Seq.Indexed; + export function Seq(array: T[]): Seq.Indexed; export function Seq(obj: {[key: string]: V}): Seq.Keyed; export function Seq(iterator: Iterator): Seq.Indexed; export function Seq(iterable: Iterable): Seq.Indexed; @@ -1424,7 +1424,7 @@ declare namespace Immutable { */ export function Keyed(iter: Iterable.Keyed): Iterable.Keyed; export function Keyed(iter: Iterable): Iterable.Keyed; - export function Keyed(array: Array<[K, V]>): Iterable.Keyed; + export function Keyed(array: [K, V][]): Iterable.Keyed; export function Keyed(obj: {[key: string]: V}): Iterable.Keyed; export function Keyed(iterator: Iterator<[K, V]>): Iterable.Keyed; export function Keyed(iterable: Iterable): Iterable.Keyed; @@ -1506,7 +1506,7 @@ declare namespace Immutable { export function Indexed(iter: Iterable.Indexed): Iterable.Indexed; export function Indexed(iter: Iterable.Set): Iterable.Indexed; export function Indexed(iter: Iterable.Keyed): Iterable.Indexed<[K, V]>; - export function Indexed(array: Array): Iterable.Indexed; + export function Indexed(array: T[]): Iterable.Indexed; export function Indexed(iterator: Iterator): Iterable.Indexed; export function Indexed(iterable: Iterable): Iterable.Indexed; @@ -1596,7 +1596,7 @@ declare namespace Immutable { * var c = a.zip(b); // Seq [ [ 1, 4 ], [ 2, 5 ], [ 3, 6 ] ] * */ - zip(...iterables: Array>): this; + zip(...iterables: Iterable[]): this; /** * Returns an Iterable of the same type "zipped" with the provided @@ -1618,7 +1618,7 @@ declare namespace Immutable { ): Iterable.Indexed; zipWith( zipper: (...any: any[]) => Z, - ...iterables: Array> + ...iterables: Iterable[] ): Iterable.Indexed; @@ -1676,7 +1676,7 @@ declare namespace Immutable { export function Set(iter: Iterable.Set): Iterable.Set; export function Set(iter: Iterable.Indexed): Iterable.Set; export function Set(iter: Iterable.Keyed): Iterable.Set<[K, V]>; - export function Set(array: Array): Iterable.Set; + export function Set(array: T[]): Iterable.Set; export function Set(iterator: Iterator): Iterable.Set; export function Set(iterable: Iterable): Iterable.Set; @@ -1707,7 +1707,7 @@ declare namespace Immutable { * `Seq.of`. */ export function Iterable(iterable: Iterable): Iterable; - export function Iterable(array: Array): Iterable.Indexed; + export function Iterable(array: T[]): Iterable.Indexed; export function Iterable(obj: {[key: string]: V}): Iterable.Keyed; export function Iterable(iterator: Iterator): Iterable.Indexed; export function Iterable(iterable: Iterable): Iterable.Indexed; @@ -1815,7 +1815,7 @@ declare namespace Immutable { /** * Shallowly converts this iterable to an Array, discarding keys. */ - toArray(): Array; + toArray(): V[]; /** * Shallowly converts this Iterable to an Object. @@ -2441,13 +2441,13 @@ declare namespace Immutable { * True if `iter` includes every value in this Iterable. */ isSubset(iter: Iterable): boolean; - isSubset(iter: Array): boolean; + isSubset(iter: V[]): boolean; /** * True if this Iterable includes every value in `iter`. */ isSuperset(iter: Iterable): boolean; - isSuperset(iter: Array): boolean; + isSuperset(iter: V[]): boolean; /** diff --git a/inversify/index.d.ts b/inversify/index.d.ts index cd8f108d74..123d098be8 100644 --- a/inversify/index.d.ts +++ b/inversify/index.d.ts @@ -137,7 +137,7 @@ declare namespace inversify { serviceIdentifier: ServiceIdentifier; type: number; // TargetType name: QueryableString; - metadata: Array; + metadata: Metadata[]; hasTag(key: string): boolean; isArray(): boolean; matchesArray(name: string | Symbol | Newable): boolean; @@ -192,7 +192,7 @@ declare namespace inversify { export interface Lookup extends Clonable> { add(serviceIdentifier: ServiceIdentifier, value: T): void; - get(serviceIdentifier: ServiceIdentifier): Array; + get(serviceIdentifier: ServiceIdentifier): T[]; remove(serviceIdentifier: ServiceIdentifier): void; removeByModuleId(moduleId: string): void; hasKey(serviceIdentifier: ServiceIdentifier): boolean; @@ -200,7 +200,7 @@ declare namespace inversify { export interface KeyValuePair { serviceIdentifier: ServiceIdentifier; - value: Array; + value: T[]; guid: string; } diff --git a/ionic/index.d.ts b/ionic/index.d.ts index 8197464a9c..f06ef39dbf 100644 --- a/ionic/index.d.ts +++ b/ionic/index.d.ts @@ -110,7 +110,7 @@ declare namespace ionic { text: string; } interface IonicActionSheetOptions { - buttons?: Array; + buttons?: IonicActionSheetButton[]; titleText?: string; cancelText?: string; destructiveText?: string; @@ -275,7 +275,7 @@ declare namespace ionic { } interface IonicPopupFullOptions extends IonicPopupBaseOptions { scope?: any; - buttons?: Array; + buttons?: IonicPopupButton[]; } interface IonicPopupButton { text: string; diff --git a/iscroll/iscroll-5.d.ts b/iscroll/iscroll-5.d.ts index 31e9acaf6c..a3ac22a607 100644 --- a/iscroll/iscroll-5.d.ts +++ b/iscroll/iscroll-5.d.ts @@ -54,7 +54,7 @@ interface IScrollOptions { bounceEasing?: string|{ style: string, fn: (k: any) => any }; preventDefault?: boolean; - preventDefaultException?: Array|Object; + preventDefaultException?: RegExp[]|Object; HWCompositing?: boolean; diff --git a/java/index.d.ts b/java/index.d.ts index 46dc577e35..d5a0581c76 100644 --- a/java/index.d.ts +++ b/java/index.d.ts @@ -40,7 +40,7 @@ declare namespace NodeJavaCore { callMethod(instance: any, className: string, methodName: string, args: any[], callback: Callback): void; callMethodSync(instance: any, className: string, methodName: string, ...args: any[]): any; - callStaticMethod(className: string, methodName: string, ...args: Array>): void; + callStaticMethod(className: string, methodName: string, ...args: (any|Callback)[]): void; callStaticMethodSync(className: string, methodName: string, ...args: any[]): any; getStaticFieldValue(className: string, fieldName: string): any; setStaticFieldValue(className: string, fieldName: string, newValue: any): void; diff --git a/javascript-astar/index.d.ts b/javascript-astar/index.d.ts index 0bcc9dfa7b..06ed0aa751 100644 --- a/javascript-astar/index.d.ts +++ b/javascript-astar/index.d.ts @@ -4,8 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Graph { - grid: Array>; - constructor(grid: Array, options?: {diagonal?: boolean}); + grid: GridNode[][]; + constructor(grid: number[][], options?: {diagonal?: boolean}); } declare class GridNode { @@ -31,7 +31,7 @@ declare namespace astar { closest?: boolean, heuristic?: Heuristic } - ): Array; + ): GridNode[]; var heuristics: Heuristics; } diff --git a/jest/index.d.ts b/jest/index.d.ts index 49622e4f44..ba2686e22d 100644 --- a/jest/index.d.ts +++ b/jest/index.d.ts @@ -270,12 +270,12 @@ declare namespace jasmine { } interface CustomMatcherFactory { - (util: MatchersUtil, customEqualityTesters: Array): CustomMatcher; + (util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): CustomMatcher; } interface MatchersUtil { - equals(a: any, b: any, customTesters?: Array): boolean; - contains(haystack: ArrayLike | string, needle: any, customTesters?: Array): boolean; + equals(a: any, b: any, customTesters?: CustomEqualityTester[]): boolean; + contains(haystack: ArrayLike | string, needle: any, customTesters?: CustomEqualityTester[]): boolean; buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: any[]): string; } diff --git a/johnny-five/index.d.ts b/johnny-five/index.d.ts index e756b9fdf7..1fc5eb21b4 100644 --- a/johnny-five/index.d.ts +++ b/johnny-five/index.d.ts @@ -41,7 +41,7 @@ export declare class Accelerometer { } export declare class Animation { - constructor(option: Servo | Array); + constructor(option: Servo | Servo[]); enqueue(segment: any): void; play(): void; pause(): void; @@ -106,7 +106,7 @@ export declare class Board { isReady: boolean; io: any; id: string; - pins: Array; + pins: Pin[]; port: string; inject: Repl; } diff --git a/joi/index.d.ts b/joi/index.d.ts index 8244f0545b..3b9f092df4 100644 --- a/joi/index.d.ts +++ b/joi/index.d.ts @@ -96,7 +96,7 @@ export interface UriOptions { * Specifies one or more acceptable Schemes, should only include the scheme name. * Can be an Array or String (strings are automatically escaped for use in a Regular Expression). */ - scheme?: string | RegExp | Array; + scheme?: string | RegExp | (string | RegExp)[]; } export interface WhenOptions { diff --git a/joi/joi-6.5.0.d.ts b/joi/joi-6.5.0.d.ts index af4f4a552e..f0659575f4 100644 --- a/joi/joi-6.5.0.d.ts +++ b/joi/joi-6.5.0.d.ts @@ -92,7 +92,7 @@ declare module 'joi' { * Specifies one or more acceptable Schemes, should only include the scheme name. * Can be an Array or String (strings are automatically escaped for use in a Regular Expression). */ - scheme ?: string | RegExp | Array; + scheme ?: string | RegExp | (string | RegExp)[]; } export interface WhenOptions { diff --git a/jquery.mmenu/index.d.ts b/jquery.mmenu/index.d.ts index 9c27bdb530..86ec1fbb67 100644 --- a/jquery.mmenu/index.d.ts +++ b/jquery.mmenu/index.d.ts @@ -63,7 +63,7 @@ declare namespace JQueryMmenu { * You'll need this option when using the extensions. * Default: [] */ - extensions?: Array; + extensions?: Object[]; /** * navbar options diff --git a/jquery.soap/index.d.ts b/jquery.soap/index.d.ts index 670d8ca6f0..1886d5b7b2 100644 --- a/jquery.soap/index.d.ts +++ b/jquery.soap/index.d.ts @@ -8,8 +8,8 @@ declare namespace JQuerySOAP { interface SOAPEnvelope { attributes: Object; - bodies: Array; - headers: Array; + bodies: SOAPObject[]; + headers: SOAPObject[]; prefix: string; soapConfig: any; typeOf: string; @@ -29,7 +29,7 @@ declare namespace JQuerySOAP { interface SOAPObject { attributes: Object; - children: Array; + children: SOAPObject[]; name: string; ns: Object; _parent: SOAPObject; diff --git a/jquery.ui.datetimepicker/index.d.ts b/jquery.ui.datetimepicker/index.d.ts index c5d444918f..e9db35e7cf 100644 --- a/jquery.ui.datetimepicker/index.d.ts +++ b/jquery.ui.datetimepicker/index.d.ts @@ -84,7 +84,7 @@ interface DateTimePickerOptions extends JQueryUI.DatepickerOptions { microsecGrid?: number; //Default: 0 - When greater than 0 a label grid will be genereated under the slider.This number represents the units (in microseconds) between labels. // Timezone options - timezoneList?: Array; //Default: [generated timezones] - An array of timezones used to populate the timezone select.Can be an array of values or an array of objects: { label: "EDT", value: -240 }. The value should be the offset number in minutes.So "-0400" which is the format "-hhmm", would equate to - 240 minutes. + timezoneList?: TimezoneOptions[]; //Default: [generated timezones] - An array of timezones used to populate the timezone select.Can be an array of values or an array of objects: { label: "EDT", value: -240 }. The value should be the offset number in minutes.So "-0400" which is the format "-hhmm", would equate to - 240 minutes. } interface TimezoneOptions { diff --git a/jquery.window/index.d.ts b/jquery.window/index.d.ts index 2dc8f75309..1496817b94 100644 --- a/jquery.window/index.d.ts +++ b/jquery.window/index.d.ts @@ -164,7 +164,7 @@ declare namespace JQueryWindow { /** return all created windows instance **/ - getAll(): Array; + getAll(): JQueryWindow.Window[]; /** get the window instance by passed window id **/ @@ -340,7 +340,7 @@ declare namespace JQueryWindow { /** to describe the customized button display and callback function **/ - custBtns?: Array; + custBtns?: JQueryWindow.Button[]; /** a callback function while container is added into body **/ diff --git a/jquery/index.d.ts b/jquery/index.d.ts index 0c612bd134..85a83c6073 100644 --- a/jquery/index.d.ts +++ b/jquery/index.d.ts @@ -303,7 +303,7 @@ interface JQueryPromiseCallback { } interface JQueryPromiseOperator { - (callback1: JQueryPromiseCallback|JQueryPromiseCallback[], ...callbacksN: Array|JQueryPromiseCallback[]>): JQueryPromise; + (callback1: JQueryPromiseCallback|JQueryPromiseCallback[], ...callbacksN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryPromise; } /** @@ -320,7 +320,7 @@ interface JQueryPromise extends JQueryGenericPromise { * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected. * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected. */ - always(alwaysCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...alwaysCallbacksN: Array|JQueryPromiseCallback[]>): JQueryPromise; + always(alwaysCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...alwaysCallbacksN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryPromise; /** * Add handlers to be called when the Deferred object is resolved. * @@ -334,13 +334,13 @@ interface JQueryPromise extends JQueryGenericPromise { * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected. * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected. */ - fail(failCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...failCallbacksN: Array|JQueryPromiseCallback[]>): JQueryPromise; + fail(failCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...failCallbacksN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryPromise; /** * Add handlers to be called when the Deferred object generates progress notifications. * * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications. */ - progress(progressCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...progressCallbackN: Array|JQueryPromiseCallback[]>): JQueryPromise; + progress(progressCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...progressCallbackN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryPromise; // Deprecated - given no typings pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise; @@ -367,27 +367,27 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected. * @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected. */ - always(alwaysCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...alwaysCallbacksN: Array|JQueryPromiseCallback[]>): JQueryDeferred; + always(alwaysCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...alwaysCallbacksN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryDeferred; /** * Add handlers to be called when the Deferred object is resolved. * * @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved. * @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved. */ - done(doneCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...doneCallbackN: Array|JQueryPromiseCallback[]>): JQueryDeferred; + done(doneCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...doneCallbackN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryDeferred; /** * Add handlers to be called when the Deferred object is rejected. * * @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected. * @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected. */ - fail(failCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...failCallbacksN: Array|JQueryPromiseCallback[]>): JQueryDeferred; + fail(failCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...failCallbacksN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryDeferred; /** * Add handlers to be called when the Deferred object generates progress notifications. * * @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications. */ - progress(progressCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...progressCallbackN: Array|JQueryPromiseCallback[]>): JQueryDeferred; + progress(progressCallback1?: JQueryPromiseCallback|JQueryPromiseCallback[], ...progressCallbackN: (JQueryPromiseCallback|JQueryPromiseCallback[])[]): JQueryDeferred; /** * Call the progressCallbacks on a Deferred object with the given args. diff --git a/js-data-angular/index.d.ts b/js-data-angular/index.d.ts index 6f383d9294..ddc1a02e21 100644 --- a/js-data-angular/index.d.ts +++ b/js-data-angular/index.d.ts @@ -16,12 +16,12 @@ declare module 'js-data' { } interface DS { - bindAll(resourceName: string, params: DSFilterParams, scope: ng.IScope, expr: string, cb?: (err: DSError, items: Array>) => void): Function; + bindAll(resourceName: string, params: DSFilterParams, scope: ng.IScope, expr: string, cb?: (err: DSError, items: (T & DSInstanceShorthands)[]) => void): Function; bindOne(resourceName: string, id: string | number, scope: ng.IScope, expr: string, cb?: (err: DSError, item: T & DSInstanceShorthands) => void): Function; } interface DSResourceDefinition { - bindAll(params: DSFilterParams, scope: ng.IScope, expr: string, cb?: (err: DSError, items: Array>) => void): Function; + bindAll(params: DSFilterParams, scope: ng.IScope, expr: string, cb?: (err: DSError, items:(T & DSInstanceShorthands)[]) => void): Function; bindOne(id: string | number, scope: ng.IScope, expr: string, cb?: (err: DSError, item: T & DSInstanceShorthands) => void): Function; } } diff --git a/js-data/index.d.ts b/js-data/index.d.ts index 659c0bcde9..6408b70279 100644 --- a/js-data/index.d.ts +++ b/js-data/index.d.ts @@ -39,7 +39,7 @@ declare namespace JSData { findStrategy?: string; findStrictCache?: boolean; idAttribute?: string; - ignoredChanges?: Array; + ignoredChanges?: (RegExp | string)[]; ignoreMissing?: boolean; instanceEvents?: boolean; keepChangeHistory?: boolean; @@ -47,7 +47,7 @@ declare namespace JSData { log?: boolean | ((message?: any, ...optionalParams: any[]) => void); maxAge?: number; notify?: boolean; - omit?: Array; + omit?: (string|RegExp)[]; onConflict?: string; // "merge"(default) or "replace" reapAction?: string; reapInterval?: number; @@ -82,8 +82,8 @@ declare namespace JSData { skip?: number; offset?: number; - orderBy?: string | string[] | Array; - sort?: string | string[] | Array; + orderBy?: string | string[] | string[][]; + sort?: string | string[] | string[][]; } type DSFilterArg = DSFilterParams | Object; @@ -123,7 +123,7 @@ declare namespace JSData { defaults: DSConfiguration; - changeHistory(resourceName: string, id: string | number): Array; + changeHistory(resourceName: string, id: string | number): Object[]; changes(resourceName: string, id: string | number, options?: {ignoredChanges: Array}): Object; clear(): Array>; compute(resourceName: string, idOrInstance: number | string | T): T & DSInstanceShorthands; @@ -162,7 +162,7 @@ declare namespace JSData { } interface DSResourceDefinition extends DSResourceDefinitionConfiguration, DSEvents { - changeHistory(id: string | number): Array; + changeHistory(id: string | number): Object[]; changes(id: string | number, options?: {ignoredChanges: Array}): Object; clear(): Array>; compute(idOrInstance: number | string | T): T & DSInstanceShorthands; @@ -205,7 +205,7 @@ declare namespace JSData { DSDestroy(options?: DSAdapterOperationConfiguration): JSDataPromise; DSCreate(options?: DSAdapterOperationConfiguration): JSDataPromise>; DSLoadRelations(relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; - DSChangeHistory(): Array; + DSChangeHistory(): Object[]; DSChanges(): Object; DSHasChanges(): boolean; DSLastModified(): number; // timestamp diff --git a/js-data/legacy/index.d.ts b/js-data/legacy/index.d.ts index 39c3eaaa3d..783d470ba5 100644 --- a/js-data/legacy/index.d.ts +++ b/js-data/legacy/index.d.ts @@ -44,7 +44,7 @@ declare namespace JSData { save(resourceName: string, id: string | number, options?: DSSaveConfiguration): JSDataPromise>; // sync - changeHistory(resourceName: string, id?: string | number): Array; + changeHistory(resourceName: string, id?: string | number): Object[]; changes(resourceName: string, id: string | number): Object; compute(resourceName: string, idOrInstance: number | string | Object ): void; createInstance(resourceName: string, attrs?: T, options?: DSAdapterOperationConfiguration): T & DSInstanceShorthands; @@ -146,7 +146,7 @@ declare namespace JSData { save(id: string | number, options?: DSSaveConfiguration): JSDataPromise>; // sync - changeHistory(id?: string | number): Array; + changeHistory(id?: string | number): Object[]; changes(id: string | number): Object; compute(idOrInstance: number | string | Object ): void; createInstance(attrs?: TInject, options?: DSAdapterOperationConfiguration): T & DSInstanceShorthands; @@ -177,7 +177,7 @@ declare namespace JSData { DSDestroy(options?: DSAdapterOperationConfiguration): JSDataPromise; DSCreate(options?: DSConfiguration): JSDataPromise>; DSLoadRelations(relations: string | string[], options?: DSAdapterOperationConfiguration): JSDataPromise>; - DSChangeHistory(): Array; + DSChangeHistory(): Object[]; DSChanges(): Object; DSHasChanges(): boolean; DSLastModified(): number; // timestamp @@ -196,8 +196,8 @@ declare namespace JSData { skip?: number; offset?: number; - orderBy?: string | string[] | Array; - sort?: string | string[] | Array; + orderBy?: string | string[] | string[][]; + sort?: string | string[] | string[][]; } type DSFilterArg = DSFilterParams | Object; diff --git a/jsoneditor/index.d.ts b/jsoneditor/index.d.ts index 6f8eee5b74..f9b891c4c0 100644 --- a/jsoneditor/index.d.ts +++ b/jsoneditor/index.d.ts @@ -25,7 +25,7 @@ declare module 'jsoneditor' { sortObjectKeys?: boolean; history?: boolean; mode?: JSONEditorMode; - modes?: Array; + modes?: JSONEditorMode[]; name?: string; schema?: Object; search?: boolean; diff --git a/lovefield/index.d.ts b/lovefield/index.d.ts index 0f1c4a0985..8774d18b9f 100644 --- a/lovefield/index.d.ts +++ b/lovefield/index.d.ts @@ -43,7 +43,7 @@ declare namespace lf { gte(operand: ValueLiteral|schema.Column|Binder): Predicate; match(operand: RegExp|Binder): Predicate; between(from: ValueLiteral|Binder, to: ValueLiteral|Binder): Predicate; - in(values: Binder|Array): Predicate; + in(values: Binder|ValueLiteral[]): Predicate; isNull(): Predicate; isNotNull(): Predicate; } @@ -51,10 +51,10 @@ declare namespace lf { function bind(index: number): Binder; export interface Transaction { - attach(query: query.Builder): Promise>; - begin(scope: Array): Promise; + attach(query: query.Builder): Promise; + begin(scope: schema.Table[]): Promise; commit(): Promise; - exec(queries: Array): Promise>>; + exec(queries: query.Builder[]): Promise; rollback(): Promise; } @@ -78,7 +78,7 @@ declare namespace lf { namespace query { export interface Builder { bind(...values: any[]): Builder; - exec(): Promise>; + exec(): Promise; explain(): string; toSql(): string; } @@ -90,7 +90,7 @@ declare namespace lf { export interface Insert extends Builder { into(table: schema.Table): Insert; - values(rows: Array|Binder|Array): Insert; + values(rows: Row[]|Binder|Binder[]): Insert; } export interface Select extends Builder { @@ -126,7 +126,7 @@ declare namespace lf { newColumnName: string): Promise; createRow(payload: Object): Row; getVersion(): number; - dump(): Array; + dump(): Object[]; } } // module raw @@ -147,7 +147,7 @@ declare namespace lf { export interface Database { name(): string; pragma(): DatabasePragma; - tables(): Array; + tables(): schema.Table[]; table(tableName: string): schema.Table; version(): number; } @@ -195,11 +195,11 @@ declare namespace lf { addColumn(name: string, type: lf.Type): TableBuilder; addForeignKey(name: string, spec: RawForeignKeySpec): TableBuilder; addIndex( - name: string, columns: string[]|Array, + name: string, columns: string[]|IndexedColumn[], unique?: boolean, order?: Order): TableBuilder; addNullable(columns: string[]): TableBuilder; addPrimaryKey( - columns: string[]|Array, + columns: string[]|IndexedColumn[], autoInc?: boolean): TableBuilder; addUnique(name: string, columns: string[]): TableBuilder; } diff --git a/maildev/index.d.ts b/maildev/index.d.ts index 2114f05866..3e2f8bcf83 100644 --- a/maildev/index.d.ts +++ b/maildev/index.d.ts @@ -122,7 +122,7 @@ declare module "maildev" { * @public */ - getAllEmail(done: (error: Error, emails: Array) => void): void; + getAllEmail(done: (error: Error, emails: Object[]) => void): void; /** * Starts the SMTP server. diff --git a/maquette/index.d.ts b/maquette/index.d.ts index 4a5f9659d7..3ddf4beb0f 100644 --- a/maquette/index.d.ts +++ b/maquette/index.d.ts @@ -220,7 +220,7 @@ declare namespace maquette { * These objects are assumed to be immutable primitive values. * @param {function} calculation - Function that takes zero arguments and returns an object (A {@link VNode} assumably) that can be cached. */ - result(inputs: Array, calculation: () => Result): Result; + result(inputs: Object[], calculation: () => Result): Result; } /** diff --git a/mongodb/index.d.ts b/mongodb/index.d.ts index 8674ec183d..bddc8255e9 100644 --- a/mongodb/index.d.ts +++ b/mongodb/index.d.ts @@ -943,15 +943,15 @@ export interface BulkWriteResult { nModified: number; nRemoved: number; - getInsertedIds(): Array; + getInsertedIds(): Object[]; getLastOp(): Object; getRawResponse(): Object; getUpsertedIdAt(index: number): Object; - getUpsertedIds(): Array; + getUpsertedIds(): Object[]; getWriteConcernError(): WriteConcernError; getWriteErrorAt(index: number): WriteError; getWriteErrorCount(): number; - getWriteErrors(): Array; + getWriteErrors(): Object[]; hasWriteErrors(): boolean; } diff --git a/mongoose-paginate/index.d.ts b/mongoose-paginate/index.d.ts index ab290de826..4ccb5645de 100644 --- a/mongoose-paginate/index.d.ts +++ b/mongoose-paginate/index.d.ts @@ -9,7 +9,7 @@ declare module 'mongoose' { export interface PaginateOptions { select?: Object | string; sort?: Object | string; - populate?: Array | string[] | Object | string; + populate?: Object[] | string[] | Object | string; lean?: boolean; leanWithId?: boolean; offset?: number; diff --git a/mongoose/mongoose-3.x.d.ts b/mongoose/mongoose-3.x.d.ts index b091915c81..69ef49f957 100644 --- a/mongoose/mongoose-3.x.d.ts +++ b/mongoose/mongoose-3.x.d.ts @@ -172,15 +172,15 @@ declare module "mongoose" { nModified: number; nRemoved: number; - getInsertedIds(): Array; + getInsertedIds(): Object[]; getLastOp(): Object; getRawResponse(): Object; getUpsertedIdAt(index: number): Object; - getUpsertedIds(): Array; + getUpsertedIds(): Object[]; getWriteConcernError(): WriteConcernError; getWriteErrorAt(index: number): WriteError; getWriteErrorCount(): number; - getWriteErrors(): Array; + getWriteErrors(): Object[]; hasWriteErrors(): boolean; } diff --git a/openpgp/index.d.ts b/openpgp/index.d.ts index 065b02f1ca..f998372894 100644 --- a/openpgp/index.d.ts +++ b/openpgp/index.d.ts @@ -457,7 +457,7 @@ declare namespace openpgp.message { /** Verify message signatures @param keys array of keys to verify signatures */ - verify(keys: Array): Array; + verify(keys: Array): Object[]; } /** creates new message object from binary data diff --git a/oracledb/index.d.ts b/oracledb/index.d.ts index 2b80f59e03..3f097195bf 100644 --- a/oracledb/index.d.ts +++ b/oracledb/index.d.ts @@ -153,7 +153,7 @@ declare namespace oracledb { /** For SELECT statements when the resultSet option is true, use the resultSet object to fetch rows. See ResultSet Class. */ resultSet?: IResultSet; /** For SELECT statements where the resultSet option is false or unspecified, rows contains an array of fetched rows. It will be NULL if there is an error or the SQL statement was not a SELECT statement. By default, the rows are in an array of column value arrays, but this can be changed to arrays of objects by setting outFormat to OBJECT. If a single row is fetched, then rows is an array that contains one single row. The number of rows returned is limited to the maxRows configuration property of the Oracledb object, although this may be overridden in any execute() call. */ - rows?: Array | any[]; + rows?: any[][] | any[]; /** For DML statements (including SELECT FOR UPDATE) this contains the number of rows affected, for example the number of rows inserted. For non-DML statements such as queries, or if no rows are affected, then rowsAffected will be zero. */ rowsAffected?: number; } @@ -565,7 +565,7 @@ declare namespace oracledb { var maxRows: number; /** Version of OCI that is used. */ var oracleClientVersion: number; - /** Default format for returning rows. When ARRAY, it will return Array>. When OBJECT, it will return Array. */ + /** Default format for returning rows. When ARRAY, it will return Array>. When OBJECT, it will return Object[]. */ var outFormat: number; /** Default number of connections to increment when available connections reach 0 in created pools. poolMax will be respected. */ var poolIncrement: number; diff --git a/oracledb/oracledb-1.5.0.d.ts b/oracledb/oracledb-1.5.0.d.ts index c33ac5512f..9be28997e0 100644 --- a/oracledb/oracledb-1.5.0.d.ts +++ b/oracledb/oracledb-1.5.0.d.ts @@ -93,7 +93,7 @@ declare module 'oracledb' { /** Metadata information - just columns names for now. */ metaData?: Array; /** When not using ResultSet, query results comes here. */ - rows?: Array | any[]; + rows?: any[][] | any[]; /** When using ResultSet, query results comes here. */ resultSet?: IResultSet; } @@ -122,11 +122,11 @@ declare module 'oracledb' { /** * Fetch some rows from ResultSet. * @param {number} rowCount Number of rows to be fetched. - * @param {(err:any,rows:Array>|Array) => void} callback Callback called when the rows are available, or when some error occurs. + * @param {(err:any,rows:Array>|Object[]) => void} callback Callback called when the rows are available, or when some error occurs. * @returns void * @remarks When the number of rows passed to the callback is less than the rowCount, no more rows are available to be fetched. */ - getRows(rowCount: number, callback: (err: any, rows: Array> | Array) => void): void; + getRows(rowCount: number, callback: (err: any, rows: Array> | Object[]) => void): void; } export interface IConnection { @@ -293,7 +293,7 @@ declare module 'oracledb' { export var autoCommit: boolean; /** Default maximum number of rows to be fetched in statements not using ResultSets */ export var maxRows: number; - /** Default format for returning rows. When ARRAY, it will return Array>. When OBJECT, it will return Array. */ + /** Default format for returning rows. When ARRAY, it will return Array>. When OBJECT, it will return Object[]. */ export var outFormat: number; /** node-oracledb driver version. */ export var version: number; diff --git a/papaparse/index.d.ts b/papaparse/index.d.ts index a3ea5f487a..a8a24825dc 100644 --- a/papaparse/index.d.ts +++ b/papaparse/index.d.ts @@ -15,9 +15,9 @@ declare namespace PapaParse { /** * Unparses javascript data objects and returns a csv string */ - unparse(data: Array, config?: UnparseConfig): string; + unparse(data: Object[], config?: UnparseConfig): string; - unparse(data: Array, config?: UnparseConfig): string; + unparse(data: any[][], config?: UnparseConfig): string; unparse(data: UnparseObject, config?: UnparseConfig): string; diff --git a/photonui/index.d.ts b/photonui/index.d.ts index e476d2d610..e6fb59456a 100644 --- a/photonui/index.d.ts +++ b/photonui/index.d.ts @@ -235,10 +235,10 @@ declare namespace photonui { class ColorPalette extends Widget { color: Color; - palette: Array; + palette: string[][]; value: string; - static palette: Array; + static palette: string[][]; } class ColorPicker extends Widget { diff --git a/proj4/index.d.ts b/proj4/index.d.ts index c349e6efec..ab69726d68 100644 --- a/proj4/index.d.ts +++ b/proj4/index.d.ts @@ -73,7 +73,7 @@ declare module "proj4" { */ export function defs(name: string): any; export function defs(name: string, projection: string): any; - export function defs(name: Array): any; + export function defs(name: string[][]): any; /** * @name transform diff --git a/radius/index.d.ts b/radius/index.d.ts index b7dd72fe3d..12e813f5f9 100644 --- a/radius/index.d.ts +++ b/radius/index.d.ts @@ -101,5 +101,5 @@ interface RadiusPacket { identifier: number; length: number; attributes: any; - raw_attributes: Array; + raw_attributes: any[][]; } diff --git a/react-data-grid/index.d.ts b/react-data-grid/index.d.ts index b069f73455..1f953a1921 100644 --- a/react-data-grid/index.d.ts +++ b/react-data-grid/index.d.ts @@ -17,7 +17,7 @@ declare namespace AdazzleReactDataGrid { * Gets the data to render in each row. Required. * Can be an array or a function that takes an index and returns an object. */ - rowGetter: Array | ((rowIdx: number) => Object); + rowGetter: Object[] | ((rowIdx: number) => Object); /** * The total number of rows to render. Required. */ @@ -147,7 +147,7 @@ declare namespace AdazzleReactDataGrid { * Called when a row is selected. * @param rows The (complete) current selection of rows. */ - onRowSelect?: (rows: Array) => void; + onRowSelect?: (rows: Object[]) => void; /** * A property that's unique to every row. * This property is required to enable row selection. diff --git a/react-select/react-select-0.9.10.d.ts b/react-select/react-select-0.9.10.d.ts index 7020d30d70..370b446fb7 100644 --- a/react-select/react-select-0.9.10.d.ts +++ b/react-select/react-select-0.9.10.d.ts @@ -32,7 +32,7 @@ declare module "react-select" { delimiter?: string; disabled?: boolean; filterOption?: (option: Option, filterString: string) => Option; - filterOptions?: (options: Array