diff --git a/3d-bin-packing/index.d.ts b/3d-bin-packing/index.d.ts index 2461538194..14228f3141 100644 --- a/3d-bin-packing/index.d.ts +++ b/3d-bin-packing/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/betterwaysystems/packer // Definitions by: Jeongho Nam // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// /// diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1036be548d..6e2c883f3a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1680,7 +1680,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](swig/swig.d.ts) [swig](http://github.com/paularmstrong/swig) by [Peter Harris](https://github.com/CodeAnimal), [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](swig-email-templates/swig-email-templates.d.ts) [swig-email-templates](https://github.com/andrewrk/swig-email-templates) by [Adam Babcock](https://github.com/mrhen) * [:link:](swipe/swipe.d.ts) [Swipe](https://github.com/thebird/Swipe) by [Andrey Kurdyumov](https://github.com/kant2002) -* [:link:](swiper/swiper.d.ts) [Swiper](https://github.com/nolimits4web/Swiper) by [Sebastián Galiano](https://github.com/sgaliano) +* [:link:](swiper/swiper.d.ts) [Swiper](https://github.com/nolimits4web/Swiper) by [Sebastián Galiano](https://github.com/sgaliano), [Luca Trazzi](https://github.com/lucax88x) * [:link:](swipeview/swipeview.d.ts) [SwipeView](http://cubiq.org/swipeview) by [Boris Yankov](https://github.com/borisyankov) * [:link:](switchery/switchery.d.ts) [switchery](https://github.com/abpetkov/switchery) by [Bruno Grieder](https://github.com/bgrieder), [Clayton Lautier](https://github.com/claylaut) * [:link:](swiz/swiz.d.ts) [swiz](https://github.com/racker/node-swiz) by [Jeff Goddard](https://github.com/jedigo) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index a9ae498738..4078b4808b 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,5 +1,5 @@ -- [ ] I tried using the latest `xxxx/xxxx.d.ts` file in this repo and had problems. +- [ ] I tried using the `@types/xxxx` package and had problems. - [ ] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript - [ ] I have a question that is inappropriate for [StackOverflow](https://stackoverflow.com/). (Please ask any appropriate questions there). -- [ ] I want to talk about `xxxx/xxxx.d.ts`. - - The authors of that type definition are cc/ @.... +- [ ] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see `Definitions by:` in `index.d.ts`) so they can respond. + - Authors: @.... diff --git a/README.md b/README.md index 4940649a6e..fd34c4ae33 100644 --- a/README.md +++ b/README.md @@ -224,6 +224,38 @@ If the standard is still a draft, it belongs here. Use a name beginning with `dom-` and include a link to the standard as the "Project" link in the header. When it graduates draft mode, we may remove it from DefinitelyTyped and deprecate the associated `@types` package. +#### I want to update a package to a new major version + +Before making your change, please create a new subfolder with the current version e.g. `v2`, and copy existing files to it. You will need to: + +1. Update the relative paths in `tsconfig.json` as well as `tslint.json`. +2. Add path mapping rules to ensure that tests are running against the intended version. + +For example [history v2 `tsconfig.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/history/v2/tsconfig.json) looks like: + +```json +{ + "compilerOptions": { + "baseUrl": "../../", + "typeRoots": ["../../"], + "paths": { + "history": [ "history/v2" ] + }, + }, + "files": [ + "index.d.ts", + "history-tests.ts" + ] +} +``` + +Please note that unless upgrading something backwards-compatible like `node`, all packages depending of the updated package need a path mapping to it, as well as packages depending on *those*. +For example, `react-router` depends on `history@2`, so [react-router `tsconfig.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react-router/tsconfig.json) has a path mapping to `"history": [ "history/v2" ]`; +transitively `react-router-bootstrap` (which depends on `react-router`) also adds a path mapping in its [tsconfig.json](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react-router-bootstrap/tsconfig.json). + +Also, `/// ` will not work with path mapping, so dependencies must use `import`. + + ## License This project is licensed under the MIT license. diff --git a/alt/index.d.ts b/alt/index.d.ts index 561de28ac3..00e171484b 100644 --- a/alt/index.d.ts +++ b/alt/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/goatslacker/alt // Definitions by: Michael Shearer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts b/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts index 16eaff3b39..b14af506b6 100644 --- a/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts +++ b/angular-ui-bootstrap/angular-ui-bootstrap-tests.ts @@ -7,6 +7,7 @@ testApp.config(( $buttonConfig: ng.ui.bootstrap.IButtonConfig, $datepickerConfig: ng.ui.bootstrap.IDatepickerConfig, $datepickerPopupConfig: ng.ui.bootstrap.IDatepickerPopupConfig, + $dropdownConfig: ng.ui.bootstrap.IDropdownConfig, $modalProvider: ng.ui.bootstrap.IModalProvider, $paginationConfig: ng.ui.bootstrap.IPaginationConfig, $pagerConfig: ng.ui.bootstrap.IPagerConfig, @@ -47,13 +48,18 @@ testApp.config(( $datepickerConfig.showWeeks = false; $datepickerConfig.startingDay = 1; $datepickerConfig.yearRange = 10; - - + $datepickerConfig.monthColumns = 3; + $datepickerConfig.yearColumns = 9; + $datepickerConfig.yearRows = 6; + $datepickerConfig.ngModelOptions.allowInvalid = false; + $datepickerConfig.ngModelOptions.timezone = "EST"; + $datepickerConfig.ngModelOptions.updateOn = "click"; /** * $datepickerPopupConfig tests */ + $datepickerPopupConfig.altInputFormats = ["mm/dd/YYYY", "mm-dd-YY"]; $datepickerPopupConfig.appendToBody = true; $datepickerPopupConfig.currentText = 'Select Today'; $datepickerPopupConfig.clearText = 'Reset Selection'; @@ -63,8 +69,18 @@ testApp.config(( $datepickerPopupConfig.datepickerPopupTemplateUrl = 'template.html'; $datepickerPopupConfig.datepickerTemplateUrl = 'template.html'; $datepickerPopupConfig.html5Types.date = 'MM-dd-yyyy'; + $datepickerPopupConfig.html5Types['datetime-local'] = 'yyyy-MM-ddTHH:mm:ss.sss'; + $datepickerPopupConfig.html5Types.month = 'yyyy-MM'; $datepickerPopupConfig.onOpenFocus = false; $datepickerPopupConfig.showButtonBar = false; + $datepickerPopupConfig.placement = "auto bottom left"; + + + /** + * $dropdownConfig tests + */ + $dropdownConfig.appendToOpenClass = "some-thing"; + $dropdownConfig.openClass = "show"; /** @@ -77,6 +93,7 @@ testApp.config(( * $paginationConfig tests */ $paginationConfig.boundaryLinks = true; + $paginationConfig.boundaryLinkNumbers = true; $paginationConfig.directionLinks = false; $paginationConfig.firstText = 'First Page'; $paginationConfig.itemsPerPage = 25; @@ -88,6 +105,7 @@ testApp.config(( $paginationConfig.rotate = false; $paginationConfig.templateUrl = 'template.html'; $paginationConfig.totalItems = 13; + $paginationConfig.forceEllipses = true; /** @@ -121,11 +139,14 @@ testApp.config(( $timepickerConfig.hourStep = 2; $timepickerConfig.meridians = ['-AM-', '-PM-']; $timepickerConfig.minuteStep = 5; + $timepickerConfig.secondStep = 5; $timepickerConfig.mousewheel = false; $timepickerConfig.readonlyInput = true; $timepickerConfig.showMeridian = false; $timepickerConfig.arrowkeys = false; $timepickerConfig.showSpinners = false; + $timepickerConfig.showSeconds = true; + $timepickerConfig.templateUrl = "template.html"; /** * $tooltipProvider tests diff --git a/angular-ui-bootstrap/index.d.ts b/angular-ui-bootstrap/index.d.ts index 73043c4e7a..b5b4e1a5e6 100644 --- a/angular-ui-bootstrap/index.d.ts +++ b/angular-ui-bootstrap/index.d.ts @@ -11,6 +11,7 @@ export type IAccordionConfig = angular.ui.bootstrap.IAccordionConfig; export type IButtonConfig = angular.ui.bootstrap.IButtonConfig; export type IDatepickerConfig = angular.ui.bootstrap.IDatepickerConfig; export type IDatepickerPopupConfig = angular.ui.bootstrap.IDatepickerPopupConfig; +export type IDropdownConfig = angular.ui.bootstrap.IDropdownConfig; export type IModalProvider = angular.ui.bootstrap.IModalProvider; export type IModalService = angular.ui.bootstrap.IModalService; export type IModalServiceInstance = angular.ui.bootstrap.IModalServiceInstance; @@ -54,6 +55,11 @@ declare module 'angular' { toggleEvent?: string; } + interface IDropdownConfigNgOptions extends angular.INgModelOptions { + allowInvalid?: boolean; + timezone?: string; + } + interface IDatepickerConfig { /** * Format of day in month. @@ -166,9 +172,45 @@ declare module 'angular' { * @default false */ shortcutPropagation?: boolean; + + /** + * The number of columns displayed in month selection. + * + * @default 3 + */ + monthColumns?: number; + + /** + * The number of columns displayed in year selection. + * + * @default 5 + */ + yearColumns?: number; + + /** + * The number of rows displayed in year selection + * + * @default 4 + */ + yearRows?: number; + + /** + * All supported angular ngModelOptions plus some + * + * @default {} + */ + ngModelOptions?: IDropdownConfigNgOptions } interface IDatepickerPopupConfig { + + /** + * A list of alternate formats acceptable for manual entry. + * + * @default [] + */ + altInputFormats?: string[]; + /** * The format for displayed dates. * @@ -247,8 +289,26 @@ declare module 'angular' { * @default true */ onOpenFocus?: boolean; + + /** + * Passing in 'auto' separated by a space before the placement will enable auto positioning, e.g: "auto bottom-left". The popup will attempt to position where it fits in the closest scrollable ancestor. + * + * @default 'auto bottom-left' + */ + placement?: string; } + interface IDropdownConfig { + /** + * @default: 'uib-dropdown-open' + */ + appendToOpenClass?: string; + + /** + * @default: 'open' + */ + openClass?: string; + } interface IModalProvider { /** @@ -543,6 +603,13 @@ declare module 'angular' { */ boundaryLinks?: boolean; + /** + * Whether to always display the first and last page numbers. If max-size is smaller than the number of pages, then the first and last page numbers are still shown with ellipses in-between as necessary. NOTE: max-size refers to the center of the range. This option may add up to 2 more numbers on each side of the displayed range for the end value and what would be an ellipsis but is replaced by a number because it is sequential. + * + * @default false + */ + boundaryLinkNumbers?: boolean; + /** * Text for First button. * @@ -563,6 +630,13 @@ declare module 'angular' { * @default 'template/pagination/pagination.html' */ templateUrl?: string; + + /** + * Also displays ellipses when rotate is true and max-size is smaller than the number of pages. + * + * @default false + */ + forceEllipses?: boolean; } interface IPagerConfig { @@ -679,6 +753,13 @@ declare module 'angular' { */ minuteStep?: number; + /** + * Number of seconds to increase or decrease when using a button. + * + * @default 1 + */ + secondStep?: number; + /** * Whether to display 12H or 24H mode. * @@ -720,6 +801,20 @@ declare module 'angular' { * @default true */ showSpinners?: boolean; + + /** + * Show seconds input. + * + * @default false + */ + showSeconds?: boolean; + + /** + * Add the ability to override the template used on the component. + * + * @default 'uib/template/timepicker/timepicker.html' + */ + templateUrl?: string; } diff --git a/antd/index.d.ts b/antd/index.d.ts index e2865c6927..f262eda45f 100644 --- a/antd/index.d.ts +++ b/antd/index.d.ts @@ -2,6 +2,7 @@ // Project: http://ant.design // Definitions by: bang88 , Bruce Mitchener // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/aphrodite/index.d.ts b/aphrodite/index.d.ts index 2f53e133fd..63eba46927 100644 --- a/aphrodite/index.d.ts +++ b/aphrodite/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/Khan/aphrodite // Definitions by: Alexey Svetliakov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import * as React from "react"; diff --git a/autosize/autosize-tests.ts b/autosize/autosize-tests.ts index 74be703a94..a7eea57a62 100644 --- a/autosize/autosize-tests.ts +++ b/autosize/autosize-tests.ts @@ -8,3 +8,21 @@ autosize(document.querySelector('textarea')); // from a single element autosize(document.getElementById('my-textarea')); + +// update a NodeList +autosize.update(document.querySelectorAll('textarea')); + +// update a single Node +autosize.update(document.querySelector('textarea')); + +// update a single element +autosize.update(document.getElementById('my-textarea')); + +// destroy a NodeList +autosize.destroy(document.querySelectorAll('textarea')); + +// destroy a single Node +autosize.destroy(document.querySelector('textarea')); + +// destroy a single element +autosize.destroy(document.getElementById('my-textarea')); diff --git a/autosize/index.d.ts b/autosize/index.d.ts index 5ea76d0472..0886904e3f 100644 --- a/autosize/index.d.ts +++ b/autosize/index.d.ts @@ -1,12 +1,16 @@ // Type definitions for jquery.autosize 3.0.7 // Project: http://www.jacklmoore.com/autosize/ -// Definitions by: Aaron T. King +// Definitions by: Aaron T. King , keika299 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace autosize { interface AutosizeStatic { (el: Element): void; (el: NodeList): void; + update(el: Element): void; + update(el: NodeList): void; + destroy(el: Element): void; + destroy(el: NodeList): void; } } diff --git a/backlog-js/index.d.ts b/backlog-js/index.d.ts index b15602f958..b548241e2f 100644 --- a/backlog-js/index.d.ts +++ b/backlog-js/index.d.ts @@ -23,9 +23,9 @@ declare class Request { method: string; path: string; params?: Params | FormData; - }): Promise; - checkStatus(response: IResponse): Promise; - parseJSON(response: IResponse): Promise; + }): Promise; + checkStatus(response: ResponseInterface): Promise; + parseJSON(response: ResponseInterface): Promise; private toFormData(params); private toQueryString(params); webAppBaseURL: string; @@ -49,7 +49,7 @@ export class Backlog extends Request { putSpaceNotification(params: Option.Space.PutSpaceNotificationParams): Promise; getSpaceDiskUsage(): Promise; getSpaceIcon(): Promise; - postSpaceAttachment(form: FormData): Promise; + postSpaceAttachment(form: FormData): Promise; getUsers(): Promise; getUser(userId: number): Promise; postUser(params: Option.User.PostUserParams): Promise; @@ -656,7 +656,7 @@ export namespace Error { private _status; private _body; private _response; - constructor(name: BacklogErrorNameType, response: IResponse, body?: { + constructor(name: BacklogErrorNameType, response: ResponseInterface, body?: { errors: BacklogErrorMessage[]; }); name: BacklogErrorNameType; @@ -665,20 +665,20 @@ export namespace Error { body: { errors: BacklogErrorMessage[]; }; - response: IResponse; + response: ResponseInterface; } export class BacklogApiError extends BacklogError { - constructor(response: IResponse, body?: { + constructor(response: ResponseInterface, body?: { errors: BacklogErrorMessage[]; }); } export class BacklogAuthError extends BacklogError { - constructor(response: IResponse, body?: { + constructor(response: ResponseInterface, body?: { errors: BacklogErrorMessage[]; }); } export class UnexpectedError extends BacklogError { - constructor(response: IResponse); + constructor(response: ResponseInterface); } export interface BacklogErrorMessage { message: string; diff --git a/bookshelf/index.d.ts b/bookshelf/index.d.ts index 3895ef95a1..56472a3213 100644 --- a/bookshelf/index.d.ts +++ b/bookshelf/index.d.ts @@ -2,6 +2,7 @@ // Project: http://bookshelfjs.org/ // Definitions by: Andrew Schurman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import Knex = require('knex'); import knex = require('knex'); diff --git a/cannon/cannon-tests.ts b/cannon/cannon-tests.ts new file mode 100644 index 0000000000..79ae76a6d8 --- /dev/null +++ b/cannon/cannon-tests.ts @@ -0,0 +1,6 @@ +import cannon = require("cannon"); + +var aabb = new cannon.AABB() + +aabb.setFromPoints([new cannon.Vec3(1,2,3)]); + diff --git a/cannon/index.d.ts b/cannon/index.d.ts new file mode 100644 index 0000000000..45e005d53d --- /dev/null +++ b/cannon/index.d.ts @@ -0,0 +1,1000 @@ +// Type definitions for cannon 0.1 +// Project: https://github.com/clark-stevenson/cannon.d.ts +// Definitions by: Clark Stevenson +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + + +declare module CANNON { + + export interface IAABBOptions { + + upperBound?: Vec3; + lowerBound?: Vec3; + + } + + export class AABB { + + lowerBound: Vec3; + upperBound: Vec3; + + constructor(options?: IAABBOptions); + + setFromPoints(points: Vec3[], position?: Vec3, quaternion?: Quaternion, skinSize?: number): void; + copy(aabb: AABB): void; + extend(aabb: AABB): void; + overlaps(aabb: AABB): boolean; + + } + + export class ArrayCollisionMatrix { + + matrix: Mat3[]; + + get(i: number, j: number): number; + set(i: number, j: number, value?: number): void; + reset(): void; + setNumObjects(n: number): void; + + } + + export class BroadPhase { + + world: World; + useBoundingBoxes: boolean; + dirty: boolean; + + collisionPairs(world: World, p1: Body[], p2: Body[]): void; + needBroadphaseCollision(bodyA: Body, bodyB: Body): boolean; + intersectionTest(bodyA: Body, bodyB: Body, pairs1: Body[], pairs2: Body[]): void; + doBoundingSphereBroadphase(bodyA: Body, bodyB: Body, pairs1: Body[], pairs2: Body[]): void; + doBoundingBoxBroadphase(bodyA: Body, bodyB: Body, pairs1: Body[], pairs2: Body[]): void; + makePairsUnique(pairs1: Body[], pairs2: Body[]): void; + setWorld(world: World): void; + boundingSphereCheck(bodyA: Body, bodyB: Body): boolean; + aabbQuery(world: World, aabb: AABB, result: Body[]): Body[]; + + } + + export class GridBroadphase extends BroadPhase { + + nx: number; + ny: number; + nz: number; + aabbMin: Vec3; + aabbMax: Vec3; + bins: any[]; + + constructor(aabbMin?: Vec3, aabbMax?: Vec3, nx?: number, ny?: number, nz?: number); + + } + + export class NaiveBroadphase extends BroadPhase { + } + + export class ObjectCollisionMatrix { + + matrix: number[]; + + get(i: number, j: number): number; + set(i: number, j: number, value: number): void; + reset(): void; + setNumObjects(n: number): void; + + } + + export class Ray { + + from: Vec3; + to: Vec3; + precision: number; + checkCollisionResponse: boolean; + + constructor(from?: Vec3, to?: Vec3); + + getAABB(result: RaycastResult): void; + + } + + export class RaycastResult { + + rayFromWorld: Vec3; + rayToWorld: Vec3; + hitNormalWorld: Vec3; + hitPointWorld: Vec3; + hasHit: boolean; + shape: Shape; + body: Body; + distance: number; + + reset(): void; + set(rayFromWorld: Vec3, rayToWorld: Vec3, hitNormalWorld: Vec3, hitPointWorld: Vec3, shape: Shape, body: Body, distance: number): void; + + } + + export class SAPBroadphase extends BroadPhase { + + static insertionSortX(a: any[]): any[]; + static insertionSortY(a: any[]): any[]; + static insertionSortZ(a: any[]): any[]; + static checkBounds(bi: Body, bj: Body, axisIndex?: number): boolean; + + axisList: any[]; + world: World; + axisIndex: number; + + constructor(world?: World); + + autoDetectAxis(): void; + aabbQuery(world: World, aabb: AABB, result?: Body[]): Body[]; + + } + + export interface IConstraintOptions { + + collideConnected?: boolean; + wakeUpBodies?: boolean; + + } + + export class Constraint { + + equations: any[]; + bodyA: Body; + bodyB: Body; + id: number; + collideConnected: boolean; + + constructor(bodyA: Body, bodyB: Body, options?: IConstraintOptions); + + update(): void; + + } + + export class DistanceConstraint extends Constraint { + + constructor(bodyA: Body, bodyB: Body, distance: number, maxForce?: number); + + } + + export interface IHingeConstraintOptions { + + pivotA?: Vec3; + axisA?: Vec3; + pivotB?: Vec3; + axisB?: Vec3; + maxForce?: number; + + } + + export class HingeConstraint extends Constraint { + + motorEnabled: boolean; + motorTargetVelocity: number; + motorMinForce: number; + motorMaxForce: number; + motorEquation: RotationalMotorEquation; + + constructor(bodyA: Body, bodyB: Body, options?: IHingeConstraintOptions); + + enableMotor(): void; + disableMotor(): void; + + } + + export class PointToPointConstraint extends Constraint { + + constructor(bodyA: Body, pivotA: Vec3, bodyB: Body, pivotB: Vec3, maxForce?: number); + + } + + + export class LockConstraint extends Constraint { + constructor(bodyA: Body, bodyB: Body, options?:any); + } + + + + export class Equation { + + id: number; + minForce: number; + maxForce: number; + bi: Body; + bj: Body; + a: number; + b: number; + eps: number; + jacobianElementA: JacobianElement; + jacobianElementB: JacobianElement; + enabled: boolean; + + constructor(bi: Body, bj: Body, minForce?: number, maxForce?: number); + + setSpookParams(stiffness: number, relaxation: number, timeStep: number): void; + computeB(a: number, b: number, h: number): number; + computeGq(): number; + computeGW(): number; + computeGWlamda(): number; + computeGiMf(): number; + computeGiMGt(): number; + addToWlamda(deltalambda: number): number; + computeC(): number; + + } + + export class FrictionEquation extends Equation { + + constructor(bi: Body, bj: Body, slipForce: number); + + } + + export class RotationalEquation extends Equation { + + ni: Vec3; + nj: Vec3; + nixnj: Vec3; + njxni: Vec3; + invIi: Mat3; + invIj: Mat3; + relVel: Vec3; + relForce: Vec3; + + constructor(bodyA: Body, bodyB: Body); + + } + + export class RotationalMotorEquation extends Equation { + + axisA: Vec3; + axisB: Vec3; + invLi: Mat3; + invIj: Mat3; + targetVelocity: number; + + constructor(bodyA: Body, bodyB: Body, maxForce?: number); + + } + + export class ContactEquation extends Equation { + + restitution: number; + ri: Vec3; + rj: Vec3; + penetrationVec: Vec3; + ni: Vec3; + rixn: Vec3; + rjxn: Vec3; + invIi: Mat3; + invIj: Mat3; + biInvInertiaTimesRixn: Vec3; + bjInvInertiaTimesRjxn: Vec3; + + constructor(bi: Body, bj: Body); + + } + + export interface IContactMaterialOptions { + + friction?: number; + restitution?: number; + contactEquationStiffness?: number; + contactEquationRelaxation?: number; + frictionEquationStiffness?: number; + frictionEquationRelaxation?: number; + + } + + export class ContactMaterial { + + id: number; + materials: Material[]; + friction: number; + restitution: number; + contactEquationStiffness: number; + contactEquationRelaxation: number; + frictionEquationStiffness: number; + frictionEquationRelaxation: number; + + constructor(m1: Material, m2: Material, options?: IContactMaterialOptions); + + } + + export class Material { + + name: string; + id: number; + friction:number; + restitution:number; + + constructor(name: string); + + } + + export class JacobianElement { + + spatial: Vec3; + rotational: Vec3; + + multiplyElement(element: JacobianElement): number; + multiplyVectors(spacial: Vec3, rotational: Vec3): number; + + } + + export class Mat3 { + + constructor(elements?: number[]); + + identity(): void; + setZero(): void; + setTrace(vec3: Vec3): void; + getTrace(target: Vec3): void; + vmult(v: Vec3, target?: Vec3): Vec3; + smult(s: number): void; + mmult(m: Mat3): Mat3; + scale(v: Vec3, target?: Mat3): Mat3; + solve(b: Vec3, target?: Vec3): Vec3; + e(row: number, column: number, value?: number): number; + copy(source: Mat3): Mat3; + toString(): string; + reverse(target?: Mat3): Mat3; + setRotationFromQuaternion(q: Quaternion): Mat3; + transpose(target?: Mat3): Mat3; + + } + + export class Quaternion { + + x: number; + y: number; + z: number; + w: number; + + constructor(x?: number, y?: number, z?: number, w?: number); + + set(x: number, y: number, z: number, w: number): void; + toString(): string; + toArray(): number[]; + setFromAxisAngle(axis: Vec3, angle: number): void; + toAxisAngle(targetAxis?: Vec3): any[]; + setFromVectors(u: Vec3, v: Vec3): void; + mult(q: Quaternion, target?: Quaternion): Quaternion; + inverse(target?: Quaternion): Quaternion; + conjugate(target?: Quaternion): Quaternion; + normalize(): void; + normalizeFast(): void; + vmult(v: Vec3, target?: Vec3): Vec3; + copy(source: Quaternion): Quaternion; + toEuler(target: Vec3, order?: string): void; + setFromEuler(x: number, y: number, z: number, order?: string): Quaternion; + clone(): Quaternion; + + } + + export class Transform { + + static pointToLocalFrame(position: Vec3, quaternion: Quaternion, worldPoint: Vec3, result?: Vec3): Vec3; + static pointToWorldFrame(position: Vec3, quaternion: Quaternion, localPoint: Vec3, result?: Vec3): Vec3; + + position: Vec3; + quaternion: Quaternion; + + vectorToWorldFrame(localVector: Vec3, result?: Vec3): Vec3; + vectorToLocalFrame(position: Vec3, quaternion: Quaternion, worldVector: Vec3, result?: Vec3): Vec3; + + } + + export class Vec3 { + + static ZERO: Vec3; + + x: number; + y: number; + z: number; + + constructor(x?: number, y?: number, z?: number); + + cross(v: Vec3, target?: Vec3): Vec3; + set(x: number, y: number, z: number): Vec3; + setZero(): void; + vadd(v: Vec3, target?: Vec3): Vec3; + vsub(v: Vec3, target?: Vec3): Vec3; + crossmat(): Mat3; + normalize(): number; + unit(target?: Vec3): Vec3; + norm(): number; + norm2(): number; + distanceTo(p: Vec3): number; + mult(scalar: number, target?: Vec3): Vec3; + scale(scalar: number, target?: Vec3): Vec3; + dot(v: Vec3): number; + isZero(): boolean; + negate(target?: Vec3): Vec3; + tangents(t1: Vec3, t2: Vec3): void; + toString(): string; + toArray(): number[]; + copy(source: Vec3): Vec3; + lerp(v: Vec3, t: number, target?: Vec3): void; + almostEquals(v: Vec3, precision?: number): boolean; + almostZero(precision?: number): boolean; + isAntiparallelTo(v: Vec3, prescision?: number): boolean; + clone(): Vec3; + + } + + export interface IBodyOptions { + position?: Vec3; + velocity?: Vec3; + angularVelocity?: Vec3; + quaternion?: Quaternion; + mass?: number; + material?: number; + type?: number; + linearDamping?: number; + angularDamping?: number; + } + + export class Body extends EventTarget { + + static DYNAMIC: number; + static STATIC: number; + static KINEMATIC: number; + static AWAKE: number; + static SLEEPY: number; + static SLEEPING: number; + static sleepyEvent: IEvent; + static sleepEvent: IEvent; + + id: number; + world: World; + preStep: Function; + postStep: Function; + vlambda: Vec3; + collisionFilterGroup: number; + collisionFilterMask: number; + collisionResponse: boolean; + position: Vec3; + previousPosition: Vec3; + initPosition: Vec3; + velocity: Vec3; + initVelocity: Vec3; + force: Vec3; + mass: number; + invMass: number; + material: Material; + linearDamping: number; + type: number; + allowSleep: boolean; + sleepState: number; + sleepSpeedLimit: number; + sleepTimeLimit: number; + timeLastSleepy: number; + torque: Vec3; + quaternion: Quaternion; + initQuaternion: Quaternion; + angularVelocity: Vec3; + initAngularVelocity: Vec3; + interpolatedPosition: Vec3; + interpolatedQuaternion: Quaternion; + shapes: Shape[]; + shapeOffsets: any[]; + shapeOrentiations: any[]; + inertia: Vec3; + invInertia: Vec3; + invInertiaWorld: Mat3; + invMassSolve: number; + invInertiaSolve: Vec3; + invInteriaWorldSolve: Mat3; + fixedRotation: boolean; + angularDamping: number; + aabb: AABB; + aabbNeedsUpdate: boolean; + wlambda: Vec3; + + constructor(options?: IBodyOptions); + + wakeUp(): void; + sleep(): void; + sleepTick(time: number): void; + updateSolveMassProperties(): void; + pointToLocalFrame(worldPoint: Vec3, result?: Vec3): Vec3; + pointToWorldFrame(localPoint: Vec3, result?: Vec3): Vec3; + vectorToWorldFrame(localVector: Vec3, result?: Vec3): Vec3; + addShape(shape: Shape, offset?: Vec3, orientation?: Quaternion): void; + updateBoundingRadius(): void; + computeAABB(): void; + updateInertiaWorld(force: Vec3): void; + applyForce(force: Vec3, worldPoint: Vec3): void; + applyImpulse(impulse: Vec3, worldPoint: Vec3): void; + updateMassProperties(): void; + getVelocityAtWorldPoint(worldPoint: Vec3, result: Vec3): Vec3; + + } + + export interface IRaycastVehicleOptions { + + chassisBody?: Body; + indexRightAxis?: number; + indexLeftAxis?: number; + indexUpAxis?: number; + + } + + export interface IWheelInfoOptions { + + chassisConnectionPointLocal?: Vec3; + chassisConnectionPointWorld?: Vec3; + directionLocal?: Vec3; + directionWorld?: Vec3; + axleLocal?: Vec3; + axleWorld?: Vec3; + suspensionRestLength?: number; + suspensionMaxLength?: number; + radius?: number; + suspensionStiffness?: number; + dampingCompression?: number; + dampingRelaxation?: number; + frictionSlip?: number; + steering?: number; + rotation?: number; + deltaRotation?: number; + rollInfluence?: number; + maxSuspensionForce?: number; + isFronmtWheel?: boolean; + clippedInvContactDotSuspension?: number; + suspensionRelativeVelocity?: number; + suspensionForce?: number; + skidInfo?: number; + suspensionLength?: number; + maxSuspensionTravel?: number; + useCustomSlidingRotationalSpeed?: boolean; + customSlidingRotationalSpeed?: number; + + position?: Vec3; + direction?: Vec3; + axis?: Vec3; + body?: Body; + + } + + export class WheelInfo { + + maxSuspensionTravbel: number; + customSlidingRotationalSpeed: number; + useCustomSlidingRotationalSpeed: boolean; + sliding: boolean; + chassisConnectionPointLocal: Vec3; + chassisConnectionPointWorld: Vec3; + directionLocal: Vec3; + directionWorld: Vec3; + axleLocal: Vec3; + axleWorld: Vec3; + suspensionRestLength: number; + suspensionMaxLength: number; + radius: number; + suspensionStiffness: number; + dampingCompression: number; + dampingRelaxation: number; + frictionSlip: number; + steering: number; + rotation: number; + deltaRotation: number; + rollInfluence: number; + maxSuspensionForce: number; + engineForce: number; + brake: number; + isFrontWheel: boolean; + clippedInvContactDotSuspension: number; + suspensionRelativeVelocity: number; + suspensionForce: number; + skidInfo: number; + suspensionLength: number; + sideImpulse: number; + forwardImpulse: number; + raycastResult: RaycastResult; + worldTransform: Transform; + isInContact: boolean; + + constructor(options?: IWheelInfoOptions); + + } + + export class RaycastVehicle { + + chassisBody: Body; + wheelInfos: IWheelInfoOptions[]; + sliding: boolean; + world: World; + iindexRightAxis: number; + indexForwardAxis: number; + indexUpAxis: number; + + constructor(options?: IRaycastVehicleOptions); + + addWheel(options?: IWheelInfoOptions): void; + setSteeringValue(value: number, wheelIndex: number): void; + applyEngineForce(value: number, wheelIndex: number): void; + setBrake(brake: number, wheelIndex: number): void; + addToWorld(world: World): void; + getVehicleAxisWorld(axisIndex: number, result: Vec3): Vec3; + updateVehicle(timeStep: number): void; + updateSuspension(deltaTime: number): void; + removeFromWorld(world: World): void; + getWheelTransformWorld(wheelIndex: number): Transform; + + } + + export interface IRigidVehicleOptions { + + chassisBody: Body; + + } + + export class RigidVehicle { + + wheelBodies: Body[]; + coordinateSystem: Vec3; + chassisBody: Body; + constraints: Constraint[]; + wheelAxes: Vec3[]; + wheelForces: Vec3[]; + + constructor(options?: IRigidVehicleOptions); + + addWheel(options?: IWheelInfoOptions): Body; + setSteeringValue(value: number, wheelIndex: number): void; + setMotorSpeed(value: number, wheelIndex: number): void; + disableMotor(wheelIndex: number): void; + setWheelForce(value: number, wheelIndex: number): void; + applyWheelForce(value: number, wheelIndex: number): void; + addToWorld(world: World): void; + removeFromWorld(world: World): void; + getWheelSpeed(wheelIndex: number): number; + + } + + export class SPHSystem { + + particles: Particle[]; + density: number; + smoothingRadius: number; + speedOfSound: number; + viscosity: number; + eps: number; + pressures: number[]; + densities: number[]; + neighbors: number[]; + + add(particle: Particle): void; + remove(particle: Particle): void; + getNeighbors(particle: Particle, neighbors: Particle[]): void; + update(): void; + w(r: number): number; + gradw(rVec: Vec3, resultVec: Vec3): void; + nablaw(r: number): number; + + } + + export interface ISpringOptions { + + restLength?: number; + stiffness?: number; + damping?: number; + worldAnchorA?: Vec3; + worldAnchorB?: Vec3; + localAnchorA?: Vec3; + localAnchorB?: Vec3; + + } + + export class Spring { + + restLength: number; + stffness: number; + damping: number; + bodyA: Body; + bodyB: Body; + localAnchorA: Vec3; + localAnchorB: Vec3; + + constructor(options?: ISpringOptions); + + setWorldAnchorA(worldAnchorA: Vec3): void; + setWorldAnchorB(worldAnchorB: Vec3): void; + getWorldAnchorA(result: Vec3): void; + getWorldAnchorB(result: Vec3): void; + applyForce(): void; + + } + + export class Box extends Shape { + + static calculateIntertia(halfExtents: Vec3, mass: number, target: Vec3): void; + + boundingSphereRadius: number; + collisionResponse: boolean; + halfExtents: Vec3; + convexPolyhedronRepresentation: ConvexPolyhedron; + + constructor(halfExtents: Vec3); + + updateConvexPolyhedronRepresentation(): void; + calculateLocalInertia(mass: number, target?: Vec3): Vec3; + getSideNormals(sixTargetVectors: boolean, quat?: Quaternion): Vec3[]; + updateBoundingSphereRadius(): number; + volume(): number; + forEachWorldCorner(pos: Vec3, quat: Quaternion, callback: Function): void; + + } + + export class ConvexPolyhedron extends Shape { + + static computeNormal(va: Vec3, vb: Vec3, vc: Vec3, target: Vec3): void; + static project(hull: ConvexPolyhedron, axis: Vec3, pos: Vec3, quat: Quaternion, result: number[]): void; + + vertices: Vec3[]; + worldVertices: Vec3[]; + worldVerticesNeedsUpdate: boolean; + faces: number[]; + faceNormals: Vec3[]; + uniqueEdges: Vec3[]; + + constructor(points?: Vec3[], faces?: number[]); + + computeEdges(): void; + computeNormals(): void; + getFaceNormal(i: number, target: Vec3): Vec3; + clipAgainstHull(posA: Vec3, quatA: Quaternion, hullB: Vec3, quatB: Quaternion, separatingNormal: Vec3, minDist: number, maxDist: number, result: any[]): void; + findSaparatingAxis(hullB: ConvexPolyhedron, posA: Vec3, quatA: Quaternion, posB: Vec3, quatB: Quaternion, target: Vec3, faceListA: any[], faceListB: any[]): boolean; + testSepAxis(axis: Vec3, hullB: ConvexPolyhedron, posA: Vec3, quatA: Quaternion, posB: Vec3, quatB: Quaternion): number; + getPlaneConstantOfFace(face_i: number): number; + clipFaceAgainstHull(separatingNormal: Vec3, posA: Vec3, quatA: Quaternion, worldVertsB1: Vec3[], minDist: number, maxDist: number, result: any[]): void; + clipFaceAgainstPlane(inVertices: Vec3[], outVertices: Vec3[], planeNormal: Vec3, planeConstant: number): Vec3; + computeWorldVertices(position: Vec3, quat: Quaternion): void; + computeLocalAABB(aabbmin: Vec3, aabbmax: Vec3): void; + computeWorldFaceNormals(quat: Quaternion): void; + calculateWorldAABB(pos: Vec3, quat: Quaternion, min: Vec3, max: Vec3): void; + getAveragePointLocal(target: Vec3): Vec3; + transformAllPoints(offset: Vec3, quat: Quaternion): void; + pointIsInside(p: Vec3): boolean; + + } + + export class Cylinder extends Shape { + + constructor(radiusTop: number, radiusBottom: number, height: number, numSegments: number); + + } + + export interface IHightfield { + + minValue?: number; + maxValue?: number; + elementSize: number; + + } + + export class Heightfield extends Shape { + + data: number[]; + maxValue: number; + minValue: number; + elementSize: number; + cacheEnabled: boolean; + pillarConvex: ConvexPolyhedron; + pillarOffset: Vec3; + type: number; + + constructor(data: number[], options?: IHightfield); + + update(): void; + updateMinValue(): void; + updateMaxValue(): void; + setHeightValueAtIndex(xi: number, yi: number, value: number): void; + getRectMinMax(iMinX: number, iMinY: number, iMaxX: number, iMaxY: number, result: any[]): void; + getIndexOfPosition(x: number, y: number, result: any[], clamp: boolean): boolean; + getConvexTrianglePillar(xi: number, yi: number, getUpperTriangle: boolean): void; + + } + + export class Particle extends Shape { + + } + + export class Plane extends Shape { + + worldNormal: Vec3; + worldNormalNeedsUpdate: boolean; + boundingSphereRadius: number; + + computeWorldNormal(quat: Quaternion): void; + calculateWorldAABB(pos: Vec3, quat: Quaternion, min: number, max: number): void; + + } + + export class Shape { + + static types: { + + SPHERE: number; + PLANE: number; + BOX: number; + COMPOUND: number; + CONVEXPOLYHEDRON: number; + HEIGHTFIELD: number; + PARTICLE: number; + CYLINDER: number; + + } + + type: number; + boundingSphereRadius: number; + collisionResponse: boolean; + + updateBoundingSphereRadius(): number; + volume(): number; + calculateLocalInertia(mass: number, target: Vec3): Vec3; + + } + + export class Sphere extends Shape { + + radius: number; + + constructor(radius: number); + + } + + export class GSSolver extends Solver { + + iterations: number; + tolerance: number; + + solve(dy: number, world: World): number; + + + } + + export class Solver { + iterations: number; + equations: Equation[]; + + solve(dy: number, world: World): number; + addEquation(eq: Equation): void; + removeEquation(eq: Equation): void; + removeAllEquations(): void; + + } + + export class SplitSolver extends Solver { + + subsolver: Solver; + + constructor(subsolver: Solver); + + solve(dy: number, world: World): number; + + } + + export class EventTarget { + + addEventListener(type: string, listener: Function): EventTarget; + hasEventListener(type: string, listener: Function): boolean; + removeEventListener(type: string, listener: Function): EventTarget; + dispatchEvent(event: IEvent): IEvent; + + } + + export class Pool { + + objects: any[]; + type: any[]; + + release(): any; + get(): any; + constructObject(): any; + + } + + export class TupleDictionary { + + data: { + keys: any[]; + }; + + get(i: number, j: number): number; + set(i: number, j: number, value: number): void; + reset(): void; + + } + + export class Utils { + + static defaults(options?: any, defaults?: any): any; + + } + + export class Vec3Pool extends Pool { + + type: any; + + constructObject(): Vec3; + + } + + export class NarrowPhase { + + contactPointPool: Pool[]; + v3pool: Vec3Pool; + + } + + export class World extends EventTarget { + + dt: number; + allowSleep: boolean; + contacts: ContactEquation[]; + frictionEquations: FrictionEquation[]; + quatNormalizeSkip: number; + quatNormalizeFast: boolean; + time: number; + stepnumber: number; + default_dt: number; + nextId: number; + gravity: Vec3; + broadphase: NaiveBroadphase; + bodies: Body[]; + solver: Solver; + constraints: Constraint[]; + narrowPhase: NarrowPhase; + collisionMatrix: ArrayCollisionMatrix; + collisionMatrixPrevious: ArrayCollisionMatrix; + materials: Material[]; + contactmaterials: ContactMaterial[]; + contactMaterialTable: TupleDictionary; + defaultMaterial: Material; + defaultContactMaterial: ContactMaterial; + doProfiling: boolean; + profile: { + solve: number; + makeContactConstraints: number; + broadphaser: number; + integrate: number; + narrowphase: number; + }; + subsystems: any[]; + addBodyEvent: IBodyEvent; + removeBodyEvent: IBodyEvent; + + getContactMaterial(m1: Material, m2: Material): ContactMaterial; + numObjects(): number; + collisionMatrixTick(): void; + addBody(body: Body): void; + addConstraint(c: Constraint): void; + removeConstraint(c: Constraint): void; + rayTest(from: Vec3, to: Vec3, result: RaycastResult): void; + remove(body: Body): void; + addMaterial(m: Material): void; + addContactMaterial(cmat: ContactMaterial): void; + step(dy: number, timeSinceLastCalled?: number, maxSubSteps?: number): void; + + } + + export interface IEvent { + + type: string; + + } + + export interface IBodyEvent extends IEvent { + + body: Body; + + } + +} + + +declare module "cannon" { + export = CANNON; +} diff --git a/ecmarkup/tsconfig.json b/cannon/tsconfig.json similarity index 86% rename from ecmarkup/tsconfig.json rename to cannon/tsconfig.json index 2a9343d5ec..a59be4d465 100644 --- a/ecmarkup/tsconfig.json +++ b/cannon/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,6 +17,6 @@ }, "files": [ "index.d.ts", - "ecmarkup-tests.ts" + "cannon-tests.ts" ] } \ No newline at end of file diff --git a/chai-enzyme/index.d.ts b/chai-enzyme/index.d.ts index 72842332ad..23e9058ef6 100644 --- a/chai-enzyme/index.d.ts +++ b/chai-enzyme/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/producthunt/chai-enzyme // Definitions by: Alexey Svetliakov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/comment-json/comment-json-tests.ts b/comment-json/comment-json-tests.ts new file mode 100644 index 0000000000..af91ff422f --- /dev/null +++ b/comment-json/comment-json-tests.ts @@ -0,0 +1,16 @@ +import * as commentJson from 'comment-json'; + +const result = commentJson.parse(` +/** + block comment at the top + */ +// comment at the top +{ + // comment for a + // comment line 2 for a + /* block comment */ + "a": 1 // comment at right +} +// comment at the bottom +`); +const str = commentJson.stringify(result); diff --git a/comment-json/index.d.ts b/comment-json/index.d.ts new file mode 100644 index 0000000000..9c2652f34e --- /dev/null +++ b/comment-json/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for comment-json 1.1 +// Project: https://github.com/kaelzhang/node-comment-json +// Definitions by: Jason Dent +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export type Reviver = (k: number | string, v: any) => any; +export function parse(json: string, reviver?: Reviver, removes_comments?: boolean): any; +export function stringify(value: any, replacer?: any, space?: string | number): string; diff --git a/comment-json/tsconfig.json b/comment-json/tsconfig.json new file mode 100644 index 0000000000..342694cbb3 --- /dev/null +++ b/comment-json/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "comment-json-tests.ts" + ] +} diff --git a/comment-json/tslint.json b/comment-json/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/comment-json/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/cordova-plugin-inappbrowser/index.d.ts b/cordova-plugin-inappbrowser/index.d.ts index d5e221ba42..ea3d3adba8 100644 --- a/cordova-plugin-inappbrowser/index.d.ts +++ b/cordova-plugin-inappbrowser/index.d.ts @@ -168,6 +168,8 @@ interface InAppBrowser extends Window { removeEventListener(type: string, callback: (event: Event) => void): void; /** Closes the InAppBrowser window. */ close(): void; + /** Hides the InAppBrowser window. Calling this has no effect if the InAppBrowser was already hidden. */ + hide(): void; /** * Displays an InAppBrowser window that was opened hidden. Calling this has no effect * if the InAppBrowser was already visible. diff --git a/credit-card-type/index.d.ts b/credit-card-type/index.d.ts index 59886b5e60..8625e5e5f8 100644 --- a/credit-card-type/index.d.ts +++ b/credit-card-type/index.d.ts @@ -10,7 +10,8 @@ declare namespace creditCardType { interface CreditCardTypeInfo { niceType?: string type?: CardBrand - pattern?: RegExp + prefixPattern?: RegExp + exactPattern?: RegExp gaps?: Array lengths?: Array code?: { diff --git a/crypto-js/aes/index.d.ts b/crypto-js/aes/index.d.ts new file mode 100644 index 0000000000..4f435688c5 --- /dev/null +++ b/crypto-js/aes/index.d.ts @@ -0,0 +1,3 @@ +import { AES } from '../index'; + +export = AES; diff --git a/crypto-js/core/index.d.ts b/crypto-js/core/index.d.ts new file mode 100644 index 0000000000..c5d6e00410 --- /dev/null +++ b/crypto-js/core/index.d.ts @@ -0,0 +1,3 @@ +import * as Core from '../index'; + +export = Core; diff --git a/crypto-js/enc-base64/index.d.ts b/crypto-js/enc-base64/index.d.ts new file mode 100644 index 0000000000..55001a7115 --- /dev/null +++ b/crypto-js/enc-base64/index.d.ts @@ -0,0 +1,4 @@ +import { enc } from '../index'; + +declare const Base64: typeof enc.Base64; +export = Base64; diff --git a/crypto-js/enc-hex/index.d.ts b/crypto-js/enc-hex/index.d.ts new file mode 100644 index 0000000000..3718860123 --- /dev/null +++ b/crypto-js/enc-hex/index.d.ts @@ -0,0 +1,4 @@ +import { enc } from '../index'; + +declare const Hex: typeof enc.Hex; +export = Hex; diff --git a/crypto-js/enc-latin1/index.d.ts b/crypto-js/enc-latin1/index.d.ts new file mode 100644 index 0000000000..7f27822daf --- /dev/null +++ b/crypto-js/enc-latin1/index.d.ts @@ -0,0 +1,4 @@ +import { enc } from '../index'; + +declare const Latin1: typeof enc.Latin1; +export = Latin1; diff --git a/crypto-js/enc-utf16/index.d.ts b/crypto-js/enc-utf16/index.d.ts new file mode 100644 index 0000000000..76fa98774a --- /dev/null +++ b/crypto-js/enc-utf16/index.d.ts @@ -0,0 +1,4 @@ +import { enc } from '../index'; + +declare const Utf16: typeof enc.Utf16; +export = Utf16; diff --git a/crypto-js/enc-utf8/index.d.ts b/crypto-js/enc-utf8/index.d.ts new file mode 100644 index 0000000000..828dcb9391 --- /dev/null +++ b/crypto-js/enc-utf8/index.d.ts @@ -0,0 +1,4 @@ +import { enc } from '../index'; + +declare const Utf8: typeof enc.Utf8; +export = Utf8; diff --git a/crypto-js/evpkdf/index.d.ts b/crypto-js/evpkdf/index.d.ts new file mode 100644 index 0000000000..8946b9d3a1 --- /dev/null +++ b/crypto-js/evpkdf/index.d.ts @@ -0,0 +1,3 @@ +import { EvpKDF } from '../index'; + +export = EvpKDF; diff --git a/crypto-js/format-hex/index.d.ts b/crypto-js/format-hex/index.d.ts new file mode 100644 index 0000000000..1b0f573824 --- /dev/null +++ b/crypto-js/format-hex/index.d.ts @@ -0,0 +1,4 @@ +import { format } from '../index'; + +declare const Hex: typeof format.Hex; +export = Hex; diff --git a/crypto-js/format-openssl/index.d.ts b/crypto-js/format-openssl/index.d.ts new file mode 100644 index 0000000000..02c35a3688 --- /dev/null +++ b/crypto-js/format-openssl/index.d.ts @@ -0,0 +1,4 @@ +import { format } from '../index'; + +declare const OpenSSL: typeof format.OpenSSL; +export = OpenSSL; diff --git a/crypto-js/hmac-md5/index.d.ts b/crypto-js/hmac-md5/index.d.ts new file mode 100644 index 0000000000..7240576710 --- /dev/null +++ b/crypto-js/hmac-md5/index.d.ts @@ -0,0 +1,3 @@ +import { HmacMD5 } from '../index'; + +export = HmacMD5; diff --git a/crypto-js/hmac-ripemd160/index.d.ts b/crypto-js/hmac-ripemd160/index.d.ts new file mode 100644 index 0000000000..6c371e9435 --- /dev/null +++ b/crypto-js/hmac-ripemd160/index.d.ts @@ -0,0 +1,3 @@ +import { HmacRIPEMD160 } from '../index'; + +export = HmacRIPEMD160; diff --git a/crypto-js/hmac-sha1/index.d.ts b/crypto-js/hmac-sha1/index.d.ts new file mode 100644 index 0000000000..1995cf87f6 --- /dev/null +++ b/crypto-js/hmac-sha1/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA1 } from '../index'; + +export = HmacSHA1; diff --git a/crypto-js/hmac-sha224/index.d.ts b/crypto-js/hmac-sha224/index.d.ts new file mode 100644 index 0000000000..f25334c64c --- /dev/null +++ b/crypto-js/hmac-sha224/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA224 } from '../index'; + +export = HmacSHA224; diff --git a/crypto-js/hmac-sha256/index.d.ts b/crypto-js/hmac-sha256/index.d.ts new file mode 100644 index 0000000000..ca1a1ca267 --- /dev/null +++ b/crypto-js/hmac-sha256/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA256 } from '../index'; + +export = HmacSHA256; diff --git a/crypto-js/hmac-sha3/index.d.ts b/crypto-js/hmac-sha3/index.d.ts new file mode 100644 index 0000000000..0fa0db9321 --- /dev/null +++ b/crypto-js/hmac-sha3/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA3 } from '../index'; + +export = HmacSHA3; diff --git a/crypto-js/hmac-sha384/index.d.ts b/crypto-js/hmac-sha384/index.d.ts new file mode 100644 index 0000000000..2e17420c1b --- /dev/null +++ b/crypto-js/hmac-sha384/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA384 } from '../index'; + +export = HmacSHA384; diff --git a/crypto-js/hmac-sha512/index.d.ts b/crypto-js/hmac-sha512/index.d.ts new file mode 100644 index 0000000000..439b2ffd5e --- /dev/null +++ b/crypto-js/hmac-sha512/index.d.ts @@ -0,0 +1,3 @@ +import { HmacSHA512 } from '../index'; + +export = HmacSHA512; diff --git a/crypto-js/index.d.ts b/crypto-js/index.d.ts index 5fdf193254..07a8d18dfc 100644 --- a/crypto-js/index.d.ts +++ b/crypto-js/index.d.ts @@ -114,4 +114,3 @@ declare namespace CryptoJS { }; } } - diff --git a/crypto-js/lib-typedarrays/index.d.ts b/crypto-js/lib-typedarrays/index.d.ts new file mode 100644 index 0000000000..761e38b1cd --- /dev/null +++ b/crypto-js/lib-typedarrays/index.d.ts @@ -0,0 +1,2 @@ +declare const LibTypedarrays: any; +export = LibTypedarrays; diff --git a/crypto-js/md5/index.d.ts b/crypto-js/md5/index.d.ts new file mode 100644 index 0000000000..faa064511e --- /dev/null +++ b/crypto-js/md5/index.d.ts @@ -0,0 +1,3 @@ +import { MD5 } from '../index'; + +export = MD5; diff --git a/crypto-js/mode-cfb/index.d.ts b/crypto-js/mode-cfb/index.d.ts new file mode 100644 index 0000000000..74c5c6e3d1 --- /dev/null +++ b/crypto-js/mode-cfb/index.d.ts @@ -0,0 +1,4 @@ +import { mode } from '../index'; + +declare const CFB: typeof mode.CFB; +export = CFB; diff --git a/crypto-js/mode-ctr-gladman/index.d.ts b/crypto-js/mode-ctr-gladman/index.d.ts new file mode 100644 index 0000000000..3ca8f8b367 --- /dev/null +++ b/crypto-js/mode-ctr-gladman/index.d.ts @@ -0,0 +1,4 @@ +import { mode } from '../index'; + +declare const CTRGladman: typeof mode.CTRGladman; +export = CTRGladman; diff --git a/crypto-js/mode-ctr/index.d.ts b/crypto-js/mode-ctr/index.d.ts new file mode 100644 index 0000000000..6007a4ca88 --- /dev/null +++ b/crypto-js/mode-ctr/index.d.ts @@ -0,0 +1,4 @@ +import { mode } from '../index'; + +declare const CTR: typeof mode.CTR; +export = CTR; diff --git a/crypto-js/mode-ecb/index.d.ts b/crypto-js/mode-ecb/index.d.ts new file mode 100644 index 0000000000..569d2b2286 --- /dev/null +++ b/crypto-js/mode-ecb/index.d.ts @@ -0,0 +1,4 @@ +import { mode } from '../index'; + +declare const ECB: typeof mode.ECB; +export = ECB; diff --git a/crypto-js/mode-ofb/index.d.ts b/crypto-js/mode-ofb/index.d.ts new file mode 100644 index 0000000000..484406979d --- /dev/null +++ b/crypto-js/mode-ofb/index.d.ts @@ -0,0 +1,4 @@ +import { mode } from '../index'; + +declare const OFB: typeof mode.OFB; +export = OFB; diff --git a/crypto-js/pad-ansix923/index.d.ts b/crypto-js/pad-ansix923/index.d.ts new file mode 100644 index 0000000000..2bb6c2dffb --- /dev/null +++ b/crypto-js/pad-ansix923/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const AnsiX923: typeof pad.AnsiX923; +export = AnsiX923; diff --git a/crypto-js/pad-iso10126/index.d.ts b/crypto-js/pad-iso10126/index.d.ts new file mode 100644 index 0000000000..6e52e96197 --- /dev/null +++ b/crypto-js/pad-iso10126/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const Iso10126: typeof pad.Iso10126; +export = Iso10126; diff --git a/crypto-js/pad-iso97971/index.d.ts b/crypto-js/pad-iso97971/index.d.ts new file mode 100644 index 0000000000..0ab1cecbfb --- /dev/null +++ b/crypto-js/pad-iso97971/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const Iso97971: typeof pad.Iso97971; +export = Iso97971; diff --git a/crypto-js/pad-nopadding/index.d.ts b/crypto-js/pad-nopadding/index.d.ts new file mode 100644 index 0000000000..f71bb2de73 --- /dev/null +++ b/crypto-js/pad-nopadding/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const NoPadding: typeof pad.NoPadding; +export = NoPadding; diff --git a/crypto-js/pad-pkcs7/index.d.ts b/crypto-js/pad-pkcs7/index.d.ts new file mode 100644 index 0000000000..1b194673a2 --- /dev/null +++ b/crypto-js/pad-pkcs7/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const Pkcs7: typeof pad.Pkcs7; +export = Pkcs7; diff --git a/crypto-js/pad-zeropadding/index.d.ts b/crypto-js/pad-zeropadding/index.d.ts new file mode 100644 index 0000000000..cf481402ab --- /dev/null +++ b/crypto-js/pad-zeropadding/index.d.ts @@ -0,0 +1,4 @@ +import { pad } from '../index'; + +declare const ZeroPadding: typeof pad.ZeroPadding; +export = ZeroPadding; diff --git a/crypto-js/pbkdf2/index.d.ts b/crypto-js/pbkdf2/index.d.ts new file mode 100644 index 0000000000..e242e6fe05 --- /dev/null +++ b/crypto-js/pbkdf2/index.d.ts @@ -0,0 +1,3 @@ +import { PBKDF2 } from '../index'; + +export = PBKDF2; diff --git a/crypto-js/rabbit-legacy/index.d.ts b/crypto-js/rabbit-legacy/index.d.ts new file mode 100644 index 0000000000..6befe37563 --- /dev/null +++ b/crypto-js/rabbit-legacy/index.d.ts @@ -0,0 +1,3 @@ +import { RabbitLegacy } from '../index'; + +export = RabbitLegacy; diff --git a/crypto-js/rabbit/index.d.ts b/crypto-js/rabbit/index.d.ts new file mode 100644 index 0000000000..f708a6f20b --- /dev/null +++ b/crypto-js/rabbit/index.d.ts @@ -0,0 +1,3 @@ +import { Rabbit } from '../index'; + +export = Rabbit; diff --git a/crypto-js/rc4/index.d.ts b/crypto-js/rc4/index.d.ts new file mode 100644 index 0000000000..38a929f490 --- /dev/null +++ b/crypto-js/rc4/index.d.ts @@ -0,0 +1,3 @@ +import { RC4 } from '../index'; + +export = RC4; diff --git a/crypto-js/ripemd160/index.d.ts b/crypto-js/ripemd160/index.d.ts new file mode 100644 index 0000000000..90e3e770ce --- /dev/null +++ b/crypto-js/ripemd160/index.d.ts @@ -0,0 +1,3 @@ +import { RIPEMD160 } from '../index'; + +export = RIPEMD160; diff --git a/crypto-js/sha1/index.d.ts b/crypto-js/sha1/index.d.ts new file mode 100644 index 0000000000..14fb4d2a6b --- /dev/null +++ b/crypto-js/sha1/index.d.ts @@ -0,0 +1,3 @@ +import { SHA1 } from '../index'; + +export = SHA1; diff --git a/crypto-js/sha224/index.d.ts b/crypto-js/sha224/index.d.ts new file mode 100644 index 0000000000..3ff1ff4596 --- /dev/null +++ b/crypto-js/sha224/index.d.ts @@ -0,0 +1,3 @@ +import { SHA224 } from '../index'; + +export = SHA224; diff --git a/crypto-js/sha256/index.d.ts b/crypto-js/sha256/index.d.ts new file mode 100644 index 0000000000..59781b01f3 --- /dev/null +++ b/crypto-js/sha256/index.d.ts @@ -0,0 +1,3 @@ +import { SHA256 } from '../index'; + +export = SHA256; diff --git a/crypto-js/sha3/index.d.ts b/crypto-js/sha3/index.d.ts new file mode 100644 index 0000000000..241574a711 --- /dev/null +++ b/crypto-js/sha3/index.d.ts @@ -0,0 +1,3 @@ +import { SHA3 } from '../index'; + +export = SHA3; diff --git a/crypto-js/sha384/index.d.ts b/crypto-js/sha384/index.d.ts new file mode 100644 index 0000000000..5bad55498a --- /dev/null +++ b/crypto-js/sha384/index.d.ts @@ -0,0 +1,3 @@ +import { SHA384 } from '../index'; + +export = SHA384; diff --git a/crypto-js/sha512/index.d.ts b/crypto-js/sha512/index.d.ts new file mode 100644 index 0000000000..0f764329e2 --- /dev/null +++ b/crypto-js/sha512/index.d.ts @@ -0,0 +1,3 @@ +import { SHA512 } from '../index'; + +export = SHA512; diff --git a/crypto-js/test/submodule-tests.ts b/crypto-js/test/submodule-tests.ts new file mode 100644 index 0000000000..0cfd8cd83f --- /dev/null +++ b/crypto-js/test/submodule-tests.ts @@ -0,0 +1,184 @@ +import Core = require('../core'); +import X64Core = require('../x64-core'); +import LibTypedarrays = require('../lib-typedarrays'); +// --- +import MD5 = require('../md5'); +import SHA1 = require('../sha1'); +import SHA256 = require('../sha256'); +import SHA224 = require('../sha224'); +import SHA512 = require('../sha512'); +import SHA384 = require('../sha384'); +import SHA3 = require('../sha3'); +import RIPEMD160 = require('../ripemd160'); +// --- +import HmacMD5 = require('../hmac-md5'); +import HmacSHA1 = require('../hmac-sha1'); +import HmacSHA256 = require('../hmac-sha256'); +import HmacSHA224 = require('../hmac-sha224'); +import HmacSHA512 = require('../hmac-sha512'); +import HmacSHA384 = require('../hmac-sha384'); +import HmacSHA3 = require('../hmac-sha3'); +import HmacRIPEMD160 = require('../hmac-ripemd160'); +// --- +import PBKDF2 = require('../pbkdf2'); +// --- +import AES = require('../aes'); +import TripleDES = require('../tripledes'); +import RC4 = require('../rc4'); +import Rabbit = require('../rabbit'); +import RabbitLegacy = require('../rabbit-legacy'); +import EvpKDF = require('../evpkdf'); +// --- +import FormatOpenSSL = require('../format-openssl'); +import FormatHex = require('../format-hex'); +// --- +import EncLatin1 = require('../enc-latin1'); +import EncUtf8 = require('../enc-utf8'); +import EncHex = require('../enc-hex'); +import EncUtf16 = require('../enc-utf16'); +import EncBase64 = require('../enc-base64'); +// --- +import ModeCFB = require('../mode-cfb'); +import ModeCTR = require('../mode-ctr'); +import ModeCTRGladman = require('../mode-ctr-gladman'); +import ModeOFB = require('../mode-ofb'); +import ModeECB = require('../mode-ecb'); +// --- +import PadPkcs7 = require('../pad-pkcs7'); +import PadAnsiX923 = require('../pad-ansix923'); +import PadIso10126 = require('../pad-iso10126'); +import PadIso97971 = require('../pad-iso97971'); +import PadZeroPadding = require('../pad-zeropadding'); +import PadNoPadding = require('../pad-nopadding'); + +// Hashers +var str: string; +str = MD5('some message'); +str = MD5('some message', 'some key'); + +str = SHA1('some message'); +str = SHA1('some message', 'some key', { any: true }); + +str = FormatOpenSSL('some message'); +str = FormatOpenSSL('some message', 'some key'); + + +// Ciphers +var encrypted: CryptoJS.WordArray; +var decrypted: CryptoJS.DecryptedMessage; + +encrypted = AES.encrypt("Message", "Secret Passphrase"); +decrypted = AES.decrypt(encrypted, "Secret Passphrase"); + +encrypted = Core.DES.encrypt("Message", "Secret Passphrase"); +decrypted = Core.DES.decrypt(encrypted, "Secret Passphrase"); + +encrypted = TripleDES.encrypt("Message", "Secret Passphrase"); +decrypted = TripleDES.decrypt(encrypted, "Secret Passphrase"); + + +encrypted = Rabbit.encrypt("Message", "Secret Passphrase"); +decrypted = Rabbit.decrypt(encrypted, "Secret Passphrase"); + +encrypted = RC4.encrypt("Message", "Secret Passphrase"); +decrypted = RC4.decrypt(encrypted, "Secret Passphrase"); + +encrypted = Core.RC4Drop.encrypt("Message", "Secret Passphrase"); +encrypted = Core.RC4Drop.encrypt("Message", "Secret Passphrase", { drop: 3072 / 4 }); +decrypted = Core.RC4Drop.decrypt(encrypted, "Secret Passphrase", { drop: 3072 / 4 }); + +var key = EncHex.parse('000102030405060708090a0b0c0d0e0f'); +var iv = EncHex.parse('101112131415161718191a1b1c1d1e1f'); +encrypted = AES.encrypt("Message", key, { iv: iv }); + +encrypted = AES.encrypt("Message", "Secret Passphrase", { + mode: ModeCFB, + padding: PadAnsiX923 +}); + + +// The Cipher Output +encrypted = AES.encrypt("Message", "Secret Passphrase"); +alert(encrypted.key); +// 74eb593087a982e2a6f5dded54ecd96d1fd0f3d44a58728cdcd40c55227522223 +alert(encrypted.iv); +// 7781157e2629b094f0e3dd48c4d786115 +alert(encrypted.salt); +// 7a25f9132ec6a8b34 +alert(encrypted.ciphertext); +// 73e54154a15d1beeb509d9e12f1e462a0 +alert(encrypted); +// U2FsdGVkX1+iX5Ey7GqLND5UFUoV0b7rUJ2eEvHkYqA= + +var JsonFormatter = { + stringify: function(cipherParams: any) { + // create json object with ciphertext + var jsonObj: any = { + ct: cipherParams.ciphertext.toString(EncBase64) + }; + // optionally add iv and salt + if (cipherParams.iv) { + jsonObj.iv = cipherParams.iv.toString(); + } + if (cipherParams.salt) { + jsonObj.s = cipherParams.salt.toString(); + } + // stringify json object + return JSON.stringify(jsonObj); + }, + parse: function (jsonStr: any) { + // parse json string + var jsonObj = JSON.parse(jsonStr); + // extract ciphertext from json object, and create cipher params object + var cipherParams = (Core).lib.CipherParams.create({ + ciphertext: EncBase64.parse(jsonObj.ct) + }); + // optionally extract iv and salt + if (jsonObj.iv) { + cipherParams.iv = EncHex.parse(jsonObj.iv); + } + if (jsonObj.s) { + cipherParams.salt = EncHex.parse(jsonObj.s); + } return cipherParams; + } +}; +encrypted = AES.encrypt("Message", "Secret Passphrase", { + format: JsonFormatter +}); +alert(encrypted); +// {"ct":"tZ4MsEnfbcDOwqau68aOrQ==","iv":"8a8c8fd8fe33743d3638737ea4a00698","s":"ba06373c8f57179c"} +decrypted = AES.decrypt(encrypted, "Secret Passphrase", { + format: JsonFormatter +}); +alert(decrypted.toString(EncUtf8)); // Message + + +// Progressive Ciphering +var key = EncHex.parse('000102030405060708090a0b0c0d0e0f'); +var iv = EncHex.parse('101112131415161718191a1b1c1d1e1f'); +var aesEncryptor = Core.algo.AES.createEncryptor(key, { iv: iv }); +var ciphertextPart1 = aesEncryptor.process("Message Part 1"); +var ciphertextPart2 = aesEncryptor.process("Message Part 2"); +var ciphertextPart3 = aesEncryptor.process("Message Part 3"); +var ciphertextPart4 = aesEncryptor.finalize(); +var aesDecryptor = Core.algo.AES.createDecryptor(key, { iv: iv }); +var plaintextPart1 = aesDecryptor.process(ciphertextPart1); +var plaintextPart2 = aesDecryptor.process(ciphertextPart2); +var plaintextPart3 = aesDecryptor.process(ciphertextPart3); +var plaintextPart4 = aesDecryptor.process(ciphertextPart4); +var plaintextPart5 = aesDecryptor.finalize(); + + +// Encoders +var words = EncBase64.parse('SGVsbG8sIFdvcmxkIQ=='); +var base64 = EncBase64.stringify(words); +var words = EncLatin1.parse('Hello, World!'); +var latin1 = EncLatin1.stringify(words); +var words = EncHex.parse('48656c6c6f2c20576f726c6421'); +var hex = EncHex.stringify(words); +var words = EncUtf8.parse('𤭢'); +var utf8 = EncUtf8.stringify(words); +var words = EncUtf16.parse('Hello, World!'); +var utf16 = EncUtf16.stringify(words); +var words = Core.enc.Utf16LE.parse('Hello, World!'); +var utf16 = Core.enc.Utf16LE.stringify(words); diff --git a/crypto-js/tripledes/index.d.ts b/crypto-js/tripledes/index.d.ts new file mode 100644 index 0000000000..ea22173d98 --- /dev/null +++ b/crypto-js/tripledes/index.d.ts @@ -0,0 +1,3 @@ +import { TripleDES } from '../index'; + +export = TripleDES; diff --git a/crypto-js/tsconfig.json b/crypto-js/tsconfig.json index 94793c83ae..10865613d3 100644 --- a/crypto-js/tsconfig.json +++ b/crypto-js/tsconfig.json @@ -18,6 +18,51 @@ }, "files": [ "index.d.ts", - "crypto-js-tests.ts" + "crypto-js-tests.ts", + "test/submodule-tests.ts", + "core/index.d.ts", + "x64-core/index.d.ts", + "lib-typedarrays/index.d.ts", + "md5/index.d.ts", + "sha1/index.d.ts", + "sha256/index.d.ts", + "sha224/index.d.ts", + "sha512/index.d.ts", + "sha384/index.d.ts", + "sha3/index.d.ts", + "ripemd160/index.d.ts", + "hmac-md5/index.d.ts", + "hmac-sha1/index.d.ts", + "hmac-sha256/index.d.ts", + "hmac-sha224/index.d.ts", + "hmac-sha512/index.d.ts", + "hmac-sha384/index.d.ts", + "hmac-sha3/index.d.ts", + "hmac-ripemd160/index.d.ts", + "pbkdf2/index.d.ts", + "aes/index.d.ts", + "tripledes/index.d.ts", + "rc4/index.d.ts", + "rabbit/index.d.ts", + "rabbit-legacy/index.d.ts", + "evpkdf/index.d.ts", + "format-openssl/index.d.ts", + "format-hex/index.d.ts", + "enc-latin1/index.d.ts", + "enc-utf8/index.d.ts", + "enc-hex/index.d.ts", + "enc-utf16/index.d.ts", + "enc-base64/index.d.ts", + "mode-cfb/index.d.ts", + "mode-ctr/index.d.ts", + "mode-ctr-gladman/index.d.ts", + "mode-ofb/index.d.ts", + "mode-ecb/index.d.ts", + "pad-pkcs7/index.d.ts", + "pad-ansix923/index.d.ts", + "pad-iso10126/index.d.ts", + "pad-iso97971/index.d.ts", + "pad-zeropadding/index.d.ts", + "pad-nopadding/index.d.ts" ] -} \ No newline at end of file +} diff --git a/crypto-js/x64-core/index.d.ts b/crypto-js/x64-core/index.d.ts new file mode 100644 index 0000000000..1ef7a67477 --- /dev/null +++ b/crypto-js/x64-core/index.d.ts @@ -0,0 +1,3 @@ +import * as X64Core from '../index'; + +export = X64Core; diff --git a/d3-array/index.d.ts b/d3-array/index.d.ts index 1d1aae3b67..e3bd2d549d 100644 --- a/d3-array/index.d.ts +++ b/d3-array/index.d.ts @@ -121,7 +121,7 @@ export function extent(array: T[], accessor: (datum: T, index: number, array: /** * Return the min and max simultaneously. */ -export function extent(array: T[], accessor: (datum: T, index: number, array: T[]) => U): [U | Primitive, U | Primitive] | [undefined, undefined]; +export function extent(array: T[], accessor: (datum: T, index: number, array: T[]) => U): [U, U ] | [undefined, undefined]; /** * Return the mean of an array of numbers diff --git a/devextreme/index.d.ts b/devextreme/index.d.ts index 6aae49d6cd..e327800618 100644 --- a/devextreme/index.d.ts +++ b/devextreme/index.d.ts @@ -1,10 +1,472 @@ -// Type definitions for DevExtreme 16.1.8 +// Type definitions for DevExtreme 16.2.4 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +interface JQuery { + dxAccordion(): JQuery; + dxAccordion(options: "instance"): DevExpress.ui.dxAccordion; + dxAccordion(options: string): any; + dxAccordion(options: string, ...params: any[]): any; + dxAccordion(options: DevExpress.ui.dxAccordionOptions): JQuery; +} +interface JQuery { + dxActionSheet(): JQuery; + dxActionSheet(options: "instance"): DevExpress.ui.dxActionSheet; + dxActionSheet(options: string): any; + dxActionSheet(options: string, ...params: any[]): any; + dxActionSheet(options: DevExpress.ui.dxActionSheetOptions): JQuery; +} +interface JQuery { + dxAutocomplete(): JQuery; + dxAutocomplete(options: "instance"): DevExpress.ui.dxAutocomplete; + dxAutocomplete(options: string): any; + dxAutocomplete(options: string, ...params: any[]): any; + dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; +} +interface JQuery { + dxBox(): JQuery; + dxBox(options: "instance"): DevExpress.ui.dxBox; + dxBox(options: string): any; + dxBox(options: string, ...params: any[]): any; + dxBox(options: DevExpress.ui.dxBoxOptions): JQuery; +} +interface JQuery { + dxButton(): JQuery; + dxButton(options: "instance"): DevExpress.ui.dxButton; + dxButton(options: string): any; + dxButton(options: string, ...params: any[]): any; + dxButton(options: DevExpress.ui.dxButtonOptions): JQuery; +} +interface JQuery { + dxCalendar(): JQuery; + dxCalendar(options: "instance"): DevExpress.ui.dxCalendar; + dxCalendar(options: string): any; + dxCalendar(options: string, ...params: any[]): any; + dxCalendar(options: DevExpress.ui.dxCalendarOptions): JQuery; +} +interface JQuery { + dxCheckBox(): JQuery; + dxCheckBox(options: "instance"): DevExpress.ui.dxCheckBox; + dxCheckBox(options: string): any; + dxCheckBox(options: string, ...params: any[]): any; + dxCheckBox(options: DevExpress.ui.dxCheckBoxOptions): JQuery; +} +interface JQuery { + dxColorBox(): JQuery; + dxColorBox(options: "instance"): DevExpress.ui.dxColorBox; + dxColorBox(options: string): any; + dxColorBox(options: string, ...params: any[]): any; + dxColorBox(options: DevExpress.ui.dxColorBoxOptions): JQuery; +} +interface JQuery { + dxContextMenu(): JQuery; + dxContextMenu(options: "instance"): DevExpress.ui.dxContextMenu; + dxContextMenu(options: string): any; + dxContextMenu(options: string, ...params: any[]): any; + dxContextMenu(options: DevExpress.ui.dxContextMenuOptions): JQuery; +} +interface JQuery { + dxDataGrid(): JQuery; + dxDataGrid(options: "instance"): DevExpress.ui.dxDataGrid; + dxDataGrid(options: string): any; + dxDataGrid(options: string, ...params: any[]): any; + dxDataGrid(options: DevExpress.ui.dxDataGridOptions): JQuery; +} +interface JQuery { + dxDateBox(): JQuery; + dxDateBox(options: "instance"): DevExpress.ui.dxDateBox; + dxDateBox(options: string): any; + dxDateBox(options: string, ...params: any[]): any; + dxDateBox(options: DevExpress.ui.dxDateBoxOptions): JQuery; +} +interface JQuery { + dxDeferRendering(): JQuery; + dxDeferRendering(options: "instance"): DevExpress.ui.dxDeferRendering; + dxDeferRendering(options: string): any; + dxDeferRendering(options: string, ...params: any[]): any; + dxDeferRendering(options: DevExpress.ui.dxDeferRenderingOptions): JQuery; +} +interface JQuery { + dxFileUploader(): JQuery; + dxFileUploader(options: "instance"): DevExpress.ui.dxFileUploader; + dxFileUploader(options: string): any; + dxFileUploader(options: string, ...params: any[]): any; + dxFileUploader(options: DevExpress.ui.dxFileUploaderOptions): JQuery; +} +interface JQuery { + dxForm(): JQuery; + dxForm(options: "instance"): DevExpress.ui.dxForm; + dxForm(options: string): any; + dxForm(options: string, ...params: any[]): any; + dxForm(options: DevExpress.ui.dxFormOptions): JQuery; +} +interface JQuery { + dxGallery(): JQuery; + dxGallery(options: "instance"): DevExpress.ui.dxGallery; + dxGallery(options: string): any; + dxGallery(options: string, ...params: any[]): any; + dxGallery(options: DevExpress.ui.dxGalleryOptions): JQuery; +} +interface JQuery { + dxList(): JQuery; + dxList(options: "instance"): DevExpress.ui.dxList; + dxList(options: string): any; + dxList(options: string, ...params: any[]): any; + dxList(options: DevExpress.ui.dxListOptions): JQuery; +} +interface JQuery { + dxLoadIndicator(): JQuery; + dxLoadIndicator(options: "instance"): DevExpress.ui.dxLoadIndicator; + dxLoadIndicator(options: string): any; + dxLoadIndicator(options: string, ...params: any[]): any; + dxLoadIndicator(options: DevExpress.ui.dxLoadIndicatorOptions): JQuery; +} +interface JQuery { + dxLoadPanel(): JQuery; + dxLoadPanel(options: "instance"): DevExpress.ui.dxLoadPanel; + dxLoadPanel(options: string): any; + dxLoadPanel(options: string, ...params: any[]): any; + dxLoadPanel(options: DevExpress.ui.dxLoadPanelOptions): JQuery; +} +interface JQuery { + dxLookup(): JQuery; + dxLookup(options: "instance"): DevExpress.ui.dxLookup; + dxLookup(options: string): any; + dxLookup(options: string, ...params: any[]): any; + dxLookup(options: DevExpress.ui.dxLookupOptions): JQuery; +} +interface JQuery { + dxMap(): JQuery; + dxMap(options: "instance"): DevExpress.ui.dxMap; + dxMap(options: string): any; + dxMap(options: string, ...params: any[]): any; + dxMap(options: DevExpress.ui.dxMapOptions): JQuery; +} +interface JQuery { + dxMenu(): JQuery; + dxMenu(options: "instance"): DevExpress.ui.dxMenu; + dxMenu(options: string): any; + dxMenu(options: string, ...params: any[]): any; + dxMenu(options: DevExpress.ui.dxMenuOptions): JQuery; +} +interface JQuery { + dxMultiView(): JQuery; + dxMultiView(options: "instance"): DevExpress.ui.dxMultiView; + dxMultiView(options: string): any; + dxMultiView(options: string, ...params: any[]): any; + dxMultiView(options: DevExpress.ui.dxMultiViewOptions): JQuery; +} +interface JQuery { + dxNavBar(): JQuery; + dxNavBar(options: "instance"): DevExpress.ui.dxNavBar; + dxNavBar(options: string): any; + dxNavBar(options: string, ...params: any[]): any; + dxNavBar(options: DevExpress.ui.dxNavBarOptions): JQuery; +} +interface JQuery { + dxNumberBox(): JQuery; + dxNumberBox(options: "instance"): DevExpress.ui.dxNumberBox; + dxNumberBox(options: string): any; + dxNumberBox(options: string, ...params: any[]): any; + dxNumberBox(options: DevExpress.ui.dxNumberBoxOptions): JQuery; +} +interface JQuery { + dxPanorama(): JQuery; + dxPanorama(options: "instance"): DevExpress.ui.dxPanorama; + dxPanorama(options: string): any; + dxPanorama(options: string, ...params: any[]): any; + dxPanorama(options: DevExpress.ui.dxPanoramaOptions): JQuery; +} +interface JQuery { + dxPivot(): JQuery; + dxPivot(options: "instance"): DevExpress.ui.dxPivot; + dxPivot(options: string): any; + dxPivot(options: string, ...params: any[]): any; + dxPivot(options: DevExpress.ui.dxPivotOptions): JQuery; +} +interface JQuery { + dxPivotGrid(): JQuery; + dxPivotGrid(options: "instance"): DevExpress.ui.dxPivotGrid; + dxPivotGrid(options: string): any; + dxPivotGrid(options: string, ...params: any[]): any; + dxPivotGrid(options: DevExpress.ui.dxPivotGridOptions): JQuery; +} +interface JQuery { + dxPivotGridFieldChooser(): JQuery; + dxPivotGridFieldChooser(options: "instance"): DevExpress.ui.dxPivotGridFieldChooser; + dxPivotGridFieldChooser(options: string): any; + dxPivotGridFieldChooser(options: string, ...params: any[]): any; + dxPivotGridFieldChooser(options: DevExpress.ui.dxPivotGridFieldChooserOptions): JQuery; +} +interface JQuery { + dxPopover(): JQuery; + dxPopover(options: "instance"): DevExpress.ui.dxPopover; + dxPopover(options: string): any; + dxPopover(options: string, ...params: any[]): any; + dxPopover(options: DevExpress.ui.dxPopoverOptions): JQuery; +} +interface JQuery { + dxPopup(): JQuery; + dxPopup(options: "instance"): DevExpress.ui.dxPopup; + dxPopup(options: string): any; + dxPopup(options: string, ...params: any[]): any; + dxPopup(options: DevExpress.ui.dxPopupOptions): JQuery; +} +interface JQuery { + dxProgressBar(): JQuery; + dxProgressBar(options: "instance"): DevExpress.ui.dxProgressBar; + dxProgressBar(options: string): any; + dxProgressBar(options: string, ...params: any[]): any; + dxProgressBar(options: DevExpress.ui.dxProgressBarOptions): JQuery; +} +interface JQuery { + dxRadioGroup(): JQuery; + dxRadioGroup(options: "instance"): DevExpress.ui.dxRadioGroup; + dxRadioGroup(options: string): any; + dxRadioGroup(options: string, ...params: any[]): any; + dxRadioGroup(options: DevExpress.ui.dxRadioGroupOptions): JQuery; +} +interface JQuery { + dxRangeSlider(): JQuery; + dxRangeSlider(options: "instance"): DevExpress.ui.dxRangeSlider; + dxRangeSlider(options: string): any; + dxRangeSlider(options: string, ...params: any[]): any; + dxRangeSlider(options: DevExpress.ui.dxRangeSliderOptions): JQuery; +} +interface JQuery { + dxResizable(): JQuery; + dxResizable(options: "instance"): DevExpress.ui.dxResizable; + dxResizable(options: string): any; + dxResizable(options: string, ...params: any[]): any; + dxResizable(options: DevExpress.ui.dxResizableOptions): JQuery; +} +interface JQuery { + dxResponsiveBox(): JQuery; + dxResponsiveBox(options: "instance"): DevExpress.ui.dxResponsiveBox; + dxResponsiveBox(options: string): any; + dxResponsiveBox(options: string, ...params: any[]): any; + dxResponsiveBox(options: DevExpress.ui.dxResponsiveBoxOptions): JQuery; +} +interface JQuery { + dxScheduler(): JQuery; + dxScheduler(options: "instance"): DevExpress.ui.dxScheduler; + dxScheduler(options: string): any; + dxScheduler(options: string, ...params: any[]): any; + dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; +} +interface JQuery { + dxScrollView(): JQuery; + dxScrollView(options: "instance"): DevExpress.ui.dxScrollView; + dxScrollView(options: string): any; + dxScrollView(options: string, ...params: any[]): any; + dxScrollView(options: DevExpress.ui.dxScrollViewOptions): JQuery; +} +interface JQuery { + dxSelectBox(): JQuery; + dxSelectBox(options: "instance"): DevExpress.ui.dxSelectBox; + dxSelectBox(options: string): any; + dxSelectBox(options: string, ...params: any[]): any; + dxSelectBox(options: DevExpress.ui.dxSelectBoxOptions): JQuery; +} +interface JQuery { + dxSlideOut(): JQuery; + dxSlideOut(options: "instance"): DevExpress.ui.dxSlideOut; + dxSlideOut(options: string): any; + dxSlideOut(options: string, ...params: any[]): any; + dxSlideOut(options: DevExpress.ui.dxSlideOutOptions): JQuery; +} +interface JQuery { + dxSlideOutView(): JQuery; + dxSlideOutView(options: "instance"): DevExpress.ui.dxSlideOutView; + dxSlideOutView(options: string): any; + dxSlideOutView(options: string, ...params: any[]): any; + dxSlideOutView(options: DevExpress.ui.dxSlideOutViewOptions): JQuery; +} +interface JQuery { + dxSlider(): JQuery; + dxSlider(options: "instance"): DevExpress.ui.dxSlider; + dxSlider(options: string): any; + dxSlider(options: string, ...params: any[]): any; + dxSlider(options: DevExpress.ui.dxSliderOptions): JQuery; +} +interface JQuery { + dxSwitch(): JQuery; + dxSwitch(options: "instance"): DevExpress.ui.dxSwitch; + dxSwitch(options: string): any; + dxSwitch(options: string, ...params: any[]): any; + dxSwitch(options: DevExpress.ui.dxSwitchOptions): JQuery; +} +interface JQuery { + dxTabPanel(): JQuery; + dxTabPanel(options: "instance"): DevExpress.ui.dxTabPanel; + dxTabPanel(options: string): any; + dxTabPanel(options: string, ...params: any[]): any; + dxTabPanel(options: DevExpress.ui.dxTabPanelOptions): JQuery; +} +interface JQuery { + dxTabs(): JQuery; + dxTabs(options: "instance"): DevExpress.ui.dxTabs; + dxTabs(options: string): any; + dxTabs(options: string, ...params: any[]): any; + dxTabs(options: DevExpress.ui.dxTabsOptions): JQuery; +} +interface JQuery { + dxTagBox(): JQuery; + dxTagBox(options: "instance"): DevExpress.ui.dxTagBox; + dxTagBox(options: string): any; + dxTagBox(options: string, ...params: any[]): any; + dxTagBox(options: DevExpress.ui.dxTagBoxOptions): JQuery; +} +interface JQuery { + dxTextArea(): JQuery; + dxTextArea(options: "instance"): DevExpress.ui.dxTextArea; + dxTextArea(options: string): any; + dxTextArea(options: string, ...params: any[]): any; + dxTextArea(options: DevExpress.ui.dxTextAreaOptions): JQuery; +} +interface JQuery { + dxTextBox(): JQuery; + dxTextBox(options: "instance"): DevExpress.ui.dxTextBox; + dxTextBox(options: string): any; + dxTextBox(options: string, ...params: any[]): any; + dxTextBox(options: DevExpress.ui.dxTextBoxOptions): JQuery; +} +interface JQuery { + dxTileView(): JQuery; + dxTileView(options: "instance"): DevExpress.ui.dxTileView; + dxTileView(options: string): any; + dxTileView(options: string, ...params: any[]): any; + dxTileView(options: DevExpress.ui.dxTileViewOptions): JQuery; +} +interface JQuery { + dxToast(): JQuery; + dxToast(options: "instance"): DevExpress.ui.dxToast; + dxToast(options: string): any; + dxToast(options: string, ...params: any[]): any; + dxToast(options: DevExpress.ui.dxToastOptions): JQuery; +} +interface JQuery { + dxToolbar(): JQuery; + dxToolbar(options: "instance"): DevExpress.ui.dxToolbar; + dxToolbar(options: string): any; + dxToolbar(options: string, ...params: any[]): any; + dxToolbar(options: DevExpress.ui.dxToolbarOptions): JQuery; +} +interface JQuery { + dxTooltip(): JQuery; + dxTooltip(options: "instance"): DevExpress.ui.dxTooltip; + dxTooltip(options: string): any; + dxTooltip(options: string, ...params: any[]): any; + dxTooltip(options: DevExpress.ui.dxTooltipOptions): JQuery; +} +interface JQuery { + dxTreeView(): JQuery; + dxTreeView(options: "instance"): DevExpress.ui.dxTreeView; + dxTreeView(options: string): any; + dxTreeView(options: string, ...params: any[]): any; + dxTreeView(options: DevExpress.ui.dxTreeViewOptions): JQuery; +} +interface JQuery { + dxValidationGroup(): JQuery; + dxValidationGroup(options: "instance"): DevExpress.ui.dxValidationGroup; + dxValidationGroup(options: string): any; + dxValidationGroup(options: string, ...params: any[]): any; + dxValidationGroup(options: DevExpress.ui.dxValidationGroupOptions): JQuery; +} +interface JQuery { + dxValidationSummary(): JQuery; + dxValidationSummary(options: "instance"): DevExpress.ui.dxValidationSummary; + dxValidationSummary(options: string): any; + dxValidationSummary(options: string, ...params: any[]): any; + dxValidationSummary(options: DevExpress.ui.dxValidationSummaryOptions): JQuery; +} +interface JQuery { + dxValidator(): JQuery; + dxValidator(options: "instance"): DevExpress.ui.dxValidator; + dxValidator(options: string): any; + dxValidator(options: string, ...params: any[]): any; + dxValidator(options: DevExpress.ui.dxValidatorOptions): JQuery; +} +interface JQuery { + dxBarGauge(): JQuery; + dxBarGauge(options: "instance"): DevExpress.viz.dxBarGauge; + dxBarGauge(options: string): any; + dxBarGauge(options: string, ...params: any[]): any; + dxBarGauge(options: DevExpress.viz.gauges.dxBarGaugeOptions): JQuery; +} +interface JQuery { + dxBullet(): JQuery; + dxBullet(options: "instance"): DevExpress.viz.dxBullet; + dxBullet(options: string): any; + dxBullet(options: string, ...params: any[]): any; + dxBullet(options: DevExpress.viz.sparklines.dxBulletOptions): JQuery; +} +interface JQuery { + dxChart(): JQuery; + dxChart(options: "instance"): DevExpress.viz.dxChart; + dxChart(options: string): any; + dxChart(options: string, ...params: any[]): any; + dxChart(options: DevExpress.viz.charts.dxChartOptions): JQuery; +} +interface JQuery { + dxCircularGauge(): JQuery; + dxCircularGauge(options: "instance"): DevExpress.viz.dxCircularGauge; + dxCircularGauge(options: string): any; + dxCircularGauge(options: string, ...params: any[]): any; + dxCircularGauge(options: DevExpress.viz.gauges.dxCircularGaugeOptions): JQuery; +} +interface JQuery { + dxLinearGauge(): JQuery; + dxLinearGauge(options: "instance"): DevExpress.viz.dxLinearGauge; + dxLinearGauge(options: string): any; + dxLinearGauge(options: string, ...params: any[]): any; + dxLinearGauge(options: DevExpress.viz.gauges.dxLinearGaugeOptions): JQuery; +} +interface JQuery { + dxPieChart(): JQuery; + dxPieChart(options: "instance"): DevExpress.viz.dxPieChart; + dxPieChart(options: string): any; + dxPieChart(options: string, ...params: any[]): any; + dxPieChart(options: DevExpress.viz.charts.dxPieChartOptions): JQuery; +} +interface JQuery { + dxPolarChart(): JQuery; + dxPolarChart(options: "instance"): DevExpress.viz.dxPolarChart; + dxPolarChart(options: string): any; + dxPolarChart(options: string, ...params: any[]): any; + dxPolarChart(options: DevExpress.viz.charts.dxPolarChartOptions): JQuery; +} +interface JQuery { + dxRangeSelector(): JQuery; + dxRangeSelector(options: "instance"): DevExpress.viz.dxRangeSelector; + dxRangeSelector(options: string): any; + dxRangeSelector(options: string, ...params: any[]): any; + dxRangeSelector(options: DevExpress.viz.rangeSelector.dxRangeSelectorOptions): JQuery; +} +interface JQuery { + dxSparkline(): JQuery; + dxSparkline(options: "instance"): DevExpress.viz.dxSparkline; + dxSparkline(options: string): any; + dxSparkline(options: string, ...params: any[]): any; + dxSparkline(options: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; +} +interface JQuery { + dxTreeMap(): JQuery; + dxTreeMap(options: "instance"): DevExpress.viz.dxTreeMap; + dxTreeMap(options: string): any; + dxTreeMap(options: string, ...params: any[]): any; + dxTreeMap(options: DevExpress.viz.treeMap.dxTreeMapOptions): JQuery; +} +interface JQuery { + dxVectorMap(): JQuery; + dxVectorMap(options: "instance"): DevExpress.viz.dxVectorMap; + dxVectorMap(options: string): any; + dxVectorMap(options: string, ...params: any[]): any; + dxVectorMap(options: DevExpress.viz.map.dxVectorMapOptions): JQuery; +} declare module DevExpress { /** Formats values. */ export interface Format { @@ -68,9 +530,9 @@ declare module DevExpress { export function resetGroup(): void; /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ export function validateModel(model: Object): ValidationGroupValidationResult; - /** Registers all the dxValidator objects extending fields of the specified ViewModel. */ + /** Registers all the Validator objects extending fields of the specified ViewModel. */ export function registerModelForValidation(model: Object): void; - /** Unregisters all the dxValidator objects extending fields of the specified ViewModel. */ + /** Unregisters all the Validator objects extending fields of the specified ViewModel. */ export function unregisterModelForValidation(model: Object): void; } export var hardwareBackButton: JQueryCallback; @@ -78,10 +540,7 @@ declare module DevExpress { export function processHardwareBackButton(): void; /** Hides the last displayed overlay widget. */ export function hideTopOverlay(): boolean; - /** - * Specifies whether or not the entire application/site supports right-to-left representation. - * @deprecated Use the config(config) method instead. - */ + /** * Specifies whether or not the entire application/site supports right-to-left representation. * @deprecated Use the config(config) method instead. */ export var rtlEnabled: boolean; /** Gets the current global configuration object. */ export function config(): Object; @@ -265,6 +724,8 @@ declare module DevExpress { height?: any; /** Specifies the width of the widget. */ width?: any; + /** Specifies the attributes to be attached to the widget's root element. */ + elementAttr?: Object; /** A bag for holding any options that require two-way binding (Angular approach specific) */ bindingOptions?: { [key: string]: any; }; } @@ -312,6 +773,9 @@ declare module DevExpress { key?: any; } export interface LoadOptions { + searchValue?: Object; + searchExpr?: Object; + searchOperation?: Object; filter?: Object; sort?: Object; select?: Object; @@ -682,25 +1146,34 @@ declare module DevExpress { /** Creates a Query instance for accessing the remote service specified by a URL. */ export function query(url: string, queryOptions: Object): Query; /** This section describes the utility objects provided by the DevExtreme data layer. */ - export var utils: { + export module utils { /** Compiles a getter function from the getter expression. */ - compileGetter(expr: any): Function; + export function compileGetter(expr: any): Function; /** Compiles a setter function from the setter expression. */ - compileSetter(expr: any): Function; - odata: { + export function compileSetter(expr: any): Function; + export module odata { /** Holds key value converters for OData. */ - keyConverters: { - String(value: any): string; - Int32(value: any): number; - Int64(value: any): EdmLiteral; - Guid(value: any): Guid; - Boolean(value: any): boolean; - Single(value: any): EdmLiteral; - Decimal(value: any): EdmLiteral; - }; + export module keyConverters { + export function String(value: any): string; + export function Int32(value: any): number; + export function Int64(value: any): EdmLiteral; + export function Guid(value: any): Guid; + export function Boolean(value: any): boolean; + export function Single(value: any): EdmLiteral; + export function Decimal(value: any): EdmLiteral; + } } } } + /** An object that serves as a namespace for the methods that are used to localize an application. */ + export module localization { + /** Gets the current locale identifier. */ + export function locale(): string; + /** Sets the current locale identifier. */ + export function locale(locale: string): void; + /** Loads DevExtreme messages. */ + export function loadMessages(messages: any): void; + } /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ export module ui { export interface WidgetOptions extends DOMComponentOptions { @@ -760,6 +1233,10 @@ declare module DevExpress { selectedItem?: Object; /** An array of currently selected item objects. */ selectedItems?: Array; + /** Specifies an array of currently selected item keys. */ + selectedItemKeys?: Array; + /** Specifies which data field provides keys for widget items. */ + keyExpr?: any; /** A handler for the itemDeleting event. */ onItemDeleting?: Function; /** A handler for the itemDeleted event. */ @@ -767,8 +1244,13 @@ declare module DevExpress { /** A handler for the itemReordered event. */ onItemReordered?: Function; } + export interface DataHelperMixin { + /** Allows you to get the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; + } /** The base class for widgets containing an item collection. */ - export class CollectionWidget extends Widget { + export class CollectionWidget extends Widget implements DataHelperMixin + { constructor(element: JQuery, options?: CollectionWidgetOptions); constructor(element: HTMLElement, options?: CollectionWidgetOptions); selectItem(itemElement: any): void; @@ -776,6 +1258,7 @@ declare module DevExpress { deleteItem(itemElement: any): JQueryPromise; isItemSelected(itemElement: any): boolean; reorderItem(itemElement: any, toItemElement: any): JQueryPromise; + getDataSource(): DevExpress.data.DataSource; } export interface DataExpressionMixinOptions { /** A data source used to fetch data to be displayed by the widget. */ @@ -794,6 +1277,8 @@ declare module DevExpress { export interface EditorOptions extends WidgetOptions { /** The currently specified value. */ value?: Object; + /** The value to be assigned to the name attribute of the underlying `` element. */ + name?: string; /** A handler for the valueChanged event. */ onValueChanged?: Function; /** A Boolean value specifying whether or not the widget is read-only. */ @@ -840,14 +1325,14 @@ declare module DevExpress { export function setTemplateEngine(options: Object): void; } /** An object that serves as a namespace for utility methods that can be helpful when working with the DevExtreme framework and UI widgets. */ - export var utils: { + export module utils { /** Sets parameters for the viewport meta tag. */ - initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; + export function initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; /** Requests that the browser call a specified function to update animation before the next repaint. */ - requestAnimationFrame(callback: Function): number; + export function requestAnimationFrame(callback: Function): number; /** Cancels an animation frame request scheduled with the requestAnimationFrame method. */ - cancelAnimationFrame(requestID: number): void; - }; + export function cancelAnimationFrame(requestID: number): void; + } /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ export module viz { /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ @@ -897,15 +1382,18 @@ declare module DevExpress.ui { export class dxValidator extends DOMComponent implements validationEngine.IValidator { constructor(element: JQuery, options?: dxValidatorOptions); constructor(element: Element, options?: dxValidatorOptions); - /** Validates the value of the editor that is controlled by the current dxValidator object against the list of the specified validation rules. */ + /** Validates the value of the editor that is controlled by the current Validator object against the list of the specified validation rules. */ validate(): validationEngine.ValidatorValidationResult; - /** Resets the value and validation result of the editor associated with the current dxValidator object. */ + /** Resets the value and validation result of the editor associated with the current Validator object. */ reset(): void; + /** Sets focus to the editor associated with the current Validator object. */ + focus(): void; } + export interface dxValidationGroupOptions extends DOMComponentOptions { } /** The widget that is used in the Knockout and AngularJS approaches to combine the editors to be validated. */ export class dxValidationGroup extends DOMComponent { - constructor(element: JQuery); - constructor(element: Element); + constructor(element: JQuery, options?: dxValidationGroupOptions); + constructor(element: Element, options?: dxValidationGroupOptions); /** Validates rules of the validators that belong to the current validation group. */ validate(): validationEngine.ValidationGroupValidationResult; /** Resets the value and validation result of the editors that are included to the current validation group. */ @@ -969,10 +1457,7 @@ declare module DevExpress.ui { valueChangeEvent?: string; /** Specifies whether or not the widget supports searching. */ searchEnabled?: boolean; - /** - * Specifies whether or not the widget displays items by pages. - * @deprecated Use the DataSource paging opportunities instead. - */ + /** * Specifies whether or not the widget displays items by pages. * @deprecated Use the DataSource paging opportunities instead. */ pagingEnabled?: boolean; /** The text or HTML markup displayed by the widget if the item collection is empty. */ noDataText?: string; @@ -983,9 +1468,10 @@ declare module DevExpress.ui { onContentReady?: Function; } /** A base class for drop-down list widgets. */ - export class dxDropDownList extends dxDropDownEditor { + export class dxDropDownList extends dxDropDownEditor implements DataHelperMixin { constructor(element: JQuery, options?: dxDropDownListOptions); constructor(element: Element, options?: dxDropDownListOptions); + getDataSource(): DevExpress.data.DataSource; } export interface dxToolbarOptions extends CollectionWidgetOptions { /** The template used to render menu items. */ @@ -1059,8 +1545,9 @@ declare module DevExpress.ui { valueChangeEvent?: string; /** Specifies whether or not the widget checks the inner text for spelling mistakes. */ spellcheck?: boolean; - /** Specifies HTML attributes applied to the inner input element of the widget. */ attr?: Object; + /** Specifies the attributes to be passed on to the underlying `` element. */ + inputAttr?: Object; /** The read-only option that holds the text displayed by the widget input element. */ text?: string; focusStateEnabled?: boolean; @@ -1075,6 +1562,7 @@ declare module DevExpress.ui { maskInvalidMessage?: string; /** Specifies whether the value option holds only characters entered by a user or prompt characters as well. */ useMaskedValue?: boolean; + name?: string; } /** A base class for text editing widgets. */ export class dxTextEditor extends Editor { @@ -1278,6 +1766,7 @@ declare module DevExpress.ui { activeStateEnabled?: boolean; /** Specifies the radio group layout. */ layout?: string; + name?: string; } /** A widget that enables a user to select one item within a list of items represented by radio buttons. */ export class dxRadioGroup extends CollectionWidget { @@ -1356,6 +1845,20 @@ declare module DevExpress.ui { target?: any; /** Specifies the width of the widget. */ width?: any; + /** Specifies options for displaying the widget. */ + showEvent?: { + /** Specifies the event names on which the widget is shown. */ + name?: String; + /** The time span after which the widget is shown. */ + delay?: Number; + }; + /** Specifies options of popover hiding. */ + hideEvent?: { + /** Specifies the event names on which the widget is hidden. */ + name?: String; + /** The time span after which the popover is hidden. */ + delay?: Number; + }; } /** A widget that displays the required content in a popup window. */ export class dxPopover extends dxPopup { @@ -1628,10 +2131,7 @@ declare module DevExpress.ui { shading?: boolean; /** Specifies whether to display the Cancel button in the lookup window. */ showCancelButton?: boolean; - /** - * A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked. - * @deprecated Use the pageLoadMode option instead. - */ + /** * A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked. * @deprecated Use the pageLoadMode option instead. */ showNextButton?: boolean; /** The title of the lookup window. */ title?: string; @@ -1751,6 +2251,8 @@ declare module DevExpress.ui { showSelectionControls?: boolean; /** Specifies item selection mode. */ selectionMode?: string; + /** Specifies the mode in which all items are selected. */ + selectAllMode?: string; selectAllText?: string; /** A handler for the selectAllValueChanged event. */ onSelectAllValueChanged?: Function; @@ -1898,17 +2400,11 @@ declare module DevExpress.ui { min?: any; /** The text displayed by the widget when the widget value is not yet specified. This text is also used as a title of the date picker. */ placeholder?: string; - /** - * Specifies whether or not a user can pick out a date using the drop-down calendar. - * @deprecated Use the pickerType option instead. - */ + /** * Specifies whether or not a user can pick out a date using the drop-down calendar. * @deprecated Use the pickerType option instead. */ useCalendar?: boolean; /** An object or a value, specifying the date and time currently selected using the date box. */ value?: any; - /** - * Specifies whether or not the widget uses the native HTML input element. - * @deprecated Use the pickerType option instead. - */ + /** * Specifies whether or not the widget uses the native HTML input element. * @deprecated Use the pickerType option instead. */ useNative?: boolean; /** Specifies the interval between neighboring values in the popup list in minutes. */ interval?: number; @@ -1940,6 +2436,7 @@ declare module DevExpress.ui { value?: boolean; /** Specifies the text displayed by the check box. */ text?: string; + name?: string; } /** A check box widget. */ export class dxCheckBox extends Editor { @@ -1968,6 +2465,7 @@ declare module DevExpress.ui { minZoomLevel?: string; /** The template to be used for rendering calendar cells. */ cellTemplate?: any; + name?: string; } /** A calendar widget. */ export class dxCalendar extends Editor { @@ -1990,6 +2488,8 @@ declare module DevExpress.ui { type?: string; /** Specifies the name of the validation group to be accessed in the click event handler. */ validationGroup?: string; + /** Specifies whether the button must submit an HTML form. */ + useSubmitBehavior?: boolean; } /** A button widget. */ export class dxButton extends Widget { @@ -2134,8 +2634,6 @@ declare module DevExpress.ui { min?: number; /** The maximum value the widget can accept. */ max?: number; - /** The current widget value. */ - value?: number; } /** A base class for track bar widgets. */ export class dxTrackBar extends Editor { @@ -2149,18 +2647,18 @@ declare module DevExpress.ui { showStatus?: boolean; /** A handler for the complete event. */ onComplete?: Function; + /** The current widget value. */ + value?: number; } /** A widget used to indicate progress. */ export class dxProgressBar extends dxTrackBar { constructor(element: JQuery, options?: dxProgressBarOptions); constructor(element: Element, options?: dxProgressBarOptions); } - export interface dxSliderOptions extends dxTrackBarOptions { + export interface dxSliderBaseOptions extends dxTrackBarOptions { activeStateEnabled?: boolean; /** The slider step size. */ step?: number; - /** The current slider value. */ - value?: number; /** Specifies whether or not to highlight a range selected within the widget. */ showRange?: boolean; /** Specifies the size of a step by which a slider handle is moved when a user uses the Page up or Page down keyboard shortcuts. */ @@ -2185,17 +2683,27 @@ declare module DevExpress.ui { /** Specifies a format for labels. */ format?: any; }; + name?: string; + } + export interface dxSliderOptions extends dxSliderBaseOptions { + /** The current slider value. */ + value?: number; } /** A widget that allows a user to select a numeric value within a given range. */ export class dxSlider extends dxTrackBar { constructor(element: JQuery, options?: dxSliderOptions); constructor(element: Element, options?: dxSliderOptions); } - export interface dxRangeSliderOptions extends dxSliderOptions { + export interface dxRangeSliderOptions extends dxSliderBaseOptions { /** The left edge of the interval currently selected using the range slider. */ start?: number; /** The right edge of the interval currently selected using the range slider. */ end?: number; + /** The value to be assigned to the name attribute of the underlying `` element. */ + startName?: string; + /** The value to be assigned to the name attribute of the underlying `` element. */ + endName?: string; + value?: Array; } /** A widget that enables a user to select a range of numeric values. */ export class dxRangeSlider extends dxSlider { @@ -2226,10 +2734,12 @@ declare module DevExpress.ui { /** Specifies the number of columns spanned by the item. */ colSpan?: number; } + /** This article describes configuration options of an empty form item. */ export interface dxFormEmptyItem extends dxFormItem { /** Specifies the form item name. */ name?: string; } + /** This article describes configuration options of a simple form item. */ export interface dxFormSimpleItem extends dxFormItem { /** Specifies the path to the formData object field bound to the current form item. */ dataField?: string; @@ -2261,6 +2771,7 @@ declare module DevExpress.ui { /** The count of columns for a large screen size. */ lg?: number; } + /** This article describes configuration options of a group form item. */ export interface dxFormGroupItem extends dxFormItem { /** Specifies the group caption. */ caption?: string; @@ -2297,6 +2808,7 @@ declare module DevExpress.ui { /** The template to be used for rendering the tab content. */ template?: any; } + /** This article describes configuration options of a tabbed form item. */ export interface dxFormTabbedItem extends dxFormItem { /** Holds a configuration object for the TabPanel widget used to display the current form item. */ tabPanelOptions?: Object; @@ -2346,6 +2858,8 @@ declare module DevExpress.ui { items?: Array; /** A Boolean value specifying whether to enable or disable form scrolling. */ scrollingEnabled?: boolean; + /** Gives a name to the internal validation group. */ + validationGroup?: string; onContentReady?: Function; } /** A form widget used to display and edit values of object fields. */ @@ -2391,228 +2905,34 @@ declare module DevExpress.ui { constructor(element: Element, options?: dxDeferRenderingOptions); } } +/* Private plugins. To be removed */ interface JQuery { - dxProgressBar(): JQuery; - dxProgressBar(options: "instance"): DevExpress.ui.dxProgressBar; - dxProgressBar(options: string): any; - dxProgressBar(options: string, ...params: any[]): any; - dxProgressBar(options: DevExpress.ui.dxProgressBarOptions): JQuery; - dxSlider(): JQuery; - dxSlider(options: "instance"): DevExpress.ui.dxSlider; - dxSlider(options: string): any; - dxSlider(options: string, ...params: any[]): any; - dxSlider(options: DevExpress.ui.dxSliderOptions): JQuery; - dxRangeSlider(): JQuery; - dxRangeSlider(options: "instance"): DevExpress.ui.dxRangeSlider; - dxRangeSlider(options: string): any; - dxRangeSlider(options: string, ...params: any[]): any; - dxRangeSlider(options: DevExpress.ui.dxRangeSliderOptions): JQuery; - dxFileUploader(): JQuery; - dxFileUploader(options: "instance"): DevExpress.ui.dxFileUploader; - dxFileUploader(options: string): any; - dxFileUploader(options: string, ...params: any[]): any; - dxFileUploader(options: DevExpress.ui.dxFileUploaderOptions): JQuery; - dxValidator(): JQuery; - dxValidator(options: "instance"): DevExpress.ui.dxValidator; - dxValidator(options: string): any; - dxValidator(options: string, ...params: any[]): any; - dxValidator(options: DevExpress.ui.dxValidatorOptions): JQuery; - dxValidationGroup(): JQuery; - dxValidationGroup(options: "instance"): DevExpress.ui.dxValidationGroup; - dxValidationGroup(options: string): any; - dxValidationGroup(options: string, ...params: any[]): any; - dxValidationSummary(): JQuery; - dxValidationSummary(options: "instance"): DevExpress.ui.dxValidationSummary; - dxValidationSummary(options: string): any; - dxValidationSummary(options: string, ...params: any[]): any; - dxValidationSummary(options: DevExpress.ui.dxValidationSummaryOptions): JQuery; - dxTooltip(): JQuery; - dxTooltip(options: "instance"): DevExpress.ui.dxTooltip; - dxTooltip(options: string): any; - dxTooltip(options: string, ...params: any[]): any; - dxTooltip(options: DevExpress.ui.dxTooltipOptions): JQuery; - dxResizable(): JQuery; - dxResizable(options: "instance"): DevExpress.ui.dxResizable; - dxResizable(options: string): any; - dxResizable(options: string, ...params: any[]): any; - dxResizable(options: DevExpress.ui.dxResizableOptions): JQuery; dxDropDownList(): JQuery; dxDropDownList(options: "instance"): DevExpress.ui.dxDropDownList; dxDropDownList(options: string): any; dxDropDownList(options: string, ...params: any[]): any; dxDropDownList(options: DevExpress.ui.dxDropDownListOptions): JQuery; - dxToolbar(): JQuery; - dxToolbar(options: "instance"): DevExpress.ui.dxToolbar; - dxToolbar(options: string): any; - dxToolbar(options: string, ...params: any[]): any; - dxToolbar(options: DevExpress.ui.dxToolbarOptions): JQuery; - dxToast(): JQuery; - dxToast(options: "instance"): DevExpress.ui.dxToast; - dxToast(options: string): any; - dxToast(options: string, ...params: any[]): any; - dxToast(options: DevExpress.ui.dxToastOptions): JQuery; dxTextEditor(): JQuery; dxTextEditor(options: "instance"): DevExpress.ui.dxTextEditor; dxTextEditor(options: string): any; dxTextEditor(options: string, ...params: any[]): any; dxTextEditor(options: DevExpress.ui.dxTextEditorOptions): JQuery; - dxTextBox(): JQuery; - dxTextBox(options: "instance"): DevExpress.ui.dxTextBox; - dxTextBox(options: string): any; - dxTextBox(options: string, ...params: any[]): any; - dxTextBox(options: DevExpress.ui.dxTextBoxOptions): JQuery; - dxTextArea(): JQuery; - dxTextArea(options: "instance"): DevExpress.ui.dxTextArea; - dxTextArea(options: string): any; - dxTextArea(options: string, ...params: any[]): any; - dxTextArea(options: DevExpress.ui.dxTextAreaOptions): JQuery; - dxTabs(): JQuery; - dxTabs(options: "instance"): DevExpress.ui.dxTabs; - dxTabs(options: string): any; - dxTabs(options: string, ...params: any[]): any; - dxTabs(options: DevExpress.ui.dxTabsOptions): JQuery; - dxTabPanel(): JQuery; - dxTabPanel(options: "instance"): DevExpress.ui.dxTabPanel; - dxTabPanel(options: string): any; - dxTabPanel(options: string, ...params: any[]): any; - dxTabPanel(options: DevExpress.ui.dxTabPanelOptions): JQuery; - dxSelectBox(): JQuery; - dxSelectBox(options: "instance"): DevExpress.ui.dxSelectBox; - dxSelectBox(options: string): any; - dxSelectBox(options: string, ...params: any[]): any; - dxSelectBox(options: DevExpress.ui.dxSelectBoxOptions): JQuery; - dxTagBox(): JQuery; - dxTagBox(options: "instance"): DevExpress.ui.dxTagBox; - dxTagBox(options: string): any; - dxTagBox(options: string, ...params: any[]): any; - dxTagBox(options: DevExpress.ui.dxTagBoxOptions): JQuery; - dxScrollView(): JQuery; - dxScrollView(options: "instance"): DevExpress.ui.dxScrollView; - dxScrollView(options: string): any; - dxScrollView(options: string, ...params: any[]): any; - dxScrollView(options: DevExpress.ui.dxScrollViewOptions): JQuery; dxScrollable(): JQuery; dxScrollable(options: "instance"): DevExpress.ui.dxScrollable; dxScrollable(options: string): any; dxScrollable(options: string, ...params: any[]): any; dxScrollable(options: DevExpress.ui.dxScrollableOptions): JQuery; - dxRadioGroup(): JQuery; - dxRadioGroup(options: "instance"): DevExpress.ui.dxRadioGroup; - dxRadioGroup(options: string): any; - dxRadioGroup(options: string, ...params: any[]): any; - dxRadioGroup(options: DevExpress.ui.dxRadioGroupOptions): JQuery; - dxPopup(): JQuery; - dxPopup(options: "instance"): DevExpress.ui.dxPopup; - dxPopup(options: string): any; - dxPopup(options: string, ...params: any[]): any; - dxPopup(options: DevExpress.ui.dxPopupOptions): JQuery; - dxPopover(): JQuery; - dxPopover(options: "instance"): DevExpress.ui.dxPopover; - dxPopover(options: string): any; - dxPopover(options: string, ...params: any[]): any; - dxPopover(options: DevExpress.ui.dxPopoverOptions): JQuery; dxOverlay(): JQuery; dxOverlay(options: "instance"): DevExpress.ui.dxOverlay; dxOverlay(options: string): any; dxOverlay(options: string, ...params: any[]): any; dxOverlay(options: DevExpress.ui.dxOverlayOptions): JQuery; - dxNumberBox(): JQuery; - dxNumberBox(options: "instance"): DevExpress.ui.dxNumberBox; - dxNumberBox(options: string): any; - dxNumberBox(options: string, ...params: any[]): any; - dxNumberBox(options: DevExpress.ui.dxNumberBoxOptions): JQuery; - dxNavBar(): JQuery; - dxNavBar(options: "instance"): DevExpress.ui.dxNavBar; - dxNavBar(options: string): any; - dxNavBar(options: string, ...params: any[]): any; - dxNavBar(options: DevExpress.ui.dxNavBarOptions): JQuery; - dxMultiView(): JQuery; - dxMultiView(options: "instance"): DevExpress.ui.dxMultiView; - dxMultiView(options: string): any; - dxMultiView(options: string, ...params: any[]): any; - dxMultiView(options: DevExpress.ui.dxMultiViewOptions): JQuery; - dxMap(): JQuery; - dxMap(options: "instance"): DevExpress.ui.dxMap; - dxMap(options: string): any; - dxMap(options: string, ...params: any[]): any; - dxMap(options: DevExpress.ui.dxMapOptions): JQuery; - dxLookup(): JQuery; - dxLookup(options: "instance"): DevExpress.ui.dxLookup; - dxLookup(options: string): any; - dxLookup(options: string, ...params: any[]): any; - dxLookup(options: DevExpress.ui.dxLookupOptions): JQuery; - dxLoadPanel(): JQuery; - dxLoadPanel(options: "instance"): DevExpress.ui.dxLoadPanel; - dxLoadPanel(options: string): any; - dxLoadPanel(options: string, ...params: any[]): any; - dxLoadPanel(options: DevExpress.ui.dxLoadPanelOptions): JQuery; - dxLoadIndicator(): JQuery; - dxLoadIndicator(options: "instance"): DevExpress.ui.dxLoadIndicator; - dxLoadIndicator(options: string): any; - dxLoadIndicator(options: string, ...params: any[]): any; - dxLoadIndicator(options: DevExpress.ui.dxLoadIndicatorOptions): JQuery; - dxList(): JQuery; - dxList(options: "instance"): DevExpress.ui.dxList; - dxList(options: string): any; - dxList(options: string, ...params: any[]): any; - dxList(options: DevExpress.ui.dxListOptions): JQuery; - dxGallery(): JQuery; - dxGallery(options: "instance"): DevExpress.ui.dxGallery; - dxGallery(options: string): any; - dxGallery(options: string, ...params: any[]): any; - dxGallery(options: DevExpress.ui.dxGalleryOptions): JQuery; dxDropDownEditor(): JQuery; dxDropDownEditor(options: "instance"): DevExpress.ui.dxDropDownEditor; dxDropDownEditor(options: string): any; dxDropDownEditor(options: string, ...params: any[]): any; dxDropDownEditor(options: DevExpress.ui.dxDropDownEditorOptions): JQuery; - dxDateBox(): JQuery; - dxDateBox(options: "instance"): DevExpress.ui.dxDateBox; - dxDateBox(options: string): any; - dxDateBox(options: string, ...params: any[]): any; - dxDateBox(options: DevExpress.ui.dxDateBoxOptions): JQuery; - dxCheckBox(): JQuery; - dxCheckBox(options: "instance"): DevExpress.ui.dxCheckBox; - dxCheckBox(options: string): any; - dxCheckBox(options: string, ...params: any[]): any; - dxCheckBox(options: DevExpress.ui.dxCheckBoxOptions): JQuery; - dxBox(): JQuery; - dxBox(options: "instance"): DevExpress.ui.dxBox; - dxBox(options: string): any; - dxBox(options: string, ...params: any[]): any; - dxBox(options: DevExpress.ui.dxBoxOptions): JQuery; - dxButton(): JQuery; - dxButton(options: "instance"): DevExpress.ui.dxButton; - dxButton(options: string): any; - dxButton(options: string, ...params: any[]): any; - dxButton(options: DevExpress.ui.dxButtonOptions): JQuery; - dxCalendar(): JQuery; - dxCalendar(options: "instance"): DevExpress.ui.dxCalendar; - dxCalendar(options: string): any; - dxCalendar(options: string, ...params: any[]): any; - dxCalendar(options: DevExpress.ui.dxCalendarOptions): JQuery; - dxAccordion(): JQuery; - dxAccordion(options: "instance"): DevExpress.ui.dxAccordion; - dxAccordion(options: string): any; - dxAccordion(options: string, ...params: any[]): any; - dxAccordion(options: DevExpress.ui.dxAccordionOptions): JQuery; - dxResponsiveBox(): JQuery; - dxResponsiveBox(options: "instance"): DevExpress.ui.dxResponsiveBox; - dxResponsiveBox(options: string): any; - dxResponsiveBox(options: string, ...params: any[]): any; - dxResponsiveBox(options: DevExpress.ui.dxResponsiveBoxOptions): JQuery; - dxAutocomplete(): JQuery; - dxAutocomplete(options: "instance"): DevExpress.ui.dxAutocomplete; - dxAutocomplete(options: string): any; - dxAutocomplete(options: string, ...params: any[]): any; - dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; - dxForm(): JQuery; - dxForm(options: "instance"): DevExpress.ui.dxForm; - dxForm(options: string): any; - dxForm(options: string, ...params: any[]): any; - dxForm(options: DevExpress.ui.dxFormOptions): JQuery; } - declare module DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ @@ -2645,6 +2965,7 @@ declare module DevExpress.ui { onText?: string; /** A Boolean value specifying whether the current switch state is "On" or "Off". */ value?: boolean; + name?: string; } /** A switch widget. */ export class dxSwitch extends Editor { @@ -2812,43 +3133,6 @@ declare module DevExpress.ui { toggle(showing: boolean): JQueryPromise; } } -interface JQuery { - dxTileView(): JQuery; - dxTileView(options: "instance"): DevExpress.ui.dxTileView; - dxTileView(options: string): any; - dxTileView(options: string, ...params: any[]): any; - dxTileView(options: DevExpress.ui.dxTileViewOptions): JQuery; - dxSwitch(): JQuery; - dxSwitch(options: "instance"): DevExpress.ui.dxSwitch; - dxSwitch(options: string): any; - dxSwitch(options: string, ...params: any[]): any; - dxSwitch(options: DevExpress.ui.dxSwitchOptions): JQuery; - dxSlideOut(): JQuery; - dxSlideOut(options: "instance"): DevExpress.ui.dxSlideOut; - dxSlideOut(options: string): any; - dxSlideOut(options: string, ...params: any[]): any; - dxSlideOut(options: DevExpress.ui.dxSlideOutOptions): JQuery; - dxPivot(): JQuery; - dxPivot(options: "instance"): DevExpress.ui.dxPivot; - dxPivot(options: string): any; - dxPivot(options: string, ...params: any[]): any; - dxPivot(options: DevExpress.ui.dxPivotOptions): JQuery; - dxPanorama(): JQuery; - dxPanorama(options: "instance"): DevExpress.ui.dxPanorama; - dxPanorama(options: string): any; - dxPanorama(options: string, ...params: any[]): any; - dxPanorama(options: DevExpress.ui.dxPanoramaOptions): JQuery; - dxActionSheet(): JQuery; - dxActionSheet(options: "instance"): DevExpress.ui.dxActionSheet; - dxActionSheet(options: string): any; - dxActionSheet(options: string, ...params: any[]): any; - dxActionSheet(options: DevExpress.ui.dxActionSheetOptions): JQuery; - dxDropDownMenu(): JQuery; - dxDropDownMenu(options: "instance"): DevExpress.ui.dxDropDownMenu; - dxDropDownMenu(options: string): any; - dxDropDownMenu(options: string, ...params: any[]): any; - dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; -} declare module DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ @@ -2884,7 +3168,7 @@ declare module DevExpress.data { value?: any; totalValue?: any; }) => void; - /** Specifies the function that determines how to split data from the data source into ranges for header items. Cannot be used for the XmlaStore store type. */ + /** Specifies the function that determines how to split data from the data source into ranges for header items. Cannot be used for the XmlaStore store type and along with remote operations. */ selector?: (data: Object) => any; /** Type of the area where the field is located. */ area?: string; @@ -2918,10 +3202,7 @@ declare module DevExpress.data { format?: any; /** Specifies a callback function that returns the text to be displayed in the cells of a field. */ customizeText?: (cellInfo: { value: any; valueText: string }) => string; - /** - * Specifies a precision for formatted field values. - * @deprecated Use the format | precision option instead. - */ + /** * Specifies a precision for formatted field values. * @deprecated Use the format | precision option instead. */ precision?: number; /** Specifies how to sort the header items. */ sortingMethod?: (a: Object, b: Object) => number; @@ -2989,6 +3270,8 @@ declare module DevExpress.data { filter?: Object; /** An array of pivot grid fields. */ fields?: Array; + /** Specifies whether or not all the operations (filtering, grouping and summary calculation) are performed remotely. */ + remoteOperations?: boolean; /** A handler for the changed event. */ onChanged?: () => void; /** A handler for the loadingChanged event. */ @@ -3052,6 +3335,34 @@ declare module DevExpress.data { } } declare module DevExpress.ui { + export interface dxSchedulerViewOptions { + /** The name of the view. */ + type?: string; + /** The first day of a week. */ + firstDayOfWeek?: number; + /** The resource kinds by which appointments are grouped. */ + groups?: Array; + /** The start hour of the view time scale. */ + startDayHour?: number; + /** The end hour of the view time scale. */ + endDayHour?: number; + /** The cell duration in minutes. */ + cellDuration?: number; + /** Specifies the number of dates that can be shown at a time in the agenda view. */ + agendaDuration?: number; + /** The template to be used for rendering appointments. */ + appointmentTemplate?: any; + /** The template to be used for rendering an appointment tooltip. */ + appointmentTooltipTemplate?: any; + /** The template to be used for rendering table cells. */ + dataCellTemplate?: any; + /** The template to be used for rendering time scale items. */ + timeCellTemplate?: any; + /** The template to be used for rendering date scale items. */ + dateCellTemplate?: any; + /** The template to be used for rendering resource headers. */ + resourceCellTemplate?: any; + } export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: any; @@ -3069,8 +3380,16 @@ declare module DevExpress.ui { appointmentTemplate?: any; /** The template to be used for rendering an appointment tooltip. */ appointmentTooltipTemplate?: any; + /** The template to be used for rendering table cells. */ + dataCellTemplate?: any; + /** The template to be used for rendering time scale items. */ + timeCellTemplate?: any; + /** The template to be used for rendering date scale items. */ + dateCellTemplate?: any; + /** The template to be used for rendering resource headers. */ + resourceCellTemplate?: any; /** Lists the views to be available within the scheduler's View Selector. */ - views?: Array; + views?: Array; /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ groups?: Array; /** Specifies a start hour in the scheduler view's time interval. */ @@ -3100,10 +3419,7 @@ declare module DevExpress.ui { resources?: Array<{ /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ allowMultiple?: boolean; - /** - * Indicates whether or not resources of this kind have priority in the color identification of the appointments that have resources of different kinds assigned. - * @deprecated Use the useColorAsDefault option instead. - */ + /** * Indicates whether or not resources of this kind have priority in the color identification of the appointments that have resources of different kinds assigned. * @deprecated Use the useColorAsDefault option instead. */ mainColor?: boolean; /** Indicates whether or not resources of this kind have priority in the color identification of the appointments that have resources of different kinds assigned. */ useColorAsDefault?: boolean; @@ -3113,13 +3429,12 @@ declare module DevExpress.ui { displayExpr?: any; /** Specifies the resource object field that is used as a value of the Resource editor in the Appointment popup window. */ valueExpr?: any; - /** - * The name of the appointment object field that specifies a resource of this kind. - * @deprecated Use the fieldExpr option instead. - */ + /** * The name of the appointment object field that specifies a resource of this kind. * @deprecated Use the fieldExpr option instead. */ field?: string; /** The name of the appointment object field that specifies a resource of this kind. */ fieldExpr?: string; + /** Specifies the resource object field that is used as a resource color. */ + colorExpr?: string; /** Specifies the label of the Appointment popup window field that allows end users to assign a resource of this kind. */ label?: string; }>; @@ -3178,7 +3493,9 @@ declare module DevExpress.ui { noDataText?: string; } /** A widget that displays scheduled data using different views and provides the capability to load, add and edit appointments. */ - export class dxScheduler extends Widget { + export class dxScheduler extends Widget + implements DataHelperMixin + { constructor(element: JQuery, options?: dxSchedulerOptions); constructor(element: Element, options?: dxSchedulerOptions); /** Add the appointment defined by the object passed as a parameter to the data associated with the widget. */ @@ -3189,12 +3506,21 @@ declare module DevExpress.ui { deleteAppointment(appointment: Object): void; /** Scrolls the scheduler work space to the specified time of the specified day. */ scrollToTime(hours: number, minutes: number, date: Date): void; - /** Displayes the Appointment Details popup. */ + /** Displays the Appointment Details popup. */ showAppointmentPopup(appointmentData: Object, createNewAppointment?: boolean, currentAppointmentData?: Object): void; + /** Hides an appointment details popup. */ + hideAppointmentPopup(saveChanges?: boolean): void; + /** Displays the appointment tooltip for the specified target element. */ + showAppointmentTooltip(appointmentData: Object, target?: JQuery, currentAppointmentData?: Object): void; + showAppointmentTooltip(appointmentData: Object, target?: Element, currentAppointmentData?: Object): void; + showAppointmentTooltip(appointmentData: Object, target?: string, currentAppointmentData?: Object): void; + /** Hides an appointment tooltip. */ + hideAppointmentTooltip(): void; /** Returns the start date of the current view. */ getStartViewDate(): Date; /** Returns the end date of the current view. */ getEndViewDate(): Date; + getDataSource(): DevExpress.data.DataSource; } export interface dxColorBoxOptions extends dxDropDownEditorOptions { /** Specifies the text displayed on the button that applies changes and closes the drop-down editor. */ @@ -3215,7 +3541,7 @@ declare module DevExpress.ui { export interface HierarchicalCollectionWidgetOptions extends CollectionWidgetOptions { /** Specifies the name of the data source item field whose value is displayed by the widget. */ displayExpr?: any; - /** Specifies the name of the data source item field used as a key. */ + /** Specifies which data field provides keys for TreeView items. */ keyExpr?: any; /** Specifies the name of the data source item field whose value defines whether or not the corresponding widget items is selected. */ selectedExpr?: any; @@ -3235,10 +3561,7 @@ declare module DevExpress.ui { dataStructure?: string; /** Specifies whether or not a user can expand all tree view items by the "*" hot key. */ expandAllEnabled?: boolean; - /** - * Specifies whether or not a check box is displayed at each tree view item. - * @deprecated Use the showCheckBoxesMode options instead. - */ + /** * Specifies whether or not a check box is displayed at each tree view item. * @deprecated Use the showCheckBoxesMode options instead. */ showCheckBoxes?: boolean; /** Specifies the current check boxes display mode. */ showCheckBoxesMode?: string; @@ -3248,10 +3571,7 @@ declare module DevExpress.ui { selectNodesRecursive?: boolean; /** Specifies whether or not all parent nodes of an initially expanded node are displayed expanded. */ expandNodesRecursive?: boolean; - /** - * Specifies whether the "Select All" check box is displayed over the tree view. - * @deprecated Use the showCheckBoxesMode options instead. - */ + /** * Specifies whether the "Select All" check box is displayed over the tree view. * @deprecated Use the showCheckBoxesMode options instead. */ selectAllEnabled?: boolean; /** Specifies whether or not an item becomes selected if a user clicks it. */ selectByClick?: boolean; @@ -3281,6 +3601,18 @@ declare module DevExpress.ui { onItemContextMenu?: Function; onItemRendered?: Function; onItemHold?: Function; + /** Allows you to load nodes manually. */ + createChildren?: Function; + } + export interface dxTreeViewNode { + children: Array; + disabled: boolean; + expanded: boolean; + itemData: Object; + key: any; + parent: dxTreeViewNode; + selected: boolean; + text: string; } /** A widget displaying specified data items as a tree. */ export class dxTreeView extends HierarchicalCollectionWidget { @@ -3317,11 +3649,8 @@ declare module DevExpress.ui { cssClass?: string; /** Holds an array of menu items. */ items?: Array; - /** - * Specifies whether or not an item becomes selected if an end-user clicks it. - * @deprecated Use the selectByClick option instead. - */ - selectionByClick?: boolean; + /** * Specifies whether or not an item becomes selected if an end-user clicks it. * @deprecated Use the selectByClick option instead. */ + selectionByClick?: boolean; /** Specifies whether or not an item becomes selected if a user clicks it. */ selectByClick?: boolean; /** Specifies the selection mode supported by the menu. */ @@ -3383,13 +3712,15 @@ declare module DevExpress.ui { constructor(element: Element, options?: dxMenuOptions); } export interface dxContextMenuOptions extends dxMenuBaseOptions { - /** Holds an object that specifies options of alternative menu invocation. */ - alternativeInvocationMode?: { - /** Specifies whether or not an alternative invocation mode is enabled. */ - enabled?: Boolean; - /** Specifies the element used to invoke the context menu. */ - invokingElement?: any; + /** Specifies options for displaying the widget. */ + showEvent?: { + /** Specifies the event names on which the widget is shown. */ + name?: String; + /** The time span after which the widget is shown. */ + delay?: Number; }; + /** A Boolean value specifying whether or not the widget is closed if a user clicks outside of the context menu. */ + closeOnOutsideClick?: any; /** A handler for the hidden event. */ onHidden?: Function; /** A handler for the hiding event. */ @@ -3429,6 +3760,8 @@ declare module DevExpress.ui { sorting?: boolean; /** Specifies whether or not grouping must be performed on the server side. */ grouping?: boolean; + /** Specifies whether or not paging by groups must be peformed on the server side. */ + groupPaging?: boolean; /** Specifies whether or not summaries calculation must be performed on the server side. */ summary?: boolean; } @@ -3440,6 +3773,7 @@ declare module DevExpress.ui { groupIndex: number; isExpanded: boolean; isSelected: boolean; + isEditing: boolean; values: Array; } export interface dxDataGridColumn { @@ -3472,7 +3806,7 @@ declare module DevExpress.ui { /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ setCellValue?: (rowData: Object, value: any) => void; /** Specifies a callback function that defines filters for customary calculated grid cells. */ - calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => any; /** Specifies a caption for a column. */ caption?: string; /** Specifies a custom template for grid column cells. */ @@ -3539,10 +3873,7 @@ declare module DevExpress.ui { /** Specifies how header filter values should be combined into groups. */ groupInterval?: any; }; - /** - * Specifies a precision for formatted values displayed in a column. - * @deprecated Use the format | precision option instead. - */ + /** * Specifies a precision for formatted values displayed in a column. * @deprecated Use the format | precision option instead. */ precision?: number; /** Specifies the default filter operation of a column. */ selectedFilterOperation?: string; @@ -3586,6 +3917,8 @@ declare module DevExpress.ui { onRowValidating?: (e: Object) => void; /** A handler for the contextMenuPreparing event. */ onContextMenuPreparing?: (e: Object) => void; + /** A handler for the toolbarPreparing event. */ + onToolbarPreparing?: (e: Object) => void; /** A handler for the initNewRow event. */ onInitNewRow?: (e: { data: Object }) => void; /** A handler for the rowInserted event. */ @@ -3742,16 +4075,28 @@ declare module DevExpress.ui { applyFilterText?: string; /** Specifies descriptions for filter operations. */ operationDescriptions?: { - "=": string; - "<>": string; - "<": string; - "<=": string; - ">": string; - ">=": string; - "startswith": string; - "contains": string; - "notcontains": string; - "endswith": string; + /** Description for the '=' operation. */ + equal?: string; + /** Description for the '<>' operation. */ + notEqual?: string; + /** Description for the '<' operation. */ + lessThan?: string; + /** Description for the '<=' operation. */ + lessThanOrEqual?: string; + /** Description for the '>' operation. */ + greaterThan?: string; + /** Description for the '>=' operation. */ + greaterThanOrEqual?: string; + /** Description for the 'startswith' operation. */ + startsWith?: string; + /** Description for the 'contains' operation. */ + contains?: string; + /** Description for the 'notcontains' operation. */ + notContains?: string; + /** Description for the 'endswith' operation. */ + endsWith?: string; + /** Description for the 'between' operation. */ + between?: string; }; /** Specifies text for the reset operation in a filter list. */ resetOperationText?: string; @@ -3884,7 +4229,7 @@ declare module DevExpress.ui { /** Sets a search string for the search panel. */ text?: string; }; - /** Specifies the operations that must be performed on the server side. */ + /** Specifies the operations that must be performed server side. */ remoteOperations?: any; /** Allows you to sort groups according to the values of group summary items. */ sortByGroupSummaryInfo?: Array<{ @@ -3931,8 +4276,10 @@ declare module DevExpress.ui { exportSelectedRows?: string; } }; - /** Specifies the keys of the records that must appear selected initially. */ + /** Specifies the keys of the records that must appear initially selected. */ selectedRowKeys?: Array; + /** Specifies filters for the records that must appear initially selected. */ + selectionFilter?: Object; /** Specifies options of runtime selection. */ selection?: { /** Specifies the checkbox row display policy in the multiple mode. */ @@ -3941,6 +4288,11 @@ declare module DevExpress.ui { allowSelectAll?: boolean; /** Specifies the selection mode. */ mode?: string; + maxFilterLengthInRequest?: number; + /** Specifies the mode in which all the records are selected. */ + selectAllMode?: string; + /** Specifies whether or not deferred row selection is enabled. */ + deferred?: boolean; }; /** A handler for the dataErrorOccured event. */ onDataErrorOccurred?: (e: { error: Error }) => void; @@ -4043,10 +4395,7 @@ declare module DevExpress.ui { }) => string; /** Specifies a pattern for the summary item text. */ displayFormat?: string; - /** - * Specifies a precision for the summary item value of a numeric format. - * @deprecated Use the valueFormat | precision option instead. - */ + /** * Specifies a precision for the summary item value of a numeric format. * @deprecated Use the valueFormat | precision option instead. */ precision?: number; /** Specifies whether or not a summary item must be displayed in the group footer. */ showInGroupFooter?: boolean; @@ -4078,10 +4427,7 @@ declare module DevExpress.ui { }) => string; /** Specifies a pattern for the summary item text. */ displayFormat?: string; - /** - * Specifies a precision for the summary item value of a numeric format. - * @deprecated Use the valueFormat | precision option instead. - */ + /** * Specifies a precision for the summary item value of a numeric format. * @deprecated Use the valueFormat | precision option instead. */ precision?: number; /** Specifies the column that must hold the summary item. */ showInColumn?: string; @@ -4107,7 +4453,7 @@ declare module DevExpress.ui { wordWrapEnabled?: boolean; } /** A data grid widget. */ - export class dxDataGrid extends Widget { + export class dxDataGrid extends Widget implements DataHelperMixin { constructor(element: JQuery, options?: dxDataGridOptions); constructor(element: Element, options?: dxDataGridOptions); /** Ungroups grid records. */ @@ -4118,6 +4464,8 @@ declare module DevExpress.ui { getCellElement(rowIndex: number, dataField: string): any; /** Allows you to obtain a cell by its row index and the visible index of its column. */ getCellElement(rowIndex: number, visibleColumnIndex: number): any; + /** Allows you to obtain a row element by its index. */ + getRowElement(rowIndex: number): any; /** Returns the current state of the grid. */ state(): Object; /** Sets the grid state. */ @@ -4154,6 +4502,12 @@ declare module DevExpress.ui { columnOption(id: any): Object; /** Sets several options of a column at once. */ columnOption(id: any, options: Object): void; + /** Gets an array of visible columns. */ + getVisibleColumns(): Array; + /** Gets an array of visible columns at a specific hierarchical level of column headers. */ + getVisibleColumns(headerLevel?: number): Array; + /** Gets an array of visible rows. */ + getVisibleRows(): Array; /** Sets a specific cell into the editing state. */ editCell(rowIndex: number, visibleColumnIndex: number): void; /** Sets a specific cell into the editing state. */ @@ -4188,20 +4542,19 @@ declare module DevExpress.ui { filter(filterExpr?: any): void; /** Returns a filter expression applied to the grid's data source using the filter(filterExpr) method. */ filter(): any; - /** Returns a filter expression applied to the grid using all possible scenarious. */ + /** Returns a filter expression applied to the grid using all possible scenarios. */ getCombinedFilter(): any; + /** Returns a filter expression applied to the grid using all possible scenarios. */ + getCombinedFilter(returnDataField?: boolean): any; /** Gets the keys of currently selected grid records. */ - getSelectedRowKeys(): Array; - /** Gets the data objects of currently selected grid records. */ - getSelectedRowsData(): Array; + getSelectedRowKeys(): any; + /** Gets the data objects of the currently selected grid records. */ + getSelectedRowsData(): any; /** Hides the column chooser panel. */ hideColumnChooser(): void; /** Adds a new data row to a grid. */ addRow(): void; - /** - * Adds a new data row to a grid. - * @deprecated Use the addRow() method instead. - */ + /** * Adds a new data row to a grid. * @deprecated Use the addRow() method instead. */ insertRow(): void; /** Returns the key corresponding to the passed data object. */ keyOf(obj: Object): any; @@ -4217,10 +4570,7 @@ declare module DevExpress.ui { refresh(): JQueryPromise; /** Removes a specific row from a grid. */ deleteRow(rowIndex: number): void; - /** - * Removes a specific row from a grid. - * @deprecated Use the deleteRow(rowIndex) method instead. - */ + /** * Removes a specific row from a grid. * @deprecated Use the deleteRow(rowIndex) method instead. */ removeRow(rowIndex: number): void; /** Saves changes made in a grid. */ saveEditData(): JQueryPromise; @@ -4228,7 +4578,7 @@ declare module DevExpress.ui { searchByText(text: string): void; /** Selects all grid records. */ selectAll(): void; - /** Deselects the rows that are currently selected within the applied filter. */ + /** Deselects the currently selected rows. */ deselectAll(): void; /** Selects specific grid records. */ selectRows(keys: Array, preserve: boolean): void; @@ -4236,8 +4586,8 @@ declare module DevExpress.ui { deselectRows(keys: Array): void; /** Selects grid rows by indexes. */ selectRowsByIndexes(indexes: Array): void; - /** Allows you to find out whether a row is selected or not. */ - isRowSelected(key: any): boolean; + /** Allows you to find out whether or not the row with a specified data object is selected. */ + isRowSelected(arg: any): boolean; /** Invokes the column chooser panel. */ showColumnChooser(): void; startSelectionWithCheckboxes(): boolean; @@ -4257,6 +4607,11 @@ declare module DevExpress.ui { updateDimensions(): void; /** Focuses the specified cell element in the grid. */ focus(element?: JQuery): void; + getDataSource(): DevExpress.data.DataSource; + /** Gets instance of the Scrollable widget. */ + getScrollable(): dxScrollable; + /** Redraws the specified rows. */ + repaintRows(rowIndexes: Array): void; } export interface dxPivotGridOptions extends WidgetOptions { onContentReady?: Function; @@ -4492,53 +4847,6 @@ declare module DevExpress.ui { getDataSource(): DevExpress.data.PivotGridDataSource; } } -interface JQuery { - dxTreeView(): JQuery; - dxTreeView(options: "instance"): DevExpress.ui.dxTreeView; - dxTreeView(options: string): any; - dxTreeView(options: string, ...params: any[]): any; - dxTreeView(options: DevExpress.ui.dxTreeViewOptions): JQuery; - dxMenuBase(): JQuery; - dxMenuBase(options: "instance"): DevExpress.ui.dxMenuBase; - dxMenuBase(options: string): any; - dxMenuBase(options: string, ...params: any[]): any; - dxMenuBase(options: DevExpress.ui.dxMenuBaseOptions): JQuery; - dxMenu(): JQuery; - dxMenu(options: "instance"): DevExpress.ui.dxMenu; - dxMenu(options: string): any; - dxMenu(options: string, ...params: any[]): any; - dxMenu(options: DevExpress.ui.dxMenuOptions): JQuery; - dxContextMenu(): JQuery; - dxContextMenu(options: "instance"): DevExpress.ui.dxContextMenu; - dxContextMenu(options: string): any; - dxContextMenu(options: string, ...params: any[]): any; - dxContextMenu(options: DevExpress.ui.dxContextMenuOptions): JQuery; - dxColorBox(): JQuery; - dxColorBox(options: "instance"): DevExpress.ui.dxColorBox; - dxColorBox(options: string): any; - dxColorBox(options: string, ...params: any[]): any; - dxColorBox(options: DevExpress.ui.dxColorBoxOptions): JQuery; - dxDataGrid(): JQuery; - dxDataGrid(options: "instance"): DevExpress.ui.dxDataGrid; - dxDataGrid(options: string): any; - dxDataGrid(options: string, ...params: any[]): any; - dxDataGrid(options: DevExpress.ui.dxDataGridOptions): JQuery; - dxPivotGrid(): JQuery; - dxPivotGrid(options: "instance"): DevExpress.ui.dxPivotGrid; - dxPivotGrid(options: string): any; - dxPivotGrid(options: string, ...params: any[]): any; - dxPivotGrid(options: DevExpress.ui.dxPivotGridOptions): JQuery; - dxPivotGridFieldChooser(): JQuery; - dxPivotGridFieldChooser(options: "instance"): DevExpress.ui.dxPivotGridFieldChooser; - dxPivotGridFieldChooser(options: string): any; - dxPivotGridFieldChooser(options: string, ...params: any[]): any; - dxPivotGridFieldChooser(options: DevExpress.ui.dxPivotGridFieldChooserOptions): JQuery; - dxScheduler(): JQuery; - dxScheduler(options: "instance"): DevExpress.ui.dxScheduler; - dxScheduler(options: string): any; - dxScheduler(options: string, ...params: any[]): any; - dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; -} declare module DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { @@ -4960,10 +5268,7 @@ declare module DevExpress.viz.core { paddingLeftRight?: number; /** Generates space above and below the text displayed by a tooltip. */ paddingTopBottom?: number; - /** - * Specifies the precision of formatted values in a tooltip. - * @deprecated Use the tooltip | format | precision option instead. - */ + /** * Specifies the precision of formatted values in a tooltip. * @deprecated Use the tooltip | format | precision option instead. */ precision?: number; /** Specifies the appearance of the tooltip's shadow. */ shadow?: { @@ -5092,35 +5397,17 @@ declare module DevExpress.viz.core { } } declare module DevExpress.viz { - /** - * Applies a theme for the entire page with several DevExtreme visualization widgets. - * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. - */ + /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. */ export function currentTheme(theme: string): void; - /** - * Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. - * @deprecated Use the DevExpress.viz.currentTheme(platform, colorScheme) method instead. - */ + /** * Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(platform, colorScheme) method instead. */ export function currentTheme(platform: string, colorScheme: string): void; - /** - * Registers a new theme based on the existing one. - * @deprecated Use the DevExpress.viz.registerTheme(customTheme, baseTheme) method instead. - */ + /** * Registers a new theme based on the existing one. * @deprecated Use the DevExpress.viz.registerTheme(customTheme, baseTheme) method instead. */ export function registerTheme(customTheme: Object, baseTheme: string): void; - /** - * Applies a predefined or registered custom palette to all visualization widgets at once. - * @deprecated Use the DevExpress.viz.currentPalette(paletteName) method instead. - */ + /** * Applies a predefined or registered custom palette to all visualization widgets at once. * @deprecated Use the DevExpress.viz.currentPalette(paletteName) method instead. */ export function currentPalette(paletteName: string): void; - /** - * Obtains the color sets of a predefined or registered palette. - * @deprecated Use the DevExpress.viz.getPalette(paletteName) method instead. - */ + /** * Obtains the color sets of a predefined or registered palette. * @deprecated Use the DevExpress.viz.getPalette(paletteName) method instead. */ export function getPalette(paletteName: string): Object; - /** - * Registers a new palette. - * @deprecated Use the DevExpress.viz.registerPalette(paletteName, palette) method instead. - */ + /** * Registers a new palette. * @deprecated Use the DevExpress.viz.registerPalette(paletteName, palette) method instead. */ export function registerPalette(paletteName: string, palette: Object): void; } declare module DevExpress.viz.charts { @@ -5277,10 +5564,7 @@ declare module DevExpress.viz.charts { export interface BaseSeriesConfigLabel { /** Specifies a format for arguments displayed by point labels. */ argumentFormat?: any; - /** - * Specifies a precision for formatted point arguments displayed in point labels. - * @deprecated Use the series | label | argumentFormat | precision instead. - */ + /** * Specifies a precision for formatted point arguments displayed in point labels. * @deprecated Use the series | label | argumentFormat | precision instead. */ argumentPrecision?: number; /** Specifies a background color for point labels. */ backgroundColor?: string; @@ -5302,10 +5586,7 @@ declare module DevExpress.viz.charts { /** Specifies a format for the text displayed by point labels. */ format?: any; position?: string; - /** - * Specifies a precision for formatted point values displayed in point labels. - * @deprecated Use the series | label | format | precision option instead. - */ + /** * Specifies a precision for formatted point values displayed in point labels. * @deprecated Use the series | label | format | precision option instead. */ precision?: number; /** Specifies the angle used to rotate point labels from their initial position. */ rotationAngle?: number; @@ -5323,10 +5604,7 @@ declare module DevExpress.viz.charts { horizontalOffset?: number; /** Along with horizontalOffset, shifts point labels from their initial positions. */ verticalOffset?: number; - /** - * Specifies a precision for the percentage values displayed in the labels of a full-stacked-like series. - * @deprecated Use the series | label | format | percentPrecision instead. - */ + /** * Specifies a precision for the percentage values displayed in the labels of a full-stacked-like series. * @deprecated Use the series | label | format | percentPrecision instead. */ percentPrecision?: number; } export interface BaseCommonSeriesConfig { @@ -5580,10 +5858,7 @@ declare module DevExpress.viz.charts { export interface PieSeriesConfigLabel extends BaseSeriesConfigLabel { /** Specifies how to shift labels from their initial position in a radial direction in pixels. */ radialOffset?: number; - /** - * Specifies a precision for the percentage values displayed in labels. - * @deprecated Use the series | label | format | percentPrecision instead. - */ + /** * Specifies a precision for the percentage values displayed in labels. * @deprecated Use the series | label | format | percentPrecision instead. */ percentPrecision?: number; } /** An object that defines configuration options for chart series. */ @@ -5607,10 +5882,7 @@ declare module DevExpress.viz.charts { /** Specifies the hatching options to be applied when a point is hovered over. */ hatching?: viz.core.Hatching; }; - /** - * Specifies the fraction of the inner radius relative to the total radius in the series of the 'doughnut' type. - * @deprecated Use the innerRadius option instead. - */ + /** * Specifies the fraction of the inner radius relative to the total radius in the series of the 'doughnut' type. * @deprecated Use the innerRadius option instead. */ innerRadius?: number; /** An object defining the label configuration options. */ label?: PieSeriesConfigLabel; @@ -5618,10 +5890,7 @@ declare module DevExpress.viz.charts { maxLabelCount?: number; /** Specifies a minimal size of a displayed pie segment. */ minSegmentSize?: number; - /** - * Specifies the direction in which the PieChart series points are located. - * @deprecated Use the segmentsDirection option instead. - */ + /** * Specifies the direction in which the PieChart series points are located. * @deprecated Use the segmentsDirection option instead. */ segmentsDirection?: string; /**

Specifies the chart elements to highlight when the series is selected.

*/ selectionMode?: string; @@ -5645,10 +5914,7 @@ declare module DevExpress.viz.charts { /** Specifies how many segments must not be grouped. */ topCount?: number; }; - /** - * Specifies a start angle for a pie chart in arc degrees. - * @deprecated Use the startAngle option instead. - */ + /** * Specifies a start angle for a pie chart in arc degrees. * @deprecated Use the startAngle option instead. */ startAngle?: number; /**

Specifies the name of the data source field that provides data about a point.

*/ tagField?: string; @@ -5656,17 +5922,11 @@ declare module DevExpress.viz.charts { valueField?: string; } export interface CommonPieSeriesSettings extends CommonPieSeriesConfig { - /** - * Specifies the type of the pie chart series. - * @deprecated Use the type option instead. - */ + /** * Specifies the type of the pie chart series. * @deprecated Use the type option instead. */ type?: string; } export interface PieSeriesConfig extends CommonPieSeriesConfig { - /** - * Sets the series type. - * @deprecated Use the type option instead. - */ + /** * Sets the series type. * @deprecated Use the type option instead. */ type?: string; /** Specifies the name that identifies the series. */ name?: string; @@ -5879,10 +6139,7 @@ declare module DevExpress.viz.charts { customizeText?: (argument: { value: any; valueText: string }) => string; /** Specifies a format for the text displayed by axis labels. */ format?: any; - /** - * Specifies a precision for the formatted value displayed in the axis labels. - * @deprecated Use the valueAxis | label | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed in the axis labels. * @deprecated Use the valueAxis | label | format | precision option instead. */ precision?: number; } export interface ChartAxisLabel extends ChartCommonAxisLabel, AxisLabel { } @@ -6018,15 +6275,9 @@ declare module DevExpress.viz.charts { export interface BaseChartTooltip extends viz.core.Tooltip { /** Specifies a format for arguments of the chart's series points. */ argumentFormat?: any; - /** - * Specifies a precision for formatted arguments displayed in tooltips. - * @deprecated Use the tooltip | argumentFormat | precision option instead. - */ + /** * Specifies a precision for formatted arguments displayed in tooltips. * @deprecated Use the tooltip | argumentFormat | precision option instead. */ argumentPrecision?: number; - /** - * Specifies a precision for a percent value displayed in tooltips for stacked series and PieChart series. - * @deprecated Use the tooltip | format | percentPrecision option instead. - */ + /** * Specifies a precision for a percent value displayed in tooltips for stacked series and PieChart series. * @deprecated Use the tooltip | format | percentPrecision option instead. */ percentPrecision?: number; } export interface BaseChartOptions extends viz.core.BaseWidgetOptions, viz.core.MarginOptions, viz.core.RedrawOnResizeOptions, viz.core.TitleOptions, viz.core.LoadingIndicatorOptions, viz.core.ExportOptions { @@ -6047,7 +6298,7 @@ declare module DevExpress.viz.charts { customizePoint?: (pointInfo: Object) => Object; /** Specifies the origin of data for the widget. */ dataSource?: any; - /** Specifies options of a Chart's or PieChart's legend. */ + /** Specifies options of a Chart's (PieChart's) legend. */ legend?: core.BaseLegend; /** Sets the name of the palette to be used in the chart. Alternatively, an array of colors can be set as a custom palette to be used within this chart. */ palette?: any; @@ -6101,6 +6352,8 @@ declare module DevExpress.viz.charts { getSeriesByName(seriesName: string): BaseSeries; /** Gets a series within the chart's series collection by its position number. */ getSeriesByPos(seriesIndex: number): BaseSeries; + /** Returns the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; /** Hides all widget tooltips. */ hideTooltip(): void; showLoadingIndicator(): void; @@ -6199,9 +6452,9 @@ declare module DevExpress.viz.charts { /** Specifies the width of the crosshair lines. */ width?: number; /** Configures the horizontal crosshair line individually. */ - horizontalLine?: CrosshaierWithLabel; + horizontalLine?: CrosshairWithLabel; /** Configures the vertical crosshair line individually. */ - verticalLine?: CrosshaierWithLabel; + verticalLine?: CrosshairWithLabel; /** Configures the crosshair labels. */ label?: { /** Paints the background of the crosshair labels. */ @@ -6212,10 +6465,7 @@ declare module DevExpress.viz.charts { font?: viz.core.Font; /** Formats the point value/argument before it will be displayed in the crosshair label. */ format?: any; - /** - * Specifies a precision for formatted values. - * @deprecated Use the crosshair | label | format | precision option instead. - */ + /** * Specifies a precision for formatted values. * @deprecated Use the crosshair | label | format | precision option instead. */ precision?: number; /** Customizes the text displayed by the crosshair labels. */ customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; @@ -6272,7 +6522,7 @@ declare module DevExpress.viz.charts { position?: string; }; } - interface CrosshaierWithLabel extends viz.core.DashedBorderWithOpacity { + interface CrosshairWithLabel extends viz.core.DashedBorderWithOpacity { /** Configures the label that belongs to the horizontal crosshair line. */ label?: { /** Paints the background of the label that belongs to the horizontal crosshair line. */ @@ -6283,10 +6533,7 @@ declare module DevExpress.viz.charts { font?: viz.core.Font; /** Formats the point value before it will be displayed in the crosshair label. */ format?: any; - /** - * Specifies a precision for formatted values. - * @deprecated Use the crosshair | horizontalLine | label | format | precision option instead. - */ + /** * Specifies a precision for formatted values. * @deprecated Use the crosshair | horizontalLine | label | format | precision option instead. */ precision?: number; /** Customizes the text displayed by the label that belongs to the horizontal crosshair line. */ customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; @@ -6367,10 +6614,7 @@ declare module DevExpress.viz { export class dxPieChart extends DevExpress.viz.charts.BaseChart { constructor(element: JQuery, options?: DevExpress.viz.charts.dxPieChartOptions); constructor(element: Element, options?: DevExpress.viz.charts.dxPieChartOptions); - /** - * Provides access to the PieChart series. - * @deprecated Use the getAllSeries() method instead. - */ + /** * Provides access to the PieChart series. * @deprecated Use the getAllSeries() method instead. */ getSeries(): DevExpress.viz.charts.PieSeries; } /** A chart widget displaying data in a polar coordinate system. */ @@ -6379,17 +6623,6 @@ declare module DevExpress.viz { constructor(element: Element, options?: DevExpress.viz.charts.dxPolarChartOptions); } } -interface JQuery { - dxChart(options?: DevExpress.viz.charts.dxChartOptions): JQuery; - dxChart(methodName: string, ...params: any[]): any; - dxChart(methodName: "instance"): DevExpress.viz.dxChart; - dxPieChart(options?: DevExpress.viz.charts.dxPieChartOptions): JQuery; - dxPieChart(methodName: string, ...params: any[]): any; - dxPieChart(methodName: "instance"): DevExpress.viz.dxPieChart; - dxPolarChart(options?: DevExpress.viz.charts.dxPolarChartOptions): JQuery; - dxPolarChart(methodName: string, ...params: any[]): any; - dxPolarChart(methodName: "instance"): DevExpress.viz.dxPolarChart; -} declare module DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ @@ -6410,22 +6643,13 @@ declare module DevExpress.viz.gauges { export interface ScaleTick { /** Specifies the color of the scale's minor ticks. */ color?: string; - /** - * Specifies an array of custom minor ticks. - * @deprecated Use the scale | customMinorTicks option instead. - */ + /** * Specifies an array of custom minor ticks. * @deprecated Use the scale | customMinorTicks option instead. */ customTickValues?: Array; /** Specifies the length of the scale's minor ticks. */ length?: number; - /** - * Indicates whether automatically calculated minor ticks are visible or not. - * @deprecated This feature is no longer available. - */ + /** * Indicates whether automatically calculated minor ticks are visible or not. * @deprecated This feature is no longer available. */ showCalculatedTicks?: boolean; - /** - * Specifies an interval between minor ticks. - * @deprecated Use the scale | minorTickInterval option instead. - */ + /** * Specifies an interval between minor ticks. * @deprecated Use the scale | minorTickInterval option instead. */ tickInterval?: number; /** Indicates whether scale minor ticks are visible or not. */ visible?: boolean; @@ -6433,10 +6657,7 @@ declare module DevExpress.viz.gauges { width?: number; } export interface ScaleMajorTick extends ScaleTick { - /** - * Specifies whether or not to expand the current major tick interval if labels overlap each other. - * @deprecated Use the overlappingBehavior | useAutoArrangement option instead. - */ + /** * Specifies whether or not to expand the current major tick interval if labels overlap each other. * @deprecated Use the overlappingBehavior | useAutoArrangement option instead. */ useTicksAutoArrangement?: boolean; } export interface ScaleMinorTick extends ScaleTick { @@ -6459,10 +6680,7 @@ declare module DevExpress.viz.gauges { font?: viz.core.Font; /** Specifies a format for the text displayed in scale labels. */ format?: any; - /** - * Specifies a precision for the formatted value displayed in the scale labels. - * @deprecated Use the scale | label | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed in the scale labels. * @deprecated Use the scale | label | format | precision option instead. */ precision?: number; /** Specifies whether or not scale labels are visible on the gauge. */ visible?: boolean; @@ -6470,25 +6688,13 @@ declare module DevExpress.viz.gauges { export interface BaseScale { /** Specifies the end value for the scale of the gauge. */ endValue?: number; - /** - * Specifies whether or not to hide the first scale label. - * @deprecated This feature is no longer available. - */ + /** * Specifies whether or not to hide the first scale label. * @deprecated This feature is no longer available. */ hideFirstLabel?: boolean; - /** - * Specifies whether or not to hide the first major tick on the scale. - * @deprecated This feature is no longer available. - */ + /** * Specifies whether or not to hide the first major tick on the scale. * @deprecated This feature is no longer available. */ hideFirstTick?: boolean; - /** - * Specifies whether or not to hide the last scale label. - * @deprecated This feature is no longer available. - */ + /** * Specifies whether or not to hide the last scale label. * @deprecated This feature is no longer available. */ hideLastLabel?: boolean; - /** - * Specifies whether or not to hide the last major tick on the scale. - * @deprecated This feature is no longer available. - */ + /** * Specifies whether or not to hide the last major tick on the scale. * @deprecated This feature is no longer available. */ hideLastTick?: boolean; /** Specifies an interval between major ticks. */ tickInterval?: number; @@ -6500,10 +6706,7 @@ declare module DevExpress.viz.gauges { customMinorTicks?: Array; /** Specifies common options for scale labels. */ label?: BaseScaleLabel; - /** - * Specifies options of the gauge's major ticks. - * @deprecated Use the tick option instead. - */ + /** * Specifies options of the gauge's major ticks. * @deprecated Use the tick option instead. */ majorTick?: ScaleMajorTick; /** Specifies options of the gauge's major ticks. */ tick?: { @@ -6542,10 +6745,7 @@ declare module DevExpress.viz.gauges { format?: any; /** Specifies the range bar's label indent in pixels. */ indent?: number; - /** - * Specifies a precision for the formatted value displayed by an indicator. - * @deprecated Use the text | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed by an indicator. * @deprecated Use the text | format | precision option instead. */ precision?: number; }; offset?: number; @@ -6573,20 +6773,11 @@ declare module DevExpress.viz.gauges { export interface SharedGaugeOptions extends viz.core.MarginOptions, viz.core.RedrawOnResizeOptions, viz.core.TitleOptions, viz.core.LoadingIndicatorOptions, viz.core.ExportOptions { /** Specifies animation options. */ animation?: viz.core.Animation; - /** - * Specifies a subtitle for the widget. - * @deprecated Use the title | subtitle option instead. - */ + /** * Specifies a subtitle for the widget. * @deprecated Use the title | subtitle option instead. */ subtitle?: { - /** - * Specifies font options for the subtitle. - * @deprecated Use the title | subtitle | font option instead. - */ + /** * Specifies font options for the subtitle. * @deprecated Use the title | subtitle | font option instead. */ font?: viz.core.Font; - /** - * Specifies a text for the subtitle. - * @deprecated Use the title | subtitle | text option instead. - */ + /** * Specifies a text for the subtitle. * @deprecated Use the title | subtitle | text option instead. */ text?: string; }; /** Configures tooltips. */ @@ -6723,10 +6914,7 @@ declare module DevExpress.viz.gauges { format?: any; /** Specifies the distance between the upper bar and bar labels in pixels. */ indent?: number; - /** - * Specifies a precision for the formatted value displayed by labels. - * @deprecated Use the label | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed by labels. * @deprecated Use the label | format | precision option instead. */ precision?: number; /** Specifies whether bar labels appear on a gauge or not. */ visible?: boolean; @@ -6764,17 +6952,6 @@ declare module DevExpress.viz { values(values: Array): void; } } -interface JQuery { - dxLinearGauge(options?: DevExpress.viz.gauges.dxLinearGaugeOptions): JQuery; - dxLinearGauge(methodName: string, ...params: any[]): any; - dxLinearGauge(methodName: "instance"): DevExpress.viz.dxLinearGauge; - dxCircularGauge(options?: DevExpress.viz.gauges.dxCircularGaugeOptions): JQuery; - dxCircularGauge(methodName: string, ...params: any[]): any; - dxCircularGauge(methodName: "instance"): DevExpress.viz.dxCircularGauge; - dxBarGauge(options?: DevExpress.viz.gauges.dxBarGaugeOptions): JQuery; - dxBarGauge(methodName: string, ...params: any[]): any; - dxBarGauge(methodName: "instance"): DevExpress.viz.dxBarGauge; -} declare module DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions, viz.core.MarginOptions, viz.core.RedrawOnResizeOptions, viz.core.TitleOptions, viz.core.LoadingIndicatorOptions, viz.core.ExportOptions { /** Specifies the options for the range selector's background. */ @@ -6797,8 +6974,10 @@ declare module DevExpress.viz.rangeSelector { allowSlidersSwap?: boolean; /** Indicates whether or not animation is enabled. */ animationEnabled?: boolean; - /** Specifies when to call the onSelectedRangeChanged function. */ + /** * Specifies when to call the onSelectedRangeChanged function. * @deprecated Use the callValueChanged option instead. */ callSelectedRangeChanged?: string; + /** Specifies when to call the onValueChanged function. */ + callValueChanged?: string; /** Indicates whether or not an end user can specify the range using a mouse, without the use of sliders. */ manualRangeSelectionEnabled?: boolean; /** Indicates whether or not an end user can shift the selected range to the required location on a scale by clicking. */ @@ -6871,10 +7050,7 @@ declare module DevExpress.viz.rangeSelector { font?: viz.core.Font; /** Specifies a format for the text displayed in scale labels. */ format?: any; - /** - * Specifies a precision for the formatted value displayed in the scale labels. - * @deprecated Use the scale | label | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed in the scale labels. * @deprecated Use the scale | label | format | precision option instead. */ precision?: number; /** Specifies a spacing between scale labels and the background bottom edge. */ topIndent?: number; @@ -6883,10 +7059,7 @@ declare module DevExpress.viz.rangeSelector { }; /** Specifies the value to be raised to a power when generating ticks for a logarithmic scale. */ logarithmBase?: number; - /** - * Specifies an interval between major ticks. - * @deprecated Use the tickInterval option instead. - */ + /** * Specifies an interval between major ticks. * @deprecated Use the tickInterval option instead. */ majorTickInterval?: any; /** Specifies an interval between axis ticks. */ tickInterval?: any; @@ -6924,10 +7097,7 @@ declare module DevExpress.viz.rangeSelector { setTicksAtUnitBeginning?: boolean; /** Specifies whether or not to show ticks for the boundary scale values, when neither major ticks nor minor ticks are created for these values. */ showCustomBoundaryTicks?: boolean; - /** - * Indicates whether or not to show minor ticks on the scale. - * @deprecated Use the minorTick | visible option instead. - */ + /** * Indicates whether or not to show minor ticks on the scale. * @deprecated Use the minorTick | visible option instead. */ showMinorTicks?: boolean; /** Specifies the scale's start value. */ startValue?: any; @@ -6957,16 +7127,18 @@ declare module DevExpress.viz.rangeSelector { useTicksAutoArrangement?: boolean; /** Specifies the type of values on the scale. */ valueType?: string; - /** Specifies the order of arguments on a discrete scale. */ - categories?: Array; + /** Specifies the order of arguments on a discrete scale. */ + categories?: Array; }; - /** Specifies the range to be selected when displaying the RangeSelector. */ + /** * Specifies the range to be selected when displaying the RangeSelector. * @deprecated Use the value option instead. */ selectedRange?: { /** Specifies the start value of the range to be selected when displaying the RangeSelector widget on a page. */ startValue?: any; /** Specifies the end value of the range to be selected when displaying the RangeSelector widget on a page. */ endValue?: any; }; + /** The selected range, initial or current. */ + value?: Array; /** Specifies the color of the selected range. */ selectedRangeColor?: string; /** Range selector's indent options. */ @@ -6976,13 +7148,20 @@ declare module DevExpress.viz.rangeSelector { /** Specifies range selector's right indent. */ right?: number; }; - /** A handler for the selectedRangeChanged event. */ + /** * A handler for the selectedRangeChanged event. * @deprecated Use the onValueChanged option instead. */ onSelectedRangeChanged?: (e: { startValue: any; endValue: any; component: dxRangeSelector; element: Element; }) => void; + /** A handler for the valueChanged event. */ + onValueChanged?: (e: { + value: Array; + previousValue: Array; + component: dxRangeSelector; + element: Element; + }) => void; /** Specifies range selector shutter options. */ shutter?: { /** Specifies shutter color. */ @@ -7011,10 +7190,7 @@ declare module DevExpress.viz.rangeSelector { format?: any; /** Specifies the color used for the slider marker text when the currently selected range does not match the minRange and maxRange values. */ invalidRangeColor?: string; - /** - * Specifies the empty space between the marker's border and the marker’s text. - * @deprecated Use the paddingTopBottom and paddingLeftRight options instead. - */ + /** * Specifies the empty space between the marker's border and the marker’s text. * @deprecated Use the paddingTopBottom and paddingLeftRight options instead. */ padding?: number; /** Specifies the empty space between the marker's top and bottom borders and the marker's text. */ paddingTopBottom?: number; @@ -7022,10 +7198,7 @@ declare module DevExpress.viz.rangeSelector { paddingLeftRight?: number; /** Specifies the placeholder height of the slider marker. */ placeholderHeight?: number; - /** - * Specifies in pixels the height and width of the space reserved for the range selector slider markers. - * @deprecated Use the placeholderHeight and indent options instead. - */ + /** * Specifies in pixels the height and width of the space reserved for the range selector slider markers. * @deprecated Use the placeholderHeight and indent options instead. */ placeholderSize?: { /** Specifies the height of the placeholder for the left and right slider markers. */ height?: number; @@ -7037,10 +7210,7 @@ declare module DevExpress.viz.rangeSelector { right?: number; }; }; - /** - * Specifies a precision for the formatted value displayed in slider markers. - * @deprecated Use the sliderMarker | format | precision option instead. - */ + /** * Specifies a precision for the formatted value displayed in slider markers. * @deprecated Use the sliderMarker | format | precision option instead. */ precision?: number; /** Indicates whether or not the slider markers are visible. */ visible?: boolean; @@ -7056,17 +7226,18 @@ declare module DevExpress.viz { hideLoadingIndicator(): void; /** Redraws a widget. */ render(skipChartAnimation?: boolean): void; - /** Returns the currently selected range. */ + /** * Returns the currently selected range. * @deprecated Use the getValue() method instead. */ getSelectedRange(): { startValue: any; endValue: any; }; - /** Sets a specified range. */ + /** * Sets a specified range. * @deprecated Use the setValue(value) method instead. */ setSelectedRange(selectedRange: { startValue: any; endValue: any; }): void; + /** Gets the currently selected range. */ + getValue(): Array; + /** Selects a specific range. */ + setValue(value: Array): void; + /** Returns the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; } } -interface JQuery { - dxRangeSelector(options?: DevExpress.viz.rangeSelector.dxRangeSelectorOptions): JQuery; - dxRangeSelector(methodName: string, ...params: any[]): any; - dxRangeSelector(methodName: "instance"): DevExpress.viz.dxRangeSelector; -} declare module DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ export interface MapLayer { @@ -7082,6 +7253,8 @@ declare module DevExpress.viz.map { getElements(): Array; /** Deselects all layer elements. */ clearSelection(): void; + /** Returns the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; } /** This section describes the fields and methods that can be used in code to manipulate the Layer Element object. */ export interface MapLayerElement { @@ -7100,91 +7273,40 @@ declare module DevExpress.viz.map { /** Applies the layer element settings and updates element appearance. */ applySettings(settings: any): void; } - /** - * This section describes the fields and methods that can be used in code to manipulate the Area object. - * @deprecated Use the Layer Element instead. - */ + /** * This section describes the fields and methods that can be used in code to manipulate the Area object. * @deprecated Use the Layer Element instead. */ export interface Area { - /** - * Contains the element type. - * @deprecated Use the Layer | type instead. - */ + /** * Contains the element type. * @deprecated Use the Layer | type instead. */ type: string; - /** - * Return the value of an attribute. - * @deprecated Use the Layer Element | attribute(name, value) method instead. - */ + /** * Return the value of an attribute. * @deprecated Use the Layer Element | attribute(name, value) method instead. */ attribute(name: string): any; - /** - * Provides information about the selection state of an area. - * @deprecated Use the Layer Element | selected() method instead. - */ + /** * Provides information about the selection state of an area. * @deprecated Use the Layer Element | selected() method instead. */ selected(): boolean; - /** - * Sets a new selection state for an area. - * @deprecated Use the Layer Element | selected(state) method instead. - */ + /** * Sets a new selection state for an area. * @deprecated Use the Layer Element | selected(state) method instead. */ selected(state: boolean): void; - /** - * Applies the area settings specified as a parameter and updates the area appearance. - * @deprecated Use the Layer Element | applySettings(settings) method instead. - */ + /** * Applies the area settings specified as a parameter and updates the area appearance. * @deprecated Use the Layer Element | applySettings(settings) method instead. */ applySettings(settings: any): void; } - /** - * This section describes the fields and methods that can be used in code to manipulate the Markers object. - * @deprecated Use the Layer Element instead. - */ + /** * This section describes the fields and methods that can be used in code to manipulate the Markers object. * @deprecated Use the Layer Element instead. */ export interface Marker { - /** - * Contains the descriptive text accompanying the map marker. - * @deprecated Get the text using the Layer Element | attribute(name) method. The name parameter value for text is set at the dataField option. - */ + /** * Contains the descriptive text accompanying the map marker. * @deprecated Get the text using the Layer Element | attribute(name) method. The name parameter value for text is set at the dataField option. */ text: string; - /** - * Contains the type of the element. - * @deprecated Use the Layer | type instead. - */ + /** * Contains the type of the element. * @deprecated Use the Layer | type instead. */ type: string; - /** - * Contains the URL of an image map marker. - * @deprecated Get the image URL using the Layer Element | attribute(name) method. The name parameter value for the image URL is set at the dataField option. - */ + /** * Contains the URL of an image map marker. * @deprecated Get the image URL using the Layer Element | attribute(name) method. The name parameter value for the image URL is set at the dataField option. */ url: string; - /** - * Contains the value of a bubble map marker. - * @deprecated Get the bubble value using the Layer Element | attribute(name) method. The name parameter for the bubble value is set at the dataField option. - */ + /** * Contains the value of a bubble map marker. * @deprecated Get the bubble value using the Layer Element | attribute(name) method. The name parameter for the bubble value is set at the dataField option. */ value: number; - /** - * Contains the values of a pie map marker. - * @deprecated Get the pie values using the Layer Element | attribute(name) method. The name parameter for pie values is set at the dataField option. - */ + /** * Contains the values of a pie map marker. * @deprecated Get the pie values using the Layer Element | attribute(name) method. The name parameter for pie values is set at the dataField option. */ values: Array; - /** - * Returns the value of an attribute. - * @deprecated Use the Layer Element | attribute(name, value) method instead. - */ + /** * Returns the value of an attribute. * @deprecated Use the Layer Element | attribute(name, value) method instead. */ attribute(name: string): any; - /** - * Returns the coordinates of a specific marker. - * @deprecated Use the Layer Element | coordinates() method instead. - */ + /** * Returns the coordinates of a specific marker. * @deprecated Use the Layer Element | coordinates() method instead. */ coordinates(): Array; - /** - * Provides information about the selection state of a marker. - * @deprecated Use the Layer Element | selected() method instead. - */ + /** * Provides information about the selection state of a marker. * @deprecated Use the Layer Element | selected() method instead. */ selected(): boolean; - /** - * Sets a new selection state for a marker. - * @deprecated Use the Layer Element | selected(state) method instead. - */ + /** * Sets a new selection state for a marker. * @deprecated Use the Layer Element | selected(state) method instead. */ selected(state: boolean): void; - /** - * Applies the marker settings specified as a parameter and updates marker appearance. - * @deprecated Use the Layer Element | applySettings(settings) method instead. - */ + /** * Applies the marker settings specified as a parameter and updates marker appearance. * @deprecated Use the Layer Element | applySettings(settings) method instead. */ applySettings(settings: any): void; } export interface MapLayerSettings { @@ -7253,241 +7375,103 @@ declare module DevExpress.viz.map { }; } export interface AreaSettings { - /** - * Specifies the width of the area border in pixels. - * @deprecated Use the layers | borderWidth option instead. - */ + /** * Specifies the width of the area border in pixels. * @deprecated Use the layers | borderWidth option instead. */ borderWidth?: number; - /** - * Specifies a color for the area border. - * @deprecated Use the layers | borderColor option instead. - */ + /** * Specifies a color for the area border. * @deprecated Use the layers | borderColor option instead. */ borderColor?: string; - /** - * Specifies a color for an area. - * @deprecated Use the layers | color option instead. - */ + /** * Specifies a color for an area. * @deprecated Use the layers | color option instead. */ color?: string; - /** - * Specifies the function that customizes each area individually. - * @deprecated Use the layers | customize option instead. - */ + /** * Specifies the function that customizes each area individually. * @deprecated Use the layers | customize option instead. */ customize?: (areaInfo: Area) => AreaSettings; - /** - * Specifies a color for the area border when the area is hovered over. - * @deprecated Use the layers | hoveredBorderColor option instead. - */ + /** * Specifies a color for the area border when the area is hovered over. * @deprecated Use the layers | hoveredBorderColor option instead. */ hoveredBorderColor?: string; - /** - * Specifies the pixel-measured width of the area border when the area is hovered over. - * @deprecated Use the layers | hoveredBorderWidth option instead. - */ + /** * Specifies the pixel-measured width of the area border when the area is hovered over. * @deprecated Use the layers | hoveredBorderWidth option instead. */ hoveredBorderWidth?: number; - /** - * Specifies a color for an area when this area is hovered over. - * @deprecated Use the layers | hoveredColor option instead. - */ + /** * Specifies a color for an area when this area is hovered over. * @deprecated Use the layers | hoveredColor option instead. */ hoveredColor?: string; - /** - * Specifies whether or not to change the appearance of an area when it is hovered over. - * @deprecated Use the layers | hoverEnabled option instead. - */ + /** * Specifies whether or not to change the appearance of an area when it is hovered over. * @deprecated Use the layers | hoverEnabled option instead. */ hoverEnabled?: boolean; - /** - * Configures area labels. - * @deprecated Use the layers | label option instead. - */ + /** * Configures area labels. * @deprecated Use the layers | label option instead. */ label?: { - /** - * Specifies the data field that provides data for area labels. - * @deprecated Use the layers | label | dataField option instead. - */ + /** * Specifies the data field that provides data for area labels. * @deprecated Use the layers | label | dataField option instead. */ dataField?: string; - /** - * Enables area labels. - * @deprecated Use the layers | label | enabled option instead. - */ + /** * Enables area labels. * @deprecated Use the layers | label | enabled option instead. */ enabled?: boolean; - /** - * Specifies font options for area labels. - * @deprecated Use the layers | label | font option instead. - */ + /** * Specifies font options for area labels. * @deprecated Use the layers | label | font option instead. */ font?: viz.core.Font; }; - /** - * Specifies the name of the palette or a custom range of colors to be used for coloring a map. - * @deprecated Use the layers | palette option instead. - */ + /** * Specifies the name of the palette or a custom range of colors to be used for coloring a map. * @deprecated Use the layers | palette option instead. */ palette?: any; - /** - * Specifies the number of colors in a palette. - * @deprecated Use the layers | paletteSize option instead. - */ + /** * Specifies the number of colors in a palette. * @deprecated Use the layers | paletteSize option instead. */ paletteSize?: number; - /** - * Allows you to paint areas with similar attributes in the same color. - * @deprecated Use the layers | colorGroups option instead. - */ + /** * Allows you to paint areas with similar attributes in the same color. * @deprecated Use the layers | colorGroups option instead. */ colorGroups?: Array; - /** - * Specifies the field that provides data to be used for coloring areas. - * @deprecated Use the layers | colorGroupingField option instead. - */ + /** * Specifies the field that provides data to be used for coloring areas. * @deprecated Use the layers | colorGroupingField option instead. */ colorGroupingField?: string; - /** - * Specifies a color for the area border when the area is selected. - * @deprecated Use the layers | selectedBorderColor option instead. - */ + /** * Specifies a color for the area border when the area is selected. * @deprecated Use the layers | selectedBorderColor option instead. */ selectedBorderColor?: string; - /** - * Specifies a color for an area when this area is selected. - * @deprecated Use the layers | selectedColor option instead. - */ + /** * Specifies a color for an area when this area is selected. * @deprecated Use the layers | selectedColor option instead. */ selectedColor?: string; - /** - * Specifies the pixel-measured width of the area border when the area is selected. - * @deprecated Use the layers | selectedBorderWidth option instead. - */ + /** * Specifies the pixel-measured width of the area border when the area is selected. * @deprecated Use the layers | selectedBorderWidth option instead. */ selectedBorderWidth?: number; - /** - * Specifies whether single or multiple areas can be selected on a vector map. - * @deprecated Use the layers | selectionMode option instead. - */ + /** * Specifies whether single or multiple areas can be selected on a vector map. * @deprecated Use the layers | selectionMode option instead. */ selectionMode?: string; } export interface MarkerSettings { - /** - * Specifies a color for the marker border. - * @deprecated Use the layers | borderColor option instead. - */ + /** * Specifies a color for the marker border. * @deprecated Use the layers | borderColor option instead. */ borderColor?: string; - /** - * Specifies the width of the marker border in pixels. - * @deprecated Use the layers | borderWidth option instead. - */ + /** * Specifies the width of the marker border in pixels. * @deprecated Use the layers | borderWidth option instead. */ borderWidth?: number; - /** - * Specifies a color for a marker of the dot or bubble type. - * @deprecated Use the layers | color option instead. - */ + /** * Specifies a color for a marker of the dot or bubble type. * @deprecated Use the layers | color option instead. */ color?: string; - /** - * Specifies the function that customizes each marker individually. - * @deprecated Use the layers | customize option instead. - */ + /** * Specifies the function that customizes each marker individually. * @deprecated Use the layers | customize option instead. */ customize?: (markerInfo: Marker) => MarkerSettings; - /** - * Specifies the pixel-measured width of the marker border when the marker is hovered over. - * @deprecated Use the layers | hoveredBorderWidth option instead. - */ + /** * Specifies the pixel-measured width of the marker border when the marker is hovered over. * @deprecated Use the layers | hoveredBorderWidth option instead. */ hoveredBorderWidth?: number; - /** - * Specifies a color for the marker border when the marker is hovered over. - * @deprecated Use the layers | hoveredBorderColor option instead. - */ + /** * Specifies a color for the marker border when the marker is hovered over. * @deprecated Use the layers | hoveredBorderColor option instead. */ hoveredBorderColor?: string; - /** - * Specifies a color for a marker of the dot or bubble type when this marker is hovered over. - * @deprecated Use the layers | hoveredColor option instead. - */ + /** * Specifies a color for a marker of the dot or bubble type when this marker is hovered over. * @deprecated Use the layers | hoveredColor option instead. */ hoveredColor?: string; - /** - * Specifies whether or not to change the appearance of a marker when it is hovered over. - * @deprecated Use the layers | hoverEnabled option instead. - */ + /** * Specifies whether or not to change the appearance of a marker when it is hovered over. * @deprecated Use the layers | hoverEnabled option instead. */ hoverEnabled?: boolean; - /** - * Specifies marker label options. - * @deprecated Use the layers | label option instead. - */ + /** * Specifies marker label options. * @deprecated Use the layers | label option instead. */ label?: { - /** - * Enables marker labels. - * @deprecated Use the layers | label | enabled option instead. - */ + /** * Enables marker labels. * @deprecated Use the layers | label | enabled option instead. */ enabled?: boolean; - /** - * Specifies font options for marker labels. - * @deprecated Use the layers | label | font option instead. - */ + /** * Specifies font options for marker labels. * @deprecated Use the layers | label | font option instead. */ font?: viz.core.Font; }; - /** - * Specifies the pixel-measured diameter of the marker that represents the biggest value. Setting this option makes sense only if you use markers of the bubble type. - * @deprecated Use the layers | maxSize option instead. - */ + /** * Specifies the pixel-measured diameter of the marker that represents the biggest value. Setting this option makes sense only if you use markers of the bubble type. * @deprecated Use the layers | maxSize option instead. */ maxSize?: number; - /** - * Specifies the pixel-measured diameter of the marker that represents the smallest value. Setting this option makes sense only if you use markers of the bubble type. - * @deprecated Use the layers | minSize option instead. - */ + /** * Specifies the pixel-measured diameter of the marker that represents the smallest value. Setting this option makes sense only if you use markers of the bubble type. * @deprecated Use the layers | minSize option instead. */ minSize?: number; - /** - * Specifies the opacity of markers. Setting this option makes sense only if you use markers of the bubble type. - * @deprecated Use the layers | opacity option instead. - */ + /** * Specifies the opacity of markers. Setting this option makes sense only if you use markers of the bubble type. * @deprecated Use the layers | opacity option instead. */ opacity?: number; - /** - * Specifies the pixel-measured width of the marker border when the marker is selected. - * @deprecated Use the layers | selectedBorderWidth option instead. - */ + /** * Specifies the pixel-measured width of the marker border when the marker is selected. * @deprecated Use the layers | selectedBorderWidth option instead. */ selectedBorderWidth?: number; - /** - * Specifies a color for the marker border when the marker is selected. - * @deprecated Use the layers | selectedBorderColor option instead. - */ + /** * Specifies a color for the marker border when the marker is selected. * @deprecated Use the layers | selectedBorderColor option instead. */ selectedBorderColor?: string; - /** - * Specifies a color for a marker of the dot or bubble type when this marker is selected. - * @deprecated Use the layers | selectedColor option instead. - */ + /** * Specifies a color for a marker of the dot or bubble type when this marker is selected. * @deprecated Use the layers | selectedColor option instead. */ selectedColor?: string; - /** - * Specifies whether a single or multiple markers can be selected on a vector map. - * @deprecated Use the layers | selectionMode option instead. - */ + /** * Specifies whether a single or multiple markers can be selected on a vector map. * @deprecated Use the layers | selectionMode option instead. */ selectionMode?: string; - /** - * Specifies the size of markers. Setting this option makes sense for any type of marker except bubble. - * @deprecated Use the layers | size option instead. - */ + /** * Specifies the size of markers. Setting this option makes sense for any type of marker except bubble. * @deprecated Use the layers | size option instead. */ size?: number; - /** - * Specifies the type of markers to be used on the map. - * @deprecated Use the layers | elementType option instead. - */ + /** * Specifies the type of markers to be used on the map. * @deprecated Use the layers | elementType option instead. */ type?: string; - /** - * Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. - * @deprecated Use the layers | palette option instead. - */ + /** * Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. * @deprecated Use the layers | palette option instead. */ palette?: any; - /** - * Allows you to paint markers with similar attributes in the same color. - * @deprecated Use the layers | colorGroups option instead. - */ + /** * Allows you to paint markers with similar attributes in the same color. * @deprecated Use the layers | colorGroups option instead. */ colorGroups?: Array; - /** - * Specifies the field that provides data to be used for coloring markers. - * @deprecated Use the layers | colorGroupingField option instead. - */ + /** * Specifies the field that provides data to be used for coloring markers. * @deprecated Use the layers | colorGroupingField option instead. */ colorGroupingField?: string; - /** - * Allows you to display bubbles with similar attributes in the same size. - * @deprecated Use the layers | sizeGroups option instead. - */ + /** * Allows you to display bubbles with similar attributes in the same size. * @deprecated Use the layers | sizeGroups option instead. */ sizeGroups?: Array; - /** - * Specifies the field that provides data to be used for sizing bubble markers. - * @deprecated Use the layers | sizeGroupingField option instead. - */ + /** * Specifies the field that provides data to be used for sizing bubble markers. * @deprecated Use the layers | sizeGroupingField option instead. */ sizeGroupingField?: string; } export interface dxVectorMapOptions extends viz.core.BaseWidgetOptions, viz.core.RedrawOnResizeOptions, viz.core.TitleOptions, viz.core.LoadingIndicatorOptions, viz.core.ExportOptions { - /** - * An object specifying options for the map areas. - * @deprecated Use the "area" type element of the layers array. - */ + /** * An object specifying options for the map areas. * @deprecated Use the "area" type element of the layers array. */ areaSettings?: AreaSettings; /** Specifies the options for the map background. */ background?: { @@ -7519,20 +7503,11 @@ declare module DevExpress.viz.map { /** Specifies the opacity of the control bar. */ opacity?: number; }; - /** - * Specifies a data source for the map area. - * @deprecated Use the layers | dataSource option instead. - */ + /** * Specifies a data source for the map area. * @deprecated Use the layers | dataSource option instead. */ mapData?: any; - /** - * Specifies a data source for the map markers. - * @deprecated Use the layers | dataSource option instead. - */ + /** * Specifies a data source for the map markers. * @deprecated Use the layers | dataSource option instead. */ markers?: any; - /** - * An object specifying options for the map markers. - * @deprecated Use the "marker" type element of the layers array. - */ + /** * An object specifying options for the map markers. * @deprecated Use the "marker" type element of the layers array. */ markerSettings?: MarkerSettings; /** Configures tooltips. */ tooltip?: viz.core.Tooltip; @@ -7582,29 +7557,17 @@ declare module DevExpress.viz.map { element: Element; target: MapLayerElement; }) => void; - /** - * A handler for the areaClick event. - * @deprecated Use the onClick option instead. - */ + /** * A handler for the areaClick event. * @deprecated Use the onClick option instead. */ onAreaClick?: any; - /** - * A handler for the areaSelectionChanged event. - * @deprecated Use the onSelectionChanged option instead. - */ + /** * A handler for the areaSelectionChanged event. * @deprecated Use the onSelectionChanged option instead. */ onAreaSelectionChanged?: (e: { target: Area; component: dxVectorMap; element: Element; }) => void; - /** - * A handler for the markerClick event. - * @deprecated Use the onClick option instead. - */ + /** * A handler for the markerClick event. * @deprecated Use the onClick option instead. */ onMarkerClick?: any; - /** - * A handler for the markerSelectionChanged event. - * @deprecated Use the onSelecitonChanged option instead. - */ + /** * A handler for the markerSelectionChanged event. * @deprecated Use the onSelecitonChanged option instead. */ onMarkerSelectionChanged?: (e: { target: Marker; component: dxVectorMap; @@ -7644,7 +7607,7 @@ declare module DevExpress.viz.map { add(name: string, projection: Object): void; } } -declare module DevExpress.viz{ +declare module DevExpress.viz { /** A vector map widget. */ export class dxVectorMap extends viz.core.BaseWidget implements viz.core.LoadingIndicatorMethods { constructor(element: JQuery, options?: DevExpress.viz.map.dxVectorMapOptions); @@ -7655,15 +7618,9 @@ declare module DevExpress.viz{ center(): Array; /** Sets the coordinates of the map center. */ center(centerCoordinates: Array): void; - /** - * Deselects all the selected areas on a map. The areas are displayed in their initial style after. - * @deprecated Use the layer's clearSelection() method instead. - */ + /** * Deselects all the selected areas on a map. The areas are displayed in their initial style after. * @deprecated Use the layer's clearSelection() method instead. */ clearAreaSelection(): void; - /** - * Deselects all the selected markers on a map. The markers are displayed in their initial style after. - * @deprecated Use the layer's clearSelection() method instead. - */ + /** * Deselects all the selected markers on a map. The markers are displayed in their initial style after. * @deprecated Use the layer's clearSelection() method instead. */ clearMarkerSelection(): void; /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ clearSelection(): void; @@ -7675,15 +7632,9 @@ declare module DevExpress.viz{ getLayerByIndex(index: number): DevExpress.viz.map.MapLayer; /** Gets the layer by its name. */ getLayerByName(name: string): DevExpress.viz.map.MapLayer; - /** - * Returns an array with all the map areas. - * @deprecated Use the layer's getElements() method instead. - */ + /** * Returns an array with all the map areas. * @deprecated Use the layer's getElements() method instead. */ getAreas(): Array; - /** - * Returns an array with all the map markers. - * @deprecated Use the layer's getElements() method instead. - */ + /** * Returns an array with all the map markers. * @deprecated Use the layer's getElements() method instead. */ getMarkers(): Array; /** Gets the current coordinates of the map viewport. */ viewport(): Array; @@ -7695,22 +7646,11 @@ declare module DevExpress.viz{ zoomFactor(zoomFactor: number): void; } } -interface JQuery { - dxVectorMap(options?: DevExpress.viz.map.dxVectorMapOptions): JQuery; - dxVectorMap(methodName: string, ...params: any[]): any; - dxVectorMap(methodName: "instance"): DevExpress.viz.dxVectorMap; -} declare module DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { - /** - * Specifies how a tooltip is horizontally aligned relative to the graph. - * @deprecated Tooltip alignment is no longer useful because the tooltips are aligned automatically. - */ + /** * Specifies how a tooltip is horizontally aligned relative to the graph. * @deprecated Tooltip alignment is no longer useful because the tooltips are aligned automatically. */ horizontalAlignment?: string; - /** - * Specifies how a tooltip is vertically aligned relative to the graph. - * @deprecated Tooltip alignment is no longer useful because the tooltips are aligned automatically. - */ + /** * Specifies how a tooltip is vertically aligned relative to the graph. * @deprecated Tooltip alignment is no longer useful because the tooltips are aligned automatically. */ verticalAlignment?: string; } export interface BaseSparklineOptions extends viz.core.BaseWidgetOptions, viz.core.MarginOptions { @@ -7807,16 +7747,10 @@ declare module DevExpress.viz { export class dxSparkline extends DevExpress.viz.sparklines.BaseSparkline { constructor(element: JQuery, options?: DevExpress.viz.sparklines.dxSparklineOptions); constructor(element: Element, options?: DevExpress.viz.sparklines.dxSparklineOptions); + /** Returns the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; } } -interface JQuery { - dxBullet(options?: DevExpress.viz.sparklines.dxBulletOptions): JQuery; - dxBullet(methodName: string, ...params: any[]): any; - dxBullet(methodName: "instance"): DevExpress.viz.dxBullet; - dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; - dxSparkline(methodName: string, ...params: any[]): any; - dxSparkline(methodName: "instance"): DevExpress.viz.dxSparkline; -} declare module DevExpress.viz.treeMap { export interface dxTreeMapOptions extends viz.core.BaseWidgetOptions, viz.core.RedrawOnResizeOptions, viz.core.TitleOptions, viz.core.LoadingIndicatorOptions, viz.core.ExportOptions { /** Specifies the origin of data for the widget. */ @@ -7837,6 +7771,8 @@ declare module DevExpress.viz.treeMap { layoutAlgorithm?: any; /** Specifies the direction in which the items will be laid out. */ layoutDirection?: string; + /** Decides whether those labels that overflow their tile/group should be hidden or truncated with ellipsis. */ + resolveLabelOverflow?: string; /** Configures tiles. */ tile?: { /** Configures the tile borders. */ @@ -8043,10 +7979,7 @@ declare module DevExpress.viz { resetDrillDown(): void; showLoadingIndicator(): void; hideLoadingIndicator(): void; + /** Returns the DataSource instance. */ + getDataSource(): DevExpress.data.DataSource; } } -interface JQuery { - dxTreeMap(options?: DevExpress.viz.treeMap.dxTreeMapOptions): JQuery; - dxTreeMap(methodName: string, ...params: any[]): any; - dxTreeMap(methodName: "instance"): DevExpress.viz.dxTreeMap; -} diff --git a/documentdb/documentdb-tests.ts b/documentdb/documentdb-tests.ts index 34d6b5236b..f4a06d3fb7 100644 --- a/documentdb/documentdb-tests.ts +++ b/documentdb/documentdb-tests.ts @@ -55,6 +55,31 @@ docDBClient.createStoredProcedure('collection', procedure, undefined, (error, re } }); +var userDefinedFunction: docDB.UserDefinedFunction = { + id: 'udf1', + body: function () { + console.log('foo'); + } +}; + +docDBClient.createUserDefinedFunction('collection', userDefinedFunction, undefined, (error, result) => { + if (error) { + throw new Error(error.body); + } + else { + console.log('Created function: ' + result.id); + } +}); + +docDBClient.queryUserDefinedFunctions('collection', "SELECT * FROM root", undefined).toArray((error, results) => { + if (error) { + throw new Error(error.body); + } + else { + console.log('Number of functions in collection: ' + results.length); + } +}); + var trigger: docDB.Trigger = { id: 'trigger-one', body: function () { diff --git a/documentdb/index.d.ts b/documentdb/index.d.ts index 406affe2c8..048825b492 100644 --- a/documentdb/index.d.ts +++ b/documentdb/index.d.ts @@ -154,6 +154,10 @@ interface ProcedureMeta extends AbstractMeta { body: string; } +/** Represents the meta data for a user-defined function. */ +interface UserDefinedFunctionMeta extends AbstractMeta { +} + /** Represents the meta data for a trigger. */ interface TriggerMeta extends AbstractMeta { body: string; @@ -181,6 +185,13 @@ export interface Procedure extends UniqueId { body(...params: any[]): void; } +/** Represents a DocumentDB user-defined function. */ +export interface UserDefinedFunction extends UniqueId { + + /** The function representing the user-defined function. */ + body(...params: any[]): void; +} + /** Represents a DocumentDB trigger. */ export interface Trigger extends UniqueId { /** The type of the trigger. Should be either 'pre' or 'post'. */ @@ -290,6 +301,19 @@ export declare class DocumentClient { */ public createStoredProcedure(collectionLink: string, procedure: Procedure, options: RequestOptions, callback: RequestCallback): void; + /** + * Create a UserDefinedFunction. + *

+ * DocumentDB supports JavaScript UDFs which can be used inside queries, stored procedures and triggers.
+ * For additional details, refer to the server-side JavaScript API documentation. + *

+ * @param collectionLink - The self-link of the collection. + * @param udf - Represents the body of the userDefinedFunction. + * @param [options] - The request options. + * @param callback - The callback for the request. + */ + public createUserDefinedFunction(collectionLink: string, udf: UserDefinedFunction, options: RequestOptions, callback: RequestCallback): void; + /** * Create a trigger. *

@@ -349,6 +373,15 @@ export declare class DocumentClient { */ public queryStoredProcedures(collectionLink: string, query: string | SqlQuerySpec): QueryIterator; + /** + * Query the user-defined functions for the collection. + * @param collectionLink - The self-link of the collection. + * @param query - A SQL query string. + * @param [options] - Represents the feed options. + * @returns - An instance of queryIterator to handle reading feed. + */ + public queryUserDefinedFunctions(collectionLink: string, query: string | SqlQuerySpec, options?: FeedOptions): QueryIterator; + /** * Query the documents for the collection. * @param collectionLink - The self-link of the collection. diff --git a/dot-object/dot-object-tests.ts b/dot-object/dot-object-tests.ts index 603a66c57e..a553c6c68d 100644 --- a/dot-object/dot-object-tests.ts +++ b/dot-object/dot-object-tests.ts @@ -16,10 +16,10 @@ var src = { } }; -var tgt = {name: 'Brandon'}; +var tgt = { name: 'Brandon' }; dot.copy('stuff.phone', 'wanna.haves.phone', src, tgt, [(arg: any) => { - return arg; + return arg; }]); dot.transfer('stuff.phone', 'wanna.haves.phone', src, tgt); @@ -37,17 +37,17 @@ var row = { }; dot.object(row, (arg: any) => { - return arg; + return arg; }); dot.str('this.is.my.string', 'value', tgt); var newObj = { - some: { - nested: { - value: 'Hi there!' - } - } + some: { + nested: { + value: 'Hi there!' + } + } }; var val = dot.pick('some.nested.value', newObj); @@ -62,4 +62,9 @@ val = dot.remove('some.nested.value', newObj); // or use the alias `del` val = dot.del('some.nested.value', newObj); -var dotWithArrow = new dot('=>'); \ No newline at end of file +// convert object to dot object +var result = {}; +dot.dot({ test: 'something' }, result); +result = dot.dot({ test: 'something' }); + +var dotWithArrow = new dot('=>'); diff --git a/dot-object/index.d.ts b/dot-object/index.d.ts index 953291c631..176e1c0daf 100644 --- a/dot-object/index.d.ts +++ b/dot-object/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Dot-Object v1.4.1 +// Type definitions for Dot-Object v1.4.2 // Project: https://github.com/rhalff/dot-object // Definitions by: Niko Kovačič // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,14 +6,14 @@ declare namespace DotObject { interface DotConstructor extends Dot { - new(separator: string): Dot; + new (separator: string): Dot; } interface ModifierFunctionWrapper { (arg: any): any; } - interface Dot { + interface Dot { /** * * Copy a property from one object to another object. @@ -34,11 +34,6 @@ declare namespace DotObject { * Convert object to dotted-key/value pair * * Usage: - * - * var tgt = dot.dot(obj) - * - * or - * * var tgt = {} * dot.dot(obj, tgt) * @@ -46,6 +41,18 @@ declare namespace DotObject { * @param {Object} tgt target object */ dot(obj: any, tgt: any): void + /** + * + * Convert object to dotted-key/value pair + * + * Usage: + * + * var tgt = dot.dot(obj) + * @param {Object} obj source object + * @return {Object} result + */ + dot(obj: any): any + /** * * Remove value from an object using dot notation. @@ -166,4 +173,4 @@ declare var dot: DotObject.DotConstructor; declare module 'dot-object' { export = dot; -} \ No newline at end of file +} diff --git a/ecmarkup/ecmarkup-tests.ts b/ecmarkup/ecmarkup-tests.ts deleted file mode 100644 index f6cb6a6fb6..0000000000 --- a/ecmarkup/ecmarkup-tests.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// - -import * as emu from "ecmarkup"; - -emu.build("string", (path: string) => Promise.resolve("string"), { - contributors: "string", - copyright: true, - date: new Date(), - location: "string", - oldToc: true, - toc: true, - shortname: "string", - stage: "string", - status: "proposal", - title: "string", - version: "string", - verbose: true -}).then((spec: emu.Spec) => { - const output = spec.toHTML(); - const biblio = spec.exportBiblio(); -}); \ No newline at end of file diff --git a/ecmarkup/index.d.ts b/ecmarkup/index.d.ts deleted file mode 100644 index 79a84c63a7..0000000000 --- a/ecmarkup/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Type definitions for emarkup v3.3.2 -// Project: http://github.com/bterlson/ecmarkup -// Definitions by: Ron Buckton -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export interface Spec { - spec: this; - location: string; - opts: Options; - rootPath: string; - rootDir: string; - namespace: string; - toHTML(): string; - exportBiblio(): any; -} - -export interface Options { - status?: "proposal" | "draft" | "standard"; - version?: string; - title?: string; - shortname?: string; - stage?: string | null; - copyright?: boolean; - date?: Date; - location?: string; - contributors?: string; - toc?: boolean; - oldToc?: boolean; - verbose?: boolean; -} - -export function build(path: string, fetch: (path: string) => PromiseLike, opts?: Options): PromiseLike; \ No newline at end of file diff --git a/elastic.js/elastic.js-tests.ts b/elastic.js/elastic.js-tests.ts index 927cb73d91..e7bd65ea16 100644 --- a/elastic.js/elastic.js-tests.ts +++ b/elastic.js/elastic.js-tests.ts @@ -1,3 +1,5 @@ +import * as elasticjs from 'elastic.js'; + let body = new elasticjs.Request({}) .query(new elasticjs.MatchQuery('title_field', 'testQuery')) .facet(new elasticjs.TermsFacet('tags').field('tags')) diff --git a/elastic.js/index.d.ts b/elastic.js/index.d.ts index 99a45f58fa..adb0db6950 100644 --- a/elastic.js/index.d.ts +++ b/elastic.js/index.d.ts @@ -3,6 +3,10 @@ // Definitions by: Oleksii Trekhleb // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export = elasticjs; + +export as namespace elasticjs; + declare module elasticjs { export interface Facet {} diff --git a/enzyme/index.d.ts b/enzyme/index.d.ts index 94b60fc199..5502b0eb85 100644 --- a/enzyme/index.d.ts +++ b/enzyme/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/airbnb/enzyme // Definitions by: Marian Palkus , Cap3 , Ivo Stratev , Tom Crockett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { ReactElement, Component, StatelessComponent, ComponentClass, HTMLAttributes as ReactHTMLAttributes, SVGAttributes as ReactSVGAttributes } from "react"; diff --git a/fixed-data-table/index.d.ts b/fixed-data-table/index.d.ts index cb5809bf5a..a131501348 100644 --- a/fixed-data-table/index.d.ts +++ b/fixed-data-table/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/facebook/fixed-data-table // Definitions by: Petar Paar , Stephen Jelfs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/flux/index.d.ts b/flux/index.d.ts index 4b9c261040..54fecd3a4e 100644 --- a/flux/index.d.ts +++ b/flux/index.d.ts @@ -2,6 +2,7 @@ // Project: http://facebook.github.io/flux/ // Definitions by: Steve Baker , Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// /// diff --git a/fluxxor/index.d.ts b/fluxxor/index.d.ts index 4c8f773b1d..64c917cdf5 100644 --- a/fluxxor/index.d.ts +++ b/fluxxor/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/BinaryMuse/fluxxor // Definitions by: Yuichi Murata // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// /// diff --git a/forever-monitor/forever-monitor-tests.ts b/forever-monitor/forever-monitor-tests.ts new file mode 100644 index 0000000000..e44a9c35b0 --- /dev/null +++ b/forever-monitor/forever-monitor-tests.ts @@ -0,0 +1,23 @@ +// Test from https://github.com/foreverjs/forever-monitor + +import * as forever from "forever-monitor"; +forever.start('script') + .on("start", () => console.log("started")); + +forever.kill(10, true); + +const child = new (forever.Monitor)('your-filename.js', { + max: 3, + silent: true, + args: [] +}); + +child.on('exit', function() { + console.log('your-filename.js has exited after 3 restarts'); +}); + +child.start() + .on("start", () => console.log("started")) + .restart() + .stop() + .on("exit", () => console.log("STOPPED")) diff --git a/forever-monitor/index.d.ts b/forever-monitor/index.d.ts new file mode 100644 index 0000000000..22fa4b0c61 --- /dev/null +++ b/forever-monitor/index.d.ts @@ -0,0 +1,93 @@ +// Type definitions for forever-monitor 1.7 +// Project: https://github.com/nodejitsu/forever-monitor#readme +// Definitions by: Shun Takahashi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + +export interface SpawnWith { + customFds: number[]; + setsid: boolean; + uid: number; + gid: number; +} + +export interface Options { + silent?: boolean; + uid?: string; + pidFile?: string; + max?: number; + killTree?: boolean; + minUptime?: number; + spinSleepTime?: number; + command?: string; + args?: string[]; + sourceDir?: string; + watch?: boolean; + watchIgnoreDotFiles?: boolean; + watchIgnorePatters?: string[]; + watchDirectory?: string; + spawnWith?: SpawnWith; + env?: { [envKey: string]: string; }; + cwd?: string; + logFile?: string; + outFile?: string; + errFile?: string; + parser?: (command: string, args: string[]) => { command: string, args: string[] }; +} + +export function start(script: string, options?: Options): Monitor; +export function kill(pid: number, killTree?: boolean, signal?: string, callback?: () => any): void; +export function checkProcess(pid: number): boolean; +export const version: string; + +export class Monitor extends NodeJS.EventEmitter { + + /** + * @param script - Location of the target script to run. + * @param [options] - Configuration for this instance. + */ + constructor(script: string, options?: Options); + + /** + * @description Start the process that this instance is configured for + * @param [restart] - Value indicating whether this is a restart. + */ + start(restart?: boolean): this; + + /** + * @description Tries to spawn the target Forever child process. + */ + trySpawn(): boolean; + + /** + * @description Restarts the target script associated with this instance. + */ + restart(): this; + + /** + * @description Stops the target script associated with this instance. Prevents it from auto-respawning + */ + stop(): this; + + /** + * @description Kills the ChildProcess object associated with this instance + * @param [forceStop] - Value indicating whether short circuit forever auto-restart + */ + kill(forceStop?: boolean): this; + + /** + * @description Sends a message to a forked ChildProcess object associated with this instance + */ + send(msg?: any): this; + + /** + * respond with JSON for this instance + */ + toString(): string; + + /** + * @param command - Command string to parse + * @param args - Additional default arguments + */ + parseCommand(command: string, args?: string[]): (false | { command: string, args?: string[]}); +} diff --git a/forever-monitor/tsconfig.json b/forever-monitor/tsconfig.json new file mode 100644 index 0000000000..8c6d4986b5 --- /dev/null +++ b/forever-monitor/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "forever-monitor-tests.ts" + ] +} diff --git a/forever-monitor/tslint.json b/forever-monitor/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/forever-monitor/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/gaea-model/index.d.ts b/gaea-model/index.d.ts index 769a1658d0..ec2ebe9976 100644 --- a/gaea-model/index.d.ts +++ b/gaea-model/index.d.ts @@ -2,6 +2,8 @@ // Project: https://github.com/ascoders/gaea-model // Definitions by: ascoders // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + import * as React from 'react'; export as namespace GaeaModel; diff --git a/globule/globule-tests.ts b/globule/globule-tests.ts new file mode 100644 index 0000000000..d0e1eb3ccb --- /dev/null +++ b/globule/globule-tests.ts @@ -0,0 +1,28 @@ +import * as globule from 'globule'; + +let filepaths: string[]; + +filepaths = globule.find('**/*.js'); +filepaths = globule.find(['**/*.js']); +filepaths = globule.find('**/*.js', '**/*.less'); +filepaths = globule.find('*.js', { matchBase: true }); +filepaths = globule.find('**/*.js', '**/*.less', { filter: 'isFile' }); +filepaths = globule.find('**/*.js', '**/*.less', { filter: /jQuery/i.test }); +filepaths = globule.find({ src: '**/*.js' }); + +filepaths = globule.match('*.js', '/home/code'); +filepaths = globule.match('*.js', '/home/code', { matchBase: true }); + +let bResult: boolean; +bResult = globule.isMatch('*.js', '/home/code'); +bResult = globule.isMatch('*.js', '/home/code', { matchBase: true }); + +let mappings = globule.mapping(['*.js']); +let len = mappings.length; +let src = mappings[0].src; +let dest = mappings[0].dest; + +mappings = globule.mapping(['*.js'], { srcBase: '/home/code' }); +mappings = globule.mapping(['*.js', '*.less']); +mappings = globule.mapping(['*.js'], ['*.less']); + diff --git a/globule/index.d.ts b/globule/index.d.ts new file mode 100644 index 0000000000..595a4d2aec --- /dev/null +++ b/globule/index.d.ts @@ -0,0 +1,87 @@ +// Type definitions for globule 1.1 +// Project: https://github.com/cowboy/node-globule +// Definitions by: Dusan Radovanovic +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import minimatch = require('minimatch'); +import glob = require('glob'); + +interface FindOptions extends glob.IOptions { + src?: string; + filter?: string | ((filepath?: string, options?: any) => boolean); + nonull?: boolean; + matchBase?: boolean; + srcBase?: string; + prefixBase?: boolean; +} + +interface MappingOptions extends FindOptions { + srcBase?: string; + destBase?: string; + ext?: string; + extDot?: 'first' | 'last'; + flatten?: boolean; + rename?: (p: string) => string; +} + +interface OneMapping { + src: string[]; + dest: string; +} + +interface GlobuleStatic { + /** + * Match one or more globbing patterns against one or more file paths. + * Returns a uniqued array of all file paths that match any of the specified globbing patterns. + */ + match(patterns: string | string[], filepaths: string | string[], options?: minimatch.IOptions): string[]; + + /** + * Tests pattern(s) against against one or more file paths and returns true if any files were matched, otherwise false. + */ + isMatch(patterns: string | string[], filepaths: string | string[], options?: minimatch.IOptions): boolean; + + /** + * Returns a unique array of all file or directory paths that match the given globbing pattern(s) + */ + find(pattern: string | string[], options?: FindOptions): string[]; + + /** + * Returns a unique array of all file or directory paths that match the given globbing pattern(s) + */ + find(options: FindOptions): string[]; + + /** + * Returns a unique array of all file or directory paths that match the given globbing pattern(s) + */ + find(pattern: string | string[], pattern2: string | string[], options?: FindOptions): string[]; + + /** + * Returns a unique array of all file or directory paths that match the given globbing pattern(s) + */ + find(pattern: string, pattern2: string, pattern3: string | string[], options?: FindOptions): string[]; + + /** + * Given a set of source file paths, returns an array of src-dest file mapping objects + */ + mapping(filepaths: string[], options?: MappingOptions): OneMapping[]; + + /** + * Given a set of source file paths, returns an array of src-dest file mapping objects + */ + mapping(options: MappingOptions): OneMapping[]; + + /** + * Given a set of source file paths, returns an array of src-dest file mapping objects + */ + mapping(filepaths: string[], filepaths2: string[], options?: MappingOptions): OneMapping[]; + + /** + * Given a set of source file paths, returns an array of src-dest file mapping objects + */ + mapping(filepaths: string[], filepaths2: string[], filepaths3: string[], options?: MappingOptions): OneMapping[]; +} + +declare var globule: GlobuleStatic; +export = globule; + diff --git a/globule/tsconfig.json b/globule/tsconfig.json new file mode 100644 index 0000000000..ec155b8b0f --- /dev/null +++ b/globule/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "globule-tests.ts" + ] +} \ No newline at end of file diff --git a/globule/tslint.json b/globule/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/globule/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/googlemaps/index.d.ts b/googlemaps/index.d.ts index df0d9ceb5d..f94b29525c 100644 --- a/googlemaps/index.d.ts +++ b/googlemaps/index.d.ts @@ -784,7 +784,7 @@ declare namespace google.maps { open(map?: Map|StreetViewPanorama, anchor?: MVCObject): void; setContent(content: string|Node): void; setOptions(options: InfoWindowOptions): void; - setPosition(position: LatLng): void; + setPosition(position: LatLng|LatLngLiteral): void; setZIndex(zIndex: number): void; } diff --git a/halogen/index.d.ts b/halogen/index.d.ts index 72d57ace51..5735737f41 100644 --- a/halogen/index.d.ts +++ b/halogen/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/yuanyan/halogen // Definitions by: Vincent Rouffiat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import * as react from "react"; diff --git a/hapi/index.d.ts b/hapi/index.d.ts index b98e1cdf25..9d8f8f0120 100644 --- a/hapi/index.d.ts +++ b/hapi/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for hapi 13.0.0 +// Type definitions for hapi 16.0.0 // Project: http://github.com/spumko/hapi // Definitions by: Jason Swearingen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -1206,7 +1206,7 @@ export class Request extends Events.EventEmitter { /** the raw request headers (references request.raw.headers).*/ headers: IDictionary; /** a unique request identifier (using the format '{now}:{connection.info.id}:{5 digits counter}').*/ - id: number; + id: string; /** request information */ info: { /** the request preferred encoding. */ diff --git a/html-to-text/index.d.ts b/html-to-text/index.d.ts index ce02e4bfe5..406908a6ce 100644 --- a/html-to-text/index.d.ts +++ b/html-to-text/index.d.ts @@ -39,7 +39,7 @@ interface HtmlToTextOptions { * Defines after how many chars a line break should follow in p elements. * Set to null or false to disable word-wrapping. Default: 80 */ - wordwrap?: number; + wordwrap?: number | false | null; /** * Allows to select certain tables by the class or id attribute from the HTML diff --git a/http-errors/http-errors-tests.ts b/http-errors/http-errors-tests.ts index af06b3ebc6..e8c12126b4 100644 --- a/http-errors/http-errors-tests.ts +++ b/http-errors/http-errors-tests.ts @@ -26,6 +26,7 @@ console.log(err.message); console.log(err.status); console.log(err.statusCode); console.log(err.expose); +console.log(err.headers); // createError(status, msg) var err = createError(404, 'LOL'); diff --git a/http-errors/index.d.ts b/http-errors/index.d.ts index e70d1d973c..176703f23f 100644 --- a/http-errors/index.d.ts +++ b/http-errors/index.d.ts @@ -11,6 +11,9 @@ declare module 'http-errors' { status: number; statusCode: number; expose: boolean; + headers?: { + [key: string]: string + }; } type HttpErrorConstructor = new(msg?: string) => HttpError; diff --git a/i18next/index.d.ts b/i18next/index.d.ts index b0cb04b267..958bff12a6 100644 --- a/i18next/index.d.ts +++ b/i18next/index.d.ts @@ -63,8 +63,8 @@ declare namespace i18n { lowerCaseLng?: boolean; load?: string preload?: string[]; - keySeparator?: string; - nsSeparator?: string; + keySeparator?: string | false; + nsSeparator?: string | false; pluralSeparator?: string; contextSeparator?: string; saveMissing?: boolean; diff --git a/isomorphic-fetch/index.d.ts b/isomorphic-fetch/index.d.ts index 41b63970b3..452e95e871 100644 --- a/isomorphic-fetch/index.d.ts +++ b/isomorphic-fetch/index.d.ts @@ -1,12 +1,12 @@ -// Type definitions for isomorphic-fetch +// Type definitions for isomorphic-fetch 0.0 // Project: https://github.com/matthew-andrews/isomorphic-fetch // Definitions by: Todd Lucas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -type RequestType = "" | "audio" | "font" | "image" | "script" | "style" | +type RequestType = "" | "audio" | "font" | "image" | "script" | "style" | "track" | "video"; -type RequestDestination = "" | "document" | "embed" | "font" | "image" | - "manifest" | "media" | "object" | "report" | "script" | "serviceworker" | +type RequestDestination = "" | "document" | "embed" | "font" | "image" | + "manifest" | "media" | "object" | "report" | "script" | "serviceworker" | "sharedworker" | "style" | "worker" | "xslt"; type RequestMode = "navigate" | "same-origin" | "no-cors" | "cors"; type RequestCredentials = "omit" | "same-origin" | "include"; @@ -15,44 +15,44 @@ type RequestCache = "only-if-cached"; type RequestRedirect = "follow" | "error" | "manual"; -type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | +type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect"; -type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | - "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | +type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | + "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; -interface IHeaders { +interface HeadersInterface { append(name: string, value: string): void; delete(name: string): void; - get(name: string): string; - getAll(name: string): Array; + get(name: string): string | null; + getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; // TODO: iterable; - forEach(callback: (value: string, index: number, headers: IHeaders) => void, thisArg?: any): void; + forEach(callback: (value: string, index: number, headers: HeadersInterface) => void, thisArg?: any): void; // NOTE: The following are supported by whatwg-fetch but not node-fetch. // entries(): IterableIterator<[string, string]>; // keys(): IterableIterator; - // values(): IterableIterator; + // values(): IterableIterator; } -type HeadersInit = Headers | Array | { [index: string]: string }; +type HeadersInit = Headers | string[] | { [index: string]: string }; -declare class Headers implements IHeaders { +declare class Headers implements HeadersInterface { constructor(init?: HeadersInit); append(name: string, value: string): void; delete(name: string): void; - get(name: string): string; - getAll(name: string): Array; + get(name: string): string | null; + getAll(name: string): string[]; has(name: string): boolean; set(name: string, value: string): void; - forEach(callback: (value: string, index: number, headers: IHeaders) => void, thisArg?: any): void; + forEach(callback: (value: string, index: number, headers: HeadersInterface) => void, thisArg?: any): void; } -interface IBody { +interface BodyInterface { bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; @@ -62,7 +62,7 @@ interface IBody { text(): Promise; } -declare class Body implements IBody { +declare class Body implements BodyInterface { bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; @@ -72,22 +72,22 @@ declare class Body implements IBody { text(): Promise; } -interface IRequest extends IBody { +interface RequestInterface extends BodyInterface { method: string; url: string; - headers: IHeaders; + headers: HeadersInterface; type: RequestType; destination: RequestDestination; referrer?: string; - referrerPolicy?: ReferrerPolicy; + referrerPolicy?: ReferrerPolicy; mode: RequestMode; credentials: RequestCredentials; cache: RequestCache; redirect?: RequestRedirect; integrity?: string; - - clone(): IRequest; + + clone(): RequestInterface; } type BodyInit = Blob | ArrayBufferView | ArrayBuffer | FormData /* | URLSearchParams */ | string; @@ -97,7 +97,7 @@ interface RequestInit { headers?: HeadersInit; body?: BodyInit; referrer?: string; - referrerPolicy?: ReferrerPolicy; + referrerPolicy?: ReferrerPolicy; mode?: RequestMode; credentials?: RequestCredentials; cache?: RequestCache; @@ -106,29 +106,29 @@ interface RequestInit { window?: any; // can only be set to null } -type RequestInfo = IRequest | string; +type RequestInfo = RequestInterface | string; -declare class Request extends Body implements IRequest { +declare class Request extends Body implements RequestInterface { constructor(input: RequestInfo, init?: RequestInit); - + method: string; url: string; - headers: IHeaders; + headers: HeadersInterface; - type: RequestType + type: RequestType; destination: RequestDestination; referrer: string; - referrerPolicy: ReferrerPolicy; + referrerPolicy: ReferrerPolicy; mode: RequestMode; credentials: RequestCredentials; cache: RequestCache; redirect: RequestRedirect; integrity: string; - clone(): IRequest; + clone(): RequestInterface; } -interface IResponse extends IBody { +interface ResponseInterface extends BodyInterface { type: ResponseType; url: string; @@ -136,13 +136,13 @@ interface IResponse extends IBody { status: number; statusText: string; ok: boolean; - headers: IHeaders; + headers: HeadersInterface; // size: number; // timeout: number; body: any; - trailer: Promise; + trailer: Promise; - clone(): IResponse; + clone(): ResponseInterface; } type ResponseBodyInit = BodyInit; @@ -153,28 +153,28 @@ interface ResponseInit { headers?: HeadersInit; } -declare class Response extends Body implements IResponse { +declare class Response extends Body implements ResponseInterface { constructor(body?: ResponseBodyInit, init?: ResponseInit); - static redirect(url: string, status?: number): IResponse; - static error(): IResponse; + static redirect(url: string, status?: number): ResponseInterface; + static error(): ResponseInterface; - type: ResponseType + type: ResponseType; url: string; redirected: boolean; status: number; statusText: string; ok: boolean; - headers: IHeaders; + headers: HeadersInterface; body: any; - trailer: Promise; + trailer: Promise; - clone(): IResponse; + clone(): ResponseInterface; } interface Window { - fetch(url: RequestInfo, init?: RequestInit): Promise; + fetch(url: RequestInfo, init?: RequestInit): Promise; } declare var fetch: typeof window.fetch; diff --git a/isomorphic-fetch/isomorphic-fetch-tests.ts b/isomorphic-fetch/isomorphic-fetch-tests.ts index 2457a9b39b..78f0da930a 100644 --- a/isomorphic-fetch/isomorphic-fetch-tests.ts +++ b/isomorphic-fetch/isomorphic-fetch-tests.ts @@ -4,9 +4,9 @@ import * as fetchImportedViaES6Module from 'isomorphic-fetch'; function test_isomorphicFetchTestCases_ambient() { expectSuccess(fetch('http://localhost:3000/good'), 'Good response'); - + fetch('http://localhost:3000/bad') - .then((response: IResponse) => { + .then((response: ResponseInterface) => { return response.text(); }) .catch((err) => { @@ -15,9 +15,9 @@ function test_isomorphicFetchTestCases_ambient() { function test_isomorphicFetchTestCases_commonjs() { expectSuccess(fetchImportedViaCommonJS('http://localhost:3000/good'), 'Good response'); - + fetchImportedViaCommonJS('http://localhost:3000/bad') - .then((response: IResponse) => { + .then((response: ResponseInterface) => { return response.text(); }) .catch((err) => { @@ -26,9 +26,9 @@ function test_isomorphicFetchTestCases_commonjs() { function test_isomorphicFetchTestCases_es6() { expectSuccess(fetchImportedViaES6Module('http://localhost:3000/good'), 'Good response'); - + fetchImportedViaES6Module('http://localhost:3000/bad') - .then((response: IResponse) => { + .then((response: ResponseInterface) => { return response.text(); }) .catch((err) => { @@ -48,16 +48,16 @@ function test_whatwgTestCases_ambient() { }; expectSuccess(fetch('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { 'Content-Type': 'application/json' } }; - + expectSuccess(fetch('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { @@ -68,7 +68,7 @@ function test_whatwgTestCases_ambient() { expectSuccess(fetch(request), 'Post response:'); } - + function test_whatwgTestCases_commonjs() { var headers = new Headers(); headers.append("Content-Type", "application/json"); @@ -81,16 +81,16 @@ function test_whatwgTestCases_commonjs() { }; expectSuccess(fetchImportedViaCommonJS('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { 'Content-Type': 'application/json' } }; - + expectSuccess(fetchImportedViaCommonJS('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { @@ -114,16 +114,16 @@ function test_whatwgTestCases_es6() { }; expectSuccess(fetchImportedViaES6Module('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { 'Content-Type': 'application/json' } }; - + expectSuccess(fetchImportedViaES6Module('http://localhost:3000/poster', requestOptions), 'Post response:'); - + var requestOptions: RequestInit = { method: "POST", headers: { @@ -134,9 +134,9 @@ function test_whatwgTestCases_es6() { expectSuccess(fetchImportedViaES6Module(request), 'Post response:'); } - -function expectSuccess(promise: Promise, responseText: string) { - promise.then((response: IResponse) => { + +function expectSuccess(promise: Promise, responseText: string) { + promise.then((response: ResponseInterface) => { return response.text(); }) .then((text: string) => { diff --git a/jasminewd2/index.d.ts b/jasminewd2/index.d.ts new file mode 100644 index 0000000000..cff5236b50 --- /dev/null +++ b/jasminewd2/index.d.ts @@ -0,0 +1,73 @@ +// Type definitions for jasminewd2 2.0 +// Project: https://github.com/angular/jasminewd +// Definitions by: Sammy Jelin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare function it(expectation: string, assertion?: () => Promise, timeout?: number): void; +declare function fit(expectation: string, assertion?: () => Promise, timeout?: number): void; +declare function xit(expectation: string, assertion?: () => Promise, timeout?: number): void; +declare function beforeEach(action: () => Promise, timeout?: number): void; +declare function afterEach(action: () => Promise, timeout?: number): void; +declare function beforeAll(action: () => Promise, timeout?: number): void; +declare function afterAll(action: () => Promise, timeout?: number): void; + +declare namespace jasmine { + // The global `Promise` type is too strict and kinda wrong + interface Promise { + then(onFulfill?: (value: T) => U | Promise, onReject?: (error: any) => U | Promise): Promise; + } + + interface Matchers { + toBe(expected: any, expectationFailOutput?: any): Promise; + toEqual(expected: any, expectationFailOutput?: any): Promise; + toMatch(expected: string | RegExp | Promise, expectationFailOutput?: any): Promise; + toBeDefined(expectationFailOutput?: any): Promise; + toBeUndefined(expectationFailOutput?: any): Promise; + toBeNull(expectationFailOutput?: any): Promise; + toBeNaN(): Promise; + toBeTruthy(expectationFailOutput?: any): Promise; + toBeFalsy(expectationFailOutput?: any): Promise; + toHaveBeenCalled(): Promise; + toHaveBeenCalledWith(...params: any[]): Promise; + toHaveBeenCalledTimes(expected: number | Promise): Promise; + toContain(expected: any, expectationFailOutput?: any): Promise; + toBeLessThan(expected: number | Promise, expectationFailOutput?: any): Promise; + toBeLessThanOrEqual(expected: number | Promise, expectationFailOutput?: any): Promise; + toBeGreaterThan(expected: number | Promise, expectationFailOutput?: any): Promise; + toBeGreaterThanOrEqual(expected: number | Promise, expectationFailOutput?: any): Promise; + toBeCloseTo(expected: number | Promise, precision?: any, expectationFailOutput?: any): Promise; + toThrow(expected?: any): Promise; + toThrowError(message?: string | RegExp | Promise): Promise; + toThrowError(expected?: new (...args: any[]) => Error | Promise Error>, message?: string | RegExp | Promise): Promise; + } + + function addMatchers(matchers: AsyncCustomMatcherFactories): void; + + interface Env { + addMatchers(matchers: AsyncCustomMatcherFactories): void; + } + + interface Spec { + addMatchers(matchers: AsyncCustomMatcherFactories): void; + } + + interface AsyncCustomMatcherFactories { + [index: string]: AsyncCustomMatcherFactory; + } + + interface AsyncCustomMatcherFactory { + (util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]): AsyncCustomMatcher; + } + + interface AsyncCustomMatcher { + compare(actual: T, expected: T): AsyncCustomMatcherResult; + compare(actual: any, expected: any): AsyncCustomMatcherResult; + } + + interface AsyncCustomMatcherResult { + pass: boolean | Promise; + message?: string; + } +} diff --git a/jasminewd2/jasminewd2-tests.ts b/jasminewd2/jasminewd2-tests.ts new file mode 100644 index 0000000000..c6612ae422 --- /dev/null +++ b/jasminewd2/jasminewd2-tests.ts @@ -0,0 +1,123 @@ +let promise = new Promise((resolve, reject) => { + resolve(); +}); + +describe('jasminewd', () => { + describe('global it, fit, xit, before and after', () => { + it('should be able to return promises', () => { + return promise; + }); + + fit('should be able to return promises', () => { + return promise; + }); + + xit('should be able to return promises', () => { + return promise; + }); + + beforeEach(() => { + return promise; + }); + + afterEach(() => { + return promise; + }); + + beforeAll(() => { + return promise; + }); + + afterAll(() => { + return promise; + }); + }); + + describe('matchers', () => { + it('should work', () => { + let expectedAny: any; + let expectationFailOutputAny: any; + let expectedString: string; + let expectedNumber: number; + let expectedRegExp: RegExp; + let expectedPromiseString: Promise; + let expectedPromiseNumber: Promise; + let expectedPromiseRegExp: Promise; + let paramsAny: any[]; + let error: Error; + let errorPromise: Promise; + + expect(expectedAny).toBe(expectationFailOutputAny); + expect(expectedAny).toEqual(expectationFailOutputAny); + expect(expectedString).toMatch(expectationFailOutputAny); + expect(expectedRegExp).toMatch(expectationFailOutputAny); + expect(expectedPromiseString).toMatch(expectationFailOutputAny); + expect(expectedPromiseRegExp).toMatch(expectationFailOutputAny); + expect(expectationFailOutputAny).toBeDefined(); + expect(expectationFailOutputAny).toBeUndefined(); + expect(expectationFailOutputAny).toBeNull(); + expect(expectedAny).toBeNaN(); + expect(expectedAny).toBeTruthy(); + expect(expectedAny).toBeFalsy(); + expect(expectedAny).toHaveBeenCalled(); + expect(expectedAny).toHaveBeenCalledWith(paramsAny); + expect(expectedAny).toHaveBeenCalledTimes(expectedNumber); + expect(expectedAny).toHaveBeenCalledTimes(expectedPromiseNumber); + expect(expectedAny).toContain(expectationFailOutputAny); + expect(expectedNumber).toBeLessThan(expectedNumber); + expect(expectedNumber).toBeLessThan(expectedPromiseNumber); + expect(expectedNumber).toBeLessThanOrEqual(expectedNumber); + expect(expectedNumber).toBeLessThanOrEqual(expectedPromiseNumber); + expect(expectedNumber).toBeGreaterThan(expectedNumber); + expect(expectedNumber).toBeGreaterThan(expectedPromiseNumber); + expect(expectedNumber).toBeGreaterThanOrEqual(expectedNumber); + expect(expectedNumber).toBeGreaterThanOrEqual(expectedPromiseNumber); + expect(expectedNumber).toBeCloseTo(expectedNumber, expectedNumber); + expect(expectedPromiseNumber).toBeCloseTo(expectationFailOutputAny, expectedNumber); + expect(expectedAny).toThrow(expectationFailOutputAny); + expect(expectedAny).toThrowError(expectedString); + expect(expectedAny).toThrowError(expectedRegExp); + expect(expectedAny).toThrowError(expectedPromiseString); + expect(expectedAny).toThrowError(expectedPromiseRegExp); + expect(error).toThrowError(expectedString); + expect(error).toThrowError(expectedRegExp); + expect(error).toThrowError(expectedPromiseString); + expect(error).toThrowError(expectedPromiseRegExp); + expect(error).toThrowError(expectedString); + expect(errorPromise).toThrowError(expectedString); + expect(errorPromise).toThrowError(expectedRegExp); + expect(errorPromise).toThrowError(expectedPromiseString); + expect(errorPromise).toThrowError(expectedPromiseRegExp); + expect(errorPromise).toThrowError(expectedString); + }); + }); + + describe('jasmine matchers', () => { + it('should be able to add matchers', () => { + let matchers = { + toBeLotsMoreThan: function() { + return { + compare: function(actual: number, expected: number) { + return { + pass: actual > expected + 100 + }; + } + }; + }, + // Example custom matcher returning a promise that resolves to true/false. + toBeDisplayed: function() { + return { + compare: function(actual: any, expected: void) { + return { + pass: (actual.isDisplayed() as Promise) + }; + } + }; + } + }; + jasmine.addMatchers(matchers); + jasmine.getEnv().addMatchers(matchers); + jasmine.getEnv().currentSpec.addMatchers(matchers); + }); + }); +}); diff --git a/jasminewd2/tsconfig.json b/jasminewd2/tsconfig.json new file mode 100644 index 0000000000..81aa80fe8e --- /dev/null +++ b/jasminewd2/tsconfig.json @@ -0,0 +1,20 @@ +{ + "files": [ + "index.d.ts", + "jasminewd2-tests.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ "es6" ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} diff --git a/jasminewd2/tslint.json b/jasminewd2/tslint.json new file mode 100644 index 0000000000..9ca86427bd --- /dev/null +++ b/jasminewd2/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "../tslint.json", + "rules": { + "callable-types": false + } +} diff --git a/jquery.pnotify/index.d.ts b/jquery.pnotify/index.d.ts index 668590e4d6..1d222efb26 100644 --- a/jquery.pnotify/index.d.ts +++ b/jquery.pnotify/index.d.ts @@ -1,12 +1,12 @@ // Type definitions for jquery.pnotify 3.x // Project: https://github.com/sciactive/pnotify -// Definitions by: David Sichau +// Definitions by: David Sichau , Robin Maenhaut // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// type NoticeTypeOptions = "notice" | "info" | "success" | "error"; -type StylingOptions = "brighttheme" | "jqueryui" | "bootstrap2" | "bootstrap3" | "fontawesome"; +type StylingOptions = "brighttheme" | "jqueryui" | "bootstrap2" | "bootstrap3" | "fontawesome" | PNotifyStyling; type StateOptions = "initializing" | "opening" | "open" | "closing" | "closed"; interface PNotifyStack { @@ -134,7 +134,7 @@ interface PNotifyOptions { */ text_escape?: boolean; /** - * What styling classes to use. (Can be either "brighttheme", "jqueryui", "bootstrap2", "bootstrap3", or "fontawesome".) + * What styling classes to use. (Can be either "brighttheme", "jqueryui", "bootstrap2", "bootstrap3", "fontawesome" or a custom style object) */ styling?: StylingOptions; /** @@ -257,6 +257,36 @@ interface PNotifyOptions { labels?: PNotifyLabel; } +interface PNotifyStyling { + container?: string, + notice?: string, + notice_icon?: string, + info?: string, + info_icon?: string, + success?: string, + success_icon?: string, + error?: string, + error_icon?: string, + // buttons + closer?: string, + pin_down?: string, + pin_up?: string, + // confirm + btn?: string, + btnhover?: string, + btnactive?: string, + btnfocus?: string, + input?: string, + text?: string, + // history + hi_menu?: string, + hi_btn?: string, + hi_btnhov?: string, + hi_hnd?: string, + // reference + athing?: string +} + interface PNotify { /** diff --git a/jquery.pnotify/jquery.pnotify-tests.ts b/jquery.pnotify/jquery.pnotify-tests.ts index c9465e0444..41cd7d3fda 100644 --- a/jquery.pnotify/jquery.pnotify-tests.ts +++ b/jquery.pnotify/jquery.pnotify-tests.ts @@ -243,5 +243,24 @@ function test_pnotify() { animation: 'show' }); + new PNotify({ + title: 'Custom styling', + text: 'Test all custom styling properties', + styling: { + container: "alert", + notice: "alert-warning", + notice_icon: "fa fa-exclamation-circle", + info: "alert-info", + info_icon: "fa fa-info", + success: "alert-success", + success_icon: "fa fa-check", + error: "alert-danger", + error_icon: "fa fa-warning", + closer: "fa fa-times", + pin_up: "fa fa-pause", + pin_down: "fa fa-play" + } + }); + PNotify.removeAll(); } diff --git a/jsnox/index.d.ts b/jsnox/index.d.ts index f49cef58c4..9587afc8f1 100644 --- a/jsnox/index.d.ts +++ b/jsnox/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/af/jsnox // Definitions by: Steve Baker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/jump.js/index.d.ts b/jump.js/index.d.ts new file mode 100644 index 0000000000..fdef97c712 --- /dev/null +++ b/jump.js/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for jump.js 1.0 +// Project: https://github.com/callmecavs/jump.js +// Definitions by: rhysd +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare type TransitionFunc = (t: number, b: number, c: number, d: number) => number; +declare interface JumpOptions { + duration?: number; + offset?: number; + callback?: () => void; + easing?: TransitionFunc; + a11y?: boolean; +} +declare type Jump = (target: string | Element | number, opts?: JumpOptions) => void; +declare const jump: Jump; +export = jump; diff --git a/jump.js/jump.js-tests.ts b/jump.js/jump.js-tests.ts new file mode 100644 index 0000000000..4ae48074b2 --- /dev/null +++ b/jump.js/jump.js-tests.ts @@ -0,0 +1,16 @@ +import jump = require('jump.js'); + +const node = document.querySelector('.target'); +jump(node); +jump('.target'); +jump('.target', { + duration: 1000, +}); +jump('.target', { + duration: 200, + offset: 10 +}); +jump(100); +jump(-100, { + callback: () => { console.log('Done!') } +}); diff --git a/jump.js/tsconfig.json b/jump.js/tsconfig.json new file mode 100644 index 0000000000..0c6ab6d7c8 --- /dev/null +++ b/jump.js/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "jump.js-tests.ts" + ] +} diff --git a/jump.js/tslint.json b/jump.js/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/jump.js/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/kendo-ui/index.d.ts b/kendo-ui/index.d.ts index 5d6e4ec0a8..ecdbffae66 100644 --- a/kendo-ui/index.d.ts +++ b/kendo-ui/index.d.ts @@ -18307,7 +18307,7 @@ declare namespace kendo.ooxml { cells?: WorkbookSheetRowCell[]; index?: number; height?: number; - type?: "header" | "footer" | "groupHeader" | "groupFooter" | "data"; + type?: "header" | "footer" | "group-header" | "group-footer" | "data"; } interface WorkbookSheet { diff --git a/keycloak-js/index.d.ts b/keycloak-js/index.d.ts index 2cd417da6b..540084d6fd 100644 --- a/keycloak-js/index.d.ts +++ b/keycloak-js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for keycloak-js 2.4 +// Type definitions for keycloak-js 2.5 // Project: https://github.com/keycloak/keycloak // Definitions by: Brett Epps // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/keycloak-js/keycloak-authz.d.ts b/keycloak-js/keycloak-authz.d.ts new file mode 100644 index 0000000000..4db057ad97 --- /dev/null +++ b/keycloak-js/keycloak-authz.d.ts @@ -0,0 +1,39 @@ +import * as Keycloak from 'keycloak-js'; + +export as namespace KeycloakAuthorization; + +export = KeycloakAuthorization; + +/** + * Creates a new Keycloak client instance. + * @param config Path to a JSON config file or a plain config object. + */ +declare function KeycloakAuthorization(keycloak: Keycloak.KeycloakInstance): KeycloakAuthorization.KeycloakAuthorizationInstance; + +declare namespace KeycloakAuthorization { + export interface KeycloakAuthorizationPromise { + then(onGrant: (rpt: string) => void, onDeny: () => void, onError: () => void): void; + } + + export interface KeycloakAuthorizationInstance { + rpt: any; + config: { rpt_endpoint: string }; + + init(): void; + + /** + * This method enables client applications to better integrate with resource servers protected by a Keycloak + * policy enforcer. + * + * In this case, the resource server will respond with a 401 status code and a WWW-Authenticate header holding the + * necessary information to ask a Keycloak server for authorization data using both UMA and Entitlement protocol, + * depending on how the policy enforcer at the resource server was configured. + */ + authorize(wwwAuthenticateHeader: string): KeycloakAuthorizationPromise; + + /** + * Obtains all entitlements from a Keycloak server based on a given resourceServerId. + */ + entitlement(resourceServerId: string, entitlementRequest: {}): KeycloakAuthorizationPromise; + } +} diff --git a/keycloak-js/keycloak-js-tests.ts b/keycloak-js/keycloak-js-tests.ts index f0957d2114..dc97d8da18 100644 --- a/keycloak-js/keycloak-js-tests.ts +++ b/keycloak-js/keycloak-js-tests.ts @@ -11,4 +11,8 @@ import { KeycloakResponseType } from 'keycloak-js'; +import * as KeycloakAuthorization from 'keycloak-js/keycloak-authz'; +import { KeycloakAuthorizationPromise } from 'keycloak-js/keycloak-authz'; + let keycloak = Keycloak(); +let keycloakAuthz = KeycloakAuthorization(keycloak); diff --git a/keycloak-js/tsconfig.json b/keycloak-js/tsconfig.json index 02d8f5053a..7ac994a5dc 100644 --- a/keycloak-js/tsconfig.json +++ b/keycloak-js/tsconfig.json @@ -17,6 +17,7 @@ }, "files": [ "index.d.ts", + "keycloak-authz.d.ts", "keycloak-js-tests.ts" ] -} \ No newline at end of file +} diff --git a/knex/index.d.ts b/knex/index.d.ts index 55ef48a05e..5196f47eb0 100644 --- a/knex/index.d.ts +++ b/knex/index.d.ts @@ -6,7 +6,8 @@ /// /// -import * as events from "events"; +import events = require("events"); +import Promise = require("bluebird"); type Callback = Function; type Client = Function; diff --git a/knex/knex-tests.ts b/knex/knex-tests.ts index 8fd9cc971c..420aafd724 100644 --- a/knex/knex-tests.ts +++ b/knex/knex-tests.ts @@ -1,6 +1,7 @@ "use strict"; -import * as Knex from 'knex'; -import * as _ from 'lodash'; +import Knex = require('knex'); +import Promise = require('bluebird'); +import _ = require('lodash'); // Initializing the Library var knex = Knex({ diff --git a/koa-bodyparser/index.d.ts b/koa-bodyparser/index.d.ts index d3849cf9f9..932a53f7af 100644 --- a/koa-bodyparser/index.d.ts +++ b/koa-bodyparser/index.d.ts @@ -59,6 +59,7 @@ declare function bodyParser(opts?: { extendTypes?: { json?: string[]; form?: string[]; + text?: string[]; } /** diff --git a/leaflet/index.d.ts b/leaflet/index.d.ts index c031df81bc..4112082f54 100644 --- a/leaflet/index.d.ts +++ b/leaflet/index.d.ts @@ -1397,6 +1397,7 @@ declare namespace L { export interface MarkerOptions extends InteractiveLayerOptions { icon?: Icon; + clickable?: boolean; draggable?: boolean; keyboard?: boolean; title?: string; diff --git a/libpq/index.d.ts b/libpq/index.d.ts index df2135046a..1e9e38dd5c 100644 --- a/libpq/index.d.ts +++ b/libpq/index.d.ts @@ -307,11 +307,11 @@ declare class Libpq extends EventEmitter { * (sync) Sends a named statement to the server to be prepared for later execution. blocks * until a result from the prepare operation is received. * - * @param {string} [statementName=""] a required string of name of the statement to prepare. - * @param {string} [commandText=""] a required string of the query. - * @param {number} [nParams=0] a count of the number of parameters in the commandText. + * @param {string} statementName a required string of name of the statement to prepare. + * @param {string} commandText a required string of the query. + * @param {number} nParams a count of the number of parameters in the commandText. */ - prepare(statementName?: string, commandText?: string, nParams?: number): void; + prepare(statementName: string, commandText: string, nParams: number): void; /** * Retrieves detailed error information from the current result object. Very similar to @@ -363,12 +363,12 @@ declare class Libpq extends EventEmitter { /** * (async) Sends a request to the backend to prepare a named statement with the given name. * - * @param {string} [statementName=""] a required string of name of the statement to prepare. - * @param {string} [commandText=""] a required string of the query. - * @param {number} [nParams=0] a count of the number of parameters in the commandText. + * @param {string} statementName a required string of name of the statement to prepare. + * @param {string} commandText a required string of the query. + * @param {number} nParams a count of the number of parameters in the commandText. * @returns {boolean} true if the command was sent succesfully or false if it failed to send. */ - sendPrepare(statementName?: string, commandText?: string, nParams?: number): boolean; + sendPrepare(statementName: string, commandText: string, nParams: number): boolean; /** * (async) Sends a request to execute a previously prepared statement. @@ -421,8 +421,10 @@ declare class Libpq extends EventEmitter { * and PQflush for async writing. * * @param {Function} callback + * + * @returns {Libpq} */ - writable(callback: () => void): void; + writable(callback: () => void): this; } export = Libpq; diff --git a/lodash-decorators/index.d.ts b/lodash-decorators/index.d.ts index 0e0b8d9e3c..eb05886150 100644 --- a/lodash-decorators/index.d.ts +++ b/lodash-decorators/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/steelsojka/lodash-decorators // Definitions by: Qubo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// diff --git a/lodash-es/index.d.ts b/lodash-es/index.d.ts index 71f98587ff..1c9e42c18e 100644 --- a/lodash-es/index.d.ts +++ b/lodash-es/index.d.ts @@ -2,3 +2,4 @@ // Project: http://lodash.com/ // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 \ No newline at end of file diff --git a/lodash-webpack-plugin/index.d.ts b/lodash-webpack-plugin/index.d.ts new file mode 100644 index 0000000000..26d633e79f --- /dev/null +++ b/lodash-webpack-plugin/index.d.ts @@ -0,0 +1,34 @@ +// Type definitions for lodash-webpack-plugin 0.11 +// Project: https://github.com/lodash/lodash-webpack-plugin#readme +// Definitions by: Benjamin Lim +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { Plugin, Webpack } from 'webpack'; + +export = LodashModuleReplacementPlugin; + +declare class LodashModuleReplacementPlugin implements Plugin { + constructor(options?: LodashModuleReplacementPlugin.Options); + apply(thisArg: Webpack, ...args: any[]): void; +} + +declare namespace LodashModuleReplacementPlugin { + export interface Options { + caching?: boolean; + chaining?: boolean; + cloning?: boolean; + coercions?: boolean; + collections?: boolean; + currying?: boolean; + deburring?: boolean; + exotics?: boolean; + flattening?: boolean; + guards?: boolean; + memoizing?: boolean; + metadata?: boolean; + paths?: boolean; + placeholders?: boolean; + shorthands?: boolean; + unicode?: boolean; + } +} diff --git a/lodash-webpack-plugin/lodash-webpack-plugin-tests.ts b/lodash-webpack-plugin/lodash-webpack-plugin-tests.ts new file mode 100644 index 0000000000..cd893f09f0 --- /dev/null +++ b/lodash-webpack-plugin/lodash-webpack-plugin-tests.ts @@ -0,0 +1,27 @@ +import * as LodashModuleReplacementPlugin from 'lodash-webpack-plugin' + +new LodashModuleReplacementPlugin() + +new LodashModuleReplacementPlugin({ + collections: true, + paths: true, +}) + +new LodashModuleReplacementPlugin({ + caching: true, + chaining: true, + cloning: true, + coercions: true, + collections: true, + currying: true, + deburring: true, + exotics: true, + flattening: true, + guards: true, + memoizing: true, + metadata: true, + paths: true, + placeholders: true, + shorthands: true, + unicode: true, +}) diff --git a/lodash-webpack-plugin/tsconfig.json b/lodash-webpack-plugin/tsconfig.json new file mode 100644 index 0000000000..03e491ef78 --- /dev/null +++ b/lodash-webpack-plugin/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "lodash-webpack-plugin-tests.ts" + ] +} diff --git a/lodash-webpack-plugin/tslint.json b/lodash-webpack-plugin/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/lodash-webpack-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/lodash.add/index.d.ts b/lodash.add/index.d.ts index 0a9aecd185..76c74086e3 100644 --- a/lodash.add/index.d.ts +++ b/lodash.add/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { add } from "lodash"; export = add; diff --git a/lodash.after/index.d.ts b/lodash.after/index.d.ts index 52f5efd8e1..7ba8e38a1a 100644 --- a/lodash.after/index.d.ts +++ b/lodash.after/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { after } from "lodash"; export = after; diff --git a/lodash.ary/index.d.ts b/lodash.ary/index.d.ts index d78cd0c60e..fe902df0d0 100644 --- a/lodash.ary/index.d.ts +++ b/lodash.ary/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { ary } from "lodash"; export = ary; diff --git a/lodash.assign/index.d.ts b/lodash.assign/index.d.ts index 0558933c3f..8da5d220bf 100644 --- a/lodash.assign/index.d.ts +++ b/lodash.assign/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { assign } from "lodash"; export = assign; diff --git a/lodash.assignin/index.d.ts b/lodash.assignin/index.d.ts index 7e8740aea3..50551ff9d7 100644 --- a/lodash.assignin/index.d.ts +++ b/lodash.assignin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { assignIn } from "lodash"; export = assignIn; diff --git a/lodash.assigninwith/index.d.ts b/lodash.assigninwith/index.d.ts index 1e1e3189c1..76f3d2dede 100644 --- a/lodash.assigninwith/index.d.ts +++ b/lodash.assigninwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { assignInWith } from "lodash"; export = assignInWith; diff --git a/lodash.assignwith/index.d.ts b/lodash.assignwith/index.d.ts index 02e395824d..a01c36eb29 100644 --- a/lodash.assignwith/index.d.ts +++ b/lodash.assignwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { assignWith } from "lodash"; export = assignWith; diff --git a/lodash.at/index.d.ts b/lodash.at/index.d.ts index 7b237c170b..061d6040b8 100644 --- a/lodash.at/index.d.ts +++ b/lodash.at/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { at } from "lodash"; export = at; diff --git a/lodash.attempt/index.d.ts b/lodash.attempt/index.d.ts index a93d1efb06..52874b4372 100644 --- a/lodash.attempt/index.d.ts +++ b/lodash.attempt/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { attempt } from "lodash"; export = attempt; diff --git a/lodash.before/index.d.ts b/lodash.before/index.d.ts index 50456ca93b..3c211206c0 100644 --- a/lodash.before/index.d.ts +++ b/lodash.before/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { before } from "lodash"; export = before; diff --git a/lodash.bind/index.d.ts b/lodash.bind/index.d.ts index 2ace06a403..eda3868cae 100644 --- a/lodash.bind/index.d.ts +++ b/lodash.bind/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { bind } from "lodash"; export = bind; diff --git a/lodash.bindall/index.d.ts b/lodash.bindall/index.d.ts index 7d5b08e79e..9a80f928cc 100644 --- a/lodash.bindall/index.d.ts +++ b/lodash.bindall/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { bindAll } from "lodash"; export = bindAll; diff --git a/lodash.bindkey/index.d.ts b/lodash.bindkey/index.d.ts index 581f950cc1..a7ecab5dd1 100644 --- a/lodash.bindkey/index.d.ts +++ b/lodash.bindkey/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { bindKey } from "lodash"; export = bindKey; diff --git a/lodash.camelcase/index.d.ts b/lodash.camelcase/index.d.ts index 7e330178df..b489f3f7a5 100644 --- a/lodash.camelcase/index.d.ts +++ b/lodash.camelcase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { camelCase } from "lodash"; export = camelCase; diff --git a/lodash.capitalize/index.d.ts b/lodash.capitalize/index.d.ts index 5cdfce9f64..06a3f72fd4 100644 --- a/lodash.capitalize/index.d.ts +++ b/lodash.capitalize/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { capitalize } from "lodash"; export = capitalize; diff --git a/lodash.castarray/index.d.ts b/lodash.castarray/index.d.ts index 468ae08464..2d77145a0c 100644 --- a/lodash.castarray/index.d.ts +++ b/lodash.castarray/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { castArray } from "lodash"; export = castArray; diff --git a/lodash.ceil/index.d.ts b/lodash.ceil/index.d.ts index 382e7c6452..4d91e60e65 100644 --- a/lodash.ceil/index.d.ts +++ b/lodash.ceil/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { ceil } from "lodash"; export = ceil; diff --git a/lodash.chunk/index.d.ts b/lodash.chunk/index.d.ts index 9fd9a55c59..ffd11b71b2 100644 --- a/lodash.chunk/index.d.ts +++ b/lodash.chunk/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { chunk } from "lodash"; export = chunk; diff --git a/lodash.clamp/index.d.ts b/lodash.clamp/index.d.ts index 58372494cd..0a28f04829 100644 --- a/lodash.clamp/index.d.ts +++ b/lodash.clamp/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { clamp } from "lodash"; export = clamp; diff --git a/lodash.clone/index.d.ts b/lodash.clone/index.d.ts index b9fa987104..a2d6e34490 100644 --- a/lodash.clone/index.d.ts +++ b/lodash.clone/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { clone } from "lodash"; export = clone; diff --git a/lodash.clonedeep/index.d.ts b/lodash.clonedeep/index.d.ts index 4bd178bff0..5e9382e296 100644 --- a/lodash.clonedeep/index.d.ts +++ b/lodash.clonedeep/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { cloneDeep } from "lodash"; export = cloneDeep; diff --git a/lodash.clonedeepwith/index.d.ts b/lodash.clonedeepwith/index.d.ts index e014c80686..80439cef54 100644 --- a/lodash.clonedeepwith/index.d.ts +++ b/lodash.clonedeepwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { cloneDeepWith } from "lodash"; export = cloneDeepWith; diff --git a/lodash.clonewith/index.d.ts b/lodash.clonewith/index.d.ts index cb29709538..bdaa109a3a 100644 --- a/lodash.clonewith/index.d.ts +++ b/lodash.clonewith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { cloneWith } from "lodash"; export = cloneWith; diff --git a/lodash.compact/index.d.ts b/lodash.compact/index.d.ts index d6dc0b2fb8..9af681aeb4 100644 --- a/lodash.compact/index.d.ts +++ b/lodash.compact/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { compact } from "lodash"; export = compact; diff --git a/lodash.concat/index.d.ts b/lodash.concat/index.d.ts index dd6f9bb6e2..692dfa5aab 100644 --- a/lodash.concat/index.d.ts +++ b/lodash.concat/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { concat } from "lodash"; export = concat; diff --git a/lodash.constant/index.d.ts b/lodash.constant/index.d.ts index 92fc209518..1b941af3ad 100644 --- a/lodash.constant/index.d.ts +++ b/lodash.constant/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { constant } from "lodash"; export = constant; diff --git a/lodash.countby/index.d.ts b/lodash.countby/index.d.ts index a3c6d24d93..03940a5e7d 100644 --- a/lodash.countby/index.d.ts +++ b/lodash.countby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { countBy } from "lodash"; export = countBy; diff --git a/lodash.create/index.d.ts b/lodash.create/index.d.ts index 5ca15075eb..e9d553be1c 100644 --- a/lodash.create/index.d.ts +++ b/lodash.create/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { create } from "lodash"; export = create; diff --git a/lodash.curry/index.d.ts b/lodash.curry/index.d.ts index 61f26316fd..a613fce91a 100644 --- a/lodash.curry/index.d.ts +++ b/lodash.curry/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { curry } from "lodash"; export = curry; diff --git a/lodash.curryright/index.d.ts b/lodash.curryright/index.d.ts index caf7dfcfe3..b16fdd5147 100644 --- a/lodash.curryright/index.d.ts +++ b/lodash.curryright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { curryRight } from "lodash"; export = curryRight; diff --git a/lodash.debounce/index.d.ts b/lodash.debounce/index.d.ts index 2bef22974b..4e4e3aec55 100644 --- a/lodash.debounce/index.d.ts +++ b/lodash.debounce/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { debounce } from "lodash"; export = debounce; diff --git a/lodash.deburr/index.d.ts b/lodash.deburr/index.d.ts index 6f92fcbbd4..0caa30be24 100644 --- a/lodash.deburr/index.d.ts +++ b/lodash.deburr/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { deburr } from "lodash"; export = deburr; diff --git a/lodash.defaults/index.d.ts b/lodash.defaults/index.d.ts index 15c8e57184..6c0bb1b47b 100644 --- a/lodash.defaults/index.d.ts +++ b/lodash.defaults/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { defaults } from "lodash"; export = defaults; diff --git a/lodash.defaultsdeep/index.d.ts b/lodash.defaultsdeep/index.d.ts index 22cb0667a3..c552b805ff 100644 --- a/lodash.defaultsdeep/index.d.ts +++ b/lodash.defaultsdeep/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { defaultsDeep } from "lodash"; export = defaultsDeep; diff --git a/lodash.defer/index.d.ts b/lodash.defer/index.d.ts index ad67ed0c82..6c35dd7513 100644 --- a/lodash.defer/index.d.ts +++ b/lodash.defer/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { defer } from "lodash"; export = defer; diff --git a/lodash.delay/index.d.ts b/lodash.delay/index.d.ts index b65bd46abe..bb4922c81c 100644 --- a/lodash.delay/index.d.ts +++ b/lodash.delay/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { delay } from "lodash"; export = delay; diff --git a/lodash.difference/index.d.ts b/lodash.difference/index.d.ts index 38aa798be1..7ad8c6c414 100644 --- a/lodash.difference/index.d.ts +++ b/lodash.difference/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { difference } from "lodash"; export = difference; diff --git a/lodash.differenceby/index.d.ts b/lodash.differenceby/index.d.ts index 2d0c4859f0..50dfcd6a9c 100644 --- a/lodash.differenceby/index.d.ts +++ b/lodash.differenceby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { differenceBy } from "lodash"; export = differenceBy; diff --git a/lodash.differencewith/index.d.ts b/lodash.differencewith/index.d.ts index fff454ca64..9870768137 100644 --- a/lodash.differencewith/index.d.ts +++ b/lodash.differencewith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { differenceWith } from "lodash"; export = differenceWith; diff --git a/lodash.drop/index.d.ts b/lodash.drop/index.d.ts index 0605e176ec..f702675717 100644 --- a/lodash.drop/index.d.ts +++ b/lodash.drop/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { drop } from "lodash"; export = drop; diff --git a/lodash.dropright/index.d.ts b/lodash.dropright/index.d.ts index 1322022901..1385005315 100644 --- a/lodash.dropright/index.d.ts +++ b/lodash.dropright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { dropRight } from "lodash"; export = dropRight; diff --git a/lodash.droprightwhile/index.d.ts b/lodash.droprightwhile/index.d.ts index b5fd1a75d2..02f5d13ac8 100644 --- a/lodash.droprightwhile/index.d.ts +++ b/lodash.droprightwhile/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { dropRightWhile } from "lodash"; export = dropRightWhile; diff --git a/lodash.dropwhile/index.d.ts b/lodash.dropwhile/index.d.ts index e24e46bccc..270e0d0189 100644 --- a/lodash.dropwhile/index.d.ts +++ b/lodash.dropwhile/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { dropWhile } from "lodash"; export = dropWhile; diff --git a/lodash.endswith/index.d.ts b/lodash.endswith/index.d.ts index 191301b21e..3a1c9b314e 100644 --- a/lodash.endswith/index.d.ts +++ b/lodash.endswith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { endsWith } from "lodash"; export = endsWith; diff --git a/lodash.eq/index.d.ts b/lodash.eq/index.d.ts index 87e927aa6d..8af8729bb4 100644 --- a/lodash.eq/index.d.ts +++ b/lodash.eq/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { eq } from "lodash"; export = eq; diff --git a/lodash.escape/index.d.ts b/lodash.escape/index.d.ts index 8e72963f22..a74f554830 100644 --- a/lodash.escape/index.d.ts +++ b/lodash.escape/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { escape } from "lodash"; export = escape; diff --git a/lodash.escaperegexp/index.d.ts b/lodash.escaperegexp/index.d.ts index 19eb0c6807..b80f492f70 100644 --- a/lodash.escaperegexp/index.d.ts +++ b/lodash.escaperegexp/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { escapeRegExp } from "lodash"; export = escapeRegExp; diff --git a/lodash.every/index.d.ts b/lodash.every/index.d.ts index a7ce29ad7a..84fd71115a 100644 --- a/lodash.every/index.d.ts +++ b/lodash.every/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { every } from "lodash"; export = every; diff --git a/lodash.fill/index.d.ts b/lodash.fill/index.d.ts index 1c8c619422..c2b785fbe5 100644 --- a/lodash.fill/index.d.ts +++ b/lodash.fill/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { fill } from "lodash"; export = fill; diff --git a/lodash.filter/index.d.ts b/lodash.filter/index.d.ts index 83dd5a1ddb..4960ebde70 100644 --- a/lodash.filter/index.d.ts +++ b/lodash.filter/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { filter } from "lodash"; export = filter; diff --git a/lodash.find/index.d.ts b/lodash.find/index.d.ts index eda8769f54..f1d736f0c0 100644 --- a/lodash.find/index.d.ts +++ b/lodash.find/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { find } from "lodash"; export = find; diff --git a/lodash.findindex/index.d.ts b/lodash.findindex/index.d.ts index bfb5034785..bc2fee9d18 100644 --- a/lodash.findindex/index.d.ts +++ b/lodash.findindex/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { findIndex } from "lodash"; export = findIndex; diff --git a/lodash.findkey/index.d.ts b/lodash.findkey/index.d.ts index bf5c2a357c..4bca193179 100644 --- a/lodash.findkey/index.d.ts +++ b/lodash.findkey/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { findKey } from "lodash"; export = findKey; diff --git a/lodash.findlast/index.d.ts b/lodash.findlast/index.d.ts index ad5f1d00f9..7ec89440be 100644 --- a/lodash.findlast/index.d.ts +++ b/lodash.findlast/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { findLast } from "lodash"; export = findLast; diff --git a/lodash.findlastindex/index.d.ts b/lodash.findlastindex/index.d.ts index 6e771c3842..37c0ba4567 100644 --- a/lodash.findlastindex/index.d.ts +++ b/lodash.findlastindex/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { findLastIndex } from "lodash"; export = findLastIndex; diff --git a/lodash.findlastkey/index.d.ts b/lodash.findlastkey/index.d.ts index ea09517b83..6e53f08733 100644 --- a/lodash.findlastkey/index.d.ts +++ b/lodash.findlastkey/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { findLastKey } from "lodash"; export = findLastKey; diff --git a/lodash.first/index.d.ts b/lodash.first/index.d.ts index b1e1b84a54..21b7337178 100644 --- a/lodash.first/index.d.ts +++ b/lodash.first/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { first } from "lodash"; export = first; diff --git a/lodash.flatmap/index.d.ts b/lodash.flatmap/index.d.ts index 26d291b7bc..075c3eba57 100644 --- a/lodash.flatmap/index.d.ts +++ b/lodash.flatmap/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flatMap } from "lodash"; export = flatMap; diff --git a/lodash.flatten/index.d.ts b/lodash.flatten/index.d.ts index 4c3d68eb5e..b0247fd668 100644 --- a/lodash.flatten/index.d.ts +++ b/lodash.flatten/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flatten } from "lodash"; export = flatten; diff --git a/lodash.flattendeep/index.d.ts b/lodash.flattendeep/index.d.ts index 4e6b573eae..b596ff5fad 100644 --- a/lodash.flattendeep/index.d.ts +++ b/lodash.flattendeep/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flattenDeep } from "lodash"; export = flattenDeep; diff --git a/lodash.flattendepth/index.d.ts b/lodash.flattendepth/index.d.ts index 186641d1bc..d8df8b242b 100644 --- a/lodash.flattendepth/index.d.ts +++ b/lodash.flattendepth/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flattenDepth } from "lodash"; export = flattenDepth; diff --git a/lodash.flip/index.d.ts b/lodash.flip/index.d.ts index d4a69991ab..a87354fe7d 100644 --- a/lodash.flip/index.d.ts +++ b/lodash.flip/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flip } from "lodash"; export = flip; diff --git a/lodash.floor/index.d.ts b/lodash.floor/index.d.ts index 7e43e4335b..ca831b6e0f 100644 --- a/lodash.floor/index.d.ts +++ b/lodash.floor/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { floor } from "lodash"; export = floor; diff --git a/lodash.flow/index.d.ts b/lodash.flow/index.d.ts index 36be0e704f..d2bc98d1ab 100644 --- a/lodash.flow/index.d.ts +++ b/lodash.flow/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flow } from "lodash"; export = flow; diff --git a/lodash.flowright/index.d.ts b/lodash.flowright/index.d.ts index 95189e5684..e1275db957 100644 --- a/lodash.flowright/index.d.ts +++ b/lodash.flowright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { flowRight } from "lodash"; export = flowRight; diff --git a/lodash.foreach/index.d.ts b/lodash.foreach/index.d.ts index d2fd5757b4..9aec8eaf2b 100644 --- a/lodash.foreach/index.d.ts +++ b/lodash.foreach/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forEach } from "lodash"; export = forEach; diff --git a/lodash.foreachright/index.d.ts b/lodash.foreachright/index.d.ts index cdd20d5fec..147f43d771 100644 --- a/lodash.foreachright/index.d.ts +++ b/lodash.foreachright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forEachRight } from "lodash"; export = forEachRight; diff --git a/lodash.forin/index.d.ts b/lodash.forin/index.d.ts index e95e69f8b4..af03a8a4e1 100644 --- a/lodash.forin/index.d.ts +++ b/lodash.forin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forIn } from "lodash"; export = forIn; diff --git a/lodash.forinright/index.d.ts b/lodash.forinright/index.d.ts index 160f182cf9..c79a18f746 100644 --- a/lodash.forinright/index.d.ts +++ b/lodash.forinright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forInRight } from "lodash"; export = forInRight; diff --git a/lodash.forown/index.d.ts b/lodash.forown/index.d.ts index 20ae037f37..32d2ac758d 100644 --- a/lodash.forown/index.d.ts +++ b/lodash.forown/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forOwn } from "lodash"; export = forOwn; diff --git a/lodash.forownright/index.d.ts b/lodash.forownright/index.d.ts index 0736346722..1a2ff70788 100644 --- a/lodash.forownright/index.d.ts +++ b/lodash.forownright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { forOwnRight } from "lodash"; export = forOwnRight; diff --git a/lodash.frompairs/index.d.ts b/lodash.frompairs/index.d.ts index db158444d5..b74020f99f 100644 --- a/lodash.frompairs/index.d.ts +++ b/lodash.frompairs/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { fromPairs } from "lodash"; export = fromPairs; diff --git a/lodash.functions/index.d.ts b/lodash.functions/index.d.ts index 03ca7febbb..865f3c0c1e 100644 --- a/lodash.functions/index.d.ts +++ b/lodash.functions/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { functions } from "lodash"; export = functions; diff --git a/lodash.functionsin/index.d.ts b/lodash.functionsin/index.d.ts index 93168e67a3..5bfc7a5ca2 100644 --- a/lodash.functionsin/index.d.ts +++ b/lodash.functionsin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { functionsIn } from "lodash"; export = functionsIn; diff --git a/lodash.get/index.d.ts b/lodash.get/index.d.ts index 91e6b74e66..fd7d336a70 100644 --- a/lodash.get/index.d.ts +++ b/lodash.get/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { get } from "lodash"; export = get; diff --git a/lodash.groupby/index.d.ts b/lodash.groupby/index.d.ts index 06156f9b00..c55d2e3db7 100644 --- a/lodash.groupby/index.d.ts +++ b/lodash.groupby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { groupBy } from "lodash"; export = groupBy; diff --git a/lodash.gt/index.d.ts b/lodash.gt/index.d.ts index f541f408a8..cd5aa96019 100644 --- a/lodash.gt/index.d.ts +++ b/lodash.gt/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { gt } from "lodash"; export = gt; diff --git a/lodash.gte/index.d.ts b/lodash.gte/index.d.ts index 4041863b22..0e9eb62a7c 100644 --- a/lodash.gte/index.d.ts +++ b/lodash.gte/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { gte } from "lodash"; export = gte; diff --git a/lodash.has/index.d.ts b/lodash.has/index.d.ts index aaf4c27353..28ee7cd4e9 100644 --- a/lodash.has/index.d.ts +++ b/lodash.has/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { has } from "lodash"; export = has; diff --git a/lodash.hasin/index.d.ts b/lodash.hasin/index.d.ts index 53052f5cc3..09be59f7da 100644 --- a/lodash.hasin/index.d.ts +++ b/lodash.hasin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { hasIn } from "lodash"; export = hasIn; diff --git a/lodash.head/index.d.ts b/lodash.head/index.d.ts index d2e3e06eac..0b3b6da94f 100644 --- a/lodash.head/index.d.ts +++ b/lodash.head/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { head } from "lodash"; export = head; diff --git a/lodash.identity/index.d.ts b/lodash.identity/index.d.ts index 810313857d..0e683ed1c4 100644 --- a/lodash.identity/index.d.ts +++ b/lodash.identity/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { identity } from "lodash"; export = identity; diff --git a/lodash.includes/index.d.ts b/lodash.includes/index.d.ts index dccbc5e3ee..ddb703d38d 100644 --- a/lodash.includes/index.d.ts +++ b/lodash.includes/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { includes } from "lodash"; export = includes; diff --git a/lodash.indexof/index.d.ts b/lodash.indexof/index.d.ts index 0551b9acc6..180fde9e2f 100644 --- a/lodash.indexof/index.d.ts +++ b/lodash.indexof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { indexOf } from "lodash"; export = indexOf; diff --git a/lodash.initial/index.d.ts b/lodash.initial/index.d.ts index 303d425de1..40fec082f7 100644 --- a/lodash.initial/index.d.ts +++ b/lodash.initial/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { initial } from "lodash"; export = initial; diff --git a/lodash.inrange/index.d.ts b/lodash.inrange/index.d.ts index b65ff730db..8140966ac2 100644 --- a/lodash.inrange/index.d.ts +++ b/lodash.inrange/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { inRange } from "lodash"; export = inRange; diff --git a/lodash.intersection/index.d.ts b/lodash.intersection/index.d.ts index 8bc7dbde4f..149a324277 100644 --- a/lodash.intersection/index.d.ts +++ b/lodash.intersection/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { intersection } from "lodash"; export = intersection; diff --git a/lodash.intersectionby/index.d.ts b/lodash.intersectionby/index.d.ts index 74ae5d4dfc..81c206df48 100644 --- a/lodash.intersectionby/index.d.ts +++ b/lodash.intersectionby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { intersectionBy } from "lodash"; export = intersectionBy; diff --git a/lodash.intersectionwith/index.d.ts b/lodash.intersectionwith/index.d.ts index 73b816b192..e18b9d41ff 100644 --- a/lodash.intersectionwith/index.d.ts +++ b/lodash.intersectionwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { intersectionWith } from "lodash"; export = intersectionWith; diff --git a/lodash.invert/index.d.ts b/lodash.invert/index.d.ts index 99fdb04c76..25fe9ce360 100644 --- a/lodash.invert/index.d.ts +++ b/lodash.invert/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { invert } from "lodash"; export = invert; diff --git a/lodash.invertby/index.d.ts b/lodash.invertby/index.d.ts index c3959934a2..63e5c70405 100644 --- a/lodash.invertby/index.d.ts +++ b/lodash.invertby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { invertBy } from "lodash"; export = invertBy; diff --git a/lodash.invoke/index.d.ts b/lodash.invoke/index.d.ts index 7af1475a29..e16b07d462 100644 --- a/lodash.invoke/index.d.ts +++ b/lodash.invoke/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { invoke } from "lodash"; export = invoke; diff --git a/lodash.invokemap/index.d.ts b/lodash.invokemap/index.d.ts index 4995018391..1365a4f752 100644 --- a/lodash.invokemap/index.d.ts +++ b/lodash.invokemap/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { invokeMap } from "lodash"; export = invokeMap; diff --git a/lodash.isarguments/index.d.ts b/lodash.isarguments/index.d.ts index f46218acd9..7eb30e26dd 100644 --- a/lodash.isarguments/index.d.ts +++ b/lodash.isarguments/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isArguments } from "lodash"; export = isArguments; diff --git a/lodash.isarray/index.d.ts b/lodash.isarray/index.d.ts index a777294028..d4df88d8d7 100644 --- a/lodash.isarray/index.d.ts +++ b/lodash.isarray/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isArray } from "lodash"; export = isArray; diff --git a/lodash.isarraybuffer/index.d.ts b/lodash.isarraybuffer/index.d.ts index 827727c372..bb65311721 100644 --- a/lodash.isarraybuffer/index.d.ts +++ b/lodash.isarraybuffer/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isArrayBuffer } from "lodash"; export = isArrayBuffer; diff --git a/lodash.isarraylike/index.d.ts b/lodash.isarraylike/index.d.ts index 44e0da10d2..e722669eb4 100644 --- a/lodash.isarraylike/index.d.ts +++ b/lodash.isarraylike/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isArrayLike } from "lodash"; export = isArrayLike; diff --git a/lodash.isarraylikeobject/index.d.ts b/lodash.isarraylikeobject/index.d.ts index e5a2a5d847..8d094d8261 100644 --- a/lodash.isarraylikeobject/index.d.ts +++ b/lodash.isarraylikeobject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isArrayLikeObject } from "lodash"; export = isArrayLikeObject; diff --git a/lodash.isboolean/index.d.ts b/lodash.isboolean/index.d.ts index 39ae1338ee..38bcb53406 100644 --- a/lodash.isboolean/index.d.ts +++ b/lodash.isboolean/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isBoolean } from "lodash"; export = isBoolean; diff --git a/lodash.isbuffer/index.d.ts b/lodash.isbuffer/index.d.ts index 985ce28952..0c9d922967 100644 --- a/lodash.isbuffer/index.d.ts +++ b/lodash.isbuffer/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isBuffer } from "lodash"; export = isBuffer; diff --git a/lodash.isdate/index.d.ts b/lodash.isdate/index.d.ts index 0c59a7a05f..bc61921489 100644 --- a/lodash.isdate/index.d.ts +++ b/lodash.isdate/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isDate } from "lodash"; export = isDate; diff --git a/lodash.iselement/index.d.ts b/lodash.iselement/index.d.ts index d4538e9e40..e059b8b1f5 100644 --- a/lodash.iselement/index.d.ts +++ b/lodash.iselement/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isElement } from "lodash"; export = isElement; diff --git a/lodash.isempty/index.d.ts b/lodash.isempty/index.d.ts index dc550a45a3..bff4c499aa 100644 --- a/lodash.isempty/index.d.ts +++ b/lodash.isempty/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isEmpty } from "lodash"; export = isEmpty; diff --git a/lodash.isequal/index.d.ts b/lodash.isequal/index.d.ts index b19d0c04d5..d06f5a2a2a 100644 --- a/lodash.isequal/index.d.ts +++ b/lodash.isequal/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for lodash.isEqual 4.4 +// Type definitions for lodash.isEqual 4.5 // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isEqual } from "lodash"; export = isEqual; diff --git a/lodash.isequalwith/index.d.ts b/lodash.isequalwith/index.d.ts index 1298491bd4..250895312b 100644 --- a/lodash.isequalwith/index.d.ts +++ b/lodash.isequalwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isEqualWith } from "lodash"; export = isEqualWith; diff --git a/lodash.iserror/index.d.ts b/lodash.iserror/index.d.ts index d12d1b7cce..42a2bc0923 100644 --- a/lodash.iserror/index.d.ts +++ b/lodash.iserror/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isError } from "lodash"; export = isError; diff --git a/lodash.isfinite/index.d.ts b/lodash.isfinite/index.d.ts index 8cd096692c..02a28fa204 100644 --- a/lodash.isfinite/index.d.ts +++ b/lodash.isfinite/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isFinite } from "lodash"; export = isFinite; diff --git a/lodash.isfunction/index.d.ts b/lodash.isfunction/index.d.ts index a2276e5633..3253939f6b 100644 --- a/lodash.isfunction/index.d.ts +++ b/lodash.isfunction/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isFunction } from "lodash"; export = isFunction; diff --git a/lodash.isinteger/index.d.ts b/lodash.isinteger/index.d.ts index f2d78c2b1f..7d604a19b6 100644 --- a/lodash.isinteger/index.d.ts +++ b/lodash.isinteger/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isInteger } from "lodash"; export = isInteger; diff --git a/lodash.islength/index.d.ts b/lodash.islength/index.d.ts index abcc89acda..6ed54652e5 100644 --- a/lodash.islength/index.d.ts +++ b/lodash.islength/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isLength } from "lodash"; export = isLength; diff --git a/lodash.ismap/index.d.ts b/lodash.ismap/index.d.ts index 62bde83057..1fc93f3462 100644 --- a/lodash.ismap/index.d.ts +++ b/lodash.ismap/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isMap } from "lodash"; export = isMap; diff --git a/lodash.ismatch/index.d.ts b/lodash.ismatch/index.d.ts index 617f6c9bda..3c8de854e8 100644 --- a/lodash.ismatch/index.d.ts +++ b/lodash.ismatch/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isMatch } from "lodash"; export = isMatch; diff --git a/lodash.ismatchwith/index.d.ts b/lodash.ismatchwith/index.d.ts index ed8ff1b11b..c69ae83ea6 100644 --- a/lodash.ismatchwith/index.d.ts +++ b/lodash.ismatchwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isMatchWith } from "lodash"; export = isMatchWith; diff --git a/lodash.isnan/index.d.ts b/lodash.isnan/index.d.ts index 029f8c6e9b..1d95ffe160 100644 --- a/lodash.isnan/index.d.ts +++ b/lodash.isnan/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isNaN } from "lodash"; export = isNaN; diff --git a/lodash.isnative/index.d.ts b/lodash.isnative/index.d.ts index 133f9cea47..29050811ef 100644 --- a/lodash.isnative/index.d.ts +++ b/lodash.isnative/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isNative } from "lodash"; export = isNative; diff --git a/lodash.isnil/index.d.ts b/lodash.isnil/index.d.ts index d3aaa388ee..5199f1657a 100644 --- a/lodash.isnil/index.d.ts +++ b/lodash.isnil/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isNil } from "lodash"; export = isNil; diff --git a/lodash.isnull/index.d.ts b/lodash.isnull/index.d.ts index 87a041d532..117b41f2e5 100644 --- a/lodash.isnull/index.d.ts +++ b/lodash.isnull/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isNull } from "lodash"; export = isNull; diff --git a/lodash.isnumber/index.d.ts b/lodash.isnumber/index.d.ts index 1f88c13582..70e51e9842 100644 --- a/lodash.isnumber/index.d.ts +++ b/lodash.isnumber/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isNumber } from "lodash"; export = isNumber; diff --git a/lodash.isobject/index.d.ts b/lodash.isobject/index.d.ts index 229357175a..6f79f888df 100644 --- a/lodash.isobject/index.d.ts +++ b/lodash.isobject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isObject } from "lodash"; export = isObject; diff --git a/lodash.isobjectlike/index.d.ts b/lodash.isobjectlike/index.d.ts index 5c5c4bcdb3..8423f18a2a 100644 --- a/lodash.isobjectlike/index.d.ts +++ b/lodash.isobjectlike/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isObjectLike } from "lodash"; export = isObjectLike; diff --git a/lodash.isplainobject/index.d.ts b/lodash.isplainobject/index.d.ts index c5e4af82cd..33e85453d2 100644 --- a/lodash.isplainobject/index.d.ts +++ b/lodash.isplainobject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isPlainObject } from "lodash"; export = isPlainObject; diff --git a/lodash.isregexp/index.d.ts b/lodash.isregexp/index.d.ts index bb6e4c182b..509c93a365 100644 --- a/lodash.isregexp/index.d.ts +++ b/lodash.isregexp/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isRegExp } from "lodash"; export = isRegExp; diff --git a/lodash.issafeinteger/index.d.ts b/lodash.issafeinteger/index.d.ts index 9c86763ba2..28fe1c868c 100644 --- a/lodash.issafeinteger/index.d.ts +++ b/lodash.issafeinteger/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isSafeInteger } from "lodash"; export = isSafeInteger; diff --git a/lodash.isset/index.d.ts b/lodash.isset/index.d.ts index eb77cabac8..67f643bb74 100644 --- a/lodash.isset/index.d.ts +++ b/lodash.isset/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isSet } from "lodash"; export = isSet; diff --git a/lodash.isstring/index.d.ts b/lodash.isstring/index.d.ts index 67ee27673d..42cca91fee 100644 --- a/lodash.isstring/index.d.ts +++ b/lodash.isstring/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isString } from "lodash"; export = isString; diff --git a/lodash.issymbol/index.d.ts b/lodash.issymbol/index.d.ts index d7be47d922..16468073cc 100644 --- a/lodash.issymbol/index.d.ts +++ b/lodash.issymbol/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isSymbol } from "lodash"; export = isSymbol; diff --git a/lodash.istypedarray/index.d.ts b/lodash.istypedarray/index.d.ts index 138f4baa08..e93a364295 100644 --- a/lodash.istypedarray/index.d.ts +++ b/lodash.istypedarray/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isTypedArray } from "lodash"; export = isTypedArray; diff --git a/lodash.isundefined/index.d.ts b/lodash.isundefined/index.d.ts index 2b112959c9..e9a3553600 100644 --- a/lodash.isundefined/index.d.ts +++ b/lodash.isundefined/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isUndefined } from "lodash"; export = isUndefined; diff --git a/lodash.isweakmap/index.d.ts b/lodash.isweakmap/index.d.ts index a6fbc47986..7e2be4cfb2 100644 --- a/lodash.isweakmap/index.d.ts +++ b/lodash.isweakmap/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isWeakMap } from "lodash"; export = isWeakMap; diff --git a/lodash.isweakset/index.d.ts b/lodash.isweakset/index.d.ts index d4b016f106..d7e1a801eb 100644 --- a/lodash.isweakset/index.d.ts +++ b/lodash.isweakset/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { isWeakSet } from "lodash"; export = isWeakSet; diff --git a/lodash.iteratee/index.d.ts b/lodash.iteratee/index.d.ts index 3e494ef2c8..7f6a197f12 100644 --- a/lodash.iteratee/index.d.ts +++ b/lodash.iteratee/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { iteratee } from "lodash"; export = iteratee; diff --git a/lodash.join/index.d.ts b/lodash.join/index.d.ts index 14f26d67ed..a8dd2622a1 100644 --- a/lodash.join/index.d.ts +++ b/lodash.join/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { join } from "lodash"; export = join; diff --git a/lodash.kebabcase/index.d.ts b/lodash.kebabcase/index.d.ts index 0851c7672a..00163a5a33 100644 --- a/lodash.kebabcase/index.d.ts +++ b/lodash.kebabcase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { kebabCase } from "lodash"; export = kebabCase; diff --git a/lodash.keyby/index.d.ts b/lodash.keyby/index.d.ts index 51aac439ca..8b5700ad76 100644 --- a/lodash.keyby/index.d.ts +++ b/lodash.keyby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { keyBy } from "lodash"; export = keyBy; diff --git a/lodash.keys/index.d.ts b/lodash.keys/index.d.ts index b514c21483..d862fb0541 100644 --- a/lodash.keys/index.d.ts +++ b/lodash.keys/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { keys } from "lodash"; export = keys; diff --git a/lodash.keysin/index.d.ts b/lodash.keysin/index.d.ts index 66a18cdfa7..e15bece518 100644 --- a/lodash.keysin/index.d.ts +++ b/lodash.keysin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { keysIn } from "lodash"; export = keysIn; diff --git a/lodash.last/index.d.ts b/lodash.last/index.d.ts index a06a998d86..29b4ce9c63 100644 --- a/lodash.last/index.d.ts +++ b/lodash.last/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { last } from "lodash"; export = last; diff --git a/lodash.lastindexof/index.d.ts b/lodash.lastindexof/index.d.ts index 5fccab48d0..a9459ada4d 100644 --- a/lodash.lastindexof/index.d.ts +++ b/lodash.lastindexof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { lastIndexOf } from "lodash"; export = lastIndexOf; diff --git a/lodash.lowercase/index.d.ts b/lodash.lowercase/index.d.ts index 4232be29ad..b9505737bc 100644 --- a/lodash.lowercase/index.d.ts +++ b/lodash.lowercase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { lowerCase } from "lodash"; export = lowerCase; diff --git a/lodash.lowerfirst/index.d.ts b/lodash.lowerfirst/index.d.ts index c5d0ea1ca6..424d02631b 100644 --- a/lodash.lowerfirst/index.d.ts +++ b/lodash.lowerfirst/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { lowerFirst } from "lodash"; export = lowerFirst; diff --git a/lodash.lt/index.d.ts b/lodash.lt/index.d.ts index 71cc6c1c00..5bad744986 100644 --- a/lodash.lt/index.d.ts +++ b/lodash.lt/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { lt } from "lodash"; export = lt; diff --git a/lodash.lte/index.d.ts b/lodash.lte/index.d.ts index 61ddce98b1..5299138c0f 100644 --- a/lodash.lte/index.d.ts +++ b/lodash.lte/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { lte } from "lodash"; export = lte; diff --git a/lodash.mapkeys/index.d.ts b/lodash.mapkeys/index.d.ts index c56b7647f5..bb32f2862f 100644 --- a/lodash.mapkeys/index.d.ts +++ b/lodash.mapkeys/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { mapKeys } from "lodash"; export = mapKeys; diff --git a/lodash.mapvalues/index.d.ts b/lodash.mapvalues/index.d.ts index 4507f9234e..db516f2de8 100644 --- a/lodash.mapvalues/index.d.ts +++ b/lodash.mapvalues/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { mapValues } from "lodash"; export = mapValues; diff --git a/lodash.matches/index.d.ts b/lodash.matches/index.d.ts index 9179ed074b..f80ba05944 100644 --- a/lodash.matches/index.d.ts +++ b/lodash.matches/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { matches } from "lodash"; export = matches; diff --git a/lodash.matchesproperty/index.d.ts b/lodash.matchesproperty/index.d.ts index afbb8dbfb3..e240a6ebad 100644 --- a/lodash.matchesproperty/index.d.ts +++ b/lodash.matchesproperty/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { matchesProperty } from "lodash"; export = matchesProperty; diff --git a/lodash.max/index.d.ts b/lodash.max/index.d.ts index 55167fee93..dc8297841f 100644 --- a/lodash.max/index.d.ts +++ b/lodash.max/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { max } from "lodash"; export = max; diff --git a/lodash.maxby/index.d.ts b/lodash.maxby/index.d.ts index 2513ce999f..47210f79a7 100644 --- a/lodash.maxby/index.d.ts +++ b/lodash.maxby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { maxBy } from "lodash"; export = maxBy; diff --git a/lodash.mean/index.d.ts b/lodash.mean/index.d.ts index bbf8183e23..dc839ace51 100644 --- a/lodash.mean/index.d.ts +++ b/lodash.mean/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { mean } from "lodash"; export = mean; diff --git a/lodash.meanby/index.d.ts b/lodash.meanby/index.d.ts new file mode 100644 index 0000000000..8973d40ded --- /dev/null +++ b/lodash.meanby/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for lodash.meanBy 4.10 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +import { meanBy } from "lodash"; +export = meanBy; diff --git a/lodash.meanby/tsconfig.json b/lodash.meanby/tsconfig.json new file mode 100644 index 0000000000..5692e5627e --- /dev/null +++ b/lodash.meanby/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} \ No newline at end of file diff --git a/lodash.meanby/tslint.json b/lodash.meanby/tslint.json new file mode 100644 index 0000000000..192203ab54 --- /dev/null +++ b/lodash.meanby/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "../tslint.json" +} \ No newline at end of file diff --git a/lodash.memoize/index.d.ts b/lodash.memoize/index.d.ts index 6a4c57a197..25002a9086 100644 --- a/lodash.memoize/index.d.ts +++ b/lodash.memoize/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { memoize } from "lodash"; export = memoize; diff --git a/lodash.merge/index.d.ts b/lodash.merge/index.d.ts index f4250afe0a..a5352b8cc9 100644 --- a/lodash.merge/index.d.ts +++ b/lodash.merge/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { merge } from "lodash"; export = merge; diff --git a/lodash.mergewith/index.d.ts b/lodash.mergewith/index.d.ts index d22369299e..85cad973d9 100644 --- a/lodash.mergewith/index.d.ts +++ b/lodash.mergewith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { mergeWith } from "lodash"; export = mergeWith; diff --git a/lodash.method/index.d.ts b/lodash.method/index.d.ts index d890f661e2..cee310ff55 100644 --- a/lodash.method/index.d.ts +++ b/lodash.method/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { method } from "lodash"; export = method; diff --git a/lodash.methodof/index.d.ts b/lodash.methodof/index.d.ts index b464af2fc4..5420de784a 100644 --- a/lodash.methodof/index.d.ts +++ b/lodash.methodof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { methodOf } from "lodash"; export = methodOf; diff --git a/lodash.min/index.d.ts b/lodash.min/index.d.ts index 5f4dc842dd..87fccd9876 100644 --- a/lodash.min/index.d.ts +++ b/lodash.min/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { min } from "lodash"; export = min; diff --git a/lodash.minby/index.d.ts b/lodash.minby/index.d.ts index 95293a83bf..d46f507c70 100644 --- a/lodash.minby/index.d.ts +++ b/lodash.minby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { minBy } from "lodash"; export = minBy; diff --git a/lodash.mixin/index.d.ts b/lodash.mixin/index.d.ts index 78190227b1..8a4190762b 100644 --- a/lodash.mixin/index.d.ts +++ b/lodash.mixin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { mixin } from "lodash"; export = mixin; diff --git a/lodash.negate/index.d.ts b/lodash.negate/index.d.ts index 48796a3750..a4c8b4b88e 100644 --- a/lodash.negate/index.d.ts +++ b/lodash.negate/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { negate } from "lodash"; export = negate; diff --git a/lodash.noop/index.d.ts b/lodash.noop/index.d.ts index 632d3d1292..04e6cacbb3 100644 --- a/lodash.noop/index.d.ts +++ b/lodash.noop/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { noop } from "lodash"; export = noop; diff --git a/lodash.now/index.d.ts b/lodash.now/index.d.ts index 80e893d018..ecda7f778d 100644 --- a/lodash.now/index.d.ts +++ b/lodash.now/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { now } from "lodash"; export = now; diff --git a/lodash.ntharg/index.d.ts b/lodash.ntharg/index.d.ts index 51eb387c96..0d35cb5772 100644 --- a/lodash.ntharg/index.d.ts +++ b/lodash.ntharg/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { nthArg } from "lodash"; export = nthArg; diff --git a/lodash.omit/index.d.ts b/lodash.omit/index.d.ts index b60f1d503b..491b505016 100644 --- a/lodash.omit/index.d.ts +++ b/lodash.omit/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { omit } from "lodash"; export = omit; diff --git a/lodash.omitby/index.d.ts b/lodash.omitby/index.d.ts index 82c8b6d063..fee479036b 100644 --- a/lodash.omitby/index.d.ts +++ b/lodash.omitby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { omitBy } from "lodash"; export = omitBy; diff --git a/lodash.once/index.d.ts b/lodash.once/index.d.ts index 3089544fe9..3f8622e6a0 100644 --- a/lodash.once/index.d.ts +++ b/lodash.once/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { once } from "lodash"; export = once; diff --git a/lodash.orderby/index.d.ts b/lodash.orderby/index.d.ts index e862a62e96..b348cefebc 100644 --- a/lodash.orderby/index.d.ts +++ b/lodash.orderby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { orderBy } from "lodash"; export = orderBy; diff --git a/lodash.over/index.d.ts b/lodash.over/index.d.ts index 1df6138a41..5715f0a46e 100644 --- a/lodash.over/index.d.ts +++ b/lodash.over/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { over } from "lodash"; export = over; diff --git a/lodash.overargs/index.d.ts b/lodash.overargs/index.d.ts index 1cd9c19126..576ab8588a 100644 --- a/lodash.overargs/index.d.ts +++ b/lodash.overargs/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { overArgs } from "lodash"; export = overArgs; diff --git a/lodash.overevery/index.d.ts b/lodash.overevery/index.d.ts index 2211dc569b..68d6cd3639 100644 --- a/lodash.overevery/index.d.ts +++ b/lodash.overevery/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { overEvery } from "lodash"; export = overEvery; diff --git a/lodash.oversome/index.d.ts b/lodash.oversome/index.d.ts index f8ec5329f6..4e4fe4eb5c 100644 --- a/lodash.oversome/index.d.ts +++ b/lodash.oversome/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { overSome } from "lodash"; export = overSome; diff --git a/lodash.pad/index.d.ts b/lodash.pad/index.d.ts index 06a7c7f5ac..259c312381 100644 --- a/lodash.pad/index.d.ts +++ b/lodash.pad/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pad } from "lodash"; export = pad; diff --git a/lodash.padend/index.d.ts b/lodash.padend/index.d.ts index b42ad0ab11..825479dae8 100644 --- a/lodash.padend/index.d.ts +++ b/lodash.padend/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { padEnd } from "lodash"; export = padEnd; diff --git a/lodash.padstart/index.d.ts b/lodash.padstart/index.d.ts index b020c51ee5..b3607d61cc 100644 --- a/lodash.padstart/index.d.ts +++ b/lodash.padstart/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { padStart } from "lodash"; export = padStart; diff --git a/lodash.parseint/index.d.ts b/lodash.parseint/index.d.ts index cafd05c882..4724867112 100644 --- a/lodash.parseint/index.d.ts +++ b/lodash.parseint/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { parseInt } from "lodash"; export = parseInt; diff --git a/lodash.partial/index.d.ts b/lodash.partial/index.d.ts index 4d6dc3c303..8466a32963 100644 --- a/lodash.partial/index.d.ts +++ b/lodash.partial/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { partial } from "lodash"; export = partial; diff --git a/lodash.partialright/index.d.ts b/lodash.partialright/index.d.ts index d24675203d..5f9f7bef4d 100644 --- a/lodash.partialright/index.d.ts +++ b/lodash.partialright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { partialRight } from "lodash"; export = partialRight; diff --git a/lodash.partition/index.d.ts b/lodash.partition/index.d.ts index c79c676a46..d481bae93b 100644 --- a/lodash.partition/index.d.ts +++ b/lodash.partition/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { partition } from "lodash"; export = partition; diff --git a/lodash.pick/index.d.ts b/lodash.pick/index.d.ts index 7fa2ef6e84..f27646190a 100644 --- a/lodash.pick/index.d.ts +++ b/lodash.pick/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pick } from "lodash"; export = pick; diff --git a/lodash.pickby/index.d.ts b/lodash.pickby/index.d.ts index 2c72e96edd..0a77aaedc8 100644 --- a/lodash.pickby/index.d.ts +++ b/lodash.pickby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pickBy } from "lodash"; export = pickBy; diff --git a/lodash.property/index.d.ts b/lodash.property/index.d.ts index e9ea2b894e..90e3eb20b3 100644 --- a/lodash.property/index.d.ts +++ b/lodash.property/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { property } from "lodash"; export = property; diff --git a/lodash.propertyof/index.d.ts b/lodash.propertyof/index.d.ts index d52d898afa..2db1d2461f 100644 --- a/lodash.propertyof/index.d.ts +++ b/lodash.propertyof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { propertyOf } from "lodash"; export = propertyOf; diff --git a/lodash.pull/index.d.ts b/lodash.pull/index.d.ts index b60aec6f73..7232218789 100644 --- a/lodash.pull/index.d.ts +++ b/lodash.pull/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pull } from "lodash"; export = pull; diff --git a/lodash.pullall/index.d.ts b/lodash.pullall/index.d.ts index 4c55d19fc0..9503a4c6e5 100644 --- a/lodash.pullall/index.d.ts +++ b/lodash.pullall/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pullAll } from "lodash"; export = pullAll; diff --git a/lodash.pullallby/index.d.ts b/lodash.pullallby/index.d.ts index 18bc32f579..4f5c91696f 100644 --- a/lodash.pullallby/index.d.ts +++ b/lodash.pullallby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pullAllBy } from "lodash"; export = pullAllBy; diff --git a/lodash.pullat/index.d.ts b/lodash.pullat/index.d.ts index 4a7c29cb90..2330713675 100644 --- a/lodash.pullat/index.d.ts +++ b/lodash.pullat/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { pullAt } from "lodash"; export = pullAt; diff --git a/lodash.random/index.d.ts b/lodash.random/index.d.ts index 018f4e1c99..87ba37f817 100644 --- a/lodash.random/index.d.ts +++ b/lodash.random/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { random } from "lodash"; export = random; diff --git a/lodash.range/index.d.ts b/lodash.range/index.d.ts index 289101b98a..6e9871a10a 100644 --- a/lodash.range/index.d.ts +++ b/lodash.range/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { range } from "lodash"; export = range; diff --git a/lodash.rangeright/index.d.ts b/lodash.rangeright/index.d.ts index 15d7f8be2b..b7fcfd8b34 100644 --- a/lodash.rangeright/index.d.ts +++ b/lodash.rangeright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { rangeRight } from "lodash"; export = rangeRight; diff --git a/lodash.rearg/index.d.ts b/lodash.rearg/index.d.ts index 987565e162..8c6f912bcd 100644 --- a/lodash.rearg/index.d.ts +++ b/lodash.rearg/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { rearg } from "lodash"; export = rearg; diff --git a/lodash.reduce/index.d.ts b/lodash.reduce/index.d.ts index 44f4007e94..5ef634a93d 100644 --- a/lodash.reduce/index.d.ts +++ b/lodash.reduce/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { reduce } from "lodash"; export = reduce; diff --git a/lodash.reduceright/index.d.ts b/lodash.reduceright/index.d.ts index 3377523e1a..ee3e05ea62 100644 --- a/lodash.reduceright/index.d.ts +++ b/lodash.reduceright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { reduceRight } from "lodash"; export = reduceRight; diff --git a/lodash.reject/index.d.ts b/lodash.reject/index.d.ts index f7e56a60bc..2a7a953403 100644 --- a/lodash.reject/index.d.ts +++ b/lodash.reject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { reject } from "lodash"; export = reject; diff --git a/lodash.remove/index.d.ts b/lodash.remove/index.d.ts index b6b2871f51..cf3ecdb008 100644 --- a/lodash.remove/index.d.ts +++ b/lodash.remove/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { remove } from "lodash"; export = remove; diff --git a/lodash.repeat/index.d.ts b/lodash.repeat/index.d.ts index a0ab5e77f2..066a9f7741 100644 --- a/lodash.repeat/index.d.ts +++ b/lodash.repeat/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { repeat } from "lodash"; export = repeat; diff --git a/lodash.replace/index.d.ts b/lodash.replace/index.d.ts index d1dc58bad0..deaf6f5925 100644 --- a/lodash.replace/index.d.ts +++ b/lodash.replace/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { replace } from "lodash"; export = replace; diff --git a/lodash.rest/index.d.ts b/lodash.rest/index.d.ts index c8b2728ec5..12d89f07a4 100644 --- a/lodash.rest/index.d.ts +++ b/lodash.rest/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { rest } from "lodash"; export = rest; diff --git a/lodash.result/index.d.ts b/lodash.result/index.d.ts index 344d75766a..ca67b40446 100644 --- a/lodash.result/index.d.ts +++ b/lodash.result/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { result } from "lodash"; export = result; diff --git a/lodash.reverse/index.d.ts b/lodash.reverse/index.d.ts index 8da6b703f7..0486ee3715 100644 --- a/lodash.reverse/index.d.ts +++ b/lodash.reverse/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { reverse } from "lodash"; export = reverse; diff --git a/lodash.round/index.d.ts b/lodash.round/index.d.ts index 828aee5487..5eb7dddb09 100644 --- a/lodash.round/index.d.ts +++ b/lodash.round/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { round } from "lodash"; export = round; diff --git a/lodash.sample/index.d.ts b/lodash.sample/index.d.ts index 2fa651cce8..b5873086e2 100644 --- a/lodash.sample/index.d.ts +++ b/lodash.sample/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sample } from "lodash"; export = sample; diff --git a/lodash.samplesize/index.d.ts b/lodash.samplesize/index.d.ts index 5be09b8960..01a187726b 100644 --- a/lodash.samplesize/index.d.ts +++ b/lodash.samplesize/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sampleSize } from "lodash"; export = sampleSize; diff --git a/lodash.set/index.d.ts b/lodash.set/index.d.ts index 45c51f879a..f76b88790e 100644 --- a/lodash.set/index.d.ts +++ b/lodash.set/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { set } from "lodash"; export = set; diff --git a/lodash.setwith/index.d.ts b/lodash.setwith/index.d.ts index 8c41eb3be6..43502688be 100644 --- a/lodash.setwith/index.d.ts +++ b/lodash.setwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { setWith } from "lodash"; export = setWith; diff --git a/lodash.shuffle/index.d.ts b/lodash.shuffle/index.d.ts index 7b8e65fde0..1283f11844 100644 --- a/lodash.shuffle/index.d.ts +++ b/lodash.shuffle/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { shuffle } from "lodash"; export = shuffle; diff --git a/lodash.size/index.d.ts b/lodash.size/index.d.ts index 6e7201c394..e0aa69d12f 100644 --- a/lodash.size/index.d.ts +++ b/lodash.size/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { size } from "lodash"; export = size; diff --git a/lodash.slice/index.d.ts b/lodash.slice/index.d.ts index b9206644eb..2b53bb2386 100644 --- a/lodash.slice/index.d.ts +++ b/lodash.slice/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { slice } from "lodash"; export = slice; diff --git a/lodash.snakecase/index.d.ts b/lodash.snakecase/index.d.ts index 36fbaec580..db2758999b 100644 --- a/lodash.snakecase/index.d.ts +++ b/lodash.snakecase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { snakeCase } from "lodash"; export = snakeCase; diff --git a/lodash.some/index.d.ts b/lodash.some/index.d.ts index e722a5ccae..3de45fa161 100644 --- a/lodash.some/index.d.ts +++ b/lodash.some/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { some } from "lodash"; export = some; diff --git a/lodash.sortby/index.d.ts b/lodash.sortby/index.d.ts index 028b50fa20..cc75aa6dca 100644 --- a/lodash.sortby/index.d.ts +++ b/lodash.sortby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortBy } from "lodash"; export = sortBy; diff --git a/lodash.sortedindex/index.d.ts b/lodash.sortedindex/index.d.ts index 9c799fec11..ab6e8eca1f 100644 --- a/lodash.sortedindex/index.d.ts +++ b/lodash.sortedindex/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedIndex } from "lodash"; export = sortedIndex; diff --git a/lodash.sortedindexby/index.d.ts b/lodash.sortedindexby/index.d.ts index 73601c7b4d..1f5d0c15ac 100644 --- a/lodash.sortedindexby/index.d.ts +++ b/lodash.sortedindexby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedIndexBy } from "lodash"; export = sortedIndexBy; diff --git a/lodash.sortedindexof/index.d.ts b/lodash.sortedindexof/index.d.ts index 471e408bb9..814afd3e3c 100644 --- a/lodash.sortedindexof/index.d.ts +++ b/lodash.sortedindexof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedIndexOf } from "lodash"; export = sortedIndexOf; diff --git a/lodash.sortedlastindex/index.d.ts b/lodash.sortedlastindex/index.d.ts index 95825a983a..5a1c0faa7d 100644 --- a/lodash.sortedlastindex/index.d.ts +++ b/lodash.sortedlastindex/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedLastIndex } from "lodash"; export = sortedLastIndex; diff --git a/lodash.sortedlastindexby/index.d.ts b/lodash.sortedlastindexby/index.d.ts index e5a167a17b..5b939599b2 100644 --- a/lodash.sortedlastindexby/index.d.ts +++ b/lodash.sortedlastindexby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedLastIndexBy } from "lodash"; export = sortedLastIndexBy; diff --git a/lodash.sortedlastindexof/index.d.ts b/lodash.sortedlastindexof/index.d.ts index c908ede67a..9817ef54f5 100644 --- a/lodash.sortedlastindexof/index.d.ts +++ b/lodash.sortedlastindexof/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedLastIndexOf } from "lodash"; export = sortedLastIndexOf; diff --git a/lodash.sorteduniq/index.d.ts b/lodash.sorteduniq/index.d.ts index c9ff4eb4e7..c8b8feea6f 100644 --- a/lodash.sorteduniq/index.d.ts +++ b/lodash.sorteduniq/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedUniq } from "lodash"; export = sortedUniq; diff --git a/lodash.sorteduniqby/index.d.ts b/lodash.sorteduniqby/index.d.ts index 295d3bcaf3..637895af43 100644 --- a/lodash.sorteduniqby/index.d.ts +++ b/lodash.sorteduniqby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sortedUniqBy } from "lodash"; export = sortedUniqBy; diff --git a/lodash.split/index.d.ts b/lodash.split/index.d.ts index 43c187c455..fd5a261917 100644 --- a/lodash.split/index.d.ts +++ b/lodash.split/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { split } from "lodash"; export = split; diff --git a/lodash.spread/index.d.ts b/lodash.spread/index.d.ts index adaec68385..7bbc4e9245 100644 --- a/lodash.spread/index.d.ts +++ b/lodash.spread/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { spread } from "lodash"; export = spread; diff --git a/lodash.startcase/index.d.ts b/lodash.startcase/index.d.ts index 9c550e4a0c..53798256bc 100644 --- a/lodash.startcase/index.d.ts +++ b/lodash.startcase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { startCase } from "lodash"; export = startCase; diff --git a/lodash.startswith/index.d.ts b/lodash.startswith/index.d.ts index ebb4178ac5..84071e3d10 100644 --- a/lodash.startswith/index.d.ts +++ b/lodash.startswith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { startsWith } from "lodash"; export = startsWith; diff --git a/lodash.subtract/index.d.ts b/lodash.subtract/index.d.ts index 6d148eb796..0b57101cee 100644 --- a/lodash.subtract/index.d.ts +++ b/lodash.subtract/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { subtract } from "lodash"; export = subtract; diff --git a/lodash.sum/index.d.ts b/lodash.sum/index.d.ts index df4194246e..e6aaf24aee 100644 --- a/lodash.sum/index.d.ts +++ b/lodash.sum/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sum } from "lodash"; export = sum; diff --git a/lodash.sumby/index.d.ts b/lodash.sumby/index.d.ts index dad7e3dfa7..e1f21e1454 100644 --- a/lodash.sumby/index.d.ts +++ b/lodash.sumby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { sumBy } from "lodash"; export = sumBy; diff --git a/lodash.tail/index.d.ts b/lodash.tail/index.d.ts index 1edf5423c0..7543f1ae31 100644 --- a/lodash.tail/index.d.ts +++ b/lodash.tail/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { tail } from "lodash"; export = tail; diff --git a/lodash.take/index.d.ts b/lodash.take/index.d.ts index f477178ee3..688eaf7b8d 100644 --- a/lodash.take/index.d.ts +++ b/lodash.take/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { take } from "lodash"; export = take; diff --git a/lodash.takeright/index.d.ts b/lodash.takeright/index.d.ts index f44b5b7a99..9599696c72 100644 --- a/lodash.takeright/index.d.ts +++ b/lodash.takeright/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { takeRight } from "lodash"; export = takeRight; diff --git a/lodash.takerightwhile/index.d.ts b/lodash.takerightwhile/index.d.ts index 1940bdab6a..b0ccc8647f 100644 --- a/lodash.takerightwhile/index.d.ts +++ b/lodash.takerightwhile/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { takeRightWhile } from "lodash"; export = takeRightWhile; diff --git a/lodash.takewhile/index.d.ts b/lodash.takewhile/index.d.ts index b1c7464e21..8e557afdd4 100644 --- a/lodash.takewhile/index.d.ts +++ b/lodash.takewhile/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { takeWhile } from "lodash"; export = takeWhile; diff --git a/lodash.template/index.d.ts b/lodash.template/index.d.ts index af31692e84..a81b832990 100644 --- a/lodash.template/index.d.ts +++ b/lodash.template/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { template } from "lodash"; export = template; diff --git a/lodash.throttle/index.d.ts b/lodash.throttle/index.d.ts index ed74ec008b..0a2903b317 100644 --- a/lodash.throttle/index.d.ts +++ b/lodash.throttle/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { throttle } from "lodash"; export = throttle; diff --git a/lodash.times/index.d.ts b/lodash.times/index.d.ts index adabd498e2..f899aac24e 100644 --- a/lodash.times/index.d.ts +++ b/lodash.times/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { times } from "lodash"; export = times; diff --git a/lodash.toarray/index.d.ts b/lodash.toarray/index.d.ts index 42e878de35..f1cb6ecdea 100644 --- a/lodash.toarray/index.d.ts +++ b/lodash.toarray/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toArray } from "lodash"; export = toArray; diff --git a/lodash.tointeger/index.d.ts b/lodash.tointeger/index.d.ts index 19a97ef2fd..32f5bafbb7 100644 --- a/lodash.tointeger/index.d.ts +++ b/lodash.tointeger/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toInteger } from "lodash"; export = toInteger; diff --git a/lodash.tolength/index.d.ts b/lodash.tolength/index.d.ts index 1170461e93..0af29d75fd 100644 --- a/lodash.tolength/index.d.ts +++ b/lodash.tolength/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toLength } from "lodash"; export = toLength; diff --git a/lodash.tolower/index.d.ts b/lodash.tolower/index.d.ts index 1f350ff005..1403cc4cee 100644 --- a/lodash.tolower/index.d.ts +++ b/lodash.tolower/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toLower } from "lodash"; export = toLower; diff --git a/lodash.tonumber/index.d.ts b/lodash.tonumber/index.d.ts index fd6fe57a0b..aeacc96956 100644 --- a/lodash.tonumber/index.d.ts +++ b/lodash.tonumber/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toNumber } from "lodash"; export = toNumber; diff --git a/lodash.topairs/index.d.ts b/lodash.topairs/index.d.ts index 0623631aac..e5c92897ba 100644 --- a/lodash.topairs/index.d.ts +++ b/lodash.topairs/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toPairs } from "lodash"; export = toPairs; diff --git a/lodash.topairsin/index.d.ts b/lodash.topairsin/index.d.ts index 6da8aac997..c4980bf227 100644 --- a/lodash.topairsin/index.d.ts +++ b/lodash.topairsin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toPairsIn } from "lodash"; export = toPairsIn; diff --git a/lodash.topath/index.d.ts b/lodash.topath/index.d.ts index ed9ce7c5a9..5647cbca88 100644 --- a/lodash.topath/index.d.ts +++ b/lodash.topath/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toPath } from "lodash"; export = toPath; diff --git a/lodash.toplainobject/index.d.ts b/lodash.toplainobject/index.d.ts index c1b5793d7d..27de1990bd 100644 --- a/lodash.toplainobject/index.d.ts +++ b/lodash.toplainobject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toPlainObject } from "lodash"; export = toPlainObject; diff --git a/lodash.tosafeinteger/index.d.ts b/lodash.tosafeinteger/index.d.ts index b126b0188a..c8d7567a70 100644 --- a/lodash.tosafeinteger/index.d.ts +++ b/lodash.tosafeinteger/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toSafeInteger } from "lodash"; export = toSafeInteger; diff --git a/lodash.tostring/index.d.ts b/lodash.tostring/index.d.ts index bf9ed55be9..42f59393f1 100644 --- a/lodash.tostring/index.d.ts +++ b/lodash.tostring/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toString } from "lodash"; export = toString; diff --git a/lodash.toupper/index.d.ts b/lodash.toupper/index.d.ts index 9e26f50c2b..02bef92ae3 100644 --- a/lodash.toupper/index.d.ts +++ b/lodash.toupper/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { toUpper } from "lodash"; export = toUpper; diff --git a/lodash.transform/index.d.ts b/lodash.transform/index.d.ts index 78c4bfdb7c..ac5ee501cf 100644 --- a/lodash.transform/index.d.ts +++ b/lodash.transform/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { transform } from "lodash"; export = transform; diff --git a/lodash.trim/index.d.ts b/lodash.trim/index.d.ts index 4848a6ddbd..7aa6fcc4e6 100644 --- a/lodash.trim/index.d.ts +++ b/lodash.trim/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { trim } from "lodash"; export = trim; diff --git a/lodash.trimend/index.d.ts b/lodash.trimend/index.d.ts index 116f295b06..1e871b2126 100644 --- a/lodash.trimend/index.d.ts +++ b/lodash.trimend/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { trimEnd } from "lodash"; export = trimEnd; diff --git a/lodash.trimstart/index.d.ts b/lodash.trimstart/index.d.ts index 93df2c2483..c525bf5c8e 100644 --- a/lodash.trimstart/index.d.ts +++ b/lodash.trimstart/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { trimStart } from "lodash"; export = trimStart; diff --git a/lodash.truncate/index.d.ts b/lodash.truncate/index.d.ts index b658478894..cb421e8a26 100644 --- a/lodash.truncate/index.d.ts +++ b/lodash.truncate/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { truncate } from "lodash"; export = truncate; diff --git a/lodash.unary/index.d.ts b/lodash.unary/index.d.ts index 55c5e46f1d..12a281f507 100644 --- a/lodash.unary/index.d.ts +++ b/lodash.unary/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unary } from "lodash"; export = unary; diff --git a/lodash.unescape/index.d.ts b/lodash.unescape/index.d.ts index c78fecec34..8340900768 100644 --- a/lodash.unescape/index.d.ts +++ b/lodash.unescape/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unescape } from "lodash"; export = unescape; diff --git a/lodash.union/index.d.ts b/lodash.union/index.d.ts index 386967dec1..cddbaf12aa 100644 --- a/lodash.union/index.d.ts +++ b/lodash.union/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { union } from "lodash"; export = union; diff --git a/lodash.unionby/index.d.ts b/lodash.unionby/index.d.ts index dc0c0f1245..9c64ce9ed8 100644 --- a/lodash.unionby/index.d.ts +++ b/lodash.unionby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unionBy } from "lodash"; export = unionBy; diff --git a/lodash.unionwith/index.d.ts b/lodash.unionwith/index.d.ts index da2cae278a..a3757085ba 100644 --- a/lodash.unionwith/index.d.ts +++ b/lodash.unionwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unionWith } from "lodash"; export = unionWith; diff --git a/lodash.uniq/index.d.ts b/lodash.uniq/index.d.ts index 675b710028..a274db1b67 100644 --- a/lodash.uniq/index.d.ts +++ b/lodash.uniq/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { uniq } from "lodash"; export = uniq; diff --git a/lodash.uniqby/index.d.ts b/lodash.uniqby/index.d.ts index 0eedfb6d3f..c6dcd7c0c1 100644 --- a/lodash.uniqby/index.d.ts +++ b/lodash.uniqby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { uniqBy } from "lodash"; export = uniqBy; diff --git a/lodash.uniqueid/index.d.ts b/lodash.uniqueid/index.d.ts index abd2ebf55c..046d62d775 100644 --- a/lodash.uniqueid/index.d.ts +++ b/lodash.uniqueid/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { uniqueId } from "lodash"; export = uniqueId; diff --git a/lodash.uniqwith/index.d.ts b/lodash.uniqwith/index.d.ts index 6541b4ef03..515bcc2cba 100644 --- a/lodash.uniqwith/index.d.ts +++ b/lodash.uniqwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { uniqWith } from "lodash"; export = uniqWith; diff --git a/lodash.unset/index.d.ts b/lodash.unset/index.d.ts index dcf8e6881a..7662c3fd56 100644 --- a/lodash.unset/index.d.ts +++ b/lodash.unset/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unset } from "lodash"; export = unset; diff --git a/lodash.unzip/index.d.ts b/lodash.unzip/index.d.ts index 6fe3ebc759..60adfd32e9 100644 --- a/lodash.unzip/index.d.ts +++ b/lodash.unzip/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unzip } from "lodash"; export = unzip; diff --git a/lodash.unzipwith/index.d.ts b/lodash.unzipwith/index.d.ts index 64f86e45e7..641d1c1468 100644 --- a/lodash.unzipwith/index.d.ts +++ b/lodash.unzipwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { unzipWith } from "lodash"; export = unzipWith; diff --git a/lodash.update/index.d.ts b/lodash.update/index.d.ts index 27c5499aeb..f861786fd0 100644 --- a/lodash.update/index.d.ts +++ b/lodash.update/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { update } from "lodash"; export = update; diff --git a/lodash.uppercase/index.d.ts b/lodash.uppercase/index.d.ts index 82e3f7af39..152bf80399 100644 --- a/lodash.uppercase/index.d.ts +++ b/lodash.uppercase/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { upperCase } from "lodash"; export = upperCase; diff --git a/lodash.upperfirst/index.d.ts b/lodash.upperfirst/index.d.ts index 27cfc0bdc2..b76d75f8b6 100644 --- a/lodash.upperfirst/index.d.ts +++ b/lodash.upperfirst/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { upperFirst } from "lodash"; export = upperFirst; diff --git a/lodash.values/index.d.ts b/lodash.values/index.d.ts index 633dbed76d..ff22e7ef36 100644 --- a/lodash.values/index.d.ts +++ b/lodash.values/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { values } from "lodash"; export = values; diff --git a/lodash.valuesin/index.d.ts b/lodash.valuesin/index.d.ts index 1cca8a411d..9137156620 100644 --- a/lodash.valuesin/index.d.ts +++ b/lodash.valuesin/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { valuesIn } from "lodash"; export = valuesIn; diff --git a/lodash.without/index.d.ts b/lodash.without/index.d.ts index 41a55ad642..88cea94b79 100644 --- a/lodash.without/index.d.ts +++ b/lodash.without/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { without } from "lodash"; export = without; diff --git a/lodash.words/index.d.ts b/lodash.words/index.d.ts index 6b886a190f..8076cee94f 100644 --- a/lodash.words/index.d.ts +++ b/lodash.words/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { words } from "lodash"; export = words; diff --git a/lodash.wrap/index.d.ts b/lodash.wrap/index.d.ts index 18ee43f769..ef1e41cb4c 100644 --- a/lodash.wrap/index.d.ts +++ b/lodash.wrap/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { wrap } from "lodash"; export = wrap; diff --git a/lodash.xor/index.d.ts b/lodash.xor/index.d.ts index 6a641cd153..819ad96d72 100644 --- a/lodash.xor/index.d.ts +++ b/lodash.xor/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { xor } from "lodash"; export = xor; diff --git a/lodash.xorby/index.d.ts b/lodash.xorby/index.d.ts index 49ef941467..a60b78d049 100644 --- a/lodash.xorby/index.d.ts +++ b/lodash.xorby/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { xorBy } from "lodash"; export = xorBy; diff --git a/lodash.xorwith/index.d.ts b/lodash.xorwith/index.d.ts index 30b53691f9..ccf6499b89 100644 --- a/lodash.xorwith/index.d.ts +++ b/lodash.xorwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { xorWith } from "lodash"; export = xorWith; diff --git a/lodash.zip/index.d.ts b/lodash.zip/index.d.ts index f4793f82ae..278d7a7cff 100644 --- a/lodash.zip/index.d.ts +++ b/lodash.zip/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { zip } from "lodash"; export = zip; diff --git a/lodash.zipobject/index.d.ts b/lodash.zipobject/index.d.ts index df8d4929f9..63e4661ff6 100644 --- a/lodash.zipobject/index.d.ts +++ b/lodash.zipobject/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { zipObject } from "lodash"; export = zipObject; diff --git a/lodash.zipwith/index.d.ts b/lodash.zipwith/index.d.ts index e5b4a6714a..93c417ca57 100644 --- a/lodash.zipwith/index.d.ts +++ b/lodash.zipwith/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import { zipWith } from "lodash"; export = zipWith; diff --git a/lodash/index.d.ts b/lodash/index.d.ts index 678e0c58b9..0cda5ae3d5 100644 --- a/lodash/index.d.ts +++ b/lodash/index.d.ts @@ -2,6 +2,7 @@ // Project: http://lodash.com/ // Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /** ### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog) @@ -241,7 +242,10 @@ export as namespace _; declare var _: _.LoDashStatic; +type PartialObject = Partial; + declare namespace _ { + type Many = T | T[]; interface LoDashStatic { @@ -6558,9 +6562,9 @@ declare namespace _ { /** * @see _.every */ - every( + every( collection: List|Dictionary|NumericDictionary, - predicate?: TObject + predicate?: PartialObject ): boolean; } @@ -6582,8 +6586,8 @@ declare namespace _ { /** * @see _.every */ - every( - predicate?: TObject + every( + predicate?: PartialObject ): boolean; } @@ -6605,8 +6609,8 @@ declare namespace _ { /** * @see _.every */ - every( - predicate?: TObject + every( + predicate?: PartialObject ): boolean; } @@ -6628,8 +6632,8 @@ declare namespace _ { /** * @see _.every */ - every( - predicate?: TObject + every( + predicate?: PartialObject ): LoDashExplicitWrapper; } @@ -6651,8 +6655,8 @@ declare namespace _ { /** * @see _.every */ - every( - predicate?: TObject + every( + predicate?: PartialObject ): LoDashExplicitWrapper; } @@ -6708,9 +6712,9 @@ declare namespace _ { /** * @see _.filter */ - filter( + filter( collection: List|Dictionary, - predicate: W + predicate: PartialObject ): T[]; } @@ -6741,7 +6745,7 @@ declare namespace _ { /** * @see _.filter */ - filter(predicate: W): LoDashImplicitArrayWrapper; + filter(predicate: PartialObject): LoDashImplicitArrayWrapper; } interface LoDashImplicitObjectWrapper { @@ -6762,7 +6766,7 @@ declare namespace _ { /** * @see _.filter */ - filter(predicate: W): LoDashImplicitArrayWrapper; + filter(predicate: PartialObject): LoDashImplicitArrayWrapper; } interface LoDashExplicitWrapper { @@ -6792,7 +6796,7 @@ declare namespace _ { /** * @see _.filter */ - filter(predicate: W): LoDashExplicitArrayWrapper; + filter(predicate: PartialObject): LoDashExplicitArrayWrapper; } interface LoDashExplicitObjectWrapper { @@ -6813,7 +6817,7 @@ declare namespace _ { /** * @see _.filter */ - filter(predicate: W): LoDashExplicitArrayWrapper; + filter(predicate: PartialObject): LoDashExplicitArrayWrapper; } //_.find @@ -6863,9 +6867,9 @@ declare namespace _ { /** * @see _.find */ - find( + find( collection: List|Dictionary, - predicate?: TObject, + predicate?: PartialObject, fromIndex?: number ): T|undefined; } @@ -6890,8 +6894,8 @@ declare namespace _ { /** * @see _.find */ - find( - predicate?: TObject, + find( + predicate?: PartialObject, fromIndex?: number ): T|undefined; } @@ -6916,8 +6920,8 @@ declare namespace _ { /** * @see _.find */ - find( - predicate?: TObject, + find( + predicate?: PartialObject, fromIndex?: number ): TResult|undefined; } @@ -9204,9 +9208,9 @@ declare namespace _ { /** * @see _.some */ - some( + some( collection: List|Dictionary|NumericDictionary, - predicate?: TObject + predicate?: PartialObject ): boolean; /** @@ -9214,15 +9218,15 @@ declare namespace _ { */ some( collection: List|Dictionary|NumericDictionary, - predicate?: Object + predicate?: PartialObject ): boolean; /** * @see _.some */ - some( + some( collection: Object, - predicate?: TObject + predicate?: PartialObject ): boolean; } @@ -9244,8 +9248,8 @@ declare namespace _ { /** * @see _.some */ - some( - predicate?: TObject + some( + predicate?: PartialObject ): boolean; } @@ -9267,8 +9271,8 @@ declare namespace _ { /** * @see _.some */ - some( - predicate?: TObject + some( + predicate?: PartialObject ): boolean; } @@ -9290,8 +9294,8 @@ declare namespace _ { /** * @see _.some */ - some( - predicate?: TObject + some( + predicate?: PartialObject ): LoDashExplicitWrapper; } @@ -9313,8 +9317,8 @@ declare namespace _ { /** * @see _.some */ - some( - predicate?: TObject + some( + predicate?: PartialObject ): LoDashExplicitWrapper; } diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index c1a5ca3e64..7268f1a8c2 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -3530,49 +3530,49 @@ namespace TestEvery { result = _.every(array, listIterator); result = _.every(array, 'a'); result = _.every(array, ['a', 42]); - result = _.every<{a: number}, SampleObject>(array, {a: 42}); + result = _.every(array, {a: 42}); result = _.every(list); result = _.every(list, listIterator); result = _.every(list, 'a'); result = _.every(list, ['a', 42]); - result = _.every<{a: number}, SampleObject>(list, {a: 42}); + result = _.every(list, {a: 42}); result = _.every(dictionary); result = _.every(dictionary, dictionaryIterator); result = _.every(dictionary, 'a'); result = _.every(dictionary, ['a', 42]); - result = _.every<{a: number}, SampleObject>(dictionary, {a: 42}); + result = _.every(dictionary, {a: 42}); result = _.every(numericDictionary); result = _.every(numericDictionary, numericDictionaryIterator); result = _.every(numericDictionary, 'a'); result = _.every(numericDictionary, ['a', 42]); - result = _.every<{a: number}, SampleObject>(numericDictionary, {a: 42}); + result = _.every(numericDictionary, {a: 42}); result = _(array).every(); result = _(array).every(listIterator); result = _(array).every('a'); result = _(array).every(['a', 42]); - result = _(array).every<{a: number}>({a: 42}); + result = _(array).every({a: 42}); result = _(list).every(); result = _(list).every(listIterator); result = _(list).every('a'); result = _(list).every(['a', 42]); - result = _(list).every<{a: number}>({a: 42}); + result = _(list).every({a: 42}); result = _(dictionary).every(); result = _(dictionary).every(dictionaryIterator); result = _(dictionary).every('a'); result = _(dictionary).every(['a', 42]); - result = _(dictionary).every<{a: number}>({a: 42}); + result = _(dictionary).every({a: 42}); result = _(numericDictionary).every(); result = _(numericDictionary).every(numericDictionaryIterator); result = _(numericDictionary).every('a'); result = _(numericDictionary).every(['a', 42]); - result = _(numericDictionary).every<{a: number}>({a: 42}); + result = _(numericDictionary).every({a: 42}); } { @@ -3582,19 +3582,19 @@ namespace TestEvery { result = _(array).chain().every(listIterator); result = _(array).chain().every('a'); result = _(array).chain().every(['a', 42]); - result = _(array).chain().every<{a: number}>({a: 42}); + result = _(array).chain().every({a: 42}); result = _(list).chain().every(); result = _(list).chain().every(listIterator); result = _(list).chain().every('a'); result = _(list).chain().every(['a', 42]); - result = _(list).chain().every<{a: number}>({a: 42}); + result = _(list).chain().every({a: 42}); result = _(dictionary).chain().every(); result = _(dictionary).chain().every(dictionaryIterator); result = _(dictionary).chain().every('a'); result = _(dictionary).chain().every(['a', 42]); - result = _(dictionary).chain().every<{a: number}>({a: 42}); + result = _(dictionary).chain().every({a: 42}); result = _(numericDictionary).chain().every(); result = _(numericDictionary).chain().every(numericDictionaryIterator); @@ -3625,15 +3625,15 @@ namespace TestFilter { result = _.filter(array, listIterator); result = _.filter(array, ''); - result = _.filter<{a: number}, TResult>(array, {a: 42}); + result = _.filter(array, {a: 42}); result = _.filter(list, listIterator); result = _.filter(list, ''); - result = _.filter<{a: number}, TResult>(list, {a: 42}); + result = _.filter(list, {a: 42}); result = _.filter(dictionary, dictionaryIterator); result = _.filter(dictionary, ''); - result = _.filter<{a: number}, TResult>(dictionary, {a: 42}); + result = _.filter(dictionary, {a: 42}); } { @@ -3647,15 +3647,15 @@ namespace TestFilter { result = _(array).filter(listIterator); result = _(array).filter(''); - result = _(array).filter<{a: number}>({a: 42}); + result = _(array).filter({a: 42}); result = _(list).filter(listIterator); result = _(list).filter(''); - result = _(list).filter<{a: number}, TResult>({a: 42}); + result = _(list).filter({a: 42}); result = _(dictionary).filter(dictionaryIterator); result = _(dictionary).filter(''); - result = _(dictionary).filter<{a: number}, TResult>({a: 42}); + result = _(dictionary).filter({a: 42}); } { @@ -3669,15 +3669,15 @@ namespace TestFilter { result = _(array).chain().filter(listIterator); result = _(array).chain().filter(''); - result = _(array).chain().filter<{a: number}>({a: 42}); + result = _(array).chain().filter({a: 42}); result = _(list).chain().filter(listIterator); result = _(list).chain().filter(''); - result = _(list).chain().filter<{a: number}, TResult>({a: 42}); + result = _(list).chain().filter({a: 42}); result = _(dictionary).chain().filter(dictionaryIterator); result = _(dictionary).chain().filter(''); - result = _(dictionary).chain().filter<{a: number}, TResult>({a: 42}); + result = _(dictionary).chain().filter({a: 42}); } } @@ -3697,48 +3697,48 @@ namespace TestFind { result = _.find(array, listIterator, 1); result = _.find(array, ''); result = _.find(array, '', 1); - result = _.find<{a: number}, TResult>(array, {a: 42}); - result = _.find<{a: number}, TResult>(array, {a: 42}, 1); + result = _.find(array, {a: 42}); + result = _.find(array, {a: 42}, 1); result = _.find(list); result = _.find(list, listIterator); result = _.find(list, listIterator, 1); result = _.find(list, ''); result = _.find(list, '', 1); - result = _.find<{a: number}, TResult>(list, {a: 42}); - result = _.find<{a: number}, TResult>(list, {a: 42}, 1); + result = _.find(list, {a: 42}); + result = _.find(list, {a: 42}, 1); result = _.find(dictionary); result = _.find(dictionary, dictionaryIterator); result = _.find(dictionary, dictionaryIterator, 1); result = _.find(dictionary, ''); result = _.find(dictionary, '', 1); - result = _.find<{a: number}, TResult>(dictionary, {a: 42}); - result = _.find<{a: number}, TResult>(dictionary, {a: 42}, 1); + result = _.find(dictionary, {a: 42}); + result = _.find(dictionary, {a: 42}, 1); result = _(array).find(); result = _(array).find(listIterator); result = _(array).find(listIterator, 1); result = _(array).find(''); result = _(array).find('', 1); - result = _(array).find<{a: number}>({a: 42}); - result = _(array).find<{a: number}>({a: 42}, 1); + result = _(array).find({a: 42}); + result = _(array).find({a: 42}, 1); result = _(list).find(); result = _(list).find(listIterator); result = _(list).find(listIterator, 1); result = _(list).find(''); result = _(list).find('', 1); - result = _(list).find<{a: number}, TResult>({a: 42}); - result = _(list).find<{a: number}, TResult>({a: 42}, 1); + result = _(list).find({a: 42}); + result = _(list).find({a: 42}, 1); result = _(dictionary).find(); result = _(dictionary).find(dictionaryIterator); result = _(dictionary).find(dictionaryIterator, 1); result = _(dictionary).find(''); result = _(dictionary).find('', 1); - result = _(dictionary).find<{a: number}, TResult>({a: 42}); - result = _(dictionary).find<{a: number}, TResult>({a: 42}, 1); + result = _(dictionary).find({a: 42}); + result = _(dictionary).find({a: 42}, 1); } result = _.findLast([1, 2, 3, 4], function (num) { @@ -5014,25 +5014,25 @@ namespace TestSome { result = _.some(array, listIterator); result = _.some(array, 'a'); result = _.some(array, ['a', 42]); - result = _.some<{a: number}, SampleObject>(array, {a: 42}); + result = _.some(array, {a: 42}); result = _.some(list); result = _.some(list, listIterator); result = _.some(list, 'a'); result = _.some(list, ['a', 42]); - result = _.some<{a: number}, SampleObject>(list, {a: 42}); + result = _.some(list, {a: 42}); result = _.some(dictionary); result = _.some(dictionary, dictionaryIterator); result = _.some(dictionary, 'a'); result = _.some(dictionary, ['a', 42]); - result = _.some<{a: number}, SampleObject>(dictionary, {a: 42}); + result = _.some(dictionary, {a: 42}); result = _.some(numericDictionary); result = _.some(numericDictionary, numericDictionaryIterator); result = _.some(numericDictionary, 'a'); result = _.some(numericDictionary, ['a', 42]); - result = _.some<{a: number}, SampleObject>(numericDictionary, {a: 42}); + result = _.some(numericDictionary, {a: 42}); result = _.some(sampleObject); result = _.some(sampleObject, objectIterator); @@ -5044,31 +5044,31 @@ namespace TestSome { result = _(array).some(listIterator); result = _(array).some('a'); result = _(array).some(['a', 42]); - result = _(array).some<{a: number}>({a: 42}); + result = _(array).some({a: 42}); result = _(list).some(); result = _(list).some(listIterator); result = _(list).some('a'); result = _(list).some(['a', 42]); - result = _(list).some<{a: number}>({a: 42}); + result = _(list).some({a: 42}); result = _(dictionary).some(); result = _(dictionary).some(dictionaryIterator); result = _(dictionary).some('a'); result = _(dictionary).some(['a', 42]); - result = _(dictionary).some<{a: number}>({a: 42}); + result = _(dictionary).some({a: 42}); result = _(numericDictionary).some(); result = _(numericDictionary).some(numericDictionaryIterator); result = _(numericDictionary).some('a'); result = _(numericDictionary).some(['a', 42]); - result = _(numericDictionary).some<{a: number}>({a: 42}); + result = _(numericDictionary).some({a: 42}); result = _(sampleObject).some(); result = _(sampleObject).some(objectIterator); result = _(sampleObject).some('a'); result = _(sampleObject).some(['a', 42]); - result = _(sampleObject).some<{a: number}>({a: 42}); + result = _(sampleObject).some({a: 42}); } { @@ -5078,31 +5078,31 @@ namespace TestSome { result = _(array).chain().some(listIterator); result = _(array).chain().some('a'); result = _(array).chain().some(['a', 42]); - result = _(array).chain().some<{a: number}>({a: 42}); + result = _(array).chain().some({a: 42}); result = _(list).chain().some(); result = _(list).chain().some(listIterator); result = _(list).chain().some('a'); result = _(list).chain().some(['a', 42]); - result = _(list).chain().some<{a: number}>({a: 42}); + result = _(list).chain().some({a: 42}); result = _(dictionary).chain().some(); result = _(dictionary).chain().some(dictionaryIterator); result = _(dictionary).chain().some('a'); result = _(dictionary).chain().some(['a', 42]); - result = _(dictionary).chain().some<{a: number}>({a: 42}); + result = _(dictionary).chain().some({a: 42}); result = _(numericDictionary).chain().some(); result = _(numericDictionary).chain().some(numericDictionaryIterator); result = _(numericDictionary).chain().some('a'); result = _(numericDictionary).chain().some(['a', 42]); - result = _(numericDictionary).chain().some<{a: number}>({a: 42}); + result = _(numericDictionary).chain().some({a: 42}); result = _(sampleObject).chain().some(); result = _(sampleObject).chain().some(objectIterator); result = _(sampleObject).chain().some('a'); result = _(sampleObject).chain().some(['a', 42]); - result = _(sampleObject).chain().some<{a: number}>({a: 42}); + result = _(sampleObject).chain().some({a: 42}); } } diff --git a/lodash/meanBy/index.d.ts b/lodash/meanBy/index.d.ts index 3004930ef6..e4651a4412 100644 --- a/lodash/meanBy/index.d.ts +++ b/lodash/meanBy/index.d.ts @@ -1,3 +1,2 @@ -import * as _ from "../index"; -declare const meanBy: typeof _.meanBy; -export = meanBy; +import { meanBy } from "../index"; +export = meanBy; \ No newline at end of file diff --git a/lodash/scripts/generate-modules.ts b/lodash/scripts/generate-modules.ts index 127f1f44c6..395bb7ab4d 100644 --- a/lodash/scripts/generate-modules.ts +++ b/lodash/scripts/generate-modules.ts @@ -1,16 +1,124 @@ -// Usage: ts-node generate-modules +// Usage: ts-node generate-modules.ts /// import * as fs from "fs"; +import { get, STATUS_CODES } from "http"; +import * as path from "path"; -for (const module of allModuleNames()) { - if (!fs.existsSync(module)) { - fs.mkdirSync(module); +main().catch(console.error); + +async function main() { + const all = new Set(allModuleNames()); + const notOnNpm = new Set(modulesNotOnNpm()); + for (const n of notOnNpm) { + if (!all.has(n)) { + throw new Error(n); + } + } + + for (const module of all) { + console.log(module); + + // Generate local module + const localDir = path.join("..", module); + ensureDir(localDir); + fs.writeFileSync(path.join(localDir, "index.d.ts"), `import { ${module} } from "../index";\nexport = ${module};`); + + // Generate non-local module + if (!notOnNpm.has(module)) { + const dir = path.join("..", "..", `lodash.${module.toLowerCase()}`); + ensureDir(dir); + fs.writeFileSync(path.join(dir, "index.d.ts"), await globalDefinitionText(module)); + fs.writeFileSync(path.join(dir, "tsconfig.json"), tsconfig()); + fs.writeFileSync(path.join(dir, "tslint.json"), tslint()); + } } - fs.writeFileSync(`${module}/index.d.ts`, `import { ${module} } from "../index";\nexport = ${module};`); } +function ensureDir(dir: string) { + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir); + } +} + +async function globalDefinitionText(moduleName: string): Promise { + const fullName = "lodash." + moduleName; + const url = `http://registry.npmjs.org/${fullName.toLowerCase()}`; + const npmInfo = JSON.parse(await loadString(url)); + const fullVersion = npmInfo["dist-tags"].latest; + const majorMinor = fullVersion.split(".").slice(0, 2).join("."); + + return ` +// Type definitions for ${fullName} ${majorMinor} +// Project: http://lodash.com/ +// Definitions by: Brian Zengel , Ilya Mochalov , Stepan Mikhaylyuk +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +import { ${moduleName} } from "lodash"; +export = ${moduleName}; +`.trim() + "\n"; +} + +function tsconfig() { + return JSON.stringify({ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } + }, undefined, 4); +} + +function tslint() { + return JSON.stringify({ + "extends": "../tslint.json" + }, undefined, 4); +} + + +function loadString(url: string): Promise { + return new Promise((resolve, reject) => { + get(url, (res) => { + if (res.statusCode !== 200) { + return reject(new Error(`HTTP Error ${res.statusCode}: ${STATUS_CODES[res.statusCode || 500]} for ${url}`)) + } + let rawData = "" + res.on("data", chunk => rawData += chunk) + res.on("end", () => resolve(rawData)) + }).on("error", e => reject(e)) + }) +} + +function modulesNotOnNpm() { + return [ + "chain", + "each", + "eachRight", + "extend", + "extendWith", + "noConflict", + "runInContext", + "tap", + "thru", + ]; +} + +// Note: "fb" is not a usual module, so it is made by hand. + function allModuleNames() { return [ "add", @@ -66,7 +174,6 @@ function allModuleNames() { "every", "extend", "extendWith", - "fb", "fill", "filter", "find", diff --git a/lodash/scripts/tsconfig.json b/lodash/scripts/tsconfig.json new file mode 100644 index 0000000000..a06b8ed24f --- /dev/null +++ b/lodash/scripts/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "es6", + "baseUrl": "../..", + "typeRoots": [ + "../../" + ], + "types": [] + } +} \ No newline at end of file diff --git a/lorem-ipsum/index.d.ts b/lorem-ipsum/index.d.ts new file mode 100644 index 0000000000..0a2210c0d8 --- /dev/null +++ b/lorem-ipsum/index.d.ts @@ -0,0 +1,65 @@ +// Type definitions for lorem-ipsum 1.0 +// Project: https://github.com/knicklabs/node-lorem-ipsum +// Definitions by: Dusan Radovanovic +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface LoremIpsumOptions { + /** + * Number of words, sentences, or paragraphs to generate. + */ + count?: number; + + /** + * Generate words, sentences, or paragraphs. + */ + units?: 'words' | 'sentences' | 'paragraphs'; + + /** + * Minimum words per sentence. + */ + sentenceLowerBound?: number; + + /** + * Maximum words per sentence. + */ + sentenceUpperBound?: number; + + /** + * Minimum sentences per paragraph. + */ + paragraphLowerBound?: number; + + /** + * Maximum sentences per paragraph. + */ + paragraphUpperBound?: number; + + /** + * Plain text or html. + */ + format?: 'plain' | 'html'; + + /** + * Custom word dictionary. + */ + words?: string[]; + + /** + * A PRNG function. Uses Math.random by default. + */ + random?: () => number; + + /** + * The character to insert between paragraphs. Defaults to default EOL. + */ + suffix?: string; +} + +declare namespace loremIpsum {} + +/** + * Generate a passage of lorem ipsum text. + */ +declare function loremIpsum(options?: LoremIpsumOptions): string; + +export = loremIpsum; diff --git a/lorem-ipsum/lorem-ipsum-tests.ts b/lorem-ipsum/lorem-ipsum-tests.ts new file mode 100644 index 0000000000..697c222257 --- /dev/null +++ b/lorem-ipsum/lorem-ipsum-tests.ts @@ -0,0 +1,14 @@ +import * as loremIpsum from 'lorem-ipsum'; + +let result: string; +result = loremIpsum(); +result = loremIpsum({}); +result = loremIpsum({ count: 20 }); +result = loremIpsum({ count: 20, units: 'words' }); +result = loremIpsum({ count: 3, units: 'paragraphs' }); +result = loremIpsum({ random: () => Math.random() * Math.random() }); +result = loremIpsum({ paragraphLowerBound: 3, paragraphUpperBound: 6, count: 3, units: 'paragraphs' }); +result = loremIpsum({ sentenceLowerBound: 10, sentenceUpperBound: 15, count: 5, units: 'sentences' }); +result = loremIpsum({ words: ['a', 'b', 'c'] }); +result = loremIpsum({ suffix: '-' }); +result = loremIpsum({ format: 'html' }); diff --git a/lorem-ipsum/tsconfig.json b/lorem-ipsum/tsconfig.json new file mode 100644 index 0000000000..7e756f052b --- /dev/null +++ b/lorem-ipsum/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "lorem-ipsum-tests.ts" + ] +} diff --git a/lorem-ipsum/tslint.json b/lorem-ipsum/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/lorem-ipsum/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/material-ui/index.d.ts b/material-ui/index.d.ts index 716505987d..665cdc6a24 100644 --- a/material-ui/index.d.ts +++ b/material-ui/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/callemall/material-ui // Definitions by: Nathan Brown , Oliver Herrmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// /// diff --git a/materialize-css/index.d.ts b/materialize-css/index.d.ts index 14e68a7c21..ea844d959f 100644 --- a/materialize-css/index.d.ts +++ b/materialize-css/index.d.ts @@ -16,6 +16,18 @@ declare namespace Materialize { * A setting that changes the collapsible behavior to expandable instead of the default accordion style */ accordion: boolean; + + /** + * Callback for Collapsible section close. + * Default: function() { alert('Closed'); } + */ + onClose?: Function; + + /** + * Callback for Collapsible section open. + * Default: function() { alert('Opened'); } + */ + onOpen?: Function; } interface TooltipOptions { diff --git a/materialize-css/materialize-css-tests.ts b/materialize-css/materialize-css-tests.ts index 45c9c84a76..15189e1b8f 100644 --- a/materialize-css/materialize-css-tests.ts +++ b/materialize-css/materialize-css-tests.ts @@ -44,8 +44,8 @@ var collapseHtml = '

    ' + '' + '
'; -$(collapseHtml).collapsible({ accordion : false }); -$(collapseHtml).collapsible({ accordion : true }); +$(collapseHtml).collapsible({ accordion : false, onClose : function() { alert('Closed'); } }); +$(collapseHtml).collapsible({ accordion : true, onOpen : function() { alert('Opened'); } }); // Dialogs - Toasts Materialize.toast('I am a toast!', 4000); diff --git a/mathjs/index.d.ts b/mathjs/index.d.ts index d11a72d97b..bf20869909 100644 --- a/mathjs/index.d.ts +++ b/mathjs/index.d.ts @@ -1036,7 +1036,7 @@ declare namespace mathjs { asech(x: MathArray): MathArray; asech(x: Matrix): Matrix; - /** + /** * Calculate the inverse sine of a value. For matrices, the function is evaluated element wise. */ asin(x: number): number; @@ -1163,6 +1163,16 @@ declare namespace mathjs { sin(x: MathArray): MathArray; sin(x: Matrix): Matrix; + /** + * Calculate the cosine of a value. For matrices, the function is evaluated element wise. + */ + cos(x: number): number; + cos(x: BigNumber): BigNumber; + cos(x: Complex): Complex; + cos(x: Unit): number; + cos(x: MathArray): MathArray; + cos(x: Matrix): Matrix; + /** * Calculate the hyperbolic sine of a value, defined as sinh(x) = 1/2 * (exp(x) - exp(-x)). For matrices, the function is evaluated element wise. */ diff --git a/mathjs/mathjs-tests.ts b/mathjs/mathjs-tests.ts index c174ca1c95..3d4d87d72a 100644 --- a/mathjs/mathjs-tests.ts +++ b/mathjs/mathjs-tests.ts @@ -11,6 +11,8 @@ Basic usage examples math.log(10000, 10); // 4 math.sqrt(-4); // 2i math.pow([[-1, 2], [3, 1]], 2); // [[7, 0], [0, 7]] + var angle = 0.2; + math.add(math.pow(math.sin(angle), 2), math.pow(math.cos(angle), 2)); // returns number ~1 // expressions math.eval('1.2 * (2 + 4.5)'); // 7.8 diff --git a/mobservable-react/index.d.ts b/mobservable-react/index.d.ts index a5f77cf5d4..4c035c2b5f 100644 --- a/mobservable-react/index.d.ts +++ b/mobservable-react/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/mweststrate/mobservable-react // Definitions by: Michel Weststrate // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import * as React from 'react'; diff --git a/modernizr/index.d.ts b/modernizr/index.d.ts index a447f3acea..7fd0ffa316 100644 --- a/modernizr/index.d.ts +++ b/modernizr/index.d.ts @@ -1,382 +1,379 @@ -// Type definitions for Modernizr 3.2.0 +// Type definitions for Modernizr 3.2 // Project: http://modernizr.com/ -// Definitions by: Boris Yankov , Theodore Brown , Leon Yu +// Definitions by: Boris Yankov , Theodore Brown , Leon Yu , Luca Trazzi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = Modernizr; // support AMD require -export as namespace Modernizr; // keep a global namespace - -declare namespace __Modernizr { - interface AudioBoolean { - ogg: boolean; - mp3: boolean; - wav: boolean; - m4a: boolean; - } - - interface VideoBoolean { - ogg: boolean; - h264: boolean; - webm: boolean; - } - - interface InputBoolean { - autocomplete: boolean; - autofocus: boolean; - list: boolean; - placeholder: boolean; - max: boolean; - min: boolean; - multiple: boolean; - pattern: boolean; - required: boolean; - step: boolean; - } - - interface InputTypesBoolean { - color: boolean; - date: boolean; - datetime: boolean; - "datetime-local": boolean; - email: boolean; - month: boolean; - number: boolean; - range: boolean; - search: boolean; - tel: boolean; - time: boolean; - url: boolean; - week: boolean; - } - - interface FeatureDetects { - // Documented - - ambientlight: boolean; - applicationcache: boolean; - audio: AudioBoolean; - batteryapi: boolean; - blobconstructor: boolean; - canvas: boolean; - canvastext: boolean; - contenteditable: boolean; - contextmenu: boolean; - cookies: boolean; - cors: boolean; - cryptography: boolean; - customprotocolhandler: boolean; - customevent: boolean; - dart: boolean; - dataview: boolean; - emoji: boolean; - eventlistener: boolean; - exiforientation: boolean; - flash: boolean; - forcetouch: boolean; - fullscreen: boolean; - gamepads: boolean; - geolocation: boolean; - hashchange: boolean; - hiddenscroll: boolean; - history: boolean; - htmlimports: boolean; - ie8compat: boolean; - indexeddb: boolean; - indexeddbblob: boolean; - input: InputBoolean; - search: boolean; - inputtypes: InputTypesBoolean; - intl: boolean; - json: boolean; - ligatures: boolean; - olreversed: boolean; - mathml: boolean; - notification: boolean; - pagevisibility: boolean; - performance: boolean; - pointerevents: boolean; - pointerlock: boolean; - postmessage: boolean; - proximity: boolean; - queryselector: boolean; - quotamanagement: boolean; - requestanimationframe: boolean; - serviceworker: boolean; - svg: boolean; - templatestrings: boolean; - touchevents: boolean; - typedarrays: boolean; - unicoderange: boolean; - unicode: boolean; - userdata: boolean; - vibrate: boolean; - video: VideoBoolean; - vml: boolean; - webintents: boolean; - animation: boolean; - webgl: boolean; - websockets: boolean; - xdomainrequest: boolean; - adownload: boolean; - audioloop: boolean; - audiopreload: boolean; - webaudio: boolean; - lowbattery: boolean; - canvasblending: boolean; - todataurljpeg: boolean; - todataurlpng: boolean; - todataurlwebp: boolean; - canvaswinding: boolean; - getrandomvalues: boolean; - cssall: boolean; - cssanimations: boolean; - appearance: boolean; - backdropfilter: boolean; - backgroundblendmode: boolean; - backgroundcliptext: boolean; - bgpositionshorthand: boolean; - bgpositionxy: boolean; - bgrepeatspace: boolean; - bgrepeatround: boolean; - backgroundsize: boolean; - bgsizecover: boolean; - borderimage: boolean; - borderradius: boolean; - boxshadow: boolean; - boxsizing: boolean; - csscalc: boolean; - checked: boolean; - csschunit: boolean; - csscolumns: boolean; - cubicbezierrange: boolean; - "display-runin": boolean; - displaytable: boolean; - ellipsis: boolean; - cssescape: boolean; - cssexunit: boolean; - cssfilters: boolean; - flexbox: boolean; - flexboxlegacy: boolean; - flexboxtweener: boolean; - flexwrap: boolean; - fontface: boolean; - generatedcontent: boolean; - cssgradients: boolean; - csshairline: boolean; - hsla: boolean; - csshyphens: boolean; - softhyphens: boolean; - softhyphensfind: boolean; - cssinvalid: boolean; - lastchild: boolean; - cssmask: boolean; - mediaqueries: boolean; - multiplebgs: boolean; - nthchild: boolean; - objectfit: boolean; - opacity: boolean; - overflowscrolling: boolean; - csspointerevents: boolean; - csspositionsticky: boolean; - csspseudoanimations: boolean; - csspseudotransitions: boolean; - cssreflections: boolean; - regions: boolean; - cssremunit: boolean; - cssresize: boolean; - rgba: boolean; - cssscrollbar: boolean; - scrollsnappoints: boolean; - shapes: boolean; - siblinggeneral: boolean; - subpixelfont: boolean; - supports: boolean; - target: boolean; - textalignlast: boolean; - textshadow: boolean; - csstransforms: boolean; - csstransforms3d: boolean; - preserve3d: boolean; - csstransitions: boolean; - userselect: boolean; - cssvalid: boolean; - cssvhunit: boolean; - cssvmaxunit: boolean; - cssvminunit: boolean; - cssvwunit: boolean; - willchange: boolean; - wrapflow: boolean; - classlist: boolean; - createelementattrs: boolean; - "createelement-attrs": boolean; - dataset: boolean; - documentfragment: boolean; - hidden: boolean; - microdata: boolean; - mutationobserver: boolean; - bdi: boolean; - datalistelem: boolean; - details: boolean; - outputelem: boolean; - picture: boolean; - progressbar: boolean; - meter: boolean; - ruby: boolean; - template: boolean; - time: boolean; - texttrackapi: boolean; - track: boolean; - unknownelements: boolean; - es5array: boolean; - es5date: boolean; - es5function: boolean; - es5object: boolean; - es5: boolean; - strictmode: boolean; - es5string: boolean; - es5syntax: boolean; - es5undefined: boolean; - es6array: boolean; - es6collections: boolean; - contains: boolean; - generators: boolean; - es6math: boolean; - es6number: boolean; - es6object: boolean; - promises: boolean; - es6string: boolean; - devicemotion: boolean; - deviceorientation: boolean; - oninput: boolean; - filereader: boolean; - filesystem: boolean; - capture: boolean; - fileinput: boolean; - directory: boolean; - formattribute: boolean; - localizednumber: boolean; - placeholder: boolean; - requestautocomplete: boolean; - formvalidation: boolean; - sandbox: boolean; - seamless: boolean; - srcdoc: boolean; - apng: boolean; - imgcrossorigin: boolean; - jpeg2000: boolean; - jpegxr: boolean; - sizes: boolean; - srcset: boolean; - webpalpha: boolean; - webpanimation: boolean; - webplossless: boolean; - "webp-lossless": boolean; - webp: boolean; - inputformaction: boolean; - inputformenctype: boolean; - inputformmethod: boolean; - inputformtarget: boolean; - beacon: boolean; - lowbandwidth: boolean; - eventsource: boolean; - fetch: boolean; - xhrresponsetypearraybuffer: boolean; - xhrresponsetypeblob: boolean; - xhrresponsetypedocument: boolean; - xhrresponsetypejson: boolean; - xhrresponsetypetext: boolean; - xhrresponsetype: boolean; - xhr2: boolean; - scriptasync: boolean; - scriptdefer: boolean; - speechrecognition: boolean; - speechsynthesis: boolean; - localstorage: boolean; - sessionstorage: boolean; - websqldatabase: boolean; - stylescoped: boolean; - svgasimg: boolean; - svgclippaths: boolean; - svgfilters: boolean; - svgforeignobject: boolean; - inlinesvg: boolean; - smil: boolean; - textareamaxlength: boolean; - bloburls: boolean; - datauri: boolean; - urlparser: boolean; - videoautoplay: boolean; - videoloop: boolean; - videopreload: boolean; - webglextensions: boolean; - datachannel: boolean; - getusermedia: boolean; - peerconnection: boolean; - websocketsbinary: boolean; - atobbtoa: boolean; - framed: boolean; - matchmedia: boolean; - blobworkers: boolean; - dataworkers: boolean; - sharedworkers: boolean; - transferables: boolean; - webworkers: boolean; - - // Undocumented - usually aliases or new features - - "atob-btoa": boolean; - "battery-api": boolean; - "blob-constructor": boolean; - "display-table": boolean; - "input-formaction": boolean; - "input-formenctype": boolean; - "input-formtarget": boolean; - "object-fit": boolean; - crypto: boolean; - displayrunin: boolean; - fileinputdirectory: boolean; - hairline: boolean; - inputsearchevent: boolean; - raf: boolean; - webanimations: boolean; - } - - interface Dictionary { - [key: string]: T; - } - - interface ModernizrAPI { - on(feature: string, cb: (result: boolean) => any): void; - - addTest(feature: string, test: () => boolean): void; - addTest(feature: string, test: boolean): void; - addTest(feature: Dictionary): void; - - atRule(prop: string): boolean; - - _domPrefixes: string[]; - - hasEvent(eventName: string, element?: EventTarget): boolean; - - mq(mq: string): boolean; - - prefixed(prop: string): string; - prefixed(prop: string, obj: EventTarget, element?: boolean): any; - - prefixedCSS(prop: string): string; - - prefixedCSSValue(prop: string, value: string): string; - - _prefixes: string[]; - - testAllProps(prop: string, value?: string, skipValueTest?: boolean): boolean; - - testProp(prop: string, value?: string, useValue?: boolean): boolean; - - testStyles(rule: string, callback: (elem: HTMLDivElement, rule: string) => void, nodes?: number, testnames?: string[]): boolean; - } - - export interface ModernizrStatic extends ModernizrAPI, FeatureDetects { } +interface AudioBoolean { + ogg: boolean; + mp3: boolean; + wav: boolean; + m4a: boolean; } -declare var Modernizr: __Modernizr.ModernizrStatic; +interface VideoBoolean { + ogg: boolean; + h264: boolean; + webm: boolean; +} + +interface InputBoolean { + autocomplete: boolean; + autofocus: boolean; + list: boolean; + placeholder: boolean; + max: boolean; + min: boolean; + multiple: boolean; + pattern: boolean; + required: boolean; + step: boolean; +} + +interface InputTypesBoolean { + color: boolean; + date: boolean; + datetime: boolean; + "datetime-local": boolean; + email: boolean; + month: boolean; + number: boolean; + range: boolean; + search: boolean; + tel: boolean; + time: boolean; + url: boolean; + week: boolean; +} + +interface FeatureDetects { + // Documented + + ambientlight: boolean; + applicationcache: boolean; + audio: AudioBoolean; + batteryapi: boolean; + blobconstructor: boolean; + canvas: boolean; + canvastext: boolean; + contenteditable: boolean; + contextmenu: boolean; + cookies: boolean; + cors: boolean; + cryptography: boolean; + customprotocolhandler: boolean; + customevent: boolean; + dart: boolean; + dataview: boolean; + emoji: boolean; + eventlistener: boolean; + exiforientation: boolean; + flash: boolean; + forcetouch: boolean; + fullscreen: boolean; + gamepads: boolean; + geolocation: boolean; + hashchange: boolean; + hiddenscroll: boolean; + history: boolean; + htmlimports: boolean; + ie8compat: boolean; + indexeddb: boolean; + indexeddbblob: boolean; + input: InputBoolean; + search: boolean; + inputtypes: InputTypesBoolean; + intl: boolean; + json: boolean; + ligatures: boolean; + olreversed: boolean; + mathml: boolean; + notification: boolean; + pagevisibility: boolean; + performance: boolean; + pointerevents: boolean; + pointerlock: boolean; + postmessage: boolean; + proximity: boolean; + queryselector: boolean; + quotamanagement: boolean; + requestanimationframe: boolean; + serviceworker: boolean; + svg: boolean; + templatestrings: boolean; + touchevents: boolean; + typedarrays: boolean; + unicoderange: boolean; + unicode: boolean; + userdata: boolean; + vibrate: boolean; + video: VideoBoolean; + vml: boolean; + webintents: boolean; + animation: boolean; + webgl: boolean; + websockets: boolean; + xdomainrequest: boolean; + adownload: boolean; + audioloop: boolean; + audiopreload: boolean; + webaudio: boolean; + lowbattery: boolean; + canvasblending: boolean; + todataurljpeg: boolean; + todataurlpng: boolean; + todataurlwebp: boolean; + canvaswinding: boolean; + getrandomvalues: boolean; + cssall: boolean; + cssanimations: boolean; + appearance: boolean; + backdropfilter: boolean; + backgroundblendmode: boolean; + backgroundcliptext: boolean; + bgpositionshorthand: boolean; + bgpositionxy: boolean; + bgrepeatspace: boolean; + bgrepeatround: boolean; + backgroundsize: boolean; + bgsizecover: boolean; + borderimage: boolean; + borderradius: boolean; + boxshadow: boolean; + boxsizing: boolean; + csscalc: boolean; + checked: boolean; + csschunit: boolean; + csscolumns: boolean; + cubicbezierrange: boolean; + "display-runin": boolean; + displaytable: boolean; + ellipsis: boolean; + cssescape: boolean; + cssexunit: boolean; + cssfilters: boolean; + flexbox: boolean; + flexboxlegacy: boolean; + flexboxtweener: boolean; + flexwrap: boolean; + fontface: boolean; + generatedcontent: boolean; + cssgradients: boolean; + csshairline: boolean; + hsla: boolean; + csshyphens: boolean; + softhyphens: boolean; + softhyphensfind: boolean; + cssinvalid: boolean; + lastchild: boolean; + cssmask: boolean; + mediaqueries: boolean; + multiplebgs: boolean; + nthchild: boolean; + objectfit: boolean; + opacity: boolean; + overflowscrolling: boolean; + csspointerevents: boolean; + csspositionsticky: boolean; + csspseudoanimations: boolean; + csspseudotransitions: boolean; + cssreflections: boolean; + regions: boolean; + cssremunit: boolean; + cssresize: boolean; + rgba: boolean; + cssscrollbar: boolean; + scrollsnappoints: boolean; + shapes: boolean; + siblinggeneral: boolean; + subpixelfont: boolean; + supports: boolean; + target: boolean; + textalignlast: boolean; + textshadow: boolean; + csstransforms: boolean; + csstransforms3d: boolean; + preserve3d: boolean; + csstransitions: boolean; + userselect: boolean; + cssvalid: boolean; + cssvhunit: boolean; + cssvmaxunit: boolean; + cssvminunit: boolean; + cssvwunit: boolean; + willchange: boolean; + wrapflow: boolean; + classlist: boolean; + createelementattrs: boolean; + "createelement-attrs": boolean; + dataset: boolean; + documentfragment: boolean; + hidden: boolean; + microdata: boolean; + mutationobserver: boolean; + bdi: boolean; + datalistelem: boolean; + details: boolean; + outputelem: boolean; + picture: boolean; + progressbar: boolean; + meter: boolean; + ruby: boolean; + template: boolean; + time: boolean; + texttrackapi: boolean; + track: boolean; + unknownelements: boolean; + es5array: boolean; + es5date: boolean; + es5function: boolean; + es5object: boolean; + es5: boolean; + strictmode: boolean; + es5string: boolean; + es5syntax: boolean; + es5undefined: boolean; + es6array: boolean; + es6collections: boolean; + contains: boolean; + generators: boolean; + es6math: boolean; + es6number: boolean; + es6object: boolean; + promises: boolean; + es6string: boolean; + devicemotion: boolean; + deviceorientation: boolean; + oninput: boolean; + filereader: boolean; + filesystem: boolean; + capture: boolean; + fileinput: boolean; + directory: boolean; + formattribute: boolean; + localizednumber: boolean; + placeholder: boolean; + requestautocomplete: boolean; + formvalidation: boolean; + sandbox: boolean; + seamless: boolean; + srcdoc: boolean; + apng: boolean; + imgcrossorigin: boolean; + jpeg2000: boolean; + jpegxr: boolean; + sizes: boolean; + srcset: boolean; + webpalpha: boolean; + webpanimation: boolean; + webplossless: boolean; + "webp-lossless": boolean; + webp: boolean; + inputformaction: boolean; + inputformenctype: boolean; + inputformmethod: boolean; + inputformtarget: boolean; + beacon: boolean; + lowbandwidth: boolean; + eventsource: boolean; + fetch: boolean; + xhrresponsetypearraybuffer: boolean; + xhrresponsetypeblob: boolean; + xhrresponsetypedocument: boolean; + xhrresponsetypejson: boolean; + xhrresponsetypetext: boolean; + xhrresponsetype: boolean; + xhr2: boolean; + scriptasync: boolean; + scriptdefer: boolean; + speechrecognition: boolean; + speechsynthesis: boolean; + localstorage: boolean; + sessionstorage: boolean; + websqldatabase: boolean; + stylescoped: boolean; + svgasimg: boolean; + svgclippaths: boolean; + svgfilters: boolean; + svgforeignobject: boolean; + inlinesvg: boolean; + smil: boolean; + textareamaxlength: boolean; + bloburls: boolean; + datauri: boolean; + urlparser: boolean; + videoautoplay: boolean; + videoloop: boolean; + videopreload: boolean; + webglextensions: boolean; + datachannel: boolean; + getusermedia: boolean; + peerconnection: boolean; + websocketsbinary: boolean; + atobbtoa: boolean; + framed: boolean; + matchmedia: boolean; + blobworkers: boolean; + dataworkers: boolean; + sharedworkers: boolean; + transferables: boolean; + webworkers: boolean; + + // Undocumented - usually aliases or new features + + "atob-btoa": boolean; + "battery-api": boolean; + "blob-constructor": boolean; + "display-table": boolean; + "input-formaction": boolean; + "input-formenctype": boolean; + "input-formtarget": boolean; + "object-fit": boolean; + crypto: boolean; + displayrunin: boolean; + fileinputdirectory: boolean; + hairline: boolean; + inputsearchevent: boolean; + raf: boolean; + webanimations: boolean; +} + +interface Dictionary { + [key: string]: T; +} + +interface ModernizrAPI { + on(feature: string, cb: (result: boolean) => any): void; + + addTest(feature: string, test: (() => boolean) | boolean): void; + addTest(feature: Dictionary): void; + + atRule(prop: string): boolean; + + _domPrefixes: string[]; + + hasEvent(eventName: string, element?: EventTarget): boolean; + + mq(mq: string): boolean; + + prefixed(prop: string): string; + prefixed(prop: string, obj: EventTarget, element?: boolean): any; + + prefixedCSS(prop: string): string; + + prefixedCSSValue(prop: string, value: string): string; + + _prefixes: string[]; + + testAllProps(prop: string, value?: string, skipValueTest?: boolean): boolean; + + testProp(prop: string, value?: string, useValue?: boolean): boolean; + + testStyles(rule: string, callback: (elem: HTMLDivElement, rule: string) => void, nodes?: number, testnames?: string[]): boolean; +} + +interface ModernizrStatic extends ModernizrAPI, FeatureDetects { } + +declare var Modernizr: ModernizrStatic; +declare module "Modernizr" { + export = Modernizr; +} diff --git a/modernizr/tslint.json b/modernizr/tslint.json new file mode 100644 index 0000000000..8ba2515dc2 --- /dev/null +++ b/modernizr/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "../tslint.json", + "rules": { + "no-single-declare-module": false, + "no-empty-interface": false + } +} \ No newline at end of file diff --git a/moment-round/index.d.ts b/moment-round/index.d.ts new file mode 100644 index 0000000000..441cec3f6f --- /dev/null +++ b/moment-round/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for moment-round 1.0 +// Project: https://github.com/WebDevTmas/moment-round +// Definitions by: Jacob Baskin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as moment from 'moment'; + +export = moment; + +declare module 'moment' { + interface Moment { + round(precision: number, key: string, direction?: 'round' | 'ceil' | 'floor'): Moment; + ceil(precision: number, key: string): Moment; + floor(precision: number, key: string): Moment; + } +} diff --git a/moment-round/moment-round-tests.ts b/moment-round/moment-round-tests.ts new file mode 100644 index 0000000000..063e3cbea4 --- /dev/null +++ b/moment-round/moment-round-tests.ts @@ -0,0 +1,8 @@ +import * as moment from 'moment'; + +var m = moment(); +m.round(5, 'seconds'); +m.ceil(3, 'minutes'); +m.floor(16, 'hours'); +m.ceil(21, 'hours'); +m.ceil(20, 'hours'); diff --git a/moment-round/package.json b/moment-round/package.json new file mode 100644 index 0000000000..4c6d24a445 --- /dev/null +++ b/moment-round/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "moment": ">=2.14.0" + } +} \ No newline at end of file diff --git a/moment-round/tsconfig.json b/moment-round/tsconfig.json new file mode 100644 index 0000000000..7054df992f --- /dev/null +++ b/moment-round/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "moment-round-tests.ts" + ] +} diff --git a/moment-round/tslint.json b/moment-round/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/moment-round/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/mqtt/index.d.ts b/mqtt/index.d.ts index 256c0a5394..f52aede457 100644 --- a/mqtt/index.d.ts +++ b/mqtt/index.d.ts @@ -235,6 +235,10 @@ declare namespace mqtt { */ handleMessage(packet: Packet, callback: Function): Client; + /** + * get last message id. This is for sent messages only. + */ + getLastMessageId(): number; } /** diff --git a/navigation-react/index.d.ts b/navigation-react/index.d.ts index 131ce29735..32ee6570f3 100644 --- a/navigation-react/index.d.ts +++ b/navigation-react/index.d.ts @@ -2,6 +2,8 @@ // Project: http://grahammendick.github.io/navigation/ // Definitions by: Graham Mendick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + import { StateNavigator } from 'navigation'; import { Component, HTMLProps } from 'react'; diff --git a/ngreact/index.d.ts b/ngreact/index.d.ts index f9df0f694f..b20a35cad2 100644 --- a/ngreact/index.d.ts +++ b/ngreact/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/ngReact/ngReact // Definitions by: Vicky Lai // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 /// /// diff --git a/node-waves/index.d.ts b/node-waves/index.d.ts new file mode 100644 index 0000000000..ce5c63da2e --- /dev/null +++ b/node-waves/index.d.ts @@ -0,0 +1,67 @@ +// Type definitions for node-waves 0.7 +// Project: http://fian.my.id/Waves +// Definitions by: Stephen Lautier +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +type ElementTarget = string | Element | Element[]; + +export interface WavesConfig { + /** + * Determines how long the waves effect duration (in milliseconds). + * + */ + duration?: number; + + /** + * Delay amount to show waves effect on touch and hide the effect if user scrolls. + * Set to 0 to disable delay (in milliseconds). + * + */ + delay?: number; +} + +export interface RippleOptions { + + /** + * Specify how long to wait between starting and stopping the ripple. + * + */ + wait?: number | null; + + /** + * Specify the position inside the element. + * + */ + position?: { + x: number; + y: number; + } | null; +} + +/** + * Initializes waves with an optional config. + */ +export function init(config?: WavesConfig): void; + +/** + * Attach ripple effect by adding `.waves-effect` to HTML element. + * Make sure you call `init` to activate the ripple. + * + * @param {ElementTarget} elements elements to target. + * @param {(string | string[])} [classes] classes to add. + */ +export function attach(elements: ElementTarget, classes?: string | string[]): void; + +/** + * Creates a ripple effect in HTML element programmatically. + * @param {ElementTarget} elements elements to target (must have `.waves-effect` already applied, ideally via `attach`). + * @param {RippleOptions} [options] specify how long to wait between starting and stopping the ripple, and it's position inside the element. + */ +export function ripple(elements: ElementTarget, options?: RippleOptions): void; + +/** + * Removes all ripples from inside an element immediately. + * + * @param {ElementTarget} elements elements to remove ripples from. + */ +export function calm(elements: ElementTarget): void; diff --git a/node-waves/node-waves-tests.ts b/node-waves/node-waves-tests.ts new file mode 100644 index 0000000000..adfb59703a --- /dev/null +++ b/node-waves/node-waves-tests.ts @@ -0,0 +1,10 @@ + +import { init, ripple, attach, calm } from "node-waves"; + +init({ delay: 300 }); + +attach("button", "waves-light"); + +ripple(".box", { wait: null }); + +calm(".box"); diff --git a/node-waves/tsconfig.json b/node-waves/tsconfig.json new file mode 100644 index 0000000000..c069824144 --- /dev/null +++ b/node-waves/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "node-waves-tests.ts" + ] +} diff --git a/node-waves/tslint.json b/node-waves/tslint.json new file mode 100644 index 0000000000..377cc837d4 --- /dev/null +++ b/node-waves/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } diff --git a/node-zookeeper-client/index.d.ts b/node-zookeeper-client/index.d.ts new file mode 100644 index 0000000000..227ebd45ad --- /dev/null +++ b/node-zookeeper-client/index.d.ts @@ -0,0 +1,169 @@ +// Type definitions for node-zookeeper-client 0.2 +// Project: https://github.com/alexguan/node-zookeeper-client +// Definitions by: York Yao +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +/// + +import * as EventEmitter from "events"; + +export class Id { + scheme: string; + id: string; + constructor(scheme: string, id: string); +} + +export class ACL { + perms: number; + id: Id; + constructor(perms: number, id: Id); +} + +export const Permission: { + READ: number, + WRITE: number, + CREATE: number, + DELETE: number, + ADMIN: number, + ALL: number, +}; + +export interface Stat { + czxid: number; + mzxid: number; + ctime: number; + mtime: number; + version: number; + cversion: number; + aversion: number; + ephemeralOwner: number; + dataLength: number; + numChildren: number; + pzxid: number; +} + +export class State { + static DISCONNECTED: State; + static SYNC_CONNECTED: State; + static AUTH_FAILED: State; + static CONNECTED_READ_ONLY: State; + static SASL_AUTHENTICATED: State; + static EXPIRED: State; + + name: string; + code: number; + constructor(name: string, code: number); + toString(): string; +} + +export class Event { + static NODE_CREATED: number; + static NODE_DELETED: number; + static NODE_DATA_CHANGED: number; + static NODE_CHILDREN_CHANGED: number; + type: string; + name: string; + path: string; + constructor(type: string, name: string, path: string); + toString(): string; + getType(): string; + getName(): string; + getPath(): string; +} + +interface Transaction { + create(path: string, dataOrAclsOrmode1?: Buffer | ACL[] | number, dataOrAclsOrmode2?: Buffer | ACL[] | number, dataOrAclsOrmode3?: Buffer | ACL[] | number): this; + setData(path: string, data: Buffer | null, version?: number): this; + check(path: string, version?: number): this; + remove(path: string, version?: number): this; + commit(callback: (error: Error | Exception, results: any) => void): void; +} + +interface Client extends EventEmitter { + connect(): void; + close(): void; + create(path: string, callback: (error: Error | Exception, path: string) => void): void; + create(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + create(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, dataOrAclsOrmode2: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + create(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, dataOrAclsOrmode2: Buffer | ACL[] | number, dataOrAclsOrmode3: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + remove(path: string, callback: (error: Error | Exception) => void): void; + remove(path: string, version: number, callback: (error: Error | Exception) => void): void; + exists(path: string, callback: (error: Error | Exception, stat: Stat) => void): void; + exists(path: string, watcher: (event: Event) => void, callback: (error: Error | Exception, stat: Stat) => void): void; + getChildren(path: string, callback: (error: Error | Exception, children: string[], stat: Stat) => void): void; + getChildren(path: string, watcher: (event: Event) => void, callback: (error: Error | Exception, children: string[], stat: Stat) => void): void; + getData(path: string, callback: (error: Error | Exception, data: Buffer, stat: Stat) => void): void; + getData(path: string, watcher: (event: Event) => void, callback: (error: Error | Exception, data: Buffer, stat: Stat) => void): void; + setData(path: string, data: Buffer | null, callback: (error: Error | Exception, stat: Stat) => void): void; + setData(path: string, data: Buffer | null, version: number, callback: (error: Error | Exception, stat: Stat) => void): void; + getACL(path: string, callback: (error: Error | Exception, acls: ACL[], stat: Stat) => void): void; + setACL(path: string, acls: ACL[], callback: (error: Error | Exception, stat: Stat) => void): void; + setACL(path: string, acls: ACL[], version: number, callback: (error: Error | Exception, stat: Stat) => void): void; + transaction(): Transaction; + mkdirp(path: string, callback: (error: Error | Exception, path: string) => void): void; + mkdirp(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + mkdirp(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, dataOrAclsOrmode2: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + mkdirp(path: string, dataOrAclsOrmode1: Buffer | ACL[] | number, dataOrAclsOrmode2: Buffer | ACL[] | number, dataOrAclsOrmode3: Buffer | ACL[] | number, callback: (error: Error | Exception, path: string) => void): void; + addAuthInfo(scheme: string, auth: Buffer): void; + getState(): State; + getSessionId(): Buffer; + getSessionPassword(): Buffer; + getSessionTimeout(): number; + + on(event: "state", cb: (state: State) => void): this; + on(event: "connected" | "connectedReadOnly" | "disconnected" | "expired" | "authenticationFailed" | string, cb: () => void): this; + + once(event: "state", cb: (state: State) => void): this; + once(event: "connected" | "connectedReadOnly" | "disconnected" | "expired" | "authenticationFailed" | string, cb: () => void): this; + + addListener(event: "state", cb: (state: State) => void): this; + addListener(event: "connected" | "connectedReadOnly" | "disconnected" | "expired" | "authenticationFailed" | string, cb: () => void): this; +} + +export interface Option { + sessionTimeout: number; + spinDelay: number; + retries: number; +} + +export function createClient(connectionString: string, options?: Partial