From 1da2bd0daf5e8d9d4d83b393a12475d86e3cbf69 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Wed, 10 Oct 2018 20:07:13 +0100 Subject: [PATCH 001/213] Initial commit --- types/d3-graphviz/d3-graphviz-tests.ts | 0 types/d3-graphviz/index.d.ts | 39 ++++++++++++++++++++++++++ types/d3-graphviz/tsconfig.json | 22 +++++++++++++++ types/d3-graphviz/tslint.json | 1 + 4 files changed, 62 insertions(+) create mode 100644 types/d3-graphviz/d3-graphviz-tests.ts create mode 100644 types/d3-graphviz/index.d.ts create mode 100644 types/d3-graphviz/tsconfig.json create mode 100644 types/d3-graphviz/tslint.json diff --git a/types/d3-graphviz/d3-graphviz-tests.ts b/types/d3-graphviz/d3-graphviz-tests.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts new file mode 100644 index 0000000000..8dc81e1f1c --- /dev/null +++ b/types/d3-graphviz/index.d.ts @@ -0,0 +1,39 @@ +// Type definitions for d3-graphviz 2.6 +// Project: https://github.com/magjac/d3-graphviz +// Definitions by: Dom Parfitt +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/*~ If this module is a UMD module that exposes a global variable 'myLib' when + *~ loaded outside a module loader environment, declare that global here. + *~ Otherwise, delete this declaration. + */ +export as namespace myLib; + +/*~ If this module has methods, declare them as functions like so. + */ +export function myMethod(a: string): string; +export function myOtherMethod(a: number): number; + +/*~ You can declare types that are available via importing the module */ +export interface someType { + name: string; + length: number; + extras?: string[]; +} + +/*~ You can declare properties of the module using const, let, or var */ +export const myField: number; + +/*~ If there are types, properties, or methods inside dotted names + *~ of the module, declare them inside a 'namespace'. + */ +export namespace subProp { + /*~ For example, given this definition, someone could write: + *~ import { subProp } from 'yourModule'; + *~ subProp.foo(); + *~ or + *~ import * as yourMod from 'yourModule'; + *~ yourMod.subProp.foo(); + */ + export function foo(): void; +} \ No newline at end of file diff --git a/types/d3-graphviz/tsconfig.json b/types/d3-graphviz/tsconfig.json new file mode 100644 index 0000000000..42e41a7b1f --- /dev/null +++ b/types/d3-graphviz/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-graphviz-tests.ts" + ] +} diff --git a/types/d3-graphviz/tslint.json b/types/d3-graphviz/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/d3-graphviz/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From b9679651519dcd925a489548d30a0c8e4f7144f2 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Thu, 11 Oct 2018 21:22:31 +0100 Subject: [PATCH 002/213] Began defining functions --- types/d3-graphviz/index.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 8dc81e1f1c..7adf792638 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -3,6 +3,24 @@ // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export function extractElementData(element: any): any; +export function extractAllElementsData(element: any): any; +export function createElement(data: any): any; +export function createElementWithAttributes(data: any): any; +export function replaceElement(element: any, data: any): any; +export function insertElementData(element: any, datum: any): void; +export function insertAllElementsData(element: any, datum: any): void; +export function insertChildren(element: any, index: any): void; +export function attributeElement(data: any): void; +export function shallowCopyObject(obj: any): any; +export function roundTo4Decimals(x: number): number; +// var zoom$1 = function (enable) +export function createZoomBehavior(): any; +export function getTranslatedZoomTransform(selection$$1: any): any; +export function translateZoomBehaviorTransform(selection$$1: any): any; + +// ======================================================================== + /*~ If this module is a UMD module that exposes a global variable 'myLib' when *~ loaded outside a module loader environment, declare that global here. *~ Otherwise, delete this declaration. From 0f692416dca28aaa4f9f04203853735c7e9d8734 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 11:17:01 +0100 Subject: [PATCH 003/213] Added top level exported function, options interface and Graphviz object interface --- types/d3-graphviz/index.d.ts | 103 +++++++++++++++++++---------------- 1 file changed, 57 insertions(+), 46 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 7adf792638..e1e7bd0cd9 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -3,55 +3,66 @@ // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export function extractElementData(element: any): any; -export function extractAllElementsData(element: any): any; -export function createElement(data: any): any; -export function createElementWithAttributes(data: any): any; -export function replaceElement(element: any, data: any): any; -export function insertElementData(element: any, datum: any): void; -export function insertAllElementsData(element: any, datum: any): void; -export function insertChildren(element: any, index: any): void; -export function attributeElement(data: any): void; -export function shallowCopyObject(obj: any): any; -export function roundTo4Decimals(x: number): number; -// var zoom$1 = function (enable) -export function createZoomBehavior(): any; -export function getTranslatedZoomTransform(selection$$1: any): any; -export function translateZoomBehaviorTransform(selection$$1: any): any; - -// ======================================================================== - -/*~ If this module is a UMD module that exposes a global variable 'myLib' when - *~ loaded outside a module loader environment, declare that global here. - *~ Otherwise, delete this declaration. +/** + * + * @param selector + * @param options */ -export as namespace myLib; +export function graphviz(selector: string, options: IGraphvizOptions | boolean): IGraphviz; -/*~ If this module has methods, declare them as functions like so. - */ -export function myMethod(a: string): string; -export function myOtherMethod(a: number): number; - -/*~ You can declare types that are available via importing the module */ -export interface someType { - name: string; - length: number; - extras?: string[]; +export interface IGraphvizOptions { + useWorker?: boolean, + engine?: string, + totalMemory?: number, + keyMode?: string, + fade?: boolean, + tweenPaths?: boolean, + tweenShapes?: boolean, + convertEqualSidedPolygons?: boolean, + tweenPrecision?: number, + growEnteringEdges?: boolean, + zoom?: boolean, + zoomScaleExtent?: number[], + zoomTranslateExtent?: number[][], + width?: number, + height?: number, + scale?: number, + fit?: boolean, } -/*~ You can declare properties of the module using const, let, or var */ -export const myField: number; +export interface IGraphviz { + engine(engine: string): IGraphviz; + addImage(path: any, width: any, height: any): any; + totalMemory(size: number): IGraphviz; + keyMode(keyMode: any): any; + fade(enable: boolean): IGraphviz; + tweenPaths(enable: boolean): IGraphviz; + tweenShapes(enable: boolean): IGraphviz; + convertEqualSidedPolygons(enable: boolean): IGraphviz; + tweenPrecision(precision: number): IGraphviz; + growEnteringEdges(enable: boolean): IGraphviz; + zoom(enable: boolean): IGraphviz; + resetZoom(transition: any): any; + zoomBehavior(): any; + zoomSelection(): any; + zoomScaleExtent(extent: number[]): IGraphviz; + zoomTranslateExtent(extent: number[][]): IGraphviz; + render(callback: any): IGraphviz; + dot: any; + data(): any; + renderDot(src: string, callback: any): any; + transition: any; + active(name: any): any; + options(options: IGraphvizOptions | undefined): IGraphviz; + width(width: number): IGraphviz; + height(height: number): IGraphviz; + scale(scale: number): IGraphviz; + fit(fit: boolean): IGraphviz; + attributer: any; + on(typenames: string, callback: () => void): any; + onerror: any; + logEvents(enable: boolean): IGraphviz; + drawEdge: any; + updateDrawnEdge(x1: any, x2: any, y1: any, y2: any, attributes?: any, options?: any): any; -/*~ If there are types, properties, or methods inside dotted names - *~ of the module, declare them inside a 'namespace'. - */ -export namespace subProp { - /*~ For example, given this definition, someone could write: - *~ import { subProp } from 'yourModule'; - *~ subProp.foo(); - *~ or - *~ import * as yourMod from 'yourModule'; - *~ yourMod.subProp.foo(); - */ - export function foo(): void; } \ No newline at end of file From b64b97aaa692ebc73c6619386825b34096822e5b Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 11:59:11 +0100 Subject: [PATCH 004/213] Added more definitions --- types/d3-graphviz/index.d.ts | 45 ++++++++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index e1e7bd0cd9..7fdd4b2244 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -1,8 +1,11 @@ +import { IEdgeOptions, IGraphviz, INodeOptions } from './index.d'; // Type definitions for d3-graphviz 2.6 // Project: https://github.com/magjac/d3-graphviz // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import { ZoomBehavior } from 'd3-zoom' + /** * * @param selector @@ -30,9 +33,28 @@ export interface IGraphvizOptions { fit?: boolean, } +export interface IEdgeAttributes { + style: any; + URL: any; + tooltip: any; +} + +export interface IEdgeOptions { + shortening: number; +} + +export interface INodeAttributes { + URL: any; + tooltip: any; +} + +export interface INodeOptions { + +} + export interface IGraphviz { engine(engine: string): IGraphviz; - addImage(path: any, width: any, height: any): any; + addImage(path: string, width: number, height: number): IGraphviz; totalMemory(size: number): IGraphviz; keyMode(keyMode: any): any; fade(enable: boolean): IGraphviz; @@ -43,11 +65,11 @@ export interface IGraphviz { growEnteringEdges(enable: boolean): IGraphviz; zoom(enable: boolean): IGraphviz; resetZoom(transition: any): any; - zoomBehavior(): any; - zoomSelection(): any; + zoomBehavior(): ZoomBehavior | null; + zoomSelection(): any | null; zoomScaleExtent(extent: number[]): IGraphviz; zoomTranslateExtent(extent: number[][]): IGraphviz; - render(callback: any): IGraphviz; + render(callback: Function): IGraphviz; dot: any; data(): any; renderDot(src: string, callback: any): any; @@ -62,7 +84,16 @@ export interface IGraphviz { on(typenames: string, callback: () => void): any; onerror: any; logEvents(enable: boolean): IGraphviz; - drawEdge: any; - updateDrawnEdge(x1: any, x2: any, y1: any, y2: any, attributes?: any, options?: any): any; - + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; + insertDrawnEdge: any; + removeDrawnEdge: any; + drawnEdgeSelection(): any; + drawNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; + moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; + inserDrawnNode: any; + removeDrawnNode: any; + drawnNodeSelection(): any; } \ No newline at end of file From 8d088a3d2ed1d8730d7db8d22a465fbbb8a955b3 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 13:01:59 +0100 Subject: [PATCH 005/213] Added dom lib --- types/d3-graphviz/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/d3-graphviz/tsconfig.json b/types/d3-graphviz/tsconfig.json index 42e41a7b1f..e33601771b 100644 --- a/types/d3-graphviz/tsconfig.json +++ b/types/d3-graphviz/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, From a07b85a68ffbc759abb2e45f880dc4d3ee107d72 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 13:02:14 +0100 Subject: [PATCH 006/213] Added more definitions --- types/d3-graphviz/index.d.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 7fdd4b2244..d29861a500 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -1,10 +1,11 @@ -import { IEdgeOptions, IGraphviz, INodeOptions } from './index.d'; // Type definitions for d3-graphviz 2.6 // Project: https://github.com/magjac/d3-graphviz // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { ZoomBehavior } from 'd3-zoom' +import { Selection } from 'd3-selection' + /** * @@ -56,7 +57,7 @@ export interface IGraphviz { engine(engine: string): IGraphviz; addImage(path: string, width: number, height: number): IGraphviz; totalMemory(size: number): IGraphviz; - keyMode(keyMode: any): any; + keyMode(keyMode: string): IGraphviz; fade(enable: boolean): IGraphviz; tweenPaths(enable: boolean): IGraphviz; tweenShapes(enable: boolean): IGraphviz; @@ -70,9 +71,9 @@ export interface IGraphviz { zoomScaleExtent(extent: number[]): IGraphviz; zoomTranslateExtent(extent: number[][]): IGraphviz; render(callback: Function): IGraphviz; - dot: any; + dot(src: any, callback: () => void): any; data(): any; - renderDot(src: string, callback: any): any; + renderDot(src: string, callback: any): IGraphviz; transition: any; active(name: any): any; options(options: IGraphvizOptions | undefined): IGraphviz; @@ -80,20 +81,20 @@ export interface IGraphviz { height(height: number): IGraphviz; scale(scale: number): IGraphviz; fit(fit: boolean): IGraphviz; - attributer: any; + attributer(callback: any): any; on(typenames: string, callback: () => void): any; - onerror: any; + onerror(callback: any): any; logEvents(enable: boolean): IGraphviz; drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; - insertDrawnEdge: any; - removeDrawnEdge: any; + insertDrawnEdge(name: string): IGraphviz; + removeDrawnEdge(): IGraphviz; drawnEdgeSelection(): any; drawNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; updateDrawnNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; - inserDrawnNode: any; - removeDrawnNode: any; - drawnNodeSelection(): any; + inserDrawnNode(nodeId: string): IGraphviz; + removeDrawnNode(): IGraphviz; + drawnNodeSelection(): Selection; } \ No newline at end of file From cbbc39e185d96d299b688378fd13a20446bb1418 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 13:04:34 +0100 Subject: [PATCH 007/213] Updated config --- types/d3-graphviz/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/d3-graphviz/tsconfig.json b/types/d3-graphviz/tsconfig.json index e33601771b..55afef6cff 100644 --- a/types/d3-graphviz/tsconfig.json +++ b/types/d3-graphviz/tsconfig.json @@ -8,6 +8,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 55dc1a3e412643401220300035bf939315ab5bc3 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 13:06:33 +0100 Subject: [PATCH 008/213] Added required TS version --- types/d3-graphviz/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index d29861a500..9429cc7ae9 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/magjac/d3-graphviz // Definitions by: Dom Parfitt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' From 37a35d669c541355565c9191df34a18631fac4d3 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 13:59:08 +0100 Subject: [PATCH 009/213] Updated some parameters to be optional --- types/d3-graphviz/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 9429cc7ae9..52547bb101 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -7,13 +7,12 @@ import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' - /** * * @param selector * @param options */ -export function graphviz(selector: string, options: IGraphvizOptions | boolean): IGraphviz; +export function graphviz(selector: string, options?: IGraphvizOptions | boolean): IGraphviz; export interface IGraphvizOptions { useWorker?: boolean, @@ -74,7 +73,7 @@ export interface IGraphviz { render(callback: Function): IGraphviz; dot(src: any, callback: () => void): any; data(): any; - renderDot(src: string, callback: any): IGraphviz; + renderDot(src: string, callback?: any): IGraphviz; transition: any; active(name: any): any; options(options: IGraphvizOptions | undefined): IGraphviz; From 7acb2d656f09f7e05d07364a7730a326ab0f8b9f Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 14:59:43 +0100 Subject: [PATCH 010/213] Updated definitions per API --- types/d3-graphviz/index.d.ts | 51 +++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 52547bb101..aab3955658 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -7,6 +7,13 @@ import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' +//This should be extending d3-selection, need to check it is correct +export interface ISelection extends Selection { + graphviz(options?: IGraphvizOptions | boolean): IGraphviz; + selectWithoutDataPropagation(): ISelection; +} + + /** * * @param selector @@ -34,7 +41,7 @@ export interface IGraphvizOptions { fit?: boolean, } -export interface IEdgeAttributes { +export interface IDotAttributes { style: any; URL: any; tooltip: any; @@ -44,55 +51,51 @@ export interface IEdgeOptions { shortening: number; } -export interface INodeAttributes { - URL: any; - tooltip: any; -} - export interface INodeOptions { } export interface IGraphviz { - engine(engine: string): IGraphviz; - addImage(path: string, width: number, height: number): IGraphviz; + engine(engine: string): IGraphviz; //engine should be an enum + addImage(path: string, width: number, height: number): IGraphviz; //Width & height can be strings, i.e. '100px' totalMemory(size: number): IGraphviz; - keyMode(keyMode: string): IGraphviz; + keyMode(keyMode: string): IGraphviz; //keyMode should be an enum fade(enable: boolean): IGraphviz; tweenPaths(enable: boolean): IGraphviz; tweenShapes(enable: boolean): IGraphviz; convertEqualSidedPolygons(enable: boolean): IGraphviz; - tweenPrecision(precision: number): IGraphviz; + tweenPrecision(precision: number): IGraphviz; //precision can be a string, i.e. '50%' growEnteringEdges(enable: boolean): IGraphviz; zoom(enable: boolean): IGraphviz; - resetZoom(transition: any): any; + resetZoom(transition?: any): any; zoomBehavior(): ZoomBehavior | null; zoomSelection(): any | null; - zoomScaleExtent(extent: number[]): IGraphviz; - zoomTranslateExtent(extent: number[][]): IGraphviz; - render(callback: Function): IGraphviz; - dot(src: any, callback: () => void): any; + zoomScaleExtent(extent?: number[]): IGraphviz; + zoomTranslateExtent(extent?: number[][]): IGraphviz; + render(callback?: Function): IGraphviz; + dot(src: any, callback?: () => void): IGraphviz; data(): any; renderDot(src: string, callback?: any): IGraphviz; - transition: any; - active(name: any): any; - options(options: IGraphvizOptions | undefined): IGraphviz; + transition(name: any): IGraphviz; + active(name?: any): any; //Returns a transition, what type? + options(): IGraphvizOptions; + options(options: IGraphvizOptions): IGraphviz; width(width: number): IGraphviz; height(height: number): IGraphviz; scale(scale: number): IGraphviz; fit(fit: boolean): IGraphviz; - attributer(callback: any): any; - on(typenames: string, callback: () => void): any; + attributer(callback: Function | null): IGraphviz; + on(typenames: string, callback?: () => void): any; onerror(callback: any): any; logEvents(enable: boolean): IGraphviz; - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IEdgeAttributes, options?: IEdgeOptions): IGraphviz; + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; insertDrawnEdge(name: string): IGraphviz; removeDrawnEdge(): IGraphviz; drawnEdgeSelection(): any; - drawNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: INodeAttributes, options?: INodeOptions): IGraphviz; + drawNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; inserDrawnNode(nodeId: string): IGraphviz; removeDrawnNode(): IGraphviz; From bde0d4ee2b9aa89b7905652ccdf1fd5506409b54 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 15:49:18 +0100 Subject: [PATCH 011/213] Fixed selection extension methods --- types/d3-graphviz/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index aab3955658..cfcde911be 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -7,13 +7,13 @@ import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' -//This should be extending d3-selection, need to check it is correct -export interface ISelection extends Selection { - graphviz(options?: IGraphvizOptions | boolean): IGraphviz; - selectWithoutDataPropagation(): ISelection; +declare module 'd3-selection' { + interface Selection { + graphviz(options?: IGraphvizOptions | boolean): IGraphviz; + selectWithoutDataPropagation(): Selection; + } } - /** * * @param selector From 89691438b48dd31c9bf7cccc50779bfdacb70d29 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 15:57:25 +0100 Subject: [PATCH 012/213] Added module declaration --- types/d3-graphviz/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index cfcde911be..f4904a8829 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -4,10 +4,12 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +declare module 'd3-graphviz' { + import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' -declare module 'd3-selection' { +module 'd3-selection' { interface Selection { graphviz(options?: IGraphvizOptions | boolean): IGraphviz; selectWithoutDataPropagation(): Selection; @@ -100,4 +102,5 @@ export interface IGraphviz { inserDrawnNode(nodeId: string): IGraphviz; removeDrawnNode(): IGraphviz; drawnNodeSelection(): Selection; -} \ No newline at end of file +} +} From 3c70f6db28885d730a4ce4656d0ccf8306cb5625 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 15:58:58 +0100 Subject: [PATCH 013/213] Formatting --- types/d3-graphviz/index.d.ts | 190 +++++++++++++++++------------------ 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index f4904a8829..c8eb54c06a 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -6,101 +6,101 @@ declare module 'd3-graphviz' { -import { ZoomBehavior } from 'd3-zoom' -import { Selection } from 'd3-selection' + import { ZoomBehavior } from 'd3-zoom' + import { Selection } from 'd3-selection' -module 'd3-selection' { - interface Selection { - graphviz(options?: IGraphvizOptions | boolean): IGraphviz; - selectWithoutDataPropagation(): Selection; + module 'd3-selection' { + interface Selection { + graphviz(options?: IGraphvizOptions | boolean): IGraphviz; + selectWithoutDataPropagation(): Selection; + } + } + + /** + * + * @param selector + * @param options + */ + export function graphviz(selector: string, options?: IGraphvizOptions | boolean): IGraphviz; + + export interface IGraphvizOptions { + useWorker?: boolean, + engine?: string, + totalMemory?: number, + keyMode?: string, + fade?: boolean, + tweenPaths?: boolean, + tweenShapes?: boolean, + convertEqualSidedPolygons?: boolean, + tweenPrecision?: number, + growEnteringEdges?: boolean, + zoom?: boolean, + zoomScaleExtent?: number[], + zoomTranslateExtent?: number[][], + width?: number, + height?: number, + scale?: number, + fit?: boolean, + } + + export interface IDotAttributes { + style: any; + URL: any; + tooltip: any; + } + + export interface IEdgeOptions { + shortening: number; + } + + export interface INodeOptions { + + } + + export interface IGraphviz { + engine(engine: string): IGraphviz; //engine should be an enum + addImage(path: string, width: number, height: number): IGraphviz; //Width & height can be strings, i.e. '100px' + totalMemory(size: number): IGraphviz; + keyMode(keyMode: string): IGraphviz; //keyMode should be an enum + fade(enable: boolean): IGraphviz; + tweenPaths(enable: boolean): IGraphviz; + tweenShapes(enable: boolean): IGraphviz; + convertEqualSidedPolygons(enable: boolean): IGraphviz; + tweenPrecision(precision: number): IGraphviz; //precision can be a string, i.e. '50%' + growEnteringEdges(enable: boolean): IGraphviz; + zoom(enable: boolean): IGraphviz; + resetZoom(transition?: any): any; + zoomBehavior(): ZoomBehavior | null; + zoomSelection(): any | null; + zoomScaleExtent(extent?: number[]): IGraphviz; + zoomTranslateExtent(extent?: number[][]): IGraphviz; + render(callback?: Function): IGraphviz; + dot(src: any, callback?: () => void): IGraphviz; + data(): any; + renderDot(src: string, callback?: any): IGraphviz; + transition(name: any): IGraphviz; + active(name?: any): any; //Returns a transition, what type? + options(): IGraphvizOptions; + options(options: IGraphvizOptions): IGraphviz; + width(width: number): IGraphviz; + height(height: number): IGraphviz; + scale(scale: number): IGraphviz; + fit(fit: boolean): IGraphviz; + attributer(callback: Function | null): IGraphviz; + on(typenames: string, callback?: () => void): any; + onerror(callback: any): any; + logEvents(enable: boolean): IGraphviz; + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; + insertDrawnEdge(name: string): IGraphviz; + removeDrawnEdge(): IGraphviz; + drawnEdgeSelection(): any; + drawNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; + moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; + inserDrawnNode(nodeId: string): IGraphviz; + removeDrawnNode(): IGraphviz; + drawnNodeSelection(): Selection; } } - -/** - * - * @param selector - * @param options - */ -export function graphviz(selector: string, options?: IGraphvizOptions | boolean): IGraphviz; - -export interface IGraphvizOptions { - useWorker?: boolean, - engine?: string, - totalMemory?: number, - keyMode?: string, - fade?: boolean, - tweenPaths?: boolean, - tweenShapes?: boolean, - convertEqualSidedPolygons?: boolean, - tweenPrecision?: number, - growEnteringEdges?: boolean, - zoom?: boolean, - zoomScaleExtent?: number[], - zoomTranslateExtent?: number[][], - width?: number, - height?: number, - scale?: number, - fit?: boolean, -} - -export interface IDotAttributes { - style: any; - URL: any; - tooltip: any; -} - -export interface IEdgeOptions { - shortening: number; -} - -export interface INodeOptions { - -} - -export interface IGraphviz { - engine(engine: string): IGraphviz; //engine should be an enum - addImage(path: string, width: number, height: number): IGraphviz; //Width & height can be strings, i.e. '100px' - totalMemory(size: number): IGraphviz; - keyMode(keyMode: string): IGraphviz; //keyMode should be an enum - fade(enable: boolean): IGraphviz; - tweenPaths(enable: boolean): IGraphviz; - tweenShapes(enable: boolean): IGraphviz; - convertEqualSidedPolygons(enable: boolean): IGraphviz; - tweenPrecision(precision: number): IGraphviz; //precision can be a string, i.e. '50%' - growEnteringEdges(enable: boolean): IGraphviz; - zoom(enable: boolean): IGraphviz; - resetZoom(transition?: any): any; - zoomBehavior(): ZoomBehavior | null; - zoomSelection(): any | null; - zoomScaleExtent(extent?: number[]): IGraphviz; - zoomTranslateExtent(extent?: number[][]): IGraphviz; - render(callback?: Function): IGraphviz; - dot(src: any, callback?: () => void): IGraphviz; - data(): any; - renderDot(src: string, callback?: any): IGraphviz; - transition(name: any): IGraphviz; - active(name?: any): any; //Returns a transition, what type? - options(): IGraphvizOptions; - options(options: IGraphvizOptions): IGraphviz; - width(width: number): IGraphviz; - height(height: number): IGraphviz; - scale(scale: number): IGraphviz; - fit(fit: boolean): IGraphviz; - attributer(callback: Function | null): IGraphviz; - on(typenames: string, callback?: () => void): any; - onerror(callback: any): any; - logEvents(enable: boolean): IGraphviz; - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; - moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; - insertDrawnEdge(name: string): IGraphviz; - removeDrawnEdge(): IGraphviz; - drawnEdgeSelection(): any; - drawNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; - moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; - inserDrawnNode(nodeId: string): IGraphviz; - removeDrawnNode(): IGraphviz; - drawnNodeSelection(): Selection; -} -} From f5735f792e2167eaee6b7ef7ab7b45f71e0298d0 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 16:00:50 +0100 Subject: [PATCH 014/213] Updated names --- types/d3-graphviz/index.d.ts | 84 ++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index c8eb54c06a..9e4b62f104 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -11,7 +11,7 @@ declare module 'd3-graphviz' { module 'd3-selection' { interface Selection { - graphviz(options?: IGraphvizOptions | boolean): IGraphviz; + graphviz(options?: GraphvizOptions | boolean): Graphviz; selectWithoutDataPropagation(): Selection; } } @@ -21,9 +21,9 @@ declare module 'd3-graphviz' { * @param selector * @param options */ - export function graphviz(selector: string, options?: IGraphvizOptions | boolean): IGraphviz; + export function graphviz(selector: string, options?: GraphvizOptions | boolean): Graphviz; - export interface IGraphvizOptions { + export interface GraphvizOptions { useWorker?: boolean, engine?: string, totalMemory?: number, @@ -43,64 +43,64 @@ declare module 'd3-graphviz' { fit?: boolean, } - export interface IDotAttributes { + export interface DotAttributes { style: any; URL: any; tooltip: any; } - export interface IEdgeOptions { + export interface EdgeOptions { shortening: number; } - export interface INodeOptions { + export interface NodeOptions { } - export interface IGraphviz { - engine(engine: string): IGraphviz; //engine should be an enum - addImage(path: string, width: number, height: number): IGraphviz; //Width & height can be strings, i.e. '100px' - totalMemory(size: number): IGraphviz; - keyMode(keyMode: string): IGraphviz; //keyMode should be an enum - fade(enable: boolean): IGraphviz; - tweenPaths(enable: boolean): IGraphviz; - tweenShapes(enable: boolean): IGraphviz; - convertEqualSidedPolygons(enable: boolean): IGraphviz; - tweenPrecision(precision: number): IGraphviz; //precision can be a string, i.e. '50%' - growEnteringEdges(enable: boolean): IGraphviz; - zoom(enable: boolean): IGraphviz; + export interface Graphviz { + engine(engine: string): Graphviz; //engine should be an enum + addImage(path: string, width: number, height: number): Graphviz; //Width & height can be strings, i.e. '100px' + totalMemory(size: number): Graphviz; + keyMode(keyMode: string): Graphviz; //keyMode should be an enum + fade(enable: boolean): Graphviz; + tweenPaths(enable: boolean): Graphviz; + tweenShapes(enable: boolean): Graphviz; + convertEqualSidedPolygons(enable: boolean): Graphviz; + tweenPrecision(precision: number): Graphviz; //precision can be a string, i.e. '50%' + growEnteringEdges(enable: boolean): Graphviz; + zoom(enable: boolean): Graphviz; resetZoom(transition?: any): any; zoomBehavior(): ZoomBehavior | null; zoomSelection(): any | null; - zoomScaleExtent(extent?: number[]): IGraphviz; - zoomTranslateExtent(extent?: number[][]): IGraphviz; - render(callback?: Function): IGraphviz; - dot(src: any, callback?: () => void): IGraphviz; + zoomScaleExtent(extent?: number[]): Graphviz; + zoomTranslateExtent(extent?: number[][]): Graphviz; + render(callback?: Function): Graphviz; + dot(src: any, callback?: () => void): Graphviz; data(): any; - renderDot(src: string, callback?: any): IGraphviz; - transition(name: any): IGraphviz; + renderDot(src: string, callback?: any): Graphviz; + transition(name: any): Graphviz; active(name?: any): any; //Returns a transition, what type? - options(): IGraphvizOptions; - options(options: IGraphvizOptions): IGraphviz; - width(width: number): IGraphviz; - height(height: number): IGraphviz; - scale(scale: number): IGraphviz; - fit(fit: boolean): IGraphviz; - attributer(callback: Function | null): IGraphviz; + options(): GraphvizOptions; + options(options: GraphvizOptions): Graphviz; + width(width: number): Graphviz; + height(height: number): Graphviz; + scale(scale: number): Graphviz; + fit(fit: boolean): Graphviz; + attributer(callback: Function | null): Graphviz; on(typenames: string, callback?: () => void): any; onerror(callback: any): any; - logEvents(enable: boolean): IGraphviz; - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: IDotAttributes, options?: IEdgeOptions): IGraphviz; - moveDrawnEdgeEndPoint(x2: number, y2: number, options?: IEdgeOptions): IGraphviz; - insertDrawnEdge(name: string): IGraphviz; - removeDrawnEdge(): IGraphviz; + logEvents(enable: boolean): Graphviz; + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): Graphviz; + insertDrawnEdge(name: string): Graphviz; + removeDrawnEdge(): Graphviz; drawnEdgeSelection(): any; - drawNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: IDotAttributes, options?: INodeOptions): IGraphviz; - moveDrawnNode(x: number, y: number, options?: INodeOptions): IGraphviz; - inserDrawnNode(nodeId: string): IGraphviz; - removeDrawnNode(): IGraphviz; + drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; + moveDrawnNode(x: number, y: number, options?: NodeOptions): Graphviz; + inserDrawnNode(nodeId: string): Graphviz; + removeDrawnNode(): Graphviz; drawnNodeSelection(): Selection; } } From 52afe229919b363b5817b57ab17e85d37beece8c Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 16:12:21 +0100 Subject: [PATCH 015/213] Re-ordered to match the API with sections --- types/d3-graphviz/index.d.ts | 127 ++++++++++++++++++++++------------- 1 file changed, 80 insertions(+), 47 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 9e4b62f104..ebb97df2cb 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -23,6 +23,86 @@ declare module 'd3-graphviz' { */ export function graphviz(selector: string, options?: GraphvizOptions | boolean): Graphviz; + export interface Graphviz { + //Options + options(): GraphvizOptions; + options(options: GraphvizOptions): Graphviz; + + //Rendering + renderDot(src: string, callback?: any): Graphviz; + dot(src: any, callback?: () => void): Graphviz; + render(callback?: Function): Graphviz; + engine(engine: string): Graphviz; //engine should be an enum + onerror(callback: any): any; + + //Images + addImage(path: string, width: number, height: number): Graphviz; //Width & height can be strings, i.e. '100px' + + //Creating Transitions + transition(name: any): Graphviz; + active(name?: any): any; //Returns a transition, what type? + + //Controlling SVG and Graph Size + width(width: number): Graphviz; + height(height: number): Graphviz; + fit(fit: boolean): Graphviz; + scale(scale: number): Graphviz; + + //Control Flow + on(typenames: string, callback?: () => void): any; + logEvents(enable: boolean): Graphviz; + + //Controlling Fade + fade(enable: boolean): Graphviz; + + //Controlling Animated Growth of Entering Edges + growEnteringEdges(enable: boolean): Graphviz; + + //Controlling Path Tweening + tweenPaths(enable: boolean): Graphviz; + tweenPrecision(precision: number): Graphviz; //precision can be a string, i.e. '50%' + + //Controlling Shape Tweening + tweenShapes(enable: boolean): Graphviz; + convertEqualSidedPolygons(enable: boolean): Graphviz; + + //Controlling Panning & Zooming + zoom(enable: boolean): Graphviz; + zoomBehavior(): ZoomBehavior | null; + zoomSelection(): any | null; + zoomScaleExtent(extent?: number[]): Graphviz; + zoomTranslateExtent(extent?: number[][]): Graphviz; + resetZoom(transition?: any): any; + + //Maintaining Object Constancy + keyMode(keyMode: string): Graphviz; //keyMode should be an enum + + //Customizing Graph Attributes + attributer(callback: Function | null): Graphviz; + + //Accessing Extracted Data + data(): any; + + //Modifying an Existing Graph and Animating the Changes + //Edges + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): Graphviz; + insertDrawnEdge(name: string): Graphviz; + removeDrawnEdge(): Graphviz; + drawnEdgeSelection(): any; + //Nodes + drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; + moveDrawnNode(x: number, y: number, options?: NodeOptions): Graphviz; + inserDrawnNode(nodeId: string): Graphviz; + removeDrawnNode(): Graphviz; + drawnNodeSelection(): Selection; + + //Large Graphs + totalMemory(size: number): Graphviz; + } + export interface GraphvizOptions { useWorker?: boolean, engine?: string, @@ -56,51 +136,4 @@ declare module 'd3-graphviz' { export interface NodeOptions { } - - export interface Graphviz { - engine(engine: string): Graphviz; //engine should be an enum - addImage(path: string, width: number, height: number): Graphviz; //Width & height can be strings, i.e. '100px' - totalMemory(size: number): Graphviz; - keyMode(keyMode: string): Graphviz; //keyMode should be an enum - fade(enable: boolean): Graphviz; - tweenPaths(enable: boolean): Graphviz; - tweenShapes(enable: boolean): Graphviz; - convertEqualSidedPolygons(enable: boolean): Graphviz; - tweenPrecision(precision: number): Graphviz; //precision can be a string, i.e. '50%' - growEnteringEdges(enable: boolean): Graphviz; - zoom(enable: boolean): Graphviz; - resetZoom(transition?: any): any; - zoomBehavior(): ZoomBehavior | null; - zoomSelection(): any | null; - zoomScaleExtent(extent?: number[]): Graphviz; - zoomTranslateExtent(extent?: number[][]): Graphviz; - render(callback?: Function): Graphviz; - dot(src: any, callback?: () => void): Graphviz; - data(): any; - renderDot(src: string, callback?: any): Graphviz; - transition(name: any): Graphviz; - active(name?: any): any; //Returns a transition, what type? - options(): GraphvizOptions; - options(options: GraphvizOptions): Graphviz; - width(width: number): Graphviz; - height(height: number): Graphviz; - scale(scale: number): Graphviz; - fit(fit: boolean): Graphviz; - attributer(callback: Function | null): Graphviz; - on(typenames: string, callback?: () => void): any; - onerror(callback: any): any; - logEvents(enable: boolean): Graphviz; - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; - moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): Graphviz; - insertDrawnEdge(name: string): Graphviz; - removeDrawnEdge(): Graphviz; - drawnEdgeSelection(): any; - drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; - moveDrawnNode(x: number, y: number, options?: NodeOptions): Graphviz; - inserDrawnNode(nodeId: string): Graphviz; - removeDrawnNode(): Graphviz; - drawnNodeSelection(): Selection; - } } From 6167bf2f9c366ae7c1cb39fb3197721c30dd5d3b Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 16:14:43 +0100 Subject: [PATCH 016/213] Added Engine type --- types/d3-graphviz/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index ebb97df2cb..9c344995d4 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -32,7 +32,7 @@ declare module 'd3-graphviz' { renderDot(src: string, callback?: any): Graphviz; dot(src: any, callback?: () => void): Graphviz; render(callback?: Function): Graphviz; - engine(engine: string): Graphviz; //engine should be an enum + engine(engine: Engine): Graphviz; onerror(callback: any): any; //Images @@ -102,10 +102,12 @@ declare module 'd3-graphviz' { //Large Graphs totalMemory(size: number): Graphviz; } + + type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; export interface GraphvizOptions { useWorker?: boolean, - engine?: string, + engine?: Engine, totalMemory?: number, keyMode?: string, fade?: boolean, From 0fc3a2952152bfb9fdfe50d63b9e6021d6266ee0 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 16:17:08 +0100 Subject: [PATCH 017/213] Added TypeNames type --- types/d3-graphviz/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 9c344995d4..1adbba9be2 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -49,7 +49,7 @@ declare module 'd3-graphviz' { scale(scale: number): Graphviz; //Control Flow - on(typenames: string, callback?: () => void): any; + on(typenames: TypeNames, callback?: () => void): any; logEvents(enable: boolean): Graphviz; //Controlling Fade @@ -104,6 +104,11 @@ declare module 'd3-graphviz' { } type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; + + type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | + 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | + 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | + 'resotreEnd' | 'end'; export interface GraphvizOptions { useWorker?: boolean, From 2ec51b3f48835d4d152c3469091a472715f8dbd1 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 16:18:21 +0100 Subject: [PATCH 018/213] Added KeyMode type --- types/d3-graphviz/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 1adbba9be2..d6c98cd69a 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -75,7 +75,7 @@ declare module 'd3-graphviz' { resetZoom(transition?: any): any; //Maintaining Object Constancy - keyMode(keyMode: string): Graphviz; //keyMode should be an enum + keyMode(keyMode: KeyMode): Graphviz; //keyMode should be an enum //Customizing Graph Attributes attributer(callback: Function | null): Graphviz; @@ -109,12 +109,14 @@ declare module 'd3-graphviz' { 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | 'resotreEnd' | 'end'; + + type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; export interface GraphvizOptions { useWorker?: boolean, engine?: Engine, totalMemory?: number, - keyMode?: string, + keyMode?: KeyMode, fade?: boolean, tweenPaths?: boolean, tweenShapes?: boolean, From 26288f843b2e76cbc10e974b583ab036450cc470 Mon Sep 17 00:00:00 2001 From: stabilo Date: Sun, 14 Oct 2018 18:56:45 +1000 Subject: [PATCH 019/213] @types/mongoose Add missing typings for MongooseError constructors --- types/mongoose/index.d.ts | 149 ++++++++++++++++++++++++++++--- types/mongoose/mongoose-tests.ts | 98 +++++++++++++++++--- 2 files changed, 226 insertions(+), 21 deletions(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 19551684e0..b0b6727b49 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -13,6 +13,7 @@ // Idan Dardikman // Dominik Heigl // Fazendaaa +// stablio // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -479,15 +480,6 @@ declare module "mongoose" { static STATES: any; } - /* - * section error/validation.js - * http://mongoosejs.com/docs/api.html#error-validation-js - */ - class ValidationError extends Error { - /** Console.log helper */ - toString(): string; - } - /* * section error.js * http://mongoosejs.com/docs/api.html#error-js @@ -512,6 +504,143 @@ declare module "mongoose" { /** For backwards compatibility. Same as mongoose.Error.messages */ static Messages: any; + + } + + module Error { + + /** + * section error/notFound.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.DocumentNotFoundError + * + * An instance of this error class will be returned when `save()` fails + * because the underlying + * document was not found. The constructor takes one parameter, the + * conditions that mongoose passed to `update()` when trying to update + * the document. + */ + export class DocumentNotFoundError extends Error { + } + + /** + * section error/cast.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.CastError + * + * An instance of this error class will be returned when mongoose failed to + * cast a value. + */ + export class CastError extends Error { + stringValue: string; + kind: string; + path: string; + value: any; + reason?: any; + model?: any; + + constructor(type: string, value: any, path: string, reason?: NativeError); + + setModel(model: any): void; + } + + /** + * section error/validation.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidationError + * + * An instance of this error class will be returned when [validation](http://mongoosejs.com/docs/validation.html) failed. + */ + export class ValidationError extends Error { + errors: any; + + constructor(instance: MongooseDocument); + + /** Console.log helper */ + toString(): string; + + inspect(): object; + + toJSON(): object; + + addError(path: string, error: any): void; + } + + /** + * section error/validator.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidatorError + * + * A `ValidationError` has a hash of `errors` that contain individual `ValidatorError` instances + */ + export class ValidatorError extends Error { + properties: any; + kind: string; + path: string; + value: any; + reason: any; + + constructor(properties: any); + + formatMessage(msg: string | Function, properties: any): string; + + toString(): string; + } + + /** + * section error/version.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.VersionError + * + * An instance of this error class will be returned when you call `save()` after + * the document in the database was changed in a potentially unsafe way. See + * the [`versionKey` option](http://mongoosejs.com/docs/guide.html#versionKey) for more information. + */ + export class VersionError extends Error { + version: any; + modifiedPaths: Array; + + constructor(doc: MongooseDocument, currentVersion: any, modifiedPaths: any); + } + + /** + * section error/parallelSave.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ParallelSaveError + * + * An instance of this error class will be returned when you call `save()` multiple + * times on the same document in parallel. See the [FAQ](http://mongoosejs.com/docs/faq.html) for more + * information. + */ + export class ParallelSaveError extends Error { + constructor(doc: MongooseDocument); + } + + /** + * section error/overwriteModel.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.OverwriteModelError + * + * Thrown when a model with the given name was already registered on the connection. + * See [the FAQ about `OverwriteModelError`](http://mongoosejs.com/docs/faq.html#overwrite-model-error). + */ + export class OverwriteModelError extends Error { + constructor(name: string); + } + + /** + * section error/missingSchema.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.MissingSchemaError + * + * Thrown when you try to access a model that has not been registered yet + */ + export class MissingSchemaError extends Error { + constructor(name: string); + } + + /** + * section error/divergentArray.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.DivergentArrayError + * + * An instance of this error will be returned if you used an array projection + * and then modified the array in an unsafe way. + */ + export class DivergentArrayError extends Error { + constructor(paths: Array); + } } interface EachAsyncOptions { @@ -1166,7 +1295,7 @@ declare module "mongoose" { * @param kind optional kind property for the error * @returns the current ValidationError, with all currently invalidated paths */ - invalidate(path: string, errorMsg: string | NativeError, value: any, kind?: string): ValidationError | boolean; + invalidate(path: string, errorMsg: string | NativeError, value: any, kind?: string): Error.ValidationError | boolean; /** Returns true if path was directly set and modified, else false. */ isDirectModified(path: string): boolean; diff --git a/types/mongoose/mongoose-tests.ts b/types/mongoose/mongoose-tests.ts index 20b24ba887..87d61cbdd4 100644 --- a/types/mongoose/mongoose-tests.ts +++ b/types/mongoose/mongoose-tests.ts @@ -166,17 +166,6 @@ const getDB = async (tenant: string)=> { return conn1.useDb(tenant); }; - -/* - * section error/validation.js - * http://mongoosejs.com/docs/api.html#error-validation-js - */ -var validationError = {}; -validationError.toString().toLowerCase(); -/* inherited properties */ -validationError.stack; -validationError.message; - /* * section error.js * http://mongoosejs.com/docs/api.html#error-js @@ -190,6 +179,93 @@ mongooseError.stack; mongoose.Error.messages.hasOwnProperty(''); mongoose.Error.Messages.hasOwnProperty(''); +/* + * section error/cast.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.CastError + */ +var castError: mongoose.Error.CastError = new mongoose.Error.CastError('', '', ''); +castError.setModel('foo'); +castError.stringValue; +castError.kind; +castError.path; +castError.value; +/* inherited properties */ +castError.name; +castError.stack; +castError.message; + +/* + * section error/validator.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidatorError + */ +var validatorError: mongoose.Error.ValidatorError = new mongoose.Error.ValidatorError({ foo: 'bar' }) +validatorError.properties; +validatorError.kind; +validatorError.path; +validatorError.value; +validatorError.toString().toLowerCase(); +validatorError.formatMessage('foo', {}); +validatorError.formatMessage('foo', (bar: any)=>{ return bar; }); +/* inherited properties */ +validatorError.name; +validatorError.stack; +validatorError.message; + +/* + * section error/validation.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ValidationError + */ +var doc = {}; +var validationError: mongoose.Error.ValidationError = new mongoose.Error.ValidationError(doc); +validationError.toString().toLowerCase(); +validationError.inspect(); +validationError.toJSON().hasOwnProperty(''); +validationError.addError('foo', validatorError) +/* inherited properties */ +validationError.name; +validationError.stack; +validationError.message; + +/* + * section error/parallelSave.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.ParallelSaveError + */ +var parallelSaveError: mongoose.Error.ParallelSaveError = new mongoose.Error.ParallelSaveError(doc); +/* inherited properties */ +parallelSaveError.name; +parallelSaveError.stack; +parallelSaveError.message; + +/* + * section error/overwriteModel.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.OverwriteModelError + */ +var overwriteModelError: mongoose.Error.OverwriteModelError = new mongoose.Error.OverwriteModelError('foo'); +/* inherited properties */ +overwriteModelError.name; +overwriteModelError.stack; +overwriteModelError.message; + +/* + * section error/missingSchema.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.MissingSchemaError + */ +var missingSchemaError: mongoose.Error.MissingSchemaError = new mongoose.Error.MissingSchemaError('foo'); +/* inherited properties */ +missingSchemaError.name; +missingSchemaError.stack; +missingSchemaError.message; + +/* + * section error/divergentArray.js + * https://mongoosejs.com/docs/api.html#mongooseerror_MongooseError.MissingSchemaError + */ +var missingSchemaError: mongoose.Error.DivergentArrayError = new mongoose.Error.DivergentArrayError(['foo','bar']); +/* inherited properties */ +missingSchemaError.name; +missingSchemaError.stack; +missingSchemaError.message; + const pluralize = mongoose.pluralize(); const plural: string = pluralize('foo'); From ff625a6a860a4116f9995fc5eafbdaa5ea308078 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 10:09:59 +0100 Subject: [PATCH 020/213] Added more definitions and comments --- types/d3-graphviz/index.d.ts | 113 ++++++++++++++++++++++------------- 1 file changed, 70 insertions(+), 43 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index d6c98cd69a..2774dab42a 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -7,7 +7,8 @@ declare module 'd3-graphviz' { import { ZoomBehavior } from 'd3-zoom' - import { Selection } from 'd3-selection' + import { Selection, BaseType } from 'd3-selection' + import { Transition } from 'd3-transition' module 'd3-selection' { interface Selection { @@ -23,86 +24,108 @@ declare module 'd3-graphviz' { */ export function graphviz(selector: string, options?: GraphvizOptions | boolean): Graphviz; + /** + * Interface representing the Graphviz Renderer. Methods generally return the instance of the + * object they were called on (i.e this) in order to allow for easy method chaining. + */ export interface Graphviz { //Options + /** + * Gets the currently set options object on the renderer + */ options(): GraphvizOptions; - options(options: GraphvizOptions): Graphviz; + + /** + * Sets the options provided. Does not overwrite existing options that are not + * provided in the options parameter. + * @param options the options to set on the renderer + */ + options(options: GraphvizOptions): this; //Rendering - renderDot(src: string, callback?: any): Graphviz; - dot(src: any, callback?: () => void): Graphviz; - render(callback?: Function): Graphviz; - engine(engine: Engine): Graphviz; - onerror(callback: any): any; + renderDot(src: string, callback?: any): this; + dot(src: string, callback?: () => void): this; + render(callback?: Function): this; + engine(engine: Engine): this; + onerror(callback: Function): this; //Images - addImage(path: string, width: number, height: number): Graphviz; //Width & height can be strings, i.e. '100px' + /** + * + * @param path + * @param width + * @param height + */ + addImage(path: string, width: number | string, height: number | string): this; //Creating Transitions - transition(name: any): Graphviz; - active(name?: any): any; //Returns a transition, what type? + transition(name?: Function | string | Transition): this; + active(name?: string): Transition | null; //Controlling SVG and Graph Size - width(width: number): Graphviz; - height(height: number): Graphviz; - fit(fit: boolean): Graphviz; - scale(scale: number): Graphviz; + width(width: number | string): this; + height(height: number | string): this; + fit(fit: boolean): this; + scale(scale: number): this; //Control Flow - on(typenames: TypeNames, callback?: () => void): any; - logEvents(enable: boolean): Graphviz; + on(typenames: TypeNames, callback?: () => void): this; + logEvents(enable: boolean): this; //Controlling Fade - fade(enable: boolean): Graphviz; + fade(enable: boolean): this; //Controlling Animated Growth of Entering Edges - growEnteringEdges(enable: boolean): Graphviz; + growEnteringEdges(enable: boolean): this; //Controlling Path Tweening - tweenPaths(enable: boolean): Graphviz; - tweenPrecision(precision: number): Graphviz; //precision can be a string, i.e. '50%' + tweenPaths(enable: boolean): this; + tweenPrecision(precision: number): this; //precision can be a string, i.e. '50%' //Controlling Shape Tweening - tweenShapes(enable: boolean): Graphviz; - convertEqualSidedPolygons(enable: boolean): Graphviz; + tweenShapes(enable: boolean): this; + convertEqualSidedPolygons(enable: boolean): this; //Controlling Panning & Zooming - zoom(enable: boolean): Graphviz; + zoom(enable: boolean): this; zoomBehavior(): ZoomBehavior | null; - zoomSelection(): any | null; - zoomScaleExtent(extent?: number[]): Graphviz; - zoomTranslateExtent(extent?: number[][]): Graphviz; - resetZoom(transition?: any): any; + zoomSelection(): Element | null; + zoomScaleExtent(extent?: number[]): this; + zoomTranslateExtent(extent?: number[][]): this; + resetZoom(transition?: string | Transition): this; //Maintaining Object Constancy - keyMode(keyMode: KeyMode): Graphviz; //keyMode should be an enum + keyMode(keyMode: KeyMode): this; //keyMode should be an enum //Customizing Graph Attributes - attributer(callback: Function | null): Graphviz; + attributer(callback: Function | null): this; //Accessing Extracted Data data(): any; //Modifying an Existing Graph and Animating the Changes //Edges - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): Graphviz; - moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): Graphviz; - insertDrawnEdge(name: string): Graphviz; - removeDrawnEdge(): Graphviz; - drawnEdgeSelection(): any; + drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): this; + insertDrawnEdge(name: string): this; + removeDrawnEdge(): this; + drawnEdgeSelection(): Selection; //Nodes - drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): Graphviz; - moveDrawnNode(x: number, y: number, options?: NodeOptions): Graphviz; - inserDrawnNode(nodeId: string): Graphviz; - removeDrawnNode(): Graphviz; + drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; + moveDrawnNode(x: number, y: number, options?: NodeOptions): this; + inserDrawnNode(nodeId: string): this; + removeDrawnNode(): this; drawnNodeSelection(): Selection; //Large Graphs - totalMemory(size: number): Graphviz; + totalMemory(size: number): this; } + /** + * Enum defining the valid strings that can be passed in as an engine + */ type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | @@ -112,6 +135,10 @@ declare module 'd3-graphviz' { type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; + /** + * Interface defining the options present on the Graphviz Renderer. + * Most map directly to methods that can be used to set their values. + */ export interface GraphvizOptions { useWorker?: boolean, engine?: Engine, @@ -126,8 +153,8 @@ declare module 'd3-graphviz' { zoom?: boolean, zoomScaleExtent?: number[], zoomTranslateExtent?: number[][], - width?: number, - height?: number, + width?: number | string, + height?: number | string, scale?: number, fit?: boolean, } From 453fa5e9a285bc53ece30e55936b64420a9cc837 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 10:31:36 +0100 Subject: [PATCH 021/213] Updated to use generics matching other d3 libraries --- types/d3-graphviz/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 2774dab42a..356f36c10d 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -12,7 +12,7 @@ declare module 'd3-graphviz' { module 'd3-selection' { interface Selection { - graphviz(options?: GraphvizOptions | boolean): Graphviz; + graphviz(options?: GraphvizOptions | boolean): Graphviz; selectWithoutDataPropagation(): Selection; } } @@ -22,13 +22,13 @@ declare module 'd3-graphviz' { * @param selector * @param options */ - export function graphviz(selector: string, options?: GraphvizOptions | boolean): Graphviz; + export function graphviz(selector: string | GElement, options?: GraphvizOptions | boolean): Graphviz; /** * Interface representing the Graphviz Renderer. Methods generally return the instance of the * object they were called on (i.e this) in order to allow for easy method chaining. */ - export interface Graphviz { + export interface Graphviz { //Options /** * Gets the currently set options object on the renderer @@ -59,8 +59,8 @@ declare module 'd3-graphviz' { addImage(path: string, width: number | string, height: number | string): this; //Creating Transitions - transition(name?: Function | string | Transition): this; - active(name?: string): Transition | null; + transition(name?: Function | string | Transition): this; + active(name?: string): Transition | null; //Controlling SVG and Graph Size width(width: number | string): this; @@ -88,11 +88,11 @@ declare module 'd3-graphviz' { //Controlling Panning & Zooming zoom(enable: boolean): this; - zoomBehavior(): ZoomBehavior | null; + zoomBehavior(): ZoomBehavior | null; zoomSelection(): Element | null; zoomScaleExtent(extent?: number[]): this; zoomTranslateExtent(extent?: number[][]): this; - resetZoom(transition?: string | Transition): this; + resetZoom(transition?: string | Transition): this; //Maintaining Object Constancy keyMode(keyMode: KeyMode): this; //keyMode should be an enum @@ -110,14 +110,14 @@ declare module 'd3-graphviz' { moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): this; insertDrawnEdge(name: string): this; removeDrawnEdge(): this; - drawnEdgeSelection(): Selection; + drawnEdgeSelection(): Selection; //Nodes drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; moveDrawnNode(x: number, y: number, options?: NodeOptions): this; inserDrawnNode(nodeId: string): this; removeDrawnNode(): this; - drawnNodeSelection(): Selection; + drawnNodeSelection(): Selection; //Large Graphs totalMemory(size: number): this; From e3a4185ba57fbbbb4b3770f6ee58434b9069fe14 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 10:48:35 +0100 Subject: [PATCH 022/213] Updated arrays to be fixed size --- types/d3-graphviz/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 356f36c10d..e08e1afb20 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -43,7 +43,7 @@ declare module 'd3-graphviz' { options(options: GraphvizOptions): this; //Rendering - renderDot(src: string, callback?: any): this; + renderDot(src: string, callback?: Function): this; dot(src: string, callback?: () => void): this; render(callback?: Function): this; engine(engine: Engine): this; @@ -90,8 +90,8 @@ declare module 'd3-graphviz' { zoom(enable: boolean): this; zoomBehavior(): ZoomBehavior | null; zoomSelection(): Element | null; - zoomScaleExtent(extent?: number[]): this; - zoomTranslateExtent(extent?: number[][]): this; + zoomScaleExtent(extent?: [number, number]): this; + zoomTranslateExtent(extent?: [[number, number], [number, number]]): this; resetZoom(transition?: string | Transition): this; //Maintaining Object Constancy @@ -134,7 +134,7 @@ declare module 'd3-graphviz' { 'resotreEnd' | 'end'; type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; - + /** * Interface defining the options present on the Graphviz Renderer. * Most map directly to methods that can be used to set their values. @@ -151,8 +151,8 @@ declare module 'd3-graphviz' { tweenPrecision?: number, growEnteringEdges?: boolean, zoom?: boolean, - zoomScaleExtent?: number[], - zoomTranslateExtent?: number[][], + zoomScaleExtent?: [number, number], + zoomTranslateExtent?: [[number, number], [number, number]], width?: number | string, height?: number | string, scale?: number, From d2bfcec67efabde3b08b7763b3a796bbcf0fd355 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 13:26:43 +0100 Subject: [PATCH 023/213] Added documentation --- types/d3-graphviz/index.d.ts | 334 ++++++++++++++++++++++++++++++++--- 1 file changed, 308 insertions(+), 26 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index e08e1afb20..0646df0f3b 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -10,17 +10,33 @@ declare module 'd3-graphviz' { import { Selection, BaseType } from 'd3-selection' import { Transition } from 'd3-transition' + /** + * Define methods which act as extensions to d3-selection + */ module 'd3-selection' { interface Selection { + /** + * Returns a new graphviz renderer instance on the first element in the given selection. If a graphviz renderer instance already exists + * on that element, instead returns the existing graphviz renderer instance. + * @param options either a GraphvizOptions object representing the options of the graphviz renderer or a boolean representing the + * useWorker option. + */ graphviz(options?: GraphvizOptions | boolean): Graphviz; + + /** + * For each selected element, selects the first descendant element that matches the specified selector string in the same ways as + * d3-selection.select, but does not propagate any associated data from the current element to the corresponding selected element. + */ selectWithoutDataPropagation(): Selection; } } /** - * - * @param selector - * @param options + * Creates a new graphviz renderer instance on the first element matching the given selector string. If the selector is not a string, + * instead creates a new graphviz renderer instance on the specified node. If a graphviz renderer instance already exists on that + * element, instead returns the existing graphviz renderer instance. + * @param selector either a string representing a selector for a given node or an instance of a node + * @param options the options to be applied to the graphviz renderer */ export function graphviz(selector: string | GElement, options?: GraphvizOptions | boolean): Graphviz; @@ -34,7 +50,7 @@ declare module 'd3-graphviz' { * Gets the currently set options object on the renderer */ options(): GraphvizOptions; - + /** * Sets the options provided. Does not overwrite existing options that are not * provided in the options parameter. @@ -43,83 +59,334 @@ declare module 'd3-graphviz' { options(options: GraphvizOptions): this; //Rendering + /** + * Renders an SVG graph from the specified src string and appends it to the selection the grapviz + * renderer instance was generated on. + * @param src a string representing a valid string in the DOT language + * @param callback + */ renderDot(src: string, callback?: Function): this; + + /** + * Starts computation of the layout of a graph from the specified dotSrc string and saves the data for + * rendering the SVG with {@link render} at a later stage. + * @param src a string representing a valid string in the DOT language + * @param callback + */ dot(src: string, callback?: () => void): this; + + /** + * Starts rendering of an SVG graph from data saved by {@link dot} and appends it to the selection + * the grapviz renderer instance was generated on. + * @param callback + */ render(callback?: Function): this; + + /** + * Sets the Graphviz layout engine name to the specified engine string. + * @param engine a string taking one of the following values: + * - circo + * - dot + * - fdp + * - neato + * - osage + * - patchwork + * - twopi + */ engine(engine: Engine): this; - onerror(callback: Function): this; + + /** + * Sets the callback that is called if the layout computation encounters + * an error. If no callback is passed then it removes the existing callback. + * @param callback the call back function triggered by an error + */ + onerror(callback?: Function): this; //Images /** - * - * @param path - * @param width - * @param height + * Add an image reference. Must be called before {@link renderDot} ir {@link dot} + * are called. + * @param path the path of the image, may be a filename, relative or absolute path or a URL + * @param width the width of the image, if a string is used then it may specify units. Allowed + * units are: in, px, pc, pt, cm, or mm. If no units are given or dimensions are + * given as numbers, points (pt) are used. + * @param height the height of the image, which follows the same unit rules as width. */ addImage(path: string, width: number | string, height: number | string): this; //Creating Transitions transition(name?: Function | string | Transition): this; + + /** + * Returns the active transition on the generated graph's top level svg with the specified name, + * if any. Returns null if there is no such active transition on the top level svg node. + * @param name the name of the transition + */ active(name?: string): Transition | null; //Controlling SVG and Graph Size - width(width: number | string): this; - height(height: number | string): this; + /** + * Sets the SVG width attribute. + * @param width the width in pixels + */ + width(width: number): this; + + /** + * Sets the SVG height attribute + * @param height the height in pixels + */ + height(height: number): this; + + /** + * Sets whether the graph's viewbox is affected by the size of its parent SVG's size + * @param fit true, if the graph should scale to fit its parent, false if it should + * remain at its original size + */ fit(fit: boolean): this; + + /** + * Sets the value the graph should scale by in relation to its parent SVG. Scaling + * only occurs if fit is set to true + * @param scale the scale value with 1.0 being 100%, 0.5 being 50% etc. + */ scale(scale: number): this; //Control Flow + /** + * Adds or removes a listener to the graphviz renderer instance for the specified event typenames. + * @param typenames + * @param callback + */ on(typenames: TypeNames, callback?: () => void): this; + + /** + * Sets whether events are logged or not. + * @param enable true if events should be logged, false if not + */ logEvents(enable: boolean): this; //Controlling Fade + /** + * Sets whether fade in and out of nodes is enabled. + * @param enable true to enable fade in and out, false to disable + */ fade(enable: boolean): this; //Controlling Animated Growth of Entering Edges + /** + * Sets whether animated growth of entering edges is enabled. + * @param enable true to animate entering edges, false to disable + */ growEnteringEdges(enable: boolean): this; //Controlling Path Tweening + /** + * Enables or disables path tweening + * @param enable true if path tweening should be enabled, false if it should be disabled + */ tweenPaths(enable: boolean): this; - tweenPrecision(precision: number): this; //precision can be a string, i.e. '50%' + + /** + * Sets the precision of path tweening. If precision is a number, sets the precision used + * during path tweening to precision points. The precision is the length of each path + * segment during tweening. If instead precision is a string containing '%', sets the + * relative precision. + * @param precision the precision as either a number of a string containing a percentage + */ + tweenPrecision(precision: number | string): this; //Controlling Shape Tweening + /** + * Enables or disables shape tweening during transitions. Implicitly sets path tweening + * as enabled due to SVGs handling for them. + * @param enable true if shape tweening should be enabled, false if it should be disabled + */ tweenShapes(enable: boolean): this; + + /** + * Enables or disables conversion of polygons with an equal number of sides during shape + * tweening. + * @param enable true if conversion should be enabled, false if it should be disabled. + */ convertEqualSidedPolygons(enable: boolean): this; //Controlling Panning & Zooming + /** + * Enables or disables zooming and panning. + * @param enable true if zooming should be enabled, false if it should be disabled. + */ zoom(enable: boolean): this; + + /** + * Returns the zoom behaviour of a graph. If the zoom is disable or the graph has not + * yet been rendered then returns null. + */ zoomBehavior(): ZoomBehavior | null; + + /** + * Returns the selection to which zoom behaviour has been applied. If zoom is disabled + * or the graph has not yet been rendered then returns null. + */ zoomSelection(): Element | null; + + /** + * Sets the scale extend for zooming where the first number is the minimum allowed zoom + * and the second is the maximum. + * @param extent a tuple containing the minimum and maximum allowed zoom + */ zoomScaleExtent(extent?: [number, number]): this; + + /** + * Sets the translate extent which restricts panning. + * @param extent a tuple of the form ((x0, y0), (x1, y1)) where (x0, y0) is the top-left + * corner of the "world" and (x1, y1) is the bottom-right corner + */ zoomTranslateExtent(extent?: [[number, number], [number, number]]): this; + + /** + * Resets any transformations made by panning and zooming. + * @param transition an optional transition to apply during reset. + */ resetZoom(transition?: string | Transition): this; //Maintaining Object Constancy - keyMode(keyMode: KeyMode): this; //keyMode should be an enum + /** + * Sets the key mode to the the provided mode string. Must be set before passing in + * any DOT strings. + * @param keyMode + */ + keyMode(keyMode: KeyMode): this; //Customizing Graph Attributes + /** + * + * @param callback + */ attributer(callback: Function | null): this; //Accessing Extracted Data - data(): any; - + /** + * Returns the data extracted by {@link dot} or null if none exists. + */ + data(): Datum; + //Modifying an Existing Graph and Animating the Changes - //Edges - drawEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; - updateDrawnEdge(x1: number, x2: number, y1: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + //Edges + /** + * Draws a straight edge from (x1, y1) to (x2, y2) using coordinates relative to top level G container element of the graph. + * @param x1 the starting x co-ordinate + * @param y1 the starting y co-ordinate + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the edge + */ + drawEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + + /** + * Updates properties and attributes of the edge currently drawn with {@link drawEdge}, + * using the same arguments. This method cannot be used after the edge has been inserted + * into the graph data with {@link insertDrawnEdge.} + * @param x1 the starting x co-ordinate + * @param y1 the starting y co-ordinate + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the edge + */ + updateDrawnEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + + /** + * Updates the end point of the edge currently drawn with {@link drawEdge}, + * accepting the same options argument. This method cannot be used after the + * edge has been inserted into the graph data with {@link insertDrawnEdge}. + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param options object containing the options used when drawing the edge + */ moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): this; + + /** + * Inserts the edge into the graph data, making it available for an animated + * transition into a subsequent new layout. + * @param name the name of the edge. + */ insertDrawnEdge(name: string): this; + + /** + * Removes the edge currently drawn with {@link drawEdge}. This method cannot + * be used after the edge has been inserted into the graph data with + * {@link insertDrawnEdge}. + */ removeDrawnEdge(): this; + + /** + * Returns a {@link Selection} containing the edge currently being drawn. The selection is empty + * if no edge has been drawn or the lastest drawn edge has been inserted into the graph data with + * {@link insertDrawnNode}. + */ drawnEdgeSelection(): Selection; - //Nodes + + //Nodes + /** + * Draws a node with the upper left corner of its bounding box at (x, y), using + * coordinates relative to the top level G container element of the graph. + * @param x x co-ordinate of the top-left bounding box of the node + * @param y y co-ordinate of the top-left bounding box of the node + * @param nodeId the ID of the node + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the node + */ drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; + + /** + * Updates properties and attributes of the node currently drawn with {@link drawNode}, + * using the same arguments. This method cannot be used after the node has been inserted + * into the graph data with {@link insertDrawnNode}. + * @param x x co-ordinate of the top-left bounding box of the node + * @param y y co-ordinate of the top-left bounding box of the node + * @param nodeId the ID of the node + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the node + */ updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; + + /** + * Updates the position of the upper left corner of the node currently drawn + * with {@link drawNode}, accepting the same options argument. This method + * cannot be used after the node has been inserted into the graph data with + * {@link insertDrawnNode}. + * @param x new x co-ordinate of the top-left bounding box of the node + * @param y new y co-ordinate of the top-left bounding box of the node + * @param options object containing the options used when drawing the node + */ moveDrawnNode(x: number, y: number, options?: NodeOptions): this; + + /** + * Inserts the node into the graph data, making it available for an animated + * transition into a subsequent new layout. + * @param nodeId the ID of the node + */ inserDrawnNode(nodeId: string): this; + + /** + * Removes the node currently drawn with {@link drawNode}. This method cannot + * be used after the node has been inserted into the graph data with {@link insertDrawnNode}. + */ removeDrawnNode(): this; + + /** + * Returns a {@link Selection} containing the node currently being drawn. The selection is empty + * if no node has been drawn or the lastest drawn node has been inserted into the graph data with + * {@link insertDrawnNode}. + */ drawnNodeSelection(): Selection; //Large Graphs + /** + * Sets the total memory available to Viz.js to size bytes, which should be a power of 2. + * @param size the size in bytes of memory allocated to Viz.js + */ totalMemory(size: number): this; } @@ -128,11 +395,17 @@ declare module 'd3-graphviz' { */ type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; - type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | - 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | - 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | - 'resotreEnd' | 'end'; + /** + * Enum defining the valid strings that can be passed as TypeNames + */ + type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | + 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | + 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | + 'resotreEnd' | 'end' | string; //string included to allow for optional addition of a name, e.g. initEnd.foo + /** + * Enum defining the valid strings that can be passed as KeyModes + */ type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; /** @@ -148,27 +421,36 @@ declare module 'd3-graphviz' { tweenPaths?: boolean, tweenShapes?: boolean, convertEqualSidedPolygons?: boolean, - tweenPrecision?: number, + tweenPrecision?: number | string, growEnteringEdges?: boolean, zoom?: boolean, zoomScaleExtent?: [number, number], zoomTranslateExtent?: [[number, number], [number, number]], - width?: number | string, - height?: number | string, + width?: number, + height?: number, scale?: number, fit?: boolean, } + /** + * Interface defining the attributes available per the DOT language + */ export interface DotAttributes { style: any; URL: any; tooltip: any; } + /** + * Interface defining the options available for rendering edges + */ export interface EdgeOptions { shortening: number; } + /** + * Interface defining the options available for rendering nodes + */ export interface NodeOptions { } From e4d1bfe44dd4c46d70ff9c7dfcf4c933feff27f8 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 13:35:58 +0100 Subject: [PATCH 024/213] Updated return type --- types/d3-graphviz/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 0646df0f3b..0ccece31cf 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -221,7 +221,7 @@ declare module 'd3-graphviz' { * Returns the zoom behaviour of a graph. If the zoom is disable or the graph has not * yet been rendered then returns null. */ - zoomBehavior(): ZoomBehavior | null; + zoomBehavior(): ZoomBehavior | null; /** * Returns the selection to which zoom behaviour has been applied. If zoom is disabled From 32d11daec7f7df3fc3a3aa856a58256b82b5d86e Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 14:05:33 +0100 Subject: [PATCH 025/213] Added some tests --- types/d3-graphviz/d3-graphviz-tests.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/types/d3-graphviz/d3-graphviz-tests.ts b/types/d3-graphviz/d3-graphviz-tests.ts index e69de29bb2..eef9436a09 100644 --- a/types/d3-graphviz/d3-graphviz-tests.ts +++ b/types/d3-graphviz/d3-graphviz-tests.ts @@ -0,0 +1,16 @@ +import { select, BaseType } from 'd3-selection'; +import * as d3Graphviz from 'd3-graphviz'; + +let graphviz: d3Graphviz.Graphviz; + +// Can get a graphviz render using extension method on d3-select +graphviz = select('test').graphviz(); + +// Can use graphviz method as selector +graphviz = d3Graphviz.graphviz('test'); + +// Can get the options +const options: d3Graphviz.GraphvizOptions = d3Graphviz.graphviz('').options(); + +// Can set the options +graphviz = graphviz.options(options); From ab0992bd548d555dabbfb22aa03a9c8df7f1ff50 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 14:20:20 +0100 Subject: [PATCH 026/213] Made parameter optional --- types/d3-graphviz/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 0ccece31cf..bd2aac491a 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -262,7 +262,7 @@ declare module 'd3-graphviz' { * * @param callback */ - attributer(callback: Function | null): this; + attributer(callback?: Function): this; //Accessing Extracted Data /** From f1caa4586925e6cddedd0e745d56f9e5e780e592 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 14:23:56 +0100 Subject: [PATCH 027/213] Updated DOT attributes --- types/d3-graphviz/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index bd2aac491a..dfa04cb1b9 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -436,9 +436,9 @@ declare module 'd3-graphviz' { * Interface defining the attributes available per the DOT language */ export interface DotAttributes { - style: any; - URL: any; - tooltip: any; + style?: any; + URL?: any; + tooltip?: any; } /** From 65c4a2842f185b6097b7c5fe884aafcdde17d6d5 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 14:29:22 +0100 Subject: [PATCH 028/213] Updated callbacks --- types/d3-graphviz/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index dfa04cb1b9..682cbb2b2e 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -73,7 +73,7 @@ declare module 'd3-graphviz' { * @param src a string representing a valid string in the DOT language * @param callback */ - dot(src: string, callback?: () => void): this; + dot(src: string, callback?: Function): this; /** * Starts rendering of an SVG graph from data saved by {@link dot} and appends it to the selection @@ -157,7 +157,7 @@ declare module 'd3-graphviz' { * @param typenames * @param callback */ - on(typenames: TypeNames, callback?: () => void): this; + on(typenames: TypeNames, callback?: Function): this; /** * Sets whether events are logged or not. From 4c672ef8ed98317f1adf0a2c155bf6a1579b18b6 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 14:50:11 +0100 Subject: [PATCH 029/213] Linting fixes --- types/d3-graphviz/index.d.ts | 876 +++++++++++++++++------------------ 1 file changed, 433 insertions(+), 443 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 682cbb2b2e..f08ec0e019 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -4,454 +4,444 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -declare module 'd3-graphviz' { +import { ZoomBehavior } from 'd3-zoom'; +import { Selection, BaseType } from 'd3-selection'; +import { Transition } from 'd3-transition'; - import { ZoomBehavior } from 'd3-zoom' - import { Selection, BaseType } from 'd3-selection' - import { Transition } from 'd3-transition' - - /** - * Define methods which act as extensions to d3-selection - */ - module 'd3-selection' { - interface Selection { - /** - * Returns a new graphviz renderer instance on the first element in the given selection. If a graphviz renderer instance already exists - * on that element, instead returns the existing graphviz renderer instance. - * @param options either a GraphvizOptions object representing the options of the graphviz renderer or a boolean representing the - * useWorker option. - */ - graphviz(options?: GraphvizOptions | boolean): Graphviz; - - /** - * For each selected element, selects the first descendant element that matches the specified selector string in the same ways as - * d3-selection.select, but does not propagate any associated data from the current element to the corresponding selected element. - */ - selectWithoutDataPropagation(): Selection; - } - } - - /** - * Creates a new graphviz renderer instance on the first element matching the given selector string. If the selector is not a string, - * instead creates a new graphviz renderer instance on the specified node. If a graphviz renderer instance already exists on that - * element, instead returns the existing graphviz renderer instance. - * @param selector either a string representing a selector for a given node or an instance of a node - * @param options the options to be applied to the graphviz renderer - */ - export function graphviz(selector: string | GElement, options?: GraphvizOptions | boolean): Graphviz; - - /** - * Interface representing the Graphviz Renderer. Methods generally return the instance of the - * object they were called on (i.e this) in order to allow for easy method chaining. - */ - export interface Graphviz { - //Options +/** + * Define methods which act as extensions to d3-selection + */ +declare module 'd3-selection' { + interface Selection { /** - * Gets the currently set options object on the renderer + * Returns a new graphviz renderer instance on the first element in the given selection. If a graphviz renderer instance already exists + * on that element, instead returns the existing graphviz renderer instance. + * @param options either a GraphvizOptions object representing the options of the graphviz renderer or a boolean representing the + * useWorker option. */ - options(): GraphvizOptions; + graphviz(options?: GraphvizOptions | boolean): Graphviz; /** - * Sets the options provided. Does not overwrite existing options that are not - * provided in the options parameter. - * @param options the options to set on the renderer + * For each selected element, selects the first descendant element that matches the specified selector string in the same ways as + * d3-selection.select, but does not propagate any associated data from the current element to the corresponding selected element. */ - options(options: GraphvizOptions): this; - - //Rendering - /** - * Renders an SVG graph from the specified src string and appends it to the selection the grapviz - * renderer instance was generated on. - * @param src a string representing a valid string in the DOT language - * @param callback - */ - renderDot(src: string, callback?: Function): this; - - /** - * Starts computation of the layout of a graph from the specified dotSrc string and saves the data for - * rendering the SVG with {@link render} at a later stage. - * @param src a string representing a valid string in the DOT language - * @param callback - */ - dot(src: string, callback?: Function): this; - - /** - * Starts rendering of an SVG graph from data saved by {@link dot} and appends it to the selection - * the grapviz renderer instance was generated on. - * @param callback - */ - render(callback?: Function): this; - - /** - * Sets the Graphviz layout engine name to the specified engine string. - * @param engine a string taking one of the following values: - * - circo - * - dot - * - fdp - * - neato - * - osage - * - patchwork - * - twopi - */ - engine(engine: Engine): this; - - /** - * Sets the callback that is called if the layout computation encounters - * an error. If no callback is passed then it removes the existing callback. - * @param callback the call back function triggered by an error - */ - onerror(callback?: Function): this; - - //Images - /** - * Add an image reference. Must be called before {@link renderDot} ir {@link dot} - * are called. - * @param path the path of the image, may be a filename, relative or absolute path or a URL - * @param width the width of the image, if a string is used then it may specify units. Allowed - * units are: in, px, pc, pt, cm, or mm. If no units are given or dimensions are - * given as numbers, points (pt) are used. - * @param height the height of the image, which follows the same unit rules as width. - */ - addImage(path: string, width: number | string, height: number | string): this; - - //Creating Transitions - transition(name?: Function | string | Transition): this; - - /** - * Returns the active transition on the generated graph's top level svg with the specified name, - * if any. Returns null if there is no such active transition on the top level svg node. - * @param name the name of the transition - */ - active(name?: string): Transition | null; - - //Controlling SVG and Graph Size - /** - * Sets the SVG width attribute. - * @param width the width in pixels - */ - width(width: number): this; - - /** - * Sets the SVG height attribute - * @param height the height in pixels - */ - height(height: number): this; - - /** - * Sets whether the graph's viewbox is affected by the size of its parent SVG's size - * @param fit true, if the graph should scale to fit its parent, false if it should - * remain at its original size - */ - fit(fit: boolean): this; - - /** - * Sets the value the graph should scale by in relation to its parent SVG. Scaling - * only occurs if fit is set to true - * @param scale the scale value with 1.0 being 100%, 0.5 being 50% etc. - */ - scale(scale: number): this; - - //Control Flow - /** - * Adds or removes a listener to the graphviz renderer instance for the specified event typenames. - * @param typenames - * @param callback - */ - on(typenames: TypeNames, callback?: Function): this; - - /** - * Sets whether events are logged or not. - * @param enable true if events should be logged, false if not - */ - logEvents(enable: boolean): this; - - //Controlling Fade - /** - * Sets whether fade in and out of nodes is enabled. - * @param enable true to enable fade in and out, false to disable - */ - fade(enable: boolean): this; - - //Controlling Animated Growth of Entering Edges - /** - * Sets whether animated growth of entering edges is enabled. - * @param enable true to animate entering edges, false to disable - */ - growEnteringEdges(enable: boolean): this; - - //Controlling Path Tweening - /** - * Enables or disables path tweening - * @param enable true if path tweening should be enabled, false if it should be disabled - */ - tweenPaths(enable: boolean): this; - - /** - * Sets the precision of path tweening. If precision is a number, sets the precision used - * during path tweening to precision points. The precision is the length of each path - * segment during tweening. If instead precision is a string containing '%', sets the - * relative precision. - * @param precision the precision as either a number of a string containing a percentage - */ - tweenPrecision(precision: number | string): this; - - //Controlling Shape Tweening - /** - * Enables or disables shape tweening during transitions. Implicitly sets path tweening - * as enabled due to SVGs handling for them. - * @param enable true if shape tweening should be enabled, false if it should be disabled - */ - tweenShapes(enable: boolean): this; - - /** - * Enables or disables conversion of polygons with an equal number of sides during shape - * tweening. - * @param enable true if conversion should be enabled, false if it should be disabled. - */ - convertEqualSidedPolygons(enable: boolean): this; - - //Controlling Panning & Zooming - /** - * Enables or disables zooming and panning. - * @param enable true if zooming should be enabled, false if it should be disabled. - */ - zoom(enable: boolean): this; - - /** - * Returns the zoom behaviour of a graph. If the zoom is disable or the graph has not - * yet been rendered then returns null. - */ - zoomBehavior(): ZoomBehavior | null; - - /** - * Returns the selection to which zoom behaviour has been applied. If zoom is disabled - * or the graph has not yet been rendered then returns null. - */ - zoomSelection(): Element | null; - - /** - * Sets the scale extend for zooming where the first number is the minimum allowed zoom - * and the second is the maximum. - * @param extent a tuple containing the minimum and maximum allowed zoom - */ - zoomScaleExtent(extent?: [number, number]): this; - - /** - * Sets the translate extent which restricts panning. - * @param extent a tuple of the form ((x0, y0), (x1, y1)) where (x0, y0) is the top-left - * corner of the "world" and (x1, y1) is the bottom-right corner - */ - zoomTranslateExtent(extent?: [[number, number], [number, number]]): this; - - /** - * Resets any transformations made by panning and zooming. - * @param transition an optional transition to apply during reset. - */ - resetZoom(transition?: string | Transition): this; - - //Maintaining Object Constancy - /** - * Sets the key mode to the the provided mode string. Must be set before passing in - * any DOT strings. - * @param keyMode - */ - keyMode(keyMode: KeyMode): this; - - //Customizing Graph Attributes - /** - * - * @param callback - */ - attributer(callback?: Function): this; - - //Accessing Extracted Data - /** - * Returns the data extracted by {@link dot} or null if none exists. - */ - data(): Datum; - - //Modifying an Existing Graph and Animating the Changes - //Edges - /** - * Draws a straight edge from (x1, y1) to (x2, y2) using coordinates relative to top level G container element of the graph. - * @param x1 the starting x co-ordinate - * @param y1 the starting y co-ordinate - * @param x2 the ending x co-ordinate - * @param y2 the ending y co-ordinate - * @param attributes object containing DOT attributes - * @param options object containing the options used when drawing the edge - */ - drawEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; - - /** - * Updates properties and attributes of the edge currently drawn with {@link drawEdge}, - * using the same arguments. This method cannot be used after the edge has been inserted - * into the graph data with {@link insertDrawnEdge.} - * @param x1 the starting x co-ordinate - * @param y1 the starting y co-ordinate - * @param x2 the ending x co-ordinate - * @param y2 the ending y co-ordinate - * @param attributes object containing DOT attributes - * @param options object containing the options used when drawing the edge - */ - updateDrawnEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; - - /** - * Updates the end point of the edge currently drawn with {@link drawEdge}, - * accepting the same options argument. This method cannot be used after the - * edge has been inserted into the graph data with {@link insertDrawnEdge}. - * @param x2 the ending x co-ordinate - * @param y2 the ending y co-ordinate - * @param options object containing the options used when drawing the edge - */ - moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): this; - - /** - * Inserts the edge into the graph data, making it available for an animated - * transition into a subsequent new layout. - * @param name the name of the edge. - */ - insertDrawnEdge(name: string): this; - - /** - * Removes the edge currently drawn with {@link drawEdge}. This method cannot - * be used after the edge has been inserted into the graph data with - * {@link insertDrawnEdge}. - */ - removeDrawnEdge(): this; - - /** - * Returns a {@link Selection} containing the edge currently being drawn. The selection is empty - * if no edge has been drawn or the lastest drawn edge has been inserted into the graph data with - * {@link insertDrawnNode}. - */ - drawnEdgeSelection(): Selection; - - //Nodes - /** - * Draws a node with the upper left corner of its bounding box at (x, y), using - * coordinates relative to the top level G container element of the graph. - * @param x x co-ordinate of the top-left bounding box of the node - * @param y y co-ordinate of the top-left bounding box of the node - * @param nodeId the ID of the node - * @param attributes object containing DOT attributes - * @param options object containing the options used when drawing the node - */ - drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; - - /** - * Updates properties and attributes of the node currently drawn with {@link drawNode}, - * using the same arguments. This method cannot be used after the node has been inserted - * into the graph data with {@link insertDrawnNode}. - * @param x x co-ordinate of the top-left bounding box of the node - * @param y y co-ordinate of the top-left bounding box of the node - * @param nodeId the ID of the node - * @param attributes object containing DOT attributes - * @param options object containing the options used when drawing the node - */ - updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: NodeOptions): this; - - /** - * Updates the position of the upper left corner of the node currently drawn - * with {@link drawNode}, accepting the same options argument. This method - * cannot be used after the node has been inserted into the graph data with - * {@link insertDrawnNode}. - * @param x new x co-ordinate of the top-left bounding box of the node - * @param y new y co-ordinate of the top-left bounding box of the node - * @param options object containing the options used when drawing the node - */ - moveDrawnNode(x: number, y: number, options?: NodeOptions): this; - - /** - * Inserts the node into the graph data, making it available for an animated - * transition into a subsequent new layout. - * @param nodeId the ID of the node - */ - inserDrawnNode(nodeId: string): this; - - /** - * Removes the node currently drawn with {@link drawNode}. This method cannot - * be used after the node has been inserted into the graph data with {@link insertDrawnNode}. - */ - removeDrawnNode(): this; - - /** - * Returns a {@link Selection} containing the node currently being drawn. The selection is empty - * if no node has been drawn or the lastest drawn node has been inserted into the graph data with - * {@link insertDrawnNode}. - */ - drawnNodeSelection(): Selection; - - //Large Graphs - /** - * Sets the total memory available to Viz.js to size bytes, which should be a power of 2. - * @param size the size in bytes of memory allocated to Viz.js - */ - totalMemory(size: number): this; - } - - /** - * Enum defining the valid strings that can be passed in as an engine - */ - type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; - - /** - * Enum defining the valid strings that can be passed as TypeNames - */ - type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | - 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | - 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | - 'resotreEnd' | 'end' | string; //string included to allow for optional addition of a name, e.g. initEnd.foo - - /** - * Enum defining the valid strings that can be passed as KeyModes - */ - type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; - - /** - * Interface defining the options present on the Graphviz Renderer. - * Most map directly to methods that can be used to set their values. - */ - export interface GraphvizOptions { - useWorker?: boolean, - engine?: Engine, - totalMemory?: number, - keyMode?: KeyMode, - fade?: boolean, - tweenPaths?: boolean, - tweenShapes?: boolean, - convertEqualSidedPolygons?: boolean, - tweenPrecision?: number | string, - growEnteringEdges?: boolean, - zoom?: boolean, - zoomScaleExtent?: [number, number], - zoomTranslateExtent?: [[number, number], [number, number]], - width?: number, - height?: number, - scale?: number, - fit?: boolean, - } - - /** - * Interface defining the attributes available per the DOT language - */ - export interface DotAttributes { - style?: any; - URL?: any; - tooltip?: any; - } - - /** - * Interface defining the options available for rendering edges - */ - export interface EdgeOptions { - shortening: number; - } - - /** - * Interface defining the options available for rendering nodes - */ - export interface NodeOptions { - + selectWithoutDataPropagation(): Selection; } } + +/** + * Creates a new graphviz renderer instance on the first element matching the given selector string. If the selector is not a string, + * instead creates a new graphviz renderer instance on the specified node. If a graphviz renderer instance already exists on that + * element, instead returns the existing graphviz renderer instance. + * @param selector either a string representing a selector for a given node or an instance of a node + * @param options the options to be applied to the graphviz renderer + */ +export function graphviz(selector: string | GElement, options?: GraphvizOptions | boolean): Graphviz; + +/** + * Interface representing the Graphviz Renderer. Methods generally return the instance of the + * object they were called on (i.e this) in order to allow for easy method chaining. + */ +export interface Graphviz { + // Options + /** + * Gets the currently set options object on the renderer + */ + options(): GraphvizOptions; + + /** + * Sets the options provided. Does not overwrite existing options that are not + * provided in the options parameter. + * @param options the options to set on the renderer + */ + options(options: GraphvizOptions): this; + + // Rendering + /** + * Renders an SVG graph from the specified src string and appends it to the selection the grapviz + * renderer instance was generated on. + * @param src a string representing a valid string in the DOT language + * @param callback + */ + renderDot(src: string, callback?: Function): this; + + /** + * Starts computation of the layout of a graph from the specified dotSrc string and saves the data for + * rendering the SVG with {@link render} at a later stage. + * @param src a string representing a valid string in the DOT language + * @param callback + */ + dot(src: string, callback?: Function): this; + + /** + * Starts rendering of an SVG graph from data saved by {@link dot} and appends it to the selection + * the grapviz renderer instance was generated on. + * @param callback + */ + render(callback?: Function): this; + + /** + * Sets the Graphviz layout engine name to the specified engine string. + * @param engine a string taking one of the following values: + * - circo + * - dot + * - fdp + * - neato + * - osage + * - patchwork + * - twopi + */ + engine(engine: Engine): this; + + /** + * Sets the callback that is called if the layout computation encounters + * an error. If no callback is passed then it removes the existing callback. + * @param callback the call back function triggered by an error + */ + onerror(callback?: Function): this; + + // Images + /** + * Add an image reference. Must be called before {@link renderDot} ir {@link dot} + * are called. + * @param path the path of the image, may be a filename, relative or absolute path or a URL + * @param width the width of the image, if a string is used then it may specify units. Allowed + * units are: in, px, pc, pt, cm, or mm. If no units are given or dimensions are + * given as numbers, points (pt) are used. + * @param height the height of the image, which follows the same unit rules as width. + */ + addImage(path: string, width: number | string, height: number | string): this; + + // Creating Transitions + transition(name?: Function | string | Transition): this; + + /** + * Returns the active transition on the generated graph's top level svg with the specified name, + * if any. Returns null if there is no such active transition on the top level svg node. + * @param name the name of the transition + */ + active(name?: string): Transition | null; + + // Controlling SVG and Graph Size + /** + * Sets the SVG width attribute. + * @param width the width in pixels + */ + width(width: number): this; + + /** + * Sets the SVG height attribute + * @param height the height in pixels + */ + height(height: number): this; + + /** + * Sets whether the graph's viewbox is affected by the size of its parent SVG's size + * @param fit true, if the graph should scale to fit its parent, false if it should + * remain at its original size + */ + fit(fit: boolean): this; + + /** + * Sets the value the graph should scale by in relation to its parent SVG. Scaling + * only occurs if fit is set to true + * @param scale the scale value with 1.0 being 100%, 0.5 being 50% etc. + */ + scale(scale: number): this; + + // Control Flow + /** + * Adds or removes a listener to the graphviz renderer instance for the specified event typenames. + * @param typenames + * @param callback + */ + on(typenames: TypeNames, callback?: Function): this; + + /** + * Sets whether events are logged or not. + * @param enable true if events should be logged, false if not + */ + logEvents(enable: boolean): this; + + // Controlling Fade + /** + * Sets whether fade in and out of nodes is enabled. + * @param enable true to enable fade in and out, false to disable + */ + fade(enable: boolean): this; + + // Controlling Animated Growth of Entering Edges + /** + * Sets whether animated growth of entering edges is enabled. + * @param enable true to animate entering edges, false to disable + */ + growEnteringEdges(enable: boolean): this; + + // Controlling Path Tweening + /** + * Enables or disables path tweening + * @param enable true if path tweening should be enabled, false if it should be disabled + */ + tweenPaths(enable: boolean): this; + + /** + * Sets the precision of path tweening. If precision is a number, sets the precision used + * during path tweening to precision points. The precision is the length of each path + * segment during tweening. If instead precision is a string containing '%', sets the + * relative precision. + * @param precision the precision as either a number of a string containing a percentage + */ + tweenPrecision(precision: number | string): this; + + // Controlling Shape Tweening + /** + * Enables or disables shape tweening during transitions. Implicitly sets path tweening + * as enabled due to SVGs handling for them. + * @param enable true if shape tweening should be enabled, false if it should be disabled + */ + tweenShapes(enable: boolean): this; + + /** + * Enables or disables conversion of polygons with an equal number of sides during shape + * tweening. + * @param enable true if conversion should be enabled, false if it should be disabled. + */ + convertEqualSidedPolygons(enable: boolean): this; + + // Controlling Panning & Zooming + /** + * Enables or disables zooming and panning. + * @param enable true if zooming should be enabled, false if it should be disabled. + */ + zoom(enable: boolean): this; + + /** + * Returns the zoom behaviour of a graph. If the zoom is disable or the graph has not + * yet been rendered then returns null. + */ + zoomBehavior(): ZoomBehavior | null; + + /** + * Returns the selection to which zoom behaviour has been applied. If zoom is disabled + * or the graph has not yet been rendered then returns null. + */ + zoomSelection(): Element | null; + + /** + * Sets the scale extend for zooming where the first number is the minimum allowed zoom + * and the second is the maximum. + * @param extent a tuple containing the minimum and maximum allowed zoom + */ + zoomScaleExtent(extent?: [number, number]): this; + + /** + * Sets the translate extent which restricts panning. + * @param extent a tuple of the form ((x0, y0), (x1, y1)) where (x0, y0) is the top-left + * corner of the "world" and (x1, y1) is the bottom-right corner + */ + zoomTranslateExtent(extent?: [[number, number], [number, number]]): this; + + /** + * Resets any transformations made by panning and zooming. + * @param transition an optional transition to apply during reset. + */ + resetZoom(transition?: string | Transition): this; + + // Maintaining Object Constancy + /** + * Sets the key mode to the the provided mode string. Must be set before passing in + * any DOT strings. + * @param keyMode + */ + keyMode(keyMode: KeyMode): this; + + // Customizing Graph Attributes + /** + * + * @param callback + */ + attributer(callback?: Function): this; + + // Accessing Extracted Data + /** + * Returns the data extracted by {@link dot} or null if none exists. + */ + data(): Datum; + + // Modifying an Existing Graph and Animating the Changes + // Edges + /** + * Draws a straight edge from (x1, y1) to (x2, y2) using coordinates relative to top level G container element of the graph. + * @param x1 the starting x co-ordinate + * @param y1 the starting y co-ordinate + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the edge + */ + drawEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + + /** + * Updates properties and attributes of the edge currently drawn with {@link drawEdge}, + * using the same arguments. This method cannot be used after the edge has been inserted + * into the graph data with {@link insertDrawnEdge.} + * @param x1 the starting x co-ordinate + * @param y1 the starting y co-ordinate + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the edge + */ + updateDrawnEdge(x1: number, y1: number, x2: number, y2: number, attributes?: DotAttributes, options?: EdgeOptions): this; + + /** + * Updates the end point of the edge currently drawn with {@link drawEdge}, + * accepting the same options argument. This method cannot be used after the + * edge has been inserted into the graph data with {@link insertDrawnEdge}. + * @param x2 the ending x co-ordinate + * @param y2 the ending y co-ordinate + * @param options object containing the options used when drawing the edge + */ + moveDrawnEdgeEndPoint(x2: number, y2: number, options?: EdgeOptions): this; + + /** + * Inserts the edge into the graph data, making it available for an animated + * transition into a subsequent new layout. + * @param name the name of the edge. + */ + insertDrawnEdge(name: string): this; + + /** + * Removes the edge currently drawn with {@link drawEdge}. This method cannot + * be used after the edge has been inserted into the graph data with + * {@link insertDrawnEdge}. + */ + removeDrawnEdge(): this; + + /** + * Returns a {@link Selection} containing the edge currently being drawn. The selection is empty + * if no edge has been drawn or the lastest drawn edge has been inserted into the graph data with + * {@link insertDrawnNode}. + */ + drawnEdgeSelection(): Selection; + + // Nodes + /** + * Draws a node with the upper left corner of its bounding box at (x, y), using + * coordinates relative to the top level G container element of the graph. + * @param x x co-ordinate of the top-left bounding box of the node + * @param y y co-ordinate of the top-left bounding box of the node + * @param nodeId the ID of the node + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the node, currently unused + */ + drawNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: any): this; + + /** + * Updates properties and attributes of the node currently drawn with {@link drawNode}, + * using the same arguments. This method cannot be used after the node has been inserted + * into the graph data with {@link insertDrawnNode}. + * @param x x co-ordinate of the top-left bounding box of the node + * @param y y co-ordinate of the top-left bounding box of the node + * @param nodeId the ID of the node + * @param attributes object containing DOT attributes + * @param options object containing the options used when drawing the node, currently unused + */ + updateDrawnNode(x: number, y: number, nodeId: string, attributes?: DotAttributes, options?: any): this; + + /** + * Updates the position of the upper left corner of the node currently drawn + * with {@link drawNode}, accepting the same options argument. This method + * cannot be used after the node has been inserted into the graph data with + * {@link insertDrawnNode}. + * @param x new x co-ordinate of the top-left bounding box of the node + * @param y new y co-ordinate of the top-left bounding box of the node + * @param options object containing the options used when drawing the node, currently unused + */ + moveDrawnNode(x: number, y: number, options?: any): this; + + /** + * Inserts the node into the graph data, making it available for an animated + * transition into a subsequent new layout. + * @param nodeId the ID of the node + */ + inserDrawnNode(nodeId: string): this; + + /** + * Removes the node currently drawn with {@link drawNode}. This method cannot + * be used after the node has been inserted into the graph data with {@link insertDrawnNode}. + */ + removeDrawnNode(): this; + + /** + * Returns a {@link Selection} containing the node currently being drawn. The selection is empty + * if no node has been drawn or the lastest drawn node has been inserted into the graph data with + * {@link insertDrawnNode}. + */ + drawnNodeSelection(): Selection; + + // Large Graphs + /** + * Sets the total memory available to Viz.js to size bytes, which should be a power of 2. + * @param size the size in bytes of memory allocated to Viz.js + */ + totalMemory(size: number): this; +} + +/** + * Enum defining the valid strings that can be passed in as an engine + */ +export type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | 'twopi'; + +/** + * Enum defining the valid strings that can be passed as TypeNames + */ +export type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | + 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | + 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | + 'resotreEnd' | 'end' | string; // string included to allow for optional addition of a name, e.g. initEnd.foo + +/** + * Enum defining the valid strings that can be passed as KeyModes + */ +export type KeyMode = 'title' | 'id' | 'tag-index' | 'index'; + +/** + * Interface defining the options present on the Graphviz Renderer. + * Most map directly to methods that can be used to set their values. + */ +export interface GraphvizOptions { + useWorker?: boolean; + engine?: Engine; + totalMemory?: number; + keyMode?: KeyMode; + fade?: boolean; + tweenPaths?: boolean; + tweenShapes?: boolean; + convertEqualSidedPolygons?: boolean; + tweenPrecision?: number | string; + growEnteringEdges?: boolean; + zoom?: boolean; + zoomScaleExtent?: [number, number]; + zoomTranslateExtent?: [[number, number], [number, number]]; + width?: number; + height?: number; + scale?: number; + fit?: boolean; +} + +/** + * Interface defining the attributes available per the DOT language + */ +export interface DotAttributes { + style?: any; + URL?: any; + tooltip?: any; +} + +/** + * Interface defining the options available for rendering edges + */ +export interface EdgeOptions { + shortening: number; +} From a40a7eada5938aec5ce1440f82d725aa83ab6e2b Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 15:02:29 +0100 Subject: [PATCH 030/213] Removed unnecessary generics --- types/d3-graphviz/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index f08ec0e019..12316c5147 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -36,7 +36,7 @@ declare module 'd3-selection' { * @param selector either a string representing a selector for a given node or an instance of a node * @param options the options to be applied to the graphviz renderer */ -export function graphviz(selector: string | GElement, options?: GraphvizOptions | boolean): Graphviz; +export function graphviz(selector: string | BaseType, options?: GraphvizOptions | boolean): Graphviz; /** * Interface representing the Graphviz Renderer. Methods generally return the instance of the From 3be54467eb7c187cc05ea3cca77c8472c4097906 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Mon, 15 Oct 2018 15:21:22 +0100 Subject: [PATCH 031/213] Updated callbacks --- types/d3-graphviz/index.d.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 12316c5147..8d703309ed 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -5,7 +5,7 @@ // TypeScript Version: 2.3 import { ZoomBehavior } from 'd3-zoom'; -import { Selection, BaseType } from 'd3-selection'; +import { Selection, BaseType, ValueFn } from 'd3-selection'; import { Transition } from 'd3-transition'; /** @@ -63,7 +63,7 @@ export interface Graphviz void): this; /** * Starts computation of the layout of a graph from the specified dotSrc string and saves the data for @@ -71,14 +71,14 @@ export interface Graphviz void): this; /** * Starts rendering of an SVG graph from data saved by {@link dot} and appends it to the selection * the grapviz renderer instance was generated on. * @param callback */ - render(callback?: Function): this; + render(callback?: () => void): this; /** * Sets the Graphviz layout engine name to the specified engine string. @@ -98,7 +98,7 @@ export interface Graphviz void): this; // Images /** @@ -113,7 +113,15 @@ export interface Graphviz): this; + /** + * Applies the specified transition name to subsequent SVG rendering. Accepts the same arguments + * as {@link d3-select.transition} or a function, but returns the graph renderer instance, not the + * transition. If name is a function, it is taken to be a transition factory. A transition factory + * is a function that returns a transition. + * @param name either a function returning a transition, a transition object or a string naming a + * transition + */ + transition(name?: () => Transition | string | Transition): this; /** * Returns the active transition on the generated graph's top level svg with the specified name, @@ -155,7 +163,7 @@ export interface Graphviz void): this; /** * Sets whether events are logged or not. @@ -260,7 +268,7 @@ export interface Graphviz): this; // Accessing Extracted Data /** From 93e0c830c8555fa9da989414bcd452953060b6d5 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Tue, 16 Oct 2018 09:06:13 +0100 Subject: [PATCH 032/213] Fixed incorrect method name --- types/d3-graphviz/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 8d703309ed..9d3dc1ac61 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -373,7 +373,7 @@ export interface Graphviz Date: Mon, 22 Oct 2018 19:15:39 +0200 Subject: [PATCH 033/213] Add makeup-keyboard-trap definitions --- types/makeup-keyboard-trap/index.d.ts | 11 +++++++++ .../makeup-keyboard-trap-tests.ts | 7 ++++++ types/makeup-keyboard-trap/tsconfig.json | 24 +++++++++++++++++++ types/makeup-keyboard-trap/tslint.json | 1 + 4 files changed, 43 insertions(+) create mode 100644 types/makeup-keyboard-trap/index.d.ts create mode 100644 types/makeup-keyboard-trap/makeup-keyboard-trap-tests.ts create mode 100644 types/makeup-keyboard-trap/tsconfig.json create mode 100644 types/makeup-keyboard-trap/tslint.json diff --git a/types/makeup-keyboard-trap/index.d.ts b/types/makeup-keyboard-trap/index.d.ts new file mode 100644 index 0000000000..4645d57e2c --- /dev/null +++ b/types/makeup-keyboard-trap/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for makeup-keyboard-trap 0.1 +// Project: https://github.com/makeup-js/makeup-keyboard-trap#readme +// Definitions by: Timur Manyanov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.6 + +export function refresh(): any; + +export function trap(el: any): any; + +export function untrap(): any; diff --git a/types/makeup-keyboard-trap/makeup-keyboard-trap-tests.ts b/types/makeup-keyboard-trap/makeup-keyboard-trap-tests.ts new file mode 100644 index 0000000000..0f7687d750 --- /dev/null +++ b/types/makeup-keyboard-trap/makeup-keyboard-trap-tests.ts @@ -0,0 +1,7 @@ +import { trap, untrap } from 'makeup-keyboard-trap'; + +const widgetEl: HTMLElement | null = document.querySelector('.expander'); + +trap(widgetEl); + +untrap(); diff --git a/types/makeup-keyboard-trap/tsconfig.json b/types/makeup-keyboard-trap/tsconfig.json new file mode 100644 index 0000000000..0e4c00274f --- /dev/null +++ b/types/makeup-keyboard-trap/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "makeup-keyboard-trap-tests.ts" + ] +} diff --git a/types/makeup-keyboard-trap/tslint.json b/types/makeup-keyboard-trap/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/makeup-keyboard-trap/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From f3cc5edb390104313d4365a311a60679a18719b4 Mon Sep 17 00:00:00 2001 From: Timur Manyanov Date: Tue, 23 Oct 2018 09:10:00 +0200 Subject: [PATCH 034/213] Add makeup-prevent-scroll-keys definitions --- types/makeup-prevent-scroll-keys/index.d.ts | 9 +++++++ .../makeup-prevent-scroll-keys-tests.ts | 9 +++++++ .../makeup-prevent-scroll-keys/tsconfig.json | 24 +++++++++++++++++++ types/makeup-prevent-scroll-keys/tslint.json | 1 + 4 files changed, 43 insertions(+) create mode 100644 types/makeup-prevent-scroll-keys/index.d.ts create mode 100644 types/makeup-prevent-scroll-keys/makeup-prevent-scroll-keys-tests.ts create mode 100644 types/makeup-prevent-scroll-keys/tsconfig.json create mode 100644 types/makeup-prevent-scroll-keys/tslint.json diff --git a/types/makeup-prevent-scroll-keys/index.d.ts b/types/makeup-prevent-scroll-keys/index.d.ts new file mode 100644 index 0000000000..bb59ece615 --- /dev/null +++ b/types/makeup-prevent-scroll-keys/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for makeup-prevent-scroll-keys 0.0 +// Project: https://github.com/makeup-js/makeup-prevent-scroll-keys#readme +// Definitions by: Timur Manyanov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.6 + +export function add(el: any): void; + +export function remove(el: any): void; diff --git a/types/makeup-prevent-scroll-keys/makeup-prevent-scroll-keys-tests.ts b/types/makeup-prevent-scroll-keys/makeup-prevent-scroll-keys-tests.ts new file mode 100644 index 0000000000..c889c6299a --- /dev/null +++ b/types/makeup-prevent-scroll-keys/makeup-prevent-scroll-keys-tests.ts @@ -0,0 +1,9 @@ +import * as scrollKeyPreventer from 'makeup-prevent-scroll-keys'; + +const widgetEl: HTMLElement | null = document.querySelector('.widget'); + +if (widgetEl) { + scrollKeyPreventer.add(widgetEl); + + scrollKeyPreventer.remove(widgetEl); +} diff --git a/types/makeup-prevent-scroll-keys/tsconfig.json b/types/makeup-prevent-scroll-keys/tsconfig.json new file mode 100644 index 0000000000..d48ada0be6 --- /dev/null +++ b/types/makeup-prevent-scroll-keys/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "makeup-prevent-scroll-keys-tests.ts" + ] +} diff --git a/types/makeup-prevent-scroll-keys/tslint.json b/types/makeup-prevent-scroll-keys/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/makeup-prevent-scroll-keys/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 8b48f3872651970d606d0df86fe35b8bae6851d9 Mon Sep 17 00:00:00 2001 From: "michael.geiss" Date: Tue, 23 Oct 2018 10:59:05 +0200 Subject: [PATCH 035/213] fix chai-jquery added enabled --- types/chai-jquery/chai-jquery-tests.ts | 4 ++++ types/chai-jquery/index.d.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/types/chai-jquery/chai-jquery-tests.ts b/types/chai-jquery/chai-jquery-tests.ts index 894acf9ca5..bd798be847 100644 --- a/types/chai-jquery/chai-jquery-tests.ts +++ b/types/chai-jquery/chai-jquery-tests.ts @@ -67,6 +67,10 @@ function test_disabled() { expect($('#foo')).to.be.disabled; } +function test_enabled() { + expect($('#foo')).to.be.enabled; +} + function test_empty() { $('.empty').should.be.empty; expect($('body')).not.to.be.empty; diff --git a/types/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts index bd6826ca08..c2827d2e05 100644 --- a/types/chai-jquery/index.d.ts +++ b/types/chai-jquery/index.d.ts @@ -25,6 +25,7 @@ declare namespace Chai { selected(): Assertion; checked(): Assertion; disabled(): Assertion; + enabled(): Assertion; (selector: string): Assertion; } From bbdf8ce9dbb462f488b49234e8dacec1ac167e8f Mon Sep 17 00:00:00 2001 From: Guillaume Mayer Date: Wed, 24 Oct 2018 02:45:19 -0300 Subject: [PATCH 036/213] koa-router: router.url with 3rd argument (query) --- types/koa-router/index.d.ts | 22 ++++++++++++++++++++++ types/koa-router/koa-router-tests.ts | 8 +++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index b5dc934965..29e85a75de 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -4,6 +4,7 @@ // Pavel Ivanov // JounQin // Romain Faust +// Guillaume Mayer // Definitions: https://github.com/hellopao/DefinitelyTyped // TypeScript Version: 2.3 @@ -86,6 +87,10 @@ declare namespace Router { sensitive?: boolean; strict?: boolean; } + + export interface IUrlOptionsQuery { + query?: object | string; + } export class ParamName { asterisk: boolean; @@ -262,6 +267,23 @@ declare class Router { url(name: string, params: Object): string; url(name: string, params: Object): Error; + /** + * Generate URL for route with query part. + * + * Takes either map of named `params` or series of + * arguments (for regular expression routes) + * + * Query is generated from `options` argument: + * + * router.url('user', { id: 3 }, { query: { limit: 1 } }); + * // => "/users/3?limit=1" + * + * router.url('user', { id: 3 }, { query: "limit=1" }); + * // => "/users/3?limit=1" + */ + url(name: string, params: Object, options?: Router.IUrlOptionsQuery): string; + url(name: string, params: Object, options?: Router.IUrlOptionsQuery): Error; + /** * Match given `path` and return corresponding routes. */ diff --git a/types/koa-router/koa-router-tests.ts b/types/koa-router/koa-router-tests.ts index b2bec9ad0c..d7b3807b2d 100644 --- a/types/koa-router/koa-router-tests.ts +++ b/types/koa-router/koa-router-tests.ts @@ -18,7 +18,13 @@ router ctx.body = ctx.router.url('user-accounts', { id: ctx.params.id }) }) .get('user-accounts', '/users/:id/accounts', function (ctx, next) { - // ... + ctx.body = { + test1: ctx.router.url('users', { id: 3 }, { query: { limit: 1 } }), + test2: ctx.router.url('users', { id: 3 }, { query: "limit=1" }), + test3: ctx.router.url('users', 3, { query: { limit: 1 } }), + test4: ctx.router.url('users', [3], { query: "limit=1" }), + test5: ctx.router.url('users', ["3"], { query: { limit: "1" } }), + } }) .post('/users', function (ctx, next) { // ... From 098ee2ffeb615c3387eda384750665d18a022099 Mon Sep 17 00:00:00 2001 From: Guillaume Mayer Date: Wed, 24 Oct 2018 03:33:15 -0300 Subject: [PATCH 037/213] remove 2 arg version, Object to any --- types/koa-router/index.d.ts | 22 ++++++++++------------ types/koa-router/koa-router-tests.ts | 18 +++++++++++------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index 29e85a75de..93473626fa 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -263,26 +263,24 @@ declare class Router { /** * Generate URL for route. Takes either map of named `params` or series of * arguments (for regular expression routes) - */ - url(name: string, params: Object): string; - url(name: string, params: Object): Error; - - /** - * Generate URL for route with query part. * - * Takes either map of named `params` or series of - * arguments (for regular expression routes) + * router = new Router(); + * router.get('user', "/users/:id", ... * - * Query is generated from `options` argument: + * router.url('user', { id: 3 }); + * // => "/users/3" + * + * Query can be generated from third argument: * * router.url('user', { id: 3 }, { query: { limit: 1 } }); * // => "/users/3?limit=1" - * + * * router.url('user', { id: 3 }, { query: "limit=1" }); * // => "/users/3?limit=1" + * */ - url(name: string, params: Object, options?: Router.IUrlOptionsQuery): string; - url(name: string, params: Object, options?: Router.IUrlOptionsQuery): Error; + url(name: string, params: any, options?: Router.IUrlOptionsQuery): string; + url(name: string, params: any, options?: Router.IUrlOptionsQuery): Error; /** * Match given `path` and return corresponding routes. diff --git a/types/koa-router/koa-router-tests.ts b/types/koa-router/koa-router-tests.ts index d7b3807b2d..b5a4083146 100644 --- a/types/koa-router/koa-router-tests.ts +++ b/types/koa-router/koa-router-tests.ts @@ -14,16 +14,20 @@ router .get('/', function (ctx, next) { ctx.body = 'Hello World!'; }) - .get('/users/:id', function (ctx, next) { - ctx.body = ctx.router.url('user-accounts', { id: ctx.params.id }) + .get('user', '/users/:id', function (ctx, next) { + ctx.body = { + test1: ctx.router.url('user-accounts', { id: ctx.params.id }), + test2: ctx.router.url('user-accounts', ctx.params.id), + test3: ctx.router.url('user-accounts', [ctx.params.id]), + } }) .get('user-accounts', '/users/:id/accounts', function (ctx, next) { ctx.body = { - test1: ctx.router.url('users', { id: 3 }, { query: { limit: 1 } }), - test2: ctx.router.url('users', { id: 3 }, { query: "limit=1" }), - test3: ctx.router.url('users', 3, { query: { limit: 1 } }), - test4: ctx.router.url('users', [3], { query: "limit=1" }), - test5: ctx.router.url('users', ["3"], { query: { limit: "1" } }), + test1: ctx.router.url('user', { id: 3 }, { query: { limit: 1 } }), + test2: ctx.router.url('user', { id: 3 }, { query: "limit=1" }), + test3: ctx.router.url('user', 3, { query: { limit: 1 } }), + test4: ctx.router.url('user', [3], { query: "limit=1" }), + test5: ctx.router.url('user', ["3"], { query: { limit: "1" } }), } }) .post('/users', function (ctx, next) { From 5716e008b683da10856172d71f5fb77f689b6e62 Mon Sep 17 00:00:00 2001 From: Guillaume Mayer Date: Wed, 24 Oct 2018 03:49:19 -0300 Subject: [PATCH 038/213] query required --- types/koa-router/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index 93473626fa..6763f8d7b8 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -89,7 +89,7 @@ declare namespace Router { } export interface IUrlOptionsQuery { - query?: object | string; + query: object | string; } export class ParamName { From c199b3195ae742495cd4b531658eed9a78b1bb82 Mon Sep 17 00:00:00 2001 From: Chris Olivier Date: Thu, 25 Oct 2018 09:25:47 +0200 Subject: [PATCH 039/213] Update index.d.ts Corrected return type of jwtDecode from "string | null" to "object | null" --- types/arangodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index 76641f5270..5babc4a961 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -1698,7 +1698,7 @@ declare module "@arangodb/crypto" { key: string | null, token: string, noVerify?: boolean - ): string | null; + ): object | null; function md5(message: string): string; function sha1(message: string): string; function sha224(message: string): string; From 3971ed019c7dc63bce676fb61009b3a91fe66b65 Mon Sep 17 00:00:00 2001 From: Kevin Gonnord Date: Fri, 26 Oct 2018 13:09:24 +0200 Subject: [PATCH 040/213] Add get methods for pageSize --- types/jspdf/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/jspdf/index.d.ts b/types/jspdf/index.d.ts index e393e5fba1..1581870849 100644 --- a/types/jspdf/index.d.ts +++ b/types/jspdf/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for jsPDF v1.1.135 // Project: https://github.com/MrRio/jsPDF -// Definitions by: Amber Schühmacher +// Definitions by: Amber Schühmacher +// Kevin Gonnord // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'jspdf' { @@ -32,7 +33,9 @@ declare module 'jspdf' { 'scaleFactor':number; 'pageSize': { width:number; + getWitdh: () => number; height:number; + getHeight: () => number; }; 'output'(type:any, options:any):any; 'getNumberOfPages'():number; From 5cde7adaa686b32c3302933470303a9c146d4ba9 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 26 Oct 2018 14:32:37 +0200 Subject: [PATCH 041/213] Jasmine: Adds withContext method on Matcher Jasmine 3.3.0 introduced a new method called `withContext` to provide additional context to an expectation. See https://github.com/jasmine/jasmine/blob/master/release_notes/3.3.0.md --- types/jasmine/index.d.ts | 6 ++++++ types/jasmine/jasmine-tests.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 254714ff94..8ce2b85bb5 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -448,6 +448,12 @@ declare namespace jasmine { toThrowError(message?: string | RegExp): boolean; toThrowError(expected?: new (...args: any[]) => Error, message?: string | RegExp): boolean; + /** + * Add some context for an expect. + * @param message - Additional context to show when the matcher fails + */ + withContext(message: string): Matchers; + not: Matchers; Any: Any; diff --git a/types/jasmine/jasmine-tests.ts b/types/jasmine/jasmine-tests.ts index e96293ced4..11bfbca2b2 100644 --- a/types/jasmine/jasmine-tests.ts +++ b/types/jasmine/jasmine-tests.ts @@ -246,6 +246,12 @@ describe("A spec", () => { }); }); +describe("withContext", () => { + it("can be used after an expectation", () => { + expect(1).withContext('context message').toBe(1); + }); +}); + xdescribe("A spec", () => { var foo: number; From a4a93743a4c5cb4283c9e8b653e450e1bf12430c Mon Sep 17 00:00:00 2001 From: Kevin Gonnord Date: Fri, 26 Oct 2018 14:37:19 +0200 Subject: [PATCH 042/213] increase version number --- types/jspdf/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jspdf/index.d.ts b/types/jspdf/index.d.ts index 1581870849..235a08cba0 100644 --- a/types/jspdf/index.d.ts +++ b/types/jspdf/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for jsPDF v1.1.135 +// Type definitions for jsPDF v1.1.136 // Project: https://github.com/MrRio/jsPDF // Definitions by: Amber Schühmacher // Kevin Gonnord From 782ba71a21044edcf9b4cbfb2369db484693e444 Mon Sep 17 00:00:00 2001 From: Kevin Gonnord Date: Fri, 26 Oct 2018 14:47:41 +0200 Subject: [PATCH 043/213] fix getWidth --- types/jspdf/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jspdf/index.d.ts b/types/jspdf/index.d.ts index 235a08cba0..9324717904 100644 --- a/types/jspdf/index.d.ts +++ b/types/jspdf/index.d.ts @@ -33,7 +33,7 @@ declare module 'jspdf' { 'scaleFactor':number; 'pageSize': { width:number; - getWitdh: () => number; + getWidth: () => number; height:number; getHeight: () => number; }; From 2bf22171c788b20878a79633bd1c994905209663 Mon Sep 17 00:00:00 2001 From: licui Date: Fri, 26 Oct 2018 11:23:48 -0400 Subject: [PATCH 044/213] add 34 folder --- .../v34/_v2/api/application/application.d.ts | 223 ++ types/openfin/v34/_v2/api/base.d.ts | 43 + .../v34/_v2/api/clipboard/clipboard.d.ts | 70 + .../v34/_v2/api/clipboard/write-request.d.ts | 12 + .../external-application.d.ts | 36 + types/openfin/v34/_v2/api/fin.d.ts | 27 + types/openfin/v34/_v2/api/frame/frame.d.ts | 51 + .../v34/_v2/api/global-hotkey/index.d.ts | 33 + .../_v2/api/interappbus/channel/channel.d.ts | 31 + .../_v2/api/interappbus/channel/client.d.ts | 6 + .../_v2/api/interappbus/channel/index.d.ts | 33 + .../_v2/api/interappbus/channel/provider.d.ts | 13 + .../v34/_v2/api/interappbus/interappbus.d.ts | 80 + .../_v2/api/notification/notification.d.ts | 71 + .../v34/_v2/api/system/application.d.ts | 4 + .../v34/_v2/api/system/clearCacheOption.d.ts | 6 + types/openfin/v34/_v2/api/system/cookie.d.ts | 8 + .../_v2/api/system/crashReporterOption.d.ts | 4 + .../v34/_v2/api/system/download-asset.d.ts | 18 + .../v34/_v2/api/system/download-preload.d.ts | 8 + types/openfin/v34/_v2/api/system/entity.d.ts | 11 + .../v34/_v2/api/system/external-process.d.ts | 22 + .../v34/_v2/api/system/host-specs.d.ts | 22 + types/openfin/v34/_v2/api/system/log.d.ts | 11 + types/openfin/v34/_v2/api/system/monitor.d.ts | 39 + types/openfin/v34/_v2/api/system/point.d.ts | 8 + types/openfin/v34/_v2/api/system/process.d.ts | 15 + types/openfin/v34/_v2/api/system/proxy.d.ts | 14 + .../v34/_v2/api/system/registry-info.d.ts | 7 + .../v34/_v2/api/system/runtime-info.d.ts | 7 + types/openfin/v34/_v2/api/system/rvm.d.ts | 5 + types/openfin/v34/_v2/api/system/system.d.ts | 475 ++++ types/openfin/v34/_v2/api/system/window.d.ts | 14 + .../v34/_v2/api/window/bounds-changed.d.ts | 14 + types/openfin/v34/_v2/api/window/bounds.d.ts | 9 + .../v34/_v2/api/window/transition.d.ts | 24 + types/openfin/v34/_v2/api/window/window.d.ts | 759 +++++++ .../v34/_v2/environment/environment.d.ts | 10 + .../openfin/v34/_v2/environment/node-env.d.ts | 11 + .../v34/_v2/environment/openfin-env.d.ts | 11 + .../_v2/environment/openfin-renderer-api.d.ts | 6 + types/openfin/v34/_v2/identity.d.ts | 4 + types/openfin/v34/_v2/launcher/launcher.d.ts | 15 + .../openfin/v34/_v2/launcher/nix-launch.d.ts | 14 + types/openfin/v34/_v2/launcher/util.d.ts | 8 + .../openfin/v34/_v2/launcher/win-launch.d.ts | 4 + types/openfin/v34/_v2/main.d.ts | 11 + types/openfin/v34/_v2/of-main.d.ts | 1 + types/openfin/v34/_v2/transport/elipc.d.ts | 13 + .../v34/_v2/transport/port-discovery.d.ts | 17 + .../v34/_v2/transport/transport-errors.d.ts | 17 + .../openfin/v34/_v2/transport/transport.d.ts | 48 + .../openfin/v34/_v2/transport/websocket.d.ts | 14 + types/openfin/v34/_v2/transport/wire.d.ts | 71 + .../v34/_v2/util/normalize-config.d.ts | 3 + types/openfin/v34/_v2/util/promises.d.ts | 5 + types/openfin/v34/_v2/util/ref-counter.d.ts | 7 + types/openfin/v34/index.d.ts | 1907 +++++++++++++++++ types/openfin/v34/openfin-tests.ts | 800 +++++++ types/openfin/v34/tsconfig.json | 81 + types/openfin/v34/tslint.json | 18 + 61 files changed, 5329 insertions(+) create mode 100644 types/openfin/v34/_v2/api/application/application.d.ts create mode 100644 types/openfin/v34/_v2/api/base.d.ts create mode 100644 types/openfin/v34/_v2/api/clipboard/clipboard.d.ts create mode 100644 types/openfin/v34/_v2/api/clipboard/write-request.d.ts create mode 100644 types/openfin/v34/_v2/api/external-application/external-application.d.ts create mode 100644 types/openfin/v34/_v2/api/fin.d.ts create mode 100644 types/openfin/v34/_v2/api/frame/frame.d.ts create mode 100644 types/openfin/v34/_v2/api/global-hotkey/index.d.ts create mode 100644 types/openfin/v34/_v2/api/interappbus/channel/channel.d.ts create mode 100644 types/openfin/v34/_v2/api/interappbus/channel/client.d.ts create mode 100644 types/openfin/v34/_v2/api/interappbus/channel/index.d.ts create mode 100644 types/openfin/v34/_v2/api/interappbus/channel/provider.d.ts create mode 100644 types/openfin/v34/_v2/api/interappbus/interappbus.d.ts create mode 100644 types/openfin/v34/_v2/api/notification/notification.d.ts create mode 100644 types/openfin/v34/_v2/api/system/application.d.ts create mode 100644 types/openfin/v34/_v2/api/system/clearCacheOption.d.ts create mode 100644 types/openfin/v34/_v2/api/system/cookie.d.ts create mode 100644 types/openfin/v34/_v2/api/system/crashReporterOption.d.ts create mode 100644 types/openfin/v34/_v2/api/system/download-asset.d.ts create mode 100644 types/openfin/v34/_v2/api/system/download-preload.d.ts create mode 100644 types/openfin/v34/_v2/api/system/entity.d.ts create mode 100644 types/openfin/v34/_v2/api/system/external-process.d.ts create mode 100644 types/openfin/v34/_v2/api/system/host-specs.d.ts create mode 100644 types/openfin/v34/_v2/api/system/log.d.ts create mode 100644 types/openfin/v34/_v2/api/system/monitor.d.ts create mode 100644 types/openfin/v34/_v2/api/system/point.d.ts create mode 100644 types/openfin/v34/_v2/api/system/process.d.ts create mode 100644 types/openfin/v34/_v2/api/system/proxy.d.ts create mode 100644 types/openfin/v34/_v2/api/system/registry-info.d.ts create mode 100644 types/openfin/v34/_v2/api/system/runtime-info.d.ts create mode 100644 types/openfin/v34/_v2/api/system/rvm.d.ts create mode 100644 types/openfin/v34/_v2/api/system/system.d.ts create mode 100644 types/openfin/v34/_v2/api/system/window.d.ts create mode 100644 types/openfin/v34/_v2/api/window/bounds-changed.d.ts create mode 100644 types/openfin/v34/_v2/api/window/bounds.d.ts create mode 100644 types/openfin/v34/_v2/api/window/transition.d.ts create mode 100644 types/openfin/v34/_v2/api/window/window.d.ts create mode 100644 types/openfin/v34/_v2/environment/environment.d.ts create mode 100644 types/openfin/v34/_v2/environment/node-env.d.ts create mode 100644 types/openfin/v34/_v2/environment/openfin-env.d.ts create mode 100644 types/openfin/v34/_v2/environment/openfin-renderer-api.d.ts create mode 100644 types/openfin/v34/_v2/identity.d.ts create mode 100644 types/openfin/v34/_v2/launcher/launcher.d.ts create mode 100644 types/openfin/v34/_v2/launcher/nix-launch.d.ts create mode 100644 types/openfin/v34/_v2/launcher/util.d.ts create mode 100644 types/openfin/v34/_v2/launcher/win-launch.d.ts create mode 100644 types/openfin/v34/_v2/main.d.ts create mode 100644 types/openfin/v34/_v2/of-main.d.ts create mode 100644 types/openfin/v34/_v2/transport/elipc.d.ts create mode 100644 types/openfin/v34/_v2/transport/port-discovery.d.ts create mode 100644 types/openfin/v34/_v2/transport/transport-errors.d.ts create mode 100644 types/openfin/v34/_v2/transport/transport.d.ts create mode 100644 types/openfin/v34/_v2/transport/websocket.d.ts create mode 100644 types/openfin/v34/_v2/transport/wire.d.ts create mode 100644 types/openfin/v34/_v2/util/normalize-config.d.ts create mode 100644 types/openfin/v34/_v2/util/promises.d.ts create mode 100644 types/openfin/v34/_v2/util/ref-counter.d.ts create mode 100644 types/openfin/v34/index.d.ts create mode 100644 types/openfin/v34/openfin-tests.ts create mode 100644 types/openfin/v34/tsconfig.json create mode 100644 types/openfin/v34/tslint.json diff --git a/types/openfin/v34/_v2/api/application/application.d.ts b/types/openfin/v34/_v2/api/application/application.d.ts new file mode 100644 index 0000000000..616501834d --- /dev/null +++ b/types/openfin/v34/_v2/api/application/application.d.ts @@ -0,0 +1,223 @@ +import { EmitterBase, Base, Reply, RuntimeEvent } from '../base'; +import { Identity } from '../../identity'; +import { _Window } from '../window/window'; +import { Point } from '../system/point'; +import { MonitorInfo } from '../system/monitor'; +import Transport from '../../transport/transport'; +import Bounds from '../window/bounds'; +export interface TrayIconClickReply extends Point, Reply<'application', 'tray-icon-clicked'> { + button: number; + monitorInfo: MonitorInfo; +} +export interface ApplicationInfo { + initialOptions: object; + launchMode: string; + manifest: object; + manifestUrl: string; + parentUuid?: string; + runtime: object; +} +export declare class NavigationRejectedReply extends Reply<'window-navigation-rejected', void> { + sourceName: string; + url: string; +} +export interface ConfigInterface { + desktop?: boolean; + startMenu?: boolean; + systemStartup?: boolean; +} +export interface TrayInfo { + bounds: Bounds; + monitorInfo: MonitorInfo; + x: number; + y: number; +} +export default class ApplicationModule extends Base { + /** + * Returns an Application object that represents an existing application. + * @param { Identity } indentity + * @return {Promise.} + * @tutorial Application.wrap + */ + wrap(identity: Identity): Promise; + /** + * Creates a new Application. + * @param {*} appOptions + * @return {Promise.} + * @tutorial Application.create + */ + create(appOptions: any): Promise; + /** + * Returns an Application object that represents the current application + * @return {Promise.} + * @tutorial Application.getCurrent + */ + getCurrent(): Promise; + /** + * Retrieves application's manifest and returns a wrapped application. + * @param {string} manifestUrl - The URL of app's manifest. + * @return {Promise.} + * @tutorial Application.createFromManifest + */ + createFromManifest(manifestUrl: string): Promise; +} +/** + * @classdesc An object representing an application. Allows the developer to create, + * execute, show/close an application as well as listen to application events. + * @class + */ +export declare class Application extends EmitterBase { + identity: Identity; + _manifestUrl?: string; + private window; + constructor(wire: Transport, identity: Identity); + protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; + private windowListFromIdentityList; + /** + * Determines if the application is currently running. + * @return {Promise.} + * @tutorial Application.isRunning + */ + isRunning(): Promise; + /** + * Closes the application and any child windows created by the application. + * @param { boolean } [force = false] Close will be prevented from closing when force is false and + * ‘close-requested’ has been subscribed to for application’s main window. + * @return {Promise.} + * @tutorial Application.close + */ + close(force?: boolean): Promise; + /** + * Retrieves an array of wrapped fin.Windows for each of the application’s child windows. + * @return {Promise.Array.<_Window>} + * @tutorial Application.getChildWindows + */ + getChildWindows(): Promise>; + /** + * Retrieves an array of active window groups for all of the application's windows. Each group is + * represented as an array of wrapped fin.Windows. + * @return {Promise.Array.Array.<_Window>} + * @tutorial Application.getGroups + */ + getGroups(): Promise>>; + /** + * Retrieves the JSON manifest that was used to create the application. Invokes the error callback + * if the application was not created from a manifest. + * @return {Promise.} + * @tutorial Application.getManifest + */ + getManifest(): Promise; + /** + * Retrieves UUID of the application that launches this application. Invokes the error callback + * if the application was created from a manifest. + * @return {Promise.} + * @tutorial Application.getParentUuid + */ + getParentUuid(): Promise; + /** + * Retrieves current application's shortcut configuration. + * @return {Promise.} + * @tutorial Application.getShortcuts + */ + getShortcuts(): Promise; + /** + * Returns an instance of the main Window of the application + * @return {Promise.<_Window>} + * @tutorial Application.getWindow + */ + getWindow(): Promise<_Window>; + /** + * Manually registers a user with the licensing service. The only data sent by this call is userName and appName. + * @param { string } userName - username to be passed to the RVM. + * @param { string } appName - app name to be passed to the RVM. + * @return {Promise.} + * @tutorial Application.registerUser + */ + registerUser(userName: string, appName: string): Promise; + /** + * Removes the application’s icon from the tray. + * @return {Promise.} + * @tutorial Application.removeTrayIcon + */ + removeTrayIcon(): Promise; + /** + * Restarts the application. + * @return {Promise.} + * @tutorial Application.restart + */ + restart(): Promise; + /** + * Runs the application. When the application is created, run must be called. + * @return {Promise.} + * @tutorial Application.run + */ + run(): Promise; + /** + * Instructs the RVM to schedule one restart of the application. + * @return {Promise.} + * @tutorial Application.scheduleRestart + */ + scheduleRestart(): Promise; + /** + * Adds a customizable icon in the system tray and notifies the application when clicked. + * @param { string } iconUrl Image URL to be used as the icon + * @return {Promise.} + * @tutorial Application.setTrayIcon + */ + setTrayIcon(iconUrl: string): Promise; + /** + * Sets new application's shortcut configuration. + * @param { Object } config New application's shortcut configuration. + * @param {Boolean} [config.desktop] - Enable/disable desktop shortcut. + * @param {Boolean} [config.startMenu] - Enable/disable start menu shortcut. + * @param {Boolean} [config.systemStartup] - Enable/disable system startup shortcut. + * @return {Promise.} + * @tutorial Application.setShortcuts + */ + setShortcuts(config: ConfigInterface): Promise; + /** + * @summary Retrieves information about the system tray. + * @desc The only information currently returned is the position and dimensions. + * @return {Promise.} + * @tutorial Application.getTrayIconInfo + */ + getTrayIconInfo(): Promise; + /** + * Closes the application by terminating its process. + * @return {Promise.} + * @tutorial Application.terminate + */ + terminate(): Promise; + /** + * Waits for a hanging application. This method can be called in response to an application + * "not-responding" to allow the application to continue and to generate another "not-responding" + * message after a certain period of time. + * @return {Promise.} + * @ignore + */ + wait(): Promise; + /** + * Retrieves information about the application. + * @return {Promise.} + * @tutorial Application.getInfo + */ + getInfo(): Promise; +} +export interface Application { + on(type: 'closed', listener: (data: Reply<'application', 'closed'>) => void): Promise; + on(type: 'initialized', listener: (data: Reply<'application', 'initialized'>) => void): Promise; + on(type: 'connected', listener: (data: Reply<'application', 'connected'>) => void): Promise; + on(type: 'crashed', listener: (data: Reply<'application', 'crashed'>) => void): Promise; + on(type: 'error', listener: (data: Reply<'application', 'error'>) => void): Promise; + on(type: 'not-responding', listener: (data: Reply<'application', 'not-responding'>) => void): Promise; + on(type: 'out-of-memory', listener: (data: Reply<'application', 'out-of-memory'>) => void): Promise; + on(type: 'responding', listener: (data: Reply<'application', 'responding'>) => void): Promise; + on(type: 'started', listener: (data: Reply<'application', 'started'>) => void): Promise; + on(type: 'run-requested', listener: (data: Reply<'application', 'run-requested'>) => void): Promise; + on(type: 'window-navigation-rejected', listener: (data: NavigationRejectedReply) => void): Promise; + on(type: 'window-created', listener: (data: Reply<'application', 'window-created'>) => void): Promise; + on(type: 'window-closed', listener: (data: Reply<'application', 'window-closed'>) => void): Promise; + on(type: 'tray-icon-clicked', listener: (data: TrayIconClickReply) => void): Promise; + on(type: 'removeListener', listener: (eventType: string) => void): Promise; + on(type: 'newListener', listener: (eventType: string) => void): Promise; +} diff --git a/types/openfin/v34/_v2/api/base.d.ts b/types/openfin/v34/_v2/api/base.d.ts new file mode 100644 index 0000000000..1f17e1f24f --- /dev/null +++ b/types/openfin/v34/_v2/api/base.d.ts @@ -0,0 +1,43 @@ +/// +import Transport, { Message } from '../transport/transport'; +import { Identity } from '../identity'; +import { EventEmitter } from 'events'; +export interface RuntimeEvent extends Identity { + topic: string; + type: string | symbol; +} +export declare class Base { + wire: Transport; + constructor(wire: Transport); + private _topic; + protected topic: string; + readonly me: Identity; + protected isNodeEnvironment: () => boolean; + protected isOpenFinEnvironment: () => boolean; + protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; +} +export declare class EmitterBase extends Base { + protected identity: Identity; + protected emitter: EventEmitter; + listeners: (event: string | symbol) => Function[]; + listenerCount: (type: string | symbol) => number; + constructor(wire: Transport); + emit: (eventName: string | symbol, ...args: any[]) => void; + protected onmessage: (message: Message) => boolean; + protected registerEventListener: (listener: RuntimeEvent) => Promise>; + protected deregisterEventListener: (listener: RuntimeEvent) => Promise>; + on(eventType: string, listener: (...args: any[]) => void): Promise; + addListener: (eventType: string, listener: (...args: any[]) => void) => Promise; + once(eventType: string, listener: (...args: any[]) => void): Promise; + prependListener(eventType: string, listener: (...args: any[]) => void): Promise; + prependOnceListener(eventType: string, listener: (...args: any[]) => void): Promise; + removeListener(eventType: string, listener: (...args: any[]) => void): Promise; + protected deregisterAllListeners: (eventType: string | symbol) => Promise>; + removeAllListeners(eventType?: string): Promise; +} +export declare class Reply implements Identity { + topic: TOPIC; + type: TYPE; + uuid: string; + name?: string; +} diff --git a/types/openfin/v34/_v2/api/clipboard/clipboard.d.ts b/types/openfin/v34/_v2/api/clipboard/clipboard.d.ts new file mode 100644 index 0000000000..11b466dea0 --- /dev/null +++ b/types/openfin/v34/_v2/api/clipboard/clipboard.d.ts @@ -0,0 +1,70 @@ +import { Base } from '../base'; +import { WriteRequestType, WriteAnyRequestType } from './write-request'; +/** + * WriteRequestType interface + * @typedef { Object } WriteRequestType + * @property { string } name The name of the running application + * @property { string } uuid The uuid of the running application + */ +/** + * The Clipboard API allows reading and writing to the clipboard in multiple formats. + * @namespace +*/ +export default class Clipboard extends Base { + /** + * Writes data into the clipboard as plain text + * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typeof + * @return {Promise.} + * @tutorial Clipboard.writeText + */ + writeText(writeObj: WriteRequestType): Promise; + /** + * Read the content of the clipboard as plain text + * @param { string } type Clipboard Type + * @return {Promise.} + * @tutorial Clipboard.readText + */ + readText(type?: string): Promise; + /** + * Writes data into the clipboard as Html + * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typedef + * @return {Promise.} + * @tutorial Clipboard.writeHtml + */ + writeHtml(writeObj: WriteRequestType): Promise; + /** + * Read the content of the clipboard as Html + * @param { string } type Clipboard Type + * @return {Promise.} + * @tutorial Clipboard.readHtml + */ + readHtml(type?: string): Promise; + /** + * Writes data into the clipboard as Rtf + * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typedef + * @return {Promise.} + * @tutorial Clipboard.writeRtf + */ + writeRtf(writeObj: WriteRequestType): Promise; + /** + * Read the content of the clipboard as Rtf + * @param { string } type Clipboard Type + * @return {Promise.} + * @tutorial Clipboard.readRtf + */ + readRtf(type?: string): Promise; + /** + * Writes data into the clipboard + * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typedef + * @return {Promise.} + * @tutorial Clipboard.write + */ + write(writeObj: WriteAnyRequestType): Promise; + /** + * Reads available formats for the clipboard type + * @param { string } type Clipboard Type + * @return {Promise.Array.} + * @tutorial Clipboard.getAvailableFormats + */ + getAvailableFormats(type?: string): Promise>; +} diff --git a/types/openfin/v34/_v2/api/clipboard/write-request.d.ts b/types/openfin/v34/_v2/api/clipboard/write-request.d.ts new file mode 100644 index 0000000000..a2fc5c333e --- /dev/null +++ b/types/openfin/v34/_v2/api/clipboard/write-request.d.ts @@ -0,0 +1,12 @@ +export interface WriteRequestType { + data: string; + type?: string; +} +export interface WriteAnyRequestType { + data: { + text?: string; + html?: string; + rtf?: string; + }; + type?: string; +} diff --git a/types/openfin/v34/_v2/api/external-application/external-application.d.ts b/types/openfin/v34/_v2/api/external-application/external-application.d.ts new file mode 100644 index 0000000000..2d1f46e0f3 --- /dev/null +++ b/types/openfin/v34/_v2/api/external-application/external-application.d.ts @@ -0,0 +1,36 @@ +import { Base, EmitterBase, Reply } from '../base'; +import { Identity } from '../../identity'; +import Transport from '../../transport/transport'; +export interface ExternalApplicationInfo { + parent: Identity; +} +export default class ExternalApplicationModule extends Base { + /** + * Returns an External Application object that represents an existing external application. + * @param {string} uuid The UUID of the external application to be wrapped + * @return {Promise.} + */ + wrap(uuid: string): Promise; +} +/** + * @classdesc An ExternalApplication object representing an application. Allows + * the developer to create, execute, show and close an external application as + * well as listen to application events. + * @class + */ +export declare class ExternalApplication extends EmitterBase { + identity: Identity; + constructor(wire: Transport, identity: Identity); + /** + * Retrieves information about the external application. + * @return {Promise.} + * @tutorial ExternalApplication.getInfo + */ + getInfo(): Promise; +} +export interface ExternalApplication { + on(type: 'connected', listener: (data: Reply<'externalapplication', 'connected'>) => void): Promise; + on(type: 'disconnected', listener: (data: Reply<'externalapplication', 'disconnected'>) => void): Promise; + on(type: 'removeListener', listener: (eventType: string) => void): Promise; + on(type: 'newListener', listener: (eventType: string) => void): Promise; +} diff --git a/types/openfin/v34/_v2/api/fin.d.ts b/types/openfin/v34/_v2/api/fin.d.ts new file mode 100644 index 0000000000..1bec2ffb4f --- /dev/null +++ b/types/openfin/v34/_v2/api/fin.d.ts @@ -0,0 +1,27 @@ +/// +import Transport from '../transport/transport'; +import { EventEmitter } from 'events'; +import System from './system/system'; +import _WindowModule from './window/window'; +import Application from './application/application'; +import InterApplicationBus from './interappbus/interappbus'; +import _NotificationModule from './notification/notification'; +import Clipbpard from './clipboard/clipboard'; +import ExternalApplication from './external-application/external-application'; +import _FrameModule from './frame/frame'; +import GlobalHotkey from './global-hotkey'; +import { Identity } from '../identity'; +export default class Fin extends EventEmitter { + private wire; + System: System; + Window: _WindowModule; + Application: Application; + InterApplicationBus: InterApplicationBus; + Notification: _NotificationModule; + Clipboard: Clipbpard; + ExternalApplication: ExternalApplication; + Frame: _FrameModule; + GlobalHotkey: GlobalHotkey; + readonly me: Identity; + constructor(wire: Transport); +} diff --git a/types/openfin/v34/_v2/api/frame/frame.d.ts b/types/openfin/v34/_v2/api/frame/frame.d.ts new file mode 100644 index 0000000000..4a5ab971de --- /dev/null +++ b/types/openfin/v34/_v2/api/frame/frame.d.ts @@ -0,0 +1,51 @@ +import { Base, EmitterBase } from '../base'; +import { Identity } from '../../identity'; +import Transport from '../../transport/transport'; +export declare type EntityType = 'window' | 'iframe' | 'external connection' | 'unknown'; +export interface FrameInfo { + uuid: string; + name: string; + entityType: EntityType; + parent: Identity; +} +export default class _FrameModule extends Base { + /** + * Gets a reference to the specified frame. The frame does not have to exist + * @param {string} uuid - uuid of the frame you want to wrap + * @param {string} name - name of the frame you want to wrap + * @return {Promise.<_Frame>} + */ + wrap(uuid: string, name: string): Promise<_Frame>; + /** + * Get a reference to the current frame + * @return {Promise.<_Frame>} + */ + getCurrent(): Promise<_Frame>; +} +/** + * @classdesc Represents a way to interact with `iframes`. Facilitates discovery of current context + * (iframe or main window) as well as the ability to listen for frame-specific events. + * @class + * @alias Frame + */ +export declare class _Frame extends EmitterBase { + identity: Identity; + constructor(wire: Transport, identity: Identity); + /** + * Returns a frame info object for the represented frame + * @return {Promise.} + * @tutorial Frame.getInfo + */ + getInfo(): Promise; + /** + * Returns a frame info object representing the window that the referenced iframe is + * currently embedded in + * @return {Promise.} + * @tutorial Frame.getParentWindow + */ + getParentWindow(): Promise; +} +export interface _Frame { + on(type: 'connected', listener: (eventType: string) => void): Promise; + on(type: 'disconnected', listener: (eventType: string) => void): Promise; +} diff --git a/types/openfin/v34/_v2/api/global-hotkey/index.d.ts b/types/openfin/v34/_v2/api/global-hotkey/index.d.ts new file mode 100644 index 0000000000..148ddff7e9 --- /dev/null +++ b/types/openfin/v34/_v2/api/global-hotkey/index.d.ts @@ -0,0 +1,33 @@ +import { EmitterBase } from '../base'; +import Transport from '../../transport/transport'; +/** + * The GlobalHotkey module can register/unregister a global hotkeys. + * @namespace + */ +export default class GlobalHotkey extends EmitterBase { + constructor(wire: Transport); + /** + * Registers a global hotkey with the operating system. + * @return {Promise.} + * @tutorial GlobalHotkey.register + */ + register(hotkey: string, listener: (...args: any[]) => void): Promise; + /** + * Unregisters a global hotkey with the operating system. + * @return {Promise.} + * @tutorial GlobalHotkey.unregister + */ + unregister(hotkey: string): Promise; + /** + * Unregisters all global hotkeys for the current application. + * @return {Promise.} + * @tutorial GlobalHotkey.unregisterAll + */ + unregisterAll(): Promise; + /** + * Checks if a given hotkey has been registered + * @return {Promise.} + * @tutorial GlobalHotkey.isRegistered + */ + isRegistered(hotkey: string): Promise; +} diff --git a/types/openfin/v34/_v2/api/interappbus/channel/channel.d.ts b/types/openfin/v34/_v2/api/interappbus/channel/channel.d.ts new file mode 100644 index 0000000000..1c9a502e12 --- /dev/null +++ b/types/openfin/v34/_v2/api/interappbus/channel/channel.d.ts @@ -0,0 +1,31 @@ +import { Identity } from '../../../identity'; +import Transport, { Message } from '../../../transport/transport'; +export interface ProviderIdentity extends Identity { + channelId: string; + isExternal?: boolean; + channelName: string; +} +export declare type Action = (() => any) | ((payload: any) => any) | ((payload: any, id: ProviderIdentity) => any); +export declare type Middleware = (() => any) | ((action: string) => any) | ((action: string, payload: any) => any) | ((action: string, payload: any, id: ProviderIdentity) => any); +export interface ChannelMessagePayload extends Identity { + action: string; + payload: any; +} +export declare class ChannelBase { + protected subscriptions: any; + defaultAction: (action?: string, payload?: any, senderIdentity?: ProviderIdentity) => any; + private preAction; + private postAction; + private errorMiddleware; + private defaultSet; + protected send: (to: Identity, action: string, payload: any) => Promise>; + protected providerIdentity: ProviderIdentity; + constructor(providerIdentity: ProviderIdentity, send: Transport['sendAction']); + processAction(action: string, payload: any, senderIdentity: ProviderIdentity): Promise; + beforeAction(func: Action): void; + onError(func: (e: any, action: string, id: Identity) => any): void; + afterAction(func: Action): void; + remove(action: string): void; + setDefaultAction(func: (action?: string, payload?: any, senderIdentity?: ProviderIdentity) => any): void; + register(topic: string, listener: Action): boolean; +} diff --git a/types/openfin/v34/_v2/api/interappbus/channel/client.d.ts b/types/openfin/v34/_v2/api/interappbus/channel/client.d.ts new file mode 100644 index 0000000000..d1c128a349 --- /dev/null +++ b/types/openfin/v34/_v2/api/interappbus/channel/client.d.ts @@ -0,0 +1,6 @@ +import { ChannelBase, ProviderIdentity } from './channel'; +import Transport from '../../../transport/transport'; +export declare class ChannelClient extends ChannelBase { + constructor(providerIdentity: ProviderIdentity, send: Transport['sendAction']); + dispatch(action: string, payload?: any): Promise; +} diff --git a/types/openfin/v34/_v2/api/interappbus/channel/index.d.ts b/types/openfin/v34/_v2/api/interappbus/channel/index.d.ts new file mode 100644 index 0000000000..1297d2c5ea --- /dev/null +++ b/types/openfin/v34/_v2/api/interappbus/channel/index.d.ts @@ -0,0 +1,33 @@ +import { ChannelClient } from './client'; +import { Identity } from '../../../identity'; +import { ChannelProvider } from './provider'; +import { EmitterBase } from '../../base'; +import Transport, { Message, Payload } from '../../../transport/transport'; +import { ProviderIdentity } from './channel'; +export interface Options { + wait?: boolean; + uuid: string; + name?: string; + payload?: any; +} +export interface ChannelPayload { + payload: Payload; +} +export interface ChannelMessage { + senderIdentity: Identity; + ackToSender: any; + providerIdentity: Identity; + connectAction: boolean; +} +export declare class Channel extends EmitterBase { + private channelMap; + constructor(wire: Transport); + getAllChannels(): Promise; + onChannelConnect(listener: Function): Promise; + onChannelDisconnect(listener: Function): Promise; + connect(options: Options): Promise; + create(channelName?: string): Promise; + onmessage: (msg: Message) => boolean; + private processChannelMessage; + private processChannelConnection; +} diff --git a/types/openfin/v34/_v2/api/interappbus/channel/provider.d.ts b/types/openfin/v34/_v2/api/interappbus/channel/provider.d.ts new file mode 100644 index 0000000000..a869928ac2 --- /dev/null +++ b/types/openfin/v34/_v2/api/interappbus/channel/provider.d.ts @@ -0,0 +1,13 @@ +import { ChannelBase, ProviderIdentity } from './channel'; +import Transport from '../../../transport/transport'; +export declare type ConnectionListener = (adapterIdentity: ProviderIdentity, connectionMessage?: any) => any; +export declare class ChannelProvider extends ChannelBase { + private connectListener; + private disconnectListener; + connections: ProviderIdentity[]; + constructor(providerIdentity: ProviderIdentity, send: Transport['sendAction']); + dispatch(to: ProviderIdentity, action: string, payload: any): Promise; + processConnection(senderId: ProviderIdentity, payload: any): Promise; + publish(action: string, payload: any): Promise[]; + onConnection(listener: ConnectionListener): void; +} diff --git a/types/openfin/v34/_v2/api/interappbus/interappbus.d.ts b/types/openfin/v34/_v2/api/interappbus/interappbus.d.ts new file mode 100644 index 0000000000..48aaf7430c --- /dev/null +++ b/types/openfin/v34/_v2/api/interappbus/interappbus.d.ts @@ -0,0 +1,80 @@ +/// +import { Base } from '../base'; +import { Identity } from '../../identity'; +import Transport, { Message } from '../../transport/transport'; +import { EventEmitter } from 'events'; +import { Channel } from './channel/index'; +/** + * A messaging bus that allows for pub/sub messaging between different applications. + * @namespace +*/ +export default class InterApplicationBus extends Base { + Channel: Channel; + events: { + subscriberAdded: string; + subscriberRemoved: string; + }; + private refCounter; + protected emitter: EventEmitter; + on: any; + removeAllListeners: any; + constructor(wire: Transport); + /** + * Publishes a message to all applications running on OpenFin Runtime that + * are subscribed to the specified topic. + * @param { string } topic The topic on which the message is sent + * @param { any } message The message to be published. Can be either a primitive + * data type (string, number, or boolean) or composite data type (object, array) + * that is composed of other primitive or composite data types + * @return {Promise.} + * @tutorial InterApplicationBus.publish + */ + publish(topic: string, message: any): Promise; + /** + * Sends a message to a specific application on a specific topic. + * @param { object } destination The uuid of the application to which the message is sent + * @param { string } topic The topic on which the message is sent + * @param { any } message The message to be sent. Can be either a primitive data + * type (string, number, or boolean) or composite data type (object, array) that + * is composed of other primitive or composite data types + * @return {Promise.} + * @tutorial InterApplicationBus.send + */ + send(destination: Identity, topic: string, message: any): Promise; + /** + * Subscribes to messages from the specified application on the specified topic. + * If the subscription is for a uuid, [name], topic combination that has already + * been published to upon subscription you will receive the last 20 missed messages + * in the order they were published. + * @param { Identity } source This object is described in the Identity in the typedef + * @param { string } topic The topic on which the message is sent + * @param { function } listener A function that is called when a message has + * been received. It is passed the message, uuid and name of the sending application. + * The message can be either a primitive data type (string, number, or boolean) or + * composite data type (object, array) that is composed of other primitive or composite + * data types + * @return {Promise.} + * @tutorial InterApplicationBus.subcribe + */ + subscribe(source: Identity, topic: string, listener: any): Promise; + /** + * Unsubscribes to messages from the specified application on the specified topic. + * @param { Identity } source This object is described in the Identity in the typedef + * @param { string } topic The topic on which the message is sent + * @param { function } listener A callback previously registered with subscribe() + * @return {Promise.} + * @tutorial InterApplicationBus.unsubscribe + */ + unsubscribe(source: Identity, topic: string, listener: any): Promise; + private processMessage; + private emitSubscriverEvent; + protected createSubscriptionKey(uuid: string, name: string, topic: string): string; + protected onmessage(message: Message): boolean; +} +export declare class InterAppPayload { + sourceUuid: string; + sourceWindowName: string; + topic: string; + destinationUuid?: string; + message?: any; +} diff --git a/types/openfin/v34/_v2/api/notification/notification.d.ts b/types/openfin/v34/_v2/api/notification/notification.d.ts new file mode 100644 index 0000000000..8deec180ba --- /dev/null +++ b/types/openfin/v34/_v2/api/notification/notification.d.ts @@ -0,0 +1,71 @@ +import { Base, EmitterBase } from '../base'; +import { Identity } from '../../identity'; +import Transport from '../../transport/transport'; +export declare class NotificationOptions { + url: string; + message: string; + timeout: string | number; + notificationId: number; + uuidOfProxiedApp: string; + ignoreMouseOver: boolean; + constructor(options: any, identity: Identity, notificationId: number); +} +export interface NotificationCallback { + message?: any; +} +/** + * @classdesc A Notification object represents a window on OpenFin Runtime which + * is shown briefly to the user on the bottom-right corner of the primary monitor. + * A notification is typically used to alert the user of some important event which + * requires his or her attention. Notifications are a child or your application that + * are controlled by the runtime. + * @class + * @alias Notification + */ +export declare class _Notification extends EmitterBase { + private listenerList; + private unhookAllListeners; + private buildLocalPayload; + protected options: NotificationOptions; + protected generalListener: (msg: any) => void; + protected notificationId: number; + protected onmessage: (message: any) => boolean; + constructor(wire: Transport, options: NotificationOptions); + url: string; + timeout: number | string; + message: any; + /** + * Invoked when the notification is shown + * @return {Promise.} + * @tutorial Notification.show + */ + show(): Promise; + /** + * Sends a message to the notification. + * @param { any } message The message to be sent to the notification. + * Can be either a primitive data type (string, number, or boolean) + * or composite data type (object, array) that is composed of other + * primitive or composite data types + * @return {Promise.} + * @tutorial Notification.sendMessage + */ + sendMessage(message: any): Promise; + /** + * Closes the notification + * @return {Promise.} + * @tutorial Notification.close + */ + close(): Promise; +} +export default class _NotificationModule extends Base { + private nextNoteId; + private genNoteId; + events: { + show: string; + close: string; + error: string; + click: string; + message: string; + }; + create(options: any): _Notification; +} diff --git a/types/openfin/v34/_v2/api/system/application.d.ts b/types/openfin/v34/_v2/api/system/application.d.ts new file mode 100644 index 0000000000..9d7ea09b67 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/application.d.ts @@ -0,0 +1,4 @@ +export interface ApplicationInfo { + isRunning: boolean; + uuid: string; +} diff --git a/types/openfin/v34/_v2/api/system/clearCacheOption.d.ts b/types/openfin/v34/_v2/api/system/clearCacheOption.d.ts new file mode 100644 index 0000000000..6bae8116b7 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/clearCacheOption.d.ts @@ -0,0 +1,6 @@ +export interface ClearCacheOption { + appcache?: boolean; + cache?: boolean; + cookies?: boolean; + localStorage?: boolean; +} diff --git a/types/openfin/v34/_v2/api/system/cookie.d.ts b/types/openfin/v34/_v2/api/system/cookie.d.ts new file mode 100644 index 0000000000..1d229232c6 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/cookie.d.ts @@ -0,0 +1,8 @@ +export interface CookieInfo { + name: string; + domain: string; + path: string; +} +export interface CookieOption { + name: string; +} diff --git a/types/openfin/v34/_v2/api/system/crashReporterOption.d.ts b/types/openfin/v34/_v2/api/system/crashReporterOption.d.ts new file mode 100644 index 0000000000..7d512fdd7b --- /dev/null +++ b/types/openfin/v34/_v2/api/system/crashReporterOption.d.ts @@ -0,0 +1,4 @@ +export interface CrashReporterOption { + diagnosticMode: boolean; + isRunning?: boolean; +} diff --git a/types/openfin/v34/_v2/api/system/download-asset.d.ts b/types/openfin/v34/_v2/api/system/download-asset.d.ts new file mode 100644 index 0000000000..be513f5f0e --- /dev/null +++ b/types/openfin/v34/_v2/api/system/download-asset.d.ts @@ -0,0 +1,18 @@ +export interface AppAssetInfo { + src: string; + alias: string; + version: string; + target?: string; + args?: string; + mandatory?: boolean; +} +export interface RuntimeDownloadOptions { + version: string; +} +export interface AppAssetRequest { + alias: string; +} +export interface RuntimeDownloadProgress { + downloadedBytes: number; + totalBytes: number; +} diff --git a/types/openfin/v34/_v2/api/system/download-preload.d.ts b/types/openfin/v34/_v2/api/system/download-preload.d.ts new file mode 100644 index 0000000000..a7e635bcb8 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/download-preload.d.ts @@ -0,0 +1,8 @@ +export interface DownloadPreloadOption { + url: string; +} +export interface DownloadPreloadInfo { + success: boolean; + url?: string; + error: string; +} diff --git a/types/openfin/v34/_v2/api/system/entity.d.ts b/types/openfin/v34/_v2/api/system/entity.d.ts new file mode 100644 index 0000000000..50011a64f3 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/entity.d.ts @@ -0,0 +1,11 @@ +import { Identity } from '../../identity'; +export interface Entity { + type: string; + uuid: string; +} +export interface EntityInfo { + name: string; + uuid: string; + parent: Identity; + entityType: string; +} diff --git a/types/openfin/v34/_v2/api/system/external-process.d.ts b/types/openfin/v34/_v2/api/system/external-process.d.ts new file mode 100644 index 0000000000..8a68f1eae3 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/external-process.d.ts @@ -0,0 +1,22 @@ +export interface ExternalProcessRequestType { + path: string; + arguments: string; + listener: LaunchExternalProcessListener; +} +export interface ExitCode { + topic: string; + uuid: string; + exitCode: number; +} +export interface LaunchExternalProcessListener { + (code: ExitCode): void; +} +export interface TerminateExternalRequestType { + uuid: string; + timeout: number; + killTree: boolean; +} +export interface ExternalConnection { + token: string; + uuid: string; +} diff --git a/types/openfin/v34/_v2/api/system/host-specs.d.ts b/types/openfin/v34/_v2/api/system/host-specs.d.ts new file mode 100644 index 0000000000..2c5a134aea --- /dev/null +++ b/types/openfin/v34/_v2/api/system/host-specs.d.ts @@ -0,0 +1,22 @@ +export interface Time { + user: number; + nice: number; + sys: number; + idle: number; + irq: number; +} +export interface CpuInfo { + model: string; + speed: number; + times: Time; +} +export interface GpuInfo { + name: string; +} +export interface HostSpecs { + cpu: CpuInfo[]; + memory: number; + arch: string; + name: string; + gpu: GpuInfo; +} diff --git a/types/openfin/v34/_v2/api/system/log.d.ts b/types/openfin/v34/_v2/api/system/log.d.ts new file mode 100644 index 0000000000..9b03b28c57 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/log.d.ts @@ -0,0 +1,11 @@ +export interface GetLogRequestType { + name: string; + endFile?: string; + sizeLimit?: number; +} +export interface LogInfo { + name: string; + size: number; + date: string; +} +export declare type LogLevel = 'verbose' | 'info' | 'warning' | 'error' | 'fatal'; diff --git a/types/openfin/v34/_v2/api/system/monitor.d.ts b/types/openfin/v34/_v2/api/system/monitor.d.ts new file mode 100644 index 0000000000..ea4aed799c --- /dev/null +++ b/types/openfin/v34/_v2/api/system/monitor.d.ts @@ -0,0 +1,39 @@ +import { Point } from './point'; +export interface MonitorInfo { + deviceScaleFactor: number; + dpi: Point; + nonPrimaryMonitors: Array; + primaryMonitor: MonitorDetails; + reason: string; + taskBar: TaskBar; + virtualScreen: DipRect; +} +export interface MonitorDetails { + available: DipScaleRects; + availableRect: Rect; + deviceId: string; + displayDeviceActive: boolean; + deviceScaleFactor: number; + monitorRect: Rect; + name: number; + dpi: Point; + monitor: DipScaleRects; +} +export interface Rect { + bottom: number; + left: number; + right: number; + top: number; +} +export interface DipRect extends Rect { + dipRect: Rect; + scaledRect: Rect; +} +export interface DipScaleRects { + dipRect: Rect; + scaledRect: Rect; +} +export interface TaskBar extends DipScaleRects { + edge: string; + rect: Rect; +} diff --git a/types/openfin/v34/_v2/api/system/point.d.ts b/types/openfin/v34/_v2/api/system/point.d.ts new file mode 100644 index 0000000000..b9830ce514 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/point.d.ts @@ -0,0 +1,8 @@ +export interface Point { + x: number; + y: number; +} +export interface PointTopLeft { + top: number; + left: number; +} diff --git a/types/openfin/v34/_v2/api/system/process.d.ts b/types/openfin/v34/_v2/api/system/process.d.ts new file mode 100644 index 0000000000..8a513ceecd --- /dev/null +++ b/types/openfin/v34/_v2/api/system/process.d.ts @@ -0,0 +1,15 @@ +export interface ProcessInfo { + cpuUsage: number; + name: string; + nonPagedPoolUsage: number; + pageFaultCount: number; + pagedPoolUsage: number; + pagefileUsage: number; + peakNonPagedPoolUsage: number; + peakPagedPoolUsage: number; + peakPagefileUsage: number; + peakWorkingSetSize: number; + processId: number; + uuid: string; + workingSetSize: number; +} diff --git a/types/openfin/v34/_v2/api/system/proxy.d.ts b/types/openfin/v34/_v2/api/system/proxy.d.ts new file mode 100644 index 0000000000..597afa6548 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/proxy.d.ts @@ -0,0 +1,14 @@ +export interface ProxyInfo { + config: ProxyConfig; + system: { + autoConfigUrl: string; + bypass: ''; + enabled: boolean; + proxy: string; + }; +} +export interface ProxyConfig { + proxyAddress: string; + proxyPort: number; + type: string; +} diff --git a/types/openfin/v34/_v2/api/system/registry-info.d.ts b/types/openfin/v34/_v2/api/system/registry-info.d.ts new file mode 100644 index 0000000000..a48ed34959 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/registry-info.d.ts @@ -0,0 +1,7 @@ +export interface RegistryInfo { + data: any; + rootKey: string; + subkey: string; + type: string; + value: string; +} diff --git a/types/openfin/v34/_v2/api/system/runtime-info.d.ts b/types/openfin/v34/_v2/api/system/runtime-info.d.ts new file mode 100644 index 0000000000..1508f87ef3 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/runtime-info.d.ts @@ -0,0 +1,7 @@ +export interface RuntimeInfo { + architecture: string; + manifestUrl: string; + port: number; + securityRealm?: string; + version: string; +} diff --git a/types/openfin/v34/_v2/api/system/rvm.d.ts b/types/openfin/v34/_v2/api/system/rvm.d.ts new file mode 100644 index 0000000000..42fc0b94db --- /dev/null +++ b/types/openfin/v34/_v2/api/system/rvm.d.ts @@ -0,0 +1,5 @@ +export interface RVMInfo { + action: string; + 'start-time': string; + version: string; +} diff --git a/types/openfin/v34/_v2/api/system/system.d.ts b/types/openfin/v34/_v2/api/system/system.d.ts new file mode 100644 index 0000000000..8c0bc7d3b6 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/system.d.ts @@ -0,0 +1,475 @@ +import { EmitterBase } from '../base'; +import { ApplicationInfo } from './application'; +import { WindowInfo } from './window'; +import { Identity } from '../../identity'; +import { MonitorInfo } from './monitor'; +import { PointTopLeft } from './point'; +import { GetLogRequestType, LogInfo, LogLevel } from './log'; +import { ProxyInfo, ProxyConfig } from './proxy'; +import { ProcessInfo } from './process'; +import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadProgress } from './download-asset'; +import { RVMInfo } from './rvm'; +import { RuntimeInfo } from './runtime-info'; +import { Entity, EntityInfo } from './entity'; +import { HostSpecs } from './host-specs'; +import { ExternalProcessRequestType, TerminateExternalRequestType, ExternalConnection } from './external-process'; +import Transport from '../../transport/transport'; +import { CookieInfo, CookieOption } from './cookie'; +import { RegistryInfo } from './registry-info'; +import { DownloadPreloadOption, DownloadPreloadInfo } from './download-preload'; +import { ClearCacheOption } from './clearCacheOption'; +import { CrashReporterOption } from './crashReporterOption'; +/** + * AppAssetInfo interface + * @typedef { Object } AppAssetInfo + * @property { string } src The URL to a zip file containing the package files (executables, dlls, etc…) + * @property { string } alias The name of the asset + * @property { string } version The version of the package + * @property { string } target Specify default executable to launch. This option can be overridden in launchExternalProcess + * @property { args } args The default command line arguments for the aforementioned target. + * @property { boolean } mandatory When set to true, the app will fail to load if the asset cannot be downloaded. + * When set to false, the app will continue to load if the asset cannot be downloaded. (Default: true) + */ +/** + * AppAssetRequest interface + * @typedef { Object } AppAssetRequest + * @property { string } alias The name of the asset + */ +/** + * CookieInfo interface + * @typedef { Object } CookieInfo + * @property { string } name The name of the cookie + * @property { string } domain The domain of the cookie + * @property { string } path The path of the cookie + */ +/** + * CookieOption interface + * @typedef { Object } CookieOption + * @property { string } name The name of the cookie + */ +/** + * ExternalConnection interface + * @typedef { Object } ExternalConnection + * @property { string } token The token to broker an external connection + * @property { string } uuid The uuid of the external connection + */ +/** +* ExternalProcessRequestType interface +* @typedef { Object } ExternalProcessRequestType +* @property { string } path The file path to where the running application resides +* @property { string } arguments The argument passed to the running application +* @property { Object } listener This is described in the {LaunchExternalProcessListner} type definition +*/ +/** + * Entity interface + * @typedef { Object } Entity + * @property { string } type The type of the entity + * @property { string } uuid The uuid of the entity + */ +/** + * EntityInfo interface + * @typedef { Object } EntityInfo + * @property { string } name The name of the entity + * @property { string } uuid The uuid of the entity + * @property { Identity } parent The parent of the entity + * @property { string } entityType The type of the entity + */ +/** +* GetLogRequestType interface +* @typedef { Object } GetLogRequestType +* @property { string } name The name of the running application +* @property { number } endFile The file length of the log file +* @property { number } sizeLimit The set size limit of the log file +*/ +/** + * Identity interface + * @typedef { Object } Identity + * @property { string } name The name of the application + * @property { string } uuid The uuid of the application + */ +/** + * @typedef { verbose | info | warning | error | fatal } LogLevel + * @summary Log verbosity levels. + * @desc Describes the minimum level (inclusive) above which logs will be written + * + * @property { string } verbose all logs written + * @property { string } info info and above + * @property { string } warning warning and above + * @property { string } error error and above + * @property { string } fatal fatal only, indicates a crash is imminent + */ +/** + * ProxyConfig interface + * @typedef { Object } ProxyConfig + * @property { numder } proxyPort The port number of the running application + * @property { string } proxyAddress The address of the running application + * @property { string } type + */ +/** + * RegistryInfo interface + * @typedef { Object } RegistryInfo + * @property { any } data The registry data + * @property { string } rootKey The registry root key + * @property { string } subkey The registry key + * @property { string } type The registry type + * @property { string } value The registry value name + */ +/** + * RuntimeDownloadOptions interface + * @typedef { Object } RuntimeDownloadOptions + * @desc These are the options object required by the downloadRuntime function. + * @property { string } version The given version to download + */ +/** + * TerminateExternalRequestType interface + * @typedef { Object } TerminateExternalRequestType + * @property { string } uuid The uuid of the running application + * @property { number } timeout Time out period before the running application terminates + * @property { boolean } killtree Value to terminate the running application + */ +/** + * DownloadPreloadOption interface + * @typedef { Object } DownloadPreloadOption + * @desc These are the options object required by the downloadPreloadScripts function + * @property { string } url url to the preload script + */ +/** + * DownloadPreloadInfo interface + * @typedef { Object } DownloadPreloadInfo + * @desc downloadPreloadScripts function return value + * @property { string } url url to the preload script + * @property { string } error error during preload script acquisition + * @property { boolean } succeess download operation success + */ +/** + * @typedef { Object } ClearCacheOption + * @summary Clear cache options. + * @desc These are the options required by the clearCache function. + * + * @property {boolean} appcache html5 application cache + * @property {boolean} cache browser data cache for html files and images + * @property {boolean} cookies browser cookies + * @property {boolean} localStorage browser data that can be used across sessions + */ +/** +* CrashReporterOption interface +* @typedef { Object } CrashReporterOption +* @property { boolean } diagnosticMode In diagnostic mode the crash reporter will send diagnostic logs to +* the OpenFin reporting service on runtime shutdown +* @property { boolean } isRunning check if it's running +*/ +/** + * An object representing the core of OpenFin Runtime. Allows the developer + * to perform system-level actions, such as accessing logs, viewing processes, + * clearing the cache and exiting the runtime. + * @namespace + */ +export default class System extends EmitterBase { + constructor(wire: Transport); + /** + * Returns the version of the runtime. The version contains the major, minor, + * build and revision numbers. + * @return {Promise.} + * @tutorial System.getVersion + */ + getVersion(): Promise; + /** + * Clears cached data containing application resource + * files (images, HTML, JavaScript files), cookies, and items stored in the + * Local Storage. + * @param { ClearCacheOption } options - See tutorial for more details. + * @return {Promise.} + * @tutorial System.clearCache + */ + clearCache(options: ClearCacheOption): Promise; + /** + * Clears all cached data when OpenFin Runtime exits. + * @return {Promise.} + * @tutorial System.deleteCacheOnExit + */ + deleteCacheOnExit(): Promise; + /** + * Exits the Runtime. + * @return {Promise.} + * @tutorial System.exit + */ + exit(): Promise; + /** + * Writes any unwritten cookies data to disk. + * @return {Promise.} + * @tutorial System.flushCookieStore + */ + flushCookieStore(): Promise; + /** + * Retrieves an array of data (name, ids, bounds) for all application windows. + * @return {Promise.Array.} + * @tutorial System.getAllWindows + */ + getAllWindows(): Promise>; + /** + * Retrieves an array of data for all applications. + * @return {Promise.Array.} + * @tutorial System.getAllApplications + */ + getAllApplications(): Promise>; + /** + * Retrieves the command line argument string that started OpenFin Runtime. + * @return {Promise.} + * @tutorial System.getCommandLineArguments + */ + getCommandLineArguments(): Promise; + /** + * Get the current state of the crash reporter. + * @return {Promise.} + * @tutorial System.getCrashReporterState + */ + getCrashReporterState(): Promise; + /** + * Returns a unique identifier (UUID) for the machine (SHA256 hash of the system's MAC address). + * This call will return the same value on subsequent calls on the same machine(host). + * The values will be different on different machines, and should be considered globally unique. + * @return {Promise.} + * @tutorial System.getDeviceId + */ + getDeviceId(): Promise; + /** + * Start the crash reporter for the browser process if not already running. + * You can optionally specify `diagnosticMode` to have the logs sent to + * OpenFin on runtime close + * + * @param { CrashReporterOption } options - configure crash reporter + * @return {Promise.} + * @tutorial System.startCrashReporter + */ + startCrashReporter(options: CrashReporterOption): Promise; + /** + * Returns a hex encoded hash of the mac address and the currently logged in user name + * @return {Promise.} + * @tutorial System.getDeviceUserId + */ + getDeviceUserId(): Promise; + /** + * Retrieves a frame info object for the uuid and name passed in + * @param { string } uuid - The UUID of the target. + * @param { string } name - The name of the target. + * @return {Promise.} + * @tutorial System.getEntityInfo + */ + getEntityInfo(uuid: string, name: string): Promise; + /** + * Gets the value of a given environment variable on the computer on which the runtime is installed + * @return {Promise.} + * @tutorial System.getEnvironmentVariable + */ + getEnvironmentVariable(envName: string): Promise; + /** + * Get current focused window. + * @return {Promise.} + * @tutorial System.getFocusedWindow + */ + getFocusedWindow(): Promise; + /** + * Retrieves the contents of the log with the specified filename. + * @param { GetLogRequestType } options A object that id defined by the GetLogRequestType interface + * @return {Promise.} + * @tutorial System.getLog + */ + getLog(options: GetLogRequestType): Promise; + /** + * Returns the minimum (inclusive) logging level that is currently being written to the log. + * @return {Promise.} + * @tutorial System.getMinLogLevel + */ + getMinLogLevel(): Promise; + /** + * Retrieves an array containing information for each log file. + * @return {Promise.Array} + * @tutorial System.getLogList + */ + getLogList(): Promise>; + /** + * Retrieves an object that contains data about the monitor setup of the + * computer that the runtime is running on. + * @return {Promise.} + * @tutorial System.getMonitorInfo + */ + getMonitorInfo(): Promise; + /** + * Returns the mouse in virtual screen coordinates (left, top). + * @return {Promise.} + * @tutorial System.getMousePosition + */ + getMousePosition(): Promise; + /** + * Retrieves an array of all of the runtime processes that are currently + * running. Each element in the array is an object containing the uuid + * and the name of the application to which the process belongs. + * @return {Promise.Array.} + * @tutorial System.getProcessList + */ + getProcessList(): Promise>; + /** + * Retrieves the Proxy settings. + * @return {Promise.} + * @tutorial System.getProxySettings + */ + getProxySettings(): Promise; + /** + * Returns information about the running Runtime in an object. + * @return {Promise.} + * @tutorial System.getRuntimeInfo + */ + getRuntimeInfo(): Promise; + /** + * Returns information about the running RVM in an object. + * @return {Promise.} + * @tutorial System.getRvmInfo + */ + getRvmInfo(): Promise; + /** + * Retrieves system information. + * @return {Promise.} + * @tutorial System.getHostSpecs + */ + getHostSpecs(): Promise; + /** + * Runs an executable or batch file. + * @param { ExternalProcessRequestType } options A object that is defined in the ExternalProcessRequestType interface + * @return {Promise.} + * @tutorial System.launchExternalProcess + */ + launchExternalProcess(options: ExternalProcessRequestType): Promise; + /** + * Monitors a running process. + * @param { number } pid See tutorial for more details + * @return {Promise.} + * @tutorial System.monitorExternalProcess + */ + monitorExternalProcess(pid: number): Promise; + /** + * Writes the passed message into both the log file and the console. + * @param { string } level The log level for the entry. Can be either "info", "warning" or "error" + * @param { string } message The log message text + * @return {Promise.} + * @tutorial System.log + */ + log(level: string, message: string): Promise; + /** + * Opens the passed URL in the default web browser. + * @param { string } url The URL to open + * @return {Promise.} + * @tutorial System.openUrlWithBrowser + */ + openUrlWithBrowser(url: string): Promise; + /** + * Removes the process entry for the passed UUID obtained from a prior call + * of fin.System.launchExternalProcess(). + * @param { string } uuid The UUID for a process obtained from a prior call to fin.desktop.System.launchExternalProcess() + * @return {Promise.} + * @tutorial System.releaseExternalProcess + */ + releaseExternalProcess(uuid: string): Promise; + /** + * Shows the Chromium Developer Tools for the specified window + * @param { Identity } identity This is a object that is defined by the Identity interface + * @return {Promise.} + * @tutorial System.showDeveloperTools + */ + showDeveloperTools(identity: Identity): Promise; + /** + * Attempt to close an external process. The process will be terminated if it + * has not closed after the elapsed timeout in milliseconds. + * @param { TerminateExternalRequestType } options A object defined in the TerminateExternalRequestType interface + * @return {Promise.} + * @tutorial System.terminateExternalProcess + */ + terminateExternalProcess(options: TerminateExternalRequestType): Promise; + /** + * Update the OpenFin Runtime Proxy settings. + * @param { ProxyConfig } options A config object defined in the ProxyConfig interface + * @return {Promise.} + * @tutorial System.updateProxySettings + */ + updateProxySettings(options: ProxyConfig): Promise; + /** + * Downloads the given application asset + * @param { AppAssetInfo } appAsset App asset object + * @return {Promise.} + * @tutorial System.downloadAsset + */ + downloadAsset(appAsset: AppAssetInfo, progressListener: (progress: RuntimeDownloadProgress) => void): Promise; + /** + * Downloads a version of the runtime. + * @param { RuntimeDownloadOptions } options - Download options. + * @param {Function} [progressListener] - called as the runtime is downloaded with progress information. + * @return {Promise.} + * @tutorial System.downloadRuntime + */ + downloadRuntime(options: RuntimeDownloadOptions, progressListener: (progress: RuntimeDownloadProgress) => void): Promise; + /** + * Download preload scripts from given URLs + * @param {DownloadPreloadOption[]} scripts - URLs of preload scripts. See tutorial for more details. + * @return {Promise.Array} + * @tutorial System.downloadPreloadScripts + */ + downloadPreloadScripts(scripts: Array): Promise>; + /** + * Retrieves an array of data (name, ids, bounds) for all application windows. + * @return {Promise.Array.} + * @tutorial System.getAllExternalApplications + */ + getAllExternalApplications(): Promise>; + /** + * Retrieves app asset information. + * @param { AppAssetRequest } options + * @return {Promise.} + * @tutorial System.getAppAssetInfo + */ + getAppAssetInfo(options: AppAssetRequest): Promise; + /** + * Get additional info of cookies. + * @param { CookieOption } options - See tutorial for more details. + * @return {Promise.Array.} + * @tutorial System.getCookies + */ + getCookies(options: CookieOption): Promise>; + /** + * Set the minimum log level above which logs will be written to the OpenFin log + * @param { LogLevel } The minimum level (inclusive) above which all calls to log will be written + * @return {Promise.} + * @tutorial System.setMinLogLevel + */ + setMinLogLevel(level: LogLevel): Promise; + /** + * Retrieves the UUID of the computer on which the runtime is installed + * @param { string } uuid The uuid of the running application + * @return {Promise.} + * @tutorial System.resolveUuid + */ + resolveUuid(uuid: string): Promise; + /** + * Retrieves an array of data for all external applications + * @param { Identity } requestingIdentity This object is described in the Identity typedef + * @param { any } data Any data type to pass to the method + * @return {Promise.} + * @ignore + */ + executeOnRemote(requestingIdentity: Identity, data: any): Promise; + /** + * Reads the specifed value from the registry. + * @param { string } rootKey - The registry root key. + * @param { string } subkey - The registry key. + * @param { string } value - The registry value name. + * @return {Promise.} + * @tutorial System.readRegistryValue + */ + readRegistryValue(rootKey: string, subkey: string, value: string): Promise; + /** + * This function call will register a unique id and produce a token. + * The token can be used to broker an external connection. + * @param { string } uuid - A UUID for the remote connection. + * @return {Promise.} + * @tutorial System.registerExternalConnection + */ + registerExternalConnection(uuid: string): Promise; +} diff --git a/types/openfin/v34/_v2/api/system/window.d.ts b/types/openfin/v34/_v2/api/system/window.d.ts new file mode 100644 index 0000000000..886084fad6 --- /dev/null +++ b/types/openfin/v34/_v2/api/system/window.d.ts @@ -0,0 +1,14 @@ +export interface WindowInfo { + uuid: string; + mainWindow: WindowDetail; + childWindows: Array; +} +export interface WindowDetail { + name: string; + top: number; + right: number; + bottom: number; + height: number; + width: number; + left: number; +} diff --git a/types/openfin/v34/_v2/api/window/bounds-changed.d.ts b/types/openfin/v34/_v2/api/window/bounds-changed.d.ts new file mode 100644 index 0000000000..f7801da3fc --- /dev/null +++ b/types/openfin/v34/_v2/api/window/bounds-changed.d.ts @@ -0,0 +1,14 @@ +import { Reply } from '../base'; +export default class BoundsChangedReply extends Reply<'window', 'bounds-changed'> { + changeType: BoundsChangeType; + deferred: boolean; + height: number; + width: number; + top: number; + left: number; +} +export declare const enum BoundsChangeType { + POSITION = 0, + SIZE = 1, + POSITION_AND_SIZE = 2 +} diff --git a/types/openfin/v34/_v2/api/window/bounds.d.ts b/types/openfin/v34/_v2/api/window/bounds.d.ts new file mode 100644 index 0000000000..40822c4aa3 --- /dev/null +++ b/types/openfin/v34/_v2/api/window/bounds.d.ts @@ -0,0 +1,9 @@ +interface Bounds { + height: number; + width: number; + top: number; + left: number; + right?: number; + bottom?: number; +} +export default Bounds; diff --git a/types/openfin/v34/_v2/api/window/transition.d.ts b/types/openfin/v34/_v2/api/window/transition.d.ts new file mode 100644 index 0000000000..c16440c80d --- /dev/null +++ b/types/openfin/v34/_v2/api/window/transition.d.ts @@ -0,0 +1,24 @@ +export interface TransitionBase { + duration: number; + relative?: boolean; +} +export interface Opacity extends TransitionBase { + opacity: number; +} +export interface Position extends TransitionBase { + left: number; + top: number; +} +export interface Size extends TransitionBase { + width: number; + height: number; +} +export interface TransitionOptions { + interrupt: boolean; + tween?: string; +} +export interface Transition { + opacity?: Opacity; + position?: Position; + size?: Size; +} diff --git a/types/openfin/v34/_v2/api/window/window.d.ts b/types/openfin/v34/_v2/api/window/window.d.ts new file mode 100644 index 0000000000..8d597a6446 --- /dev/null +++ b/types/openfin/v34/_v2/api/window/window.d.ts @@ -0,0 +1,759 @@ +import { Base, EmitterBase, RuntimeEvent } from '../base'; +import { Identity } from '../../identity'; +import Bounds from './bounds'; +import BoundsChangedReply from './bounds-changed'; +import { Transition, TransitionOptions } from './transition'; +import { Application } from '../application/application'; +import Transport from '../../transport/transport'; +export default class _WindowModule extends Base { + private instance; + /** + * Returns a Window object that represents an existing window. + * @param { Identity } indentity + * @return {Promise.<_Window>} + * @tutorial Window.wrap + */ + wrap(identity: Identity): Promise<_Window>; + /** + * Creates a new Window. + * @param { * } options - Window creation options + * @return {Promise.<_Window>} + * @tutorial Window.create + */ + create(options: any): Promise<_Window>; + /** + * Returns a Window object that represents the current window + * @return {Promise.} + * @tutorial window.getCurrent + */ + getCurrent(): Promise<_Window>; +} +export interface CloseEventShape { + name: string; + uuid: string; + type: string; + topic: string; +} +export interface WindowInfo { + canNavigateBack: boolean; + canNavigateForward: boolean; + preloadScripts: Array; + title: string; + url: string; +} +export interface FrameInfo { + name: string; + uuid: string; + entityType: string; + parent?: Identity; +} +/** + * @typedef {object} Transition + * @property {Opacity} opacity - The Opacity transition + * @property {Position} position - The Position transition + * @property {Size} size - The Size transition +*/ +/** + * @typedef {object} TransitionOptions + * @property {boolean} interrupt - This option interrupts the current animation. When false it pushes +this animation onto the end of the animation queue. + * @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false. + */ +/** + * @typedef {object} Size + * @property {number} duration - The total time in milliseconds this transition should take. + * @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false. + * @property {number} width - Optional if height is present. Defaults to the window's current width. + * @property {number} height - Optional if width is present. Defaults to the window's current height. + */ +/** + * @typedef {object} Position + * @property {number} duration - The total time in milliseconds this transition should take. + * @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false. + * @property {number} left - Defaults to the window's current left position in virtual screen coordinates. + * @property {number} top - Defaults to the window's current top position in virtual screen coordinates. + */ +/** + * @typedef {object} Opacity + * @property {number} duration - The total time in milliseconds this transition should take. + * @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false. + * @property {number} opacity - This value is clamped from 0.0 to 1.0. +*/ +/** + * Bounds is a interface that has the properties of height, + * width, left, top which are all numbers + * @typedef { Object } Bounds + * @property { number } height Get the application height bound + * @property { number } width Get the application width bound + * @property { number } top Get the application top bound + * @property { number } left Get the application left bound + * @property { number } right Get the application right bound + * @property { number } bottom Get the application bottom bound + */ +/** + * @classdesc A basic window that wraps a native HTML window. Provides more fine-grained + * control over the window state such as the ability to minimize, maximize, restore, etc. + * By default a window does not show upon instantiation; instead the window's show() method + * must be invoked manually. The new window appears in the same process as the parent window. + * @class + * @alias Window +*/ +export declare class _Window extends EmitterBase { + identity: Identity; + /** + * Raised when a window within this application requires credentials from the user. + * + * @event Window#auth-requested + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {object} authInfo + * @property {string} authInfo.host - Host server. + * @property {boolean} authInfo.isProxy - Indicates if the request involves a proxy. + * @property {number} authInfo.port - Port number. + * @property {string} authInfo.realm - Authentication request realm. + * @property {string} authInfo.scheme - Authentication scheme. + */ + /** + * Raised when a window loses focus. + * + * @event Window#blurred + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised after changes in a window's size and/or position. + * + * @event Window#bounds-changed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {number} changeType - Describes what kind of change occurred. + 0 means a change in position. + 1 means a change in size. + 2 means a change in position and size. + * @property {string} deferred - Indicated whether pending changes have been applied. + * @property {number} height - New height of the window. + * @property {number} left - New left most coordinate of the window. + * @property {number} top - New top most coordinate of the window. + * @property {number} width - New width of the window. + */ + /** + * Raised when a window has been prevented from closing. A window will be prevented from closing by default, + either through the API or by a user when ‘close-requested’ has been subscribed to and the Window.close(force) flag is false. + * + * @event Window#close-requested + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window has closed. + * + * @event Window#closed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window has crashed. + * + * @event Window#crashed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when the frame is disabled after all prevent user changes in window's size and/or position have completed. + * + * @event Window#disabled-frame-bounds-changed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {number} changeType - Describes what kind of change occurred. + 0 means a change in position. + 1 means a change in size. + 2 means a change in position and size. + * @property {string} deferred - Indicated whether pending changes have been applied. + * @property {number} height - New height of the window. + * @property {number} left - New left most coordinate of the window. + * @property {number} top - New top most coordinate of the window. + * @property {number} width - New width of the window. + */ + /** + * Raised when the frame is disabled during prevented user changes to a window's size and/or position. + * + * @event Window#disabled-frame-bounds-changing + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {number} changeType - Describes what kind of change occurred. + 0 means a change in position. + 1 means a change in size. + 2 means a change in position and size. + * @property {string} deferred - Indicated whether pending changes have been applied. + * @property {number} height - New height of the window. + * @property {number} left - New left most coordinate of the window. + * @property {number} top - New top most coordinate of the window. + * @property {number} width - New width of the window. + */ + /** + * Raised when the window has been embedded. + * + * @event Window#embedded + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when an external process has exited. + * + * @event Window#external-process-exited + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} processUuid - The process handle UUID. + * @property {number} exitCode - The process exit code + */ + /** + * Raised when an external process has started. + * + * @event Window#external-process-started + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} processUuid - The process handle UUID. + */ + /** + * Raised when a window's frame becomes disabled. + * + * @event Window#frame-disabled + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window's frame becomes enabled. + * + * @event Window#frame-enabled + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window joins/leaves a group and/or when the group a window is a member of changes. + * + * @event Window#group-changed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} source - Which group array the window that the event listener was registered on is included in: + 'source' The window is included in sourceGroup. + 'target' The window is included in targetGroup. + 'nothing' The window is not included in sourceGroup nor targetGroup. + * @property {string} reason - The reason this event was triggered. + 'leave' A window has left the group due to a leave or merge with group. + 'join' A window has joined the group. + 'merge' Two groups have been merged together. + 'disband' There are no other windows in the group. + * @property {string} name - Name of the window. + * @property {legacyWindowIdentity[]} sourceGroup - All the windows in the group the sourceWindow originated from. + * @property {string} sourceWindowAppUuid - UUID of the application the sourceWindow belongs to the + source window is the window in which (merge/join/leave)group(s) was called. + * @property {string} sourceWindowName - Name of the sourcewindow. + The source window is the window in which (merge/join/leave)group(s) was called. + * @property {legacyWindowIdentity[]} targetGroup - All the windows in the group the targetWindow orginated from. + * @property {string} targetWindowAppUuid - UUID of the application the targetWindow belongs to. + The target window is the window that was passed into (merge/join)group(s). + * @property {string} targetWindowName - Name of the targetWindow. + The target window is the window that was passed into (merge/join)group(s). + */ + /** + * Raised when a window has been hidden. + * + * @event Window#hidden + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} reason - Action prompted the close The reasons are: + "hide" + "hide-on-close" + */ + /** + * Raised when a window is initialized. + * + * @event Window#initialized + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window is maximized. + * + * @event Window#maximized + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window is minimized. + * + * @event Window#minimized + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when window navigation is rejected as per ContentNavigation whitelist/blacklist rules. + * + * @event Window#navigation-rejected + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} sourceName - source of navigation window name. + * @property {string} url - Blocked content url. + */ + /** + * Raised when a window is out of memory. + * + * @event Window#out-of-memory + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised after the execution of all of a window's preload scripts. Contains + information about all window's preload scripts' final states. + * + * @event Window#preload-scripts-state-changed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {preloadScriptState[]} preloadState - An array of all final preload scripts' states + */ + /** + * Raised during the execution of a window's preload script. Contains information + about a single window's preload script's state, for which the event has been raised. + * + * @event Window#preload-scripts-state-changing + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {preloadScriptState[]} preloadState - An array of all final preload scripts' states + */ + /** + * Raised when an HTTP load was cancelled or failed. + * + * @event Window#resource-load-failed + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {number} errorCode - The Chromium error code. + * @property {string} errorDescription - The Chromium error description. + * @property {string} validatedURL - The url attempted. + * @property {boolean} isMainFrame - Was the attempt made from the main frame. + */ + /** + * Raised when an HTTP resource request has received response details. + * + * @event Window#resource-response-received + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {boolean} status - Status of the request. + * @property {string} newUrl - The URL of the responded resource. + * @property {string} originalUrl - The requested URL. + * @property {number} httpResponseCode - The HTTP Response code. + * @property {string} requestMethod - The HTTP request method. + * @property {string} referrer - The HTTP referrer. + * @property {object} headers - The HTTP headers. + * @property {string} resourceType - Resource type: + "mainFrame", "subFrame", + "styleSheet", "script", "image", + "object", "xhr", or "other" + */ + /** + * Raised when a window has reloaded. + * + * @event Window#reloaded + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + * @property {string} url - Url has has been reloaded. + */ + /** + * Raised when a window is displayed after having been minimized or + when a window leaves the maximize state without minimizing. + * + * @event Window#restored + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window has been prevented from showing. + A window will be prevented from showing by default, either through the API or by a user when + ‘show-requested’ has been subscribed to on the window or 'window-show-requested' + on the parent application and the Window.show(force) flag is false. + * + * @event Window#show-requested + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * Raised when a window been shown. + * + * @event Window#shown + * @type {object} + * @property {string} name - Name of the window. + * @property {string} uuid - UUID of the application that the window belongs to. + */ + /** + * @typedef {object} legacyWindowIdentity + * @summary Object summary + * @desc Object description + * @property {string} appUuid - The UUID of the application this window entry belongs to. + * @property {string} windowName - The name of this window entry. + */ + /** + * @typedef {object} preloadScriptState + * @summary Object summary + * @desc Object description + * @property {string} url - The url of the preload script. + * @property {string} state - The preload script state: + "load-failed", "failed", "succeeded" + */ + private nativeWindow; + constructor(wire: Transport, identity: Identity); + createWindow(options: any): Promise<_Window>; + protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; + private windowListFromNameList; + /** + * Retrieves an array of frame info objects representing the main frame and any + * iframes that are currently on the page. + * @return {Promise.>} + * @tutorial Window.getAllFrames + */ + getAllFrames(): Promise>; + /** + * Gets the current bounds (top, left, width, height) of the window. + * @return {Promise.} + * @tutorial Window.getBounds + */ + getBounds(): Promise; + /** + * Returns the native JavaScript "window" object for the window. + * @return {Promise.} + * @tutorial Window.getNativeWindow + */ + getNativeWindow(): Promise; + /** + * Gives focus to the window. + * @return {Promise.} + * @emits _Window#focused + * @tutorial Window.focus + */ + focus(): Promise; + /** + * Removes focus from the window. + * @return {Promise.} + * @tutorial Window.blur + */ + blur(): Promise; + /** + * Brings the window to the front of the window stack. + * @return {Promise.} + * @tutorial Window.bringToFront + */ + bringToFront(): Promise; + /** + * Performs the specified window transitions. + * @param {Transition} transitions - Describes the animations to perform. See the tutorial. + * @param {TransitionOptions} options - Options for the animation. See the tutorial. + * @return {Promise.} + * @tutorial Window.animate + */ + animate(transitions: Transition, options: TransitionOptions): Promise; + /** + * Hides the window. + * @return {Promise.} + * @tutorial Window.hide + */ + hide(): Promise; + /** + * closes the window application + * @param { boolean } [force = false] Close will be prevented from closing when force is false and + * ‘close-requested’ has been subscribed to for application’s main window. + * @return {Promise.} + * @tutorial Window.close + */ + close(force?: boolean): Promise; + /** + * Returns then running applications uuid + * @return {Promise.} + * @tutorial Window.getNativeId + */ + getNativeId(): Promise; + /** + * Prevents a user from changing a window's size/position when using the window's frame. + * @return {Promise.} + * @tutorial Window.disableFrame + */ + disableFrame(): Promise; + /** + * Re-enables user changes to a window's size/position when using the window's frame. + * @return {Promise.} + * @tutorial Window.enableFrame + */ + enableFrame(): Promise; + /** + * Executes Javascript on the window, restricted to windows you own or windows owned by + * applications you have created. + * @param { string } code JavaScript code to be executed on the window. + * @return {Promise.} + * @tutorial Window.executeJavaScript + */ + executeJavaScript(code: string): Promise; + /** + * Flashes the window’s frame and taskbar icon until stopFlashing is called. + * @return {Promise.} + * @tutorial Window.flash + */ + flash(): Promise; + /** + * Stops the taskbar icon from flashing. + * @return {Promise.} + * @tutorial Window.stopFlashing + */ + stopFlashing(): Promise; + /** + * Retrieves an array containing wrapped fin.desktop.Windows that are grouped with this + * window. If a window is not in a group an empty array is returned. Please note that + * calling window is included in the result array. + * @return {Promise.>} + * @tutorial Window.getGroup + */ + getGroup(): Promise>; + /** + * Gets an information object for the window. + * @return {Promise.} + * @tutorial Window.getInfo + */ + getInfo(): Promise; + /** + * Gets the current settings of the window. + * @return {Promise.} + * @tutorial Window.getOptions + */ + getOptions(): Promise; + /** + * Gets the parent application. + * @return {Promise.} + * @tutorial Window.getParentApplication + */ + getParentApplication(): Promise; + /** + * Gets the parent window. + * @return {Promise.<_Window>} + * @tutorial Window.getParentWindow + */ + getParentWindow(): Promise<_Window>; + /** + * Gets a base64 encoded PNG snapshot of the window. + * @return {Promise.} + * @tutorial Window.getSnapshot + */ + getSnapshot(): Promise; + /** + * Gets the current state ("minimized", "maximized", or "restored") of the window. + * @return {Promise.} + * @tutorial Window.getState + */ + getState(): Promise; + /** + * Determines if the window is currently showing. + * @return {Promise.} + * @tutorial Window.isShowing + */ + isShowing(): Promise; + /** + * Joins the same window group as the specified window. + * @param { class } target The window whose group is to be joined + * @return {Promise.} + * @tutorial Window.joinGroup + */ + joinGroup(target: _Window): Promise; + /** + * Reloads the window current page + * @return {Promise.} + * @tutorial Window.reload + */ + reload(ignoreCache?: boolean): Promise; + /** + * Leaves the current window group so that the window can be move independently of those in the group. + * @return {Promise.} + * @tutorial Window.leaveGroup + */ + leaveGroup(): Promise; + /** + * Maximizes the window + * @return {Promise.} + * @tutorial Window.maximize + */ + maximize(): Promise; + /** + * Merges the instance's window group with the same window group as the specified window + * @param { class } target The window whose group is to be merged with + * @return {Promise.} + * @tutorial Window.mergeGroups + */ + mergeGroups(target: _Window): Promise; + /** + * Minimizes the window. + * @return {Promise.} + * @tutorial Window.minimize + */ + minimize(): Promise; + /** + * Moves the window by a specified amount. + * @param { number } deltaLeft The change in the left position of the window + * @param { number } deltaTop The change in the top position of the window + * @return {Promise.} + * @tutorial Window.moveBy + */ + moveBy(deltaLeft: number, deltaTop: number): Promise; + /** + * Moves the window to a specified location. + * @param { number } left The left position of the window + * @param { number } top The top position of the window + * @return {Promise.} + * @tutorial Window.moveTo + */ + moveTo(left: number, top: number): Promise; + /** + * Resizes the window by a specified amount. + * @param { number } deltaWidth The change in the width of the window + * @param { number } deltaHeight The change in the height of the window + * @param { string } anchor Specifies a corner to remain fixed during the resize. + * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right." + * If undefined, the default is "top-left" + * @return {Promise.} + * @tutorial Window.resizeBy + */ + resizeBy(deltaWidth: number, deltaHeight: number, anchor: string): Promise; + /** + * Resizes the window to the specified dimensions. + * @param { number } width The change in the width of the window + * @param { number } height The change in the height of the window + * @param { string } anchor Specifies a corner to remain fixed during the resize. + * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right." + * If undefined, the default is "top-left" + * @return {Promise.} + * @tutorial Window.resizeTo + */ + resizeTo(width: number, height: number, anchor: string): Promise; + /** + * Restores the window to its normal state (i.e., unminimized, unmaximized). + * @return {Promise.} + * @tutorial Window.restore + */ + restore(): Promise; + /** + * Will bring the window to the front of the entire stack and give it focus. + * @return {Promise.} + * @tutorial Window.setAsForeground + */ + setAsForeground(): Promise; + /** + * Sets the window's size and position. + * @property { Bounds } bounds This is a * @type {string} name - name of the window.object that holds the propertys of + * @return {Promise.} + * @tutorial Window.setBounds + */ + setBounds(bounds: Bounds): Promise; + /** + * Shows the window if it is hidden. + * @param { boolean } [force = false] Show will be prevented from showing when force is false and + * ‘show-requested’ has been subscribed to for application’s main window. + * @return {Promise.} + * @tutorial Window.show + */ + show(force?: boolean): Promise; + /** + * Shows the window if it is hidden at the specified location. + * If the toggle parameter is set to true, the window will + * alternate between showing and hiding. + * @param { number } left The left position of the window + * @param { number } top The right position of the window + * @param { boolean } force Show will be prevented from closing when force is false and + * ‘show-requested’ has been subscribed to for application’s main window + * @return {Promise.} + * @tutorial Window.showAt + */ + showAt(left: number, top: number, force?: boolean): Promise; + /** + * Shows the Chromium Developer Tools + * @return {Promise.} + * @tutorial Window.showDeveloperTools + */ + showDeveloperTools(): Promise; + /** + * Updates the window using the passed options + * @param {*} options Changes a window's options that were defined upon creation. See tutorial + * @return {Promise.} + * @tutorial Window.updateOptions + */ + updateOptions(options: any): Promise; + /** + * Provides credentials to authentication requests + * @param { string } userName userName to provide to the authentication challange + * @param { string } password password to provide to the authentication challange + * @return {Promise.} + * @tutorial Window.authenticate + */ + authenticate(userName: string, password: string): Promise; + /** + * Returns the zoom level of the window. + * @return {Promise.} + * @tutorial Window.getZoomLevel + */ + getZoomLevel(): Promise; + /** + * Sets the zoom level of the window. + * @param { number } level The zoom level + * @return {Promise.} + * @tutorial Window.setZoomLevel + */ + setZoomLevel(level: number): Promise; + /** + * Navigates the window to a specified URL. + * @param {string} url - The URL to navigate the window to. + * @return {Promise.} + * @tutorial Window.navigate + */ + navigate(url: string): Promise; + /** + * Navigates the window back one page. + * @return {Promise.} + * @tutorial Window.navigateBack + */ + navigateBack(): Promise; + /** + * Stops any current navigation the window is performing. + * @return {Promise.} + * @tutorial Window.stopNavigation + */ + stopNavigation(): Promise; +} +export interface _Window { + on(type: 'focused', listener: Function): Promise; + on(type: 'initialized', listener: Function): Promise; + on(type: 'bounds-changed', listener: (data: BoundsChangedReply) => void): Promise; + on(type: 'hidden', listener: Function): Promise; + on(type: 'removeListener', listener: (eventType: string | symbol) => void): Promise; + on(type: 'newListener', listener: (eventType: string | symbol) => void): Promise; + on(type: 'closed', listener: (eventType: CloseEventShape) => void): Promise; + on(type: 'fire-constructor-callback', listener: Function): Promise; +} diff --git a/types/openfin/v34/_v2/environment/environment.d.ts b/types/openfin/v34/_v2/environment/environment.d.ts new file mode 100644 index 0000000000..0b0f1571f2 --- /dev/null +++ b/types/openfin/v34/_v2/environment/environment.d.ts @@ -0,0 +1,10 @@ +import { NewConnectConfig } from '../transport/wire'; +export interface Environment { + writeToken(path: string, token: string): Promise; + retrievePort(config: NewConnectConfig): Promise; + getNextMessageId(): any; + getRandomId(): string; + createChildWindow(options: any): Promise; + isWindowExists(uuid: string, name: string): boolean; +} +export declare const notImplementedEnvErrorMsg = "Not implemented in this environment"; diff --git a/types/openfin/v34/_v2/environment/node-env.d.ts b/types/openfin/v34/_v2/environment/node-env.d.ts new file mode 100644 index 0000000000..03e0faeede --- /dev/null +++ b/types/openfin/v34/_v2/environment/node-env.d.ts @@ -0,0 +1,11 @@ +import { Environment } from './environment'; +import { NewConnectConfig } from '../transport/wire'; +export default class NodeEnvironment implements Environment { + private messageCounter; + writeToken: (path: string, token: string) => Promise; + retrievePort: (config: NewConnectConfig) => Promise; + getNextMessageId: () => any; + createChildWindow: (options: any) => Promise; + getRandomId: () => string; + isWindowExists: (uuid: string, name: string) => boolean; +} diff --git a/types/openfin/v34/_v2/environment/openfin-env.d.ts b/types/openfin/v34/_v2/environment/openfin-env.d.ts new file mode 100644 index 0000000000..456e2f8caf --- /dev/null +++ b/types/openfin/v34/_v2/environment/openfin-env.d.ts @@ -0,0 +1,11 @@ +import { Environment } from './environment'; +import { NewConnectConfig } from '../transport/wire'; +export default class OpenFinEnvironment implements Environment { + writeToken: (path: string, token: string) => Promise; + retrievePort: (config: NewConnectConfig) => Promise; + getNextMessageId: () => any; + createChildWindow: (options: any) => Promise; + getRandomId: () => string; + private resolveUrl; + isWindowExists: (uuid: string, name: string) => boolean; +} diff --git a/types/openfin/v34/_v2/environment/openfin-renderer-api.d.ts b/types/openfin/v34/_v2/environment/openfin-renderer-api.d.ts new file mode 100644 index 0000000000..82822c3111 --- /dev/null +++ b/types/openfin/v34/_v2/environment/openfin-renderer-api.d.ts @@ -0,0 +1,6 @@ +export declare const ipc: any; +export declare const routingId: any; +export declare const CORE_MESSAGE_CHANNEL: any; +export declare const outboundTopic = "of-window-message"; +export declare const inboundTopic: string; +export declare const currentWindowIdentity: any; diff --git a/types/openfin/v34/_v2/identity.d.ts b/types/openfin/v34/_v2/identity.d.ts new file mode 100644 index 0000000000..f10f030248 --- /dev/null +++ b/types/openfin/v34/_v2/identity.d.ts @@ -0,0 +1,4 @@ +export interface Identity { + uuid: string; + name?: string; +} diff --git a/types/openfin/v34/_v2/launcher/launcher.d.ts b/types/openfin/v34/_v2/launcher/launcher.d.ts new file mode 100644 index 0000000000..d0ffc16989 --- /dev/null +++ b/types/openfin/v34/_v2/launcher/launcher.d.ts @@ -0,0 +1,15 @@ +/// +import { ChildProcess } from 'child_process'; +import { ConfigWithRuntime } from '../transport/wire'; +export default class Launcher { + private os; + OpenFin_Installer: string; + Installer_Work_Dir: string; + Security_Realm_Config_Key: string; + nixConfig?: any; + constructor(); + launch(config: ConfigWithRuntime, manifestLocation: string, namedPipeName: string): Promise; + static IS_SUPPORTED(): boolean; + private macLaunch; + private winLaunch; +} diff --git a/types/openfin/v34/_v2/launcher/nix-launch.d.ts b/types/openfin/v34/_v2/launcher/nix-launch.d.ts new file mode 100644 index 0000000000..02b0da4fbb --- /dev/null +++ b/types/openfin/v34/_v2/launcher/nix-launch.d.ts @@ -0,0 +1,14 @@ +/// +import { ChildProcess } from 'child_process'; +import { ConfigWithRuntime } from '../transport/wire'; +export declare function getUrl(version: string, urlPath: string): string; +export declare function download(version: string, folder: string, osConfig: OsConfig): Promise; +export declare function getRuntimePath(version: string): Promise; +export declare function install(versionOrChannel: string, osConfig: OsConfig): Promise; +export interface OsConfig { + manifestLocation: string; + namedPipeName: string; + urlPath: string; + executablePath: string; +} +export default function launch(config: ConfigWithRuntime, osConfig: OsConfig): Promise; diff --git a/types/openfin/v34/_v2/launcher/util.d.ts b/types/openfin/v34/_v2/launcher/util.d.ts new file mode 100644 index 0000000000..808ad015ea --- /dev/null +++ b/types/openfin/v34/_v2/launcher/util.d.ts @@ -0,0 +1,8 @@ +export declare function exists(path: string): Promise; +export declare function get(url: string): Promise; +export declare function unzip(file: string, dest: string): Promise; +export declare function rmDir(dirPath: string, removeSelf?: boolean): Promise; +export declare function downloadFile(url: string, writeLocation: string): Promise<{}>; +export declare function resolveRuntimeVersion(versionOrChannel: string): Promise; +export declare function first(arr: T[], func: (x: T, i: number, r: T[]) => boolean): T | null; +export declare function resolveDir(base: string, paths: string[]): Promise; diff --git a/types/openfin/v34/_v2/launcher/win-launch.d.ts b/types/openfin/v34/_v2/launcher/win-launch.d.ts new file mode 100644 index 0000000000..b08fac3f8a --- /dev/null +++ b/types/openfin/v34/_v2/launcher/win-launch.d.ts @@ -0,0 +1,4 @@ +/// +import { ChildProcess } from 'child_process'; +import { ConfigWithRuntime } from '../transport/wire'; +export default function launch(config: ConfigWithRuntime, manifestLocation: string, namedPipeName: string, Installer_Work_Dir: string): Promise; diff --git a/types/openfin/v34/_v2/main.d.ts b/types/openfin/v34/_v2/main.d.ts new file mode 100644 index 0000000000..2f4a3d8730 --- /dev/null +++ b/types/openfin/v34/_v2/main.d.ts @@ -0,0 +1,11 @@ +import Fin from './api/fin'; +import { Application } from './api/application/application'; +import { _Window as Window } from './api/window/window'; +import { _Frame as Frame } from './api/frame/frame'; +import { _Notification as Notification } from './api/notification/notification'; +import System from './api/system/system'; +import { ConnectConfig } from './transport/wire'; +export declare function connect(config: ConnectConfig): Promise; +export declare function launch(config: ConnectConfig): Promise; +export { Identity } from './identity'; +export { Fin, Application, Window, System, Frame, Notification }; diff --git a/types/openfin/v34/_v2/of-main.d.ts b/types/openfin/v34/_v2/of-main.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/types/openfin/v34/_v2/of-main.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/types/openfin/v34/_v2/transport/elipc.d.ts b/types/openfin/v34/_v2/transport/elipc.d.ts new file mode 100644 index 0000000000..94c398cba5 --- /dev/null +++ b/types/openfin/v34/_v2/transport/elipc.d.ts @@ -0,0 +1,13 @@ +/// +import { EventEmitter } from 'events'; +import { Wire, READY_STATE } from './wire'; +export default class ElIPCTransport extends EventEmitter implements Wire { + protected wire: any; + onmessage: (data: any) => void; + constructor(onmessage: (data: any) => void); + connectSync: () => any; + connect: (address: string) => Promise; + send(data: any, flags?: any): Promise; + shutdown(): Promise; + static READY_STATE: typeof READY_STATE; +} diff --git a/types/openfin/v34/_v2/transport/port-discovery.d.ts b/types/openfin/v34/_v2/transport/port-discovery.d.ts new file mode 100644 index 0000000000..d8ea25934d --- /dev/null +++ b/types/openfin/v34/_v2/transport/port-discovery.d.ts @@ -0,0 +1,17 @@ +import { PortDiscoveryConfig } from './wire'; +import { Environment } from '../environment/environment'; +export declare class PortDiscovery { + private savedConfig; + private namedPipeName; + private manifestLocation; + private namedPipeServer; + private pipeConnection; + private timeoutTimer; + private environment; + constructor(config: PortDiscoveryConfig, environment: Environment); + retrievePort(): Promise; + private createDiscoveryNamedPipe; + private listenDiscoveryMessage; + private createManifest; + private cleanup; +} diff --git a/types/openfin/v34/_v2/transport/transport-errors.d.ts b/types/openfin/v34/_v2/transport/transport-errors.d.ts new file mode 100644 index 0000000000..90f9d10f55 --- /dev/null +++ b/types/openfin/v34/_v2/transport/transport-errors.d.ts @@ -0,0 +1,17 @@ +export declare class DisconnectedError extends Error { + constructor(readyState: number); + readyState: number; +} +export declare class UnexpectedActionError extends Error { +} +export declare class DuplicateCorrelationError extends Error { +} +export declare class NoAckError extends Error { +} +export declare class NotImplementedError extends Error { +} +export declare class NotSupportedError extends Error { +} +export declare class RuntimeError extends Error { + constructor(data: any); +} diff --git a/types/openfin/v34/_v2/transport/transport.d.ts b/types/openfin/v34/_v2/transport/transport.d.ts new file mode 100644 index 0000000000..fb7b967240 --- /dev/null +++ b/types/openfin/v34/_v2/transport/transport.d.ts @@ -0,0 +1,48 @@ +/// +import { Wire, WireConstructor, READY_STATE, ExistingConnectConfig, ConnectConfig, InternalConnectConfig } from './wire'; +import { Identity } from '../identity'; +import { EventEmitter } from 'events'; +import { Environment } from '../environment/environment'; +export declare type MessageHandler = (data: any) => boolean; +declare class Transport extends EventEmitter { + protected wireListeners: Map; + protected uncorrelatedListener: Function; + protected messageHandlers: MessageHandler[]; + me: Identity; + protected wire: Wire; + environment: Environment; + topicRefMap: Map; + sendRaw: Wire['send']; + constructor(wireType: WireConstructor, environment: Environment); + connectSync: (config: ConnectConfig) => any; + connect(config: InternalConnectConfig): Promise; + connectByPort(config: ExistingConnectConfig): Promise; + READY_STATE: typeof READY_STATE; + ferryAction(data: any): Promise>; + registerMessageHandler(handler: MessageHandler): void; + protected addWireListener(id: number, resolve: Function, reject: Function, uncorrelated: boolean): void; + protected onmessage(data: Message): void; + protected handleMessage(data: Message): boolean; +} +export default Transport; +interface Transport { + sendAction(action: 'request-external-authorization', payload: {}, uncorrelated: true): Promise>; + sendAction(action: string, payload: {}, uncorrelated: boolean): Promise>; + topicRefMap: Map; +} +export declare class Message { + action: string; + payload: T; + correlationId?: number; +} +export declare class Payload { + success: boolean; + data: any; +} +export declare class AuthorizationPayload { + token: string; + file: string; +} diff --git a/types/openfin/v34/_v2/transport/websocket.d.ts b/types/openfin/v34/_v2/transport/websocket.d.ts new file mode 100644 index 0000000000..5617afa8e3 --- /dev/null +++ b/types/openfin/v34/_v2/transport/websocket.d.ts @@ -0,0 +1,14 @@ +/// +import { EventEmitter } from 'events'; +import * as WebSocket from 'ws'; +import { Wire, READY_STATE } from './wire'; +export default class WebSocketTransport extends EventEmitter implements Wire { + protected wire: WebSocket; + onmessage: (data: any) => void; + constructor(onmessage: (data: any) => void); + connect: (address: string) => Promise; + connectSync: () => any; + send(data: any, flags?: any): Promise; + shutdown(): Promise; + static READY_STATE: typeof READY_STATE; +} diff --git a/types/openfin/v34/_v2/transport/wire.d.ts b/types/openfin/v34/_v2/transport/wire.d.ts new file mode 100644 index 0000000000..227c6d4d72 --- /dev/null +++ b/types/openfin/v34/_v2/transport/wire.d.ts @@ -0,0 +1,71 @@ +/// +import { EventEmitter } from 'events'; +export interface Wire extends EventEmitter { + connect(address: string): Promise; + connectSync(): any; + send(data: any): Promise; + shutdown(): Promise; +} +export interface WireConstructor { + new (onmessage: (data: any) => void): Wire; +} +export interface RuntimeConfig { + version: string; + fallbackVersion?: string; + securityRealm?: string; + verboseLogging?: boolean; + arguments?: string; + rvmDir?: string; +} +export interface BaseConfig { + uuid?: string; + address?: string; + name?: string; + nonPersistent?: boolean; + runtimeClient?: boolean; + licenseKey?: string; + client?: any; + manifestUrl?: string; + startupApp?: any; + lrsUrl?: string; + assetsUrl?: string; + devToolsPort?: number; + installerUI?: boolean; + runtime?: RuntimeConfig; + appAssets?: [{ + src: string; + alias: string; + target: string; + version: string; + args: string; + }]; + customItems?: [any]; + timeout?: number; +} +export interface ConfigWithUuid extends BaseConfig { + uuid: string; +} +export interface ExistingConnectConfig extends ConfigWithUuid { + address: string; +} +export interface ConfigWithRuntime extends BaseConfig { + runtime: RuntimeConfig; +} +export interface ExternalConfig extends BaseConfig { + manifestUrl: string; +} +export declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime; +export declare type PortDiscoveryConfig = (ExternalConfig & ConfigWithRuntime) | NewConnectConfig; +export declare type ConnectConfig = ExistingConnectConfig | NewConnectConfig | ExternalConfig; +export declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig; +export declare function isExternalConfig(config: ConnectConfig): config is ExternalConfig; +export declare function isExistingConnectConfig(config: any): config is ExistingConnectConfig; +export declare function isNewConnectConfig(config: any): config is NewConnectConfig; +export declare function isPortDiscoveryConfig(config: any): config is PortDiscoveryConfig; +export declare function isInternalConnectConfig(config: any): config is InternalConnectConfig; +export declare enum READY_STATE { + CONNECTING = 0, + OPEN = 1, + CLOSING = 2, + CLOSED = 3 +} diff --git a/types/openfin/v34/_v2/util/normalize-config.d.ts b/types/openfin/v34/_v2/util/normalize-config.d.ts new file mode 100644 index 0000000000..ed322d30ec --- /dev/null +++ b/types/openfin/v34/_v2/util/normalize-config.d.ts @@ -0,0 +1,3 @@ +import { ConnectConfig, InternalConnectConfig, ExternalConfig } from '../transport/wire'; +export declare function normalizeConfig(config: ConnectConfig): Promise; +export declare function validateConfig(config: ConnectConfig): Promise; diff --git a/types/openfin/v34/_v2/util/promises.d.ts b/types/openfin/v34/_v2/util/promises.d.ts new file mode 100644 index 0000000000..8e7bf9efe9 --- /dev/null +++ b/types/openfin/v34/_v2/util/promises.d.ts @@ -0,0 +1,5 @@ +export declare function promisify(func: Function): (...args: any[]) => Promise; +export declare function promiseMap(arr: T[], asyncF: (x: T, i: number, r: T[]) => Promise): Promise; +export declare type asyncF = (...args: any[]) => Promise; +export declare function serial(arr: asyncF[]): Promise; +export declare function promiseMapSerial(arr: any[], func: asyncF): Promise; diff --git a/types/openfin/v34/_v2/util/ref-counter.d.ts b/types/openfin/v34/_v2/util/ref-counter.d.ts new file mode 100644 index 0000000000..8184e09079 --- /dev/null +++ b/types/openfin/v34/_v2/util/ref-counter.d.ts @@ -0,0 +1,7 @@ +export default class RefCoutner { + topicRefMap: Map; + incRefCount(key: string): number; + decRefCount(key: string): number; + actOnFirst(key: string, firstAction: () => any, nonFirstAction?: () => void): any; + actOnLast(key: string, lastAction: () => any, nonLastAction?: () => void): any; +} diff --git a/types/openfin/v34/index.d.ts b/types/openfin/v34/index.d.ts new file mode 100644 index 0000000000..fe34f0b630 --- /dev/null +++ b/types/openfin/v34/index.d.ts @@ -0,0 +1,1907 @@ +// Type definitions for OpenFin API 34.0 +// Project: https://openfin.co/ +// Definitions by: Chris Barker +// Ricardo de Pena +// Roma +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.9 + +// based on v9.61.34.22 +// see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean + +/** + * JavaScript API + * The JavaScript API allows you to create an HTML/JavaScript application that has access to the native windowing environment, + * can communicate with other applications and has access to sandboxed system-level features. + * + * API Ready + * When using the OpenFin API, it is important to ensure that it has been fully loaded before making any API calls. To verify + * that the API is in fact ready, be sure to make any API calls either from within the fin.desktop.main() method or explicitly + * after it has returned. This avoids the situation of trying to access methods that are not yet fully injected. + * + * Overview + * When running within the OpenFin Runtime your web applications have access to the "fin" namespace and all the modules within the API + * without the need to include additional source files. You can treat the "fin" namespace as you would the "window", "navigator" or "documennt" objects. + */ +declare namespace fin { + var Application: import('./_v2/api/application/application').default + var Clipboard: import('./_v2/api/clipboard/clipboard').default + var ExternalApplication: import('./_v2/api/external-application/external-application').default + var Frame: import('./_v2/api/frame/frame').default + var GlobalHotkey: import('./_v2/api/global-hotkey/index').default + var InterApplicationBus: import('./_v2/api/interappbus/interappbus').default + var Notification: import('./_v2/api/notification/notification').default + var System: import('./_v2/api/system/system').default + var Window: import('./_v2/api/window/window').default + + const desktop: OpenFinDesktop; + + interface OpenFinDesktop { + main(f: () => any): void; + Application: OpenFinApplicationStatic; + ExternalApp: OpenFinExternalApplicationStatic; + InterApplicationBus: OpenFinInterApplicationBus; + Notification: OpenFinNotificationStatic; + System: OpenFinSystem; + Window: OpenFinWindowStatic; + Frame: OpenFinFrameStatic; + } + + interface OpenFinApplicationStatic { + /** + * Creates a new Application. + * An object representing an application. Allows the developer to create, execute, show/close an application as well as listen to application events. + */ + new ( + options: ApplicationOptions, + callback?: (successObj: { httpResponseCode: number }) => void, + errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinApplication; + /** + * Launches the given Application manifest. + */ + createFromManifest(manifestUrl: string, callback?: (app: OpenFinApplication) => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Returns an Application object that represents an existing application. + */ + getCurrent(): OpenFinApplication; + /** + * Returns an Application object that represents an existing application. + */ + wrap(uuid: string): OpenFinApplication; + } + + /** + * Application + * An object representing an application.Allows the developer to create, execute, show / close an application as well as listen to application events. + */ + interface OpenFinApplication { + /** + * Returns an instance of the main Window of the application + */ + getWindow(): OpenFinWindow; + /** + * Registers an event listener on the specified event. + */ + addEventListener( + type: OpenFinApplicationEventType, + listener: (event: ApplicationBaseEvent + | TrayIconClickedEvent + | WindowEvent + | WindowAlertRequestedEvent + | WindowAuthRequested + | WindowNavigationRejectedEvent + | WindowEndLoadEvent) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + /** + * Closes the application and any child windows created by the application. + */ + close(force?: boolean, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of wrapped fin.desktop.Windows for each of the application's child windows. + */ + getChildWindows(callback?: (children: OpenFinWindow[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of active window groups for all of the application's windows. Each group is represented as an array of wrapped fin.desktop.Windows. + */ + getGroups(callback?: (groups: OpenFinWindow[][]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the JSON manifest that was used to create the application. Invokes the error callback if the application was not created from a manifest. + */ + getManifest(callback?: (manifest: any) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves UUID of the application that launches this application. Invokes the error callback if the application was created from a manifest. + */ + getParentUuid(callback?: (uuid: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves current configuration of application's shortcuts. + */ + getShortcuts(callback?: (config: ShortCutConfig) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves information about the application. + */ + getInfo(callback?: (info: LaunchInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves information about the system tray. + */ + getTrayIconInfo(callback?: (trayInfo: TrayIconInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Determines if the application is currently running. + */ + isRunning(callback?: (running: boolean) => void, errorCallback?: (reason: string) => void): void; + /** + * Registers a username and an app name for licensing purposes. + */ + registerUser(userName: string, appName: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Removes a previously registered event listener from the specified event. + */ + removeEventListener( + type: OpenFinApplicationEventType, + previouslyRegisteredListener: (event: ApplicationBaseEvent + | TrayIconClickedEvent + | WindowEvent + | WindowAlertRequestedEvent + | WindowAuthRequested + | WindowNavigationRejectedEvent + | WindowEndLoadEvent) => any, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + /** + * Removes the application's icon from the tray. + */ + removeTrayIcon(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Restarts the application. + */ + restart(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Runs the application. When the application is created, run must be called. + */ + run(callback?: (successObj: SuccessObj) => void, errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): void; + /** + * Tells the rvm to relaunch the main application once upon a complete shutdown + */ + scheduleRestart(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Sets new shortcut configuration for current application. + * Application has to be launched with a manifest and has to have shortcut configuration (icon url, name, etc.) in its manifest to + * be able to change shortcut states. + */ + setShortcuts(config: ShortCutConfig, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Adds a customizable icon in the system tray and notifies the application when clicked. + */ + setTrayIcon(iconUrl: string, listener: (clickInfo: TrayIconClickedEvent) => void, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Closes the application by terminating its process. + */ + terminate(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Waits for a hanging application. This method can be called in response to an application "not-responding" to allow the application + * to continue and to generate another "not-responding" message after a certain period of time. + */ + wait(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * The Application's uuid + */ + uuid: string; + } + + interface ShortCutConfig { + /** + * application has a shortcut on the desktop + */ + desktop?: boolean; + /** + * application has no shortcut in the start menu + */ + startMenu?: boolean; + /** + * application will be launched on system startup + */ + systemStartup?: boolean; + } + + interface SuccessObj { + httpResponseCode: number; + } + + interface NetworkErrorInfo extends ErrorInfo { + networkErrorCode: number; + } + + interface ErrorInfo { + stack: string; + message: string; + } + + interface ApplicationOptions { + /** + * The name of the application. + */ + name?: string; + /** + * The url to the application. + */ + url?: string; + /** + * The UUID of the application, unique within the set of all other applications running in the OpenFin Runtime. name and uuid must match. + */ + uuid?: string; + /** + * Enable Flash at the application level. Default: false. + */ + plugins?: boolean; + /** + * The options of the main window of the application. + */ + mainWindowOptions?: WindowOptions; + } + + interface WindowOptions { + /** + * Enable keyboard shortcuts for devtools and zoom. Default: false for both. + */ + accelerator?: { + devtools?: boolean, + zoom?: boolean, + reload?: boolean, + reloadIgnoreCache?: boolean, + }; + /** + * A flag to always position the window at the top of the window stack. Default: false. + * Updatable + */ + alwaysOnTop?: boolean; + /** + * A flag to automatically show the Window when it is created. Default: false. + */ + autoShow?: boolean; + /** + * A flag to show the context menu when right-clicking on a window. Gives access to the Developer Console for the Window. Default: true + * Updatable + */ + contextMenu?: boolean; + /** + * This defines and applies rounded corners for a frameless window. Default for both width and height: 0. + * Updatable + */ + cornerRounding?: { + width?: number; + height?: number; + }; + /** + * A field that the user can attach serializable data to to be ferried around with the window options. Default: ''. + */ + customData?: any; + /** + * Specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine. + * When the window corresponding to that id is loaded again, the position from before the window was closed is used. + * This option overrides defaultLeft and defaultTop. Default: false. + */ + defaultCentered?: boolean; + /** + * The default height of the window. Specifies the height of the window when loaded for the first time on a machine. + * When the window corresponding to that id is loaded again, the height is taken to be the last height of the window before it was closed. Default: 500. + */ + defaultHeight?: number; + /** + * The default left position of the window. Specifies the position of the left of the window when loaded for the first time on a machine. + * When the window corresponding to that id is loaded again, the value of left is taken to be the last value before the window was closed. Default: 100. + */ + defaultWidth?: number; + /** + * The default top position of the window. Specifies the position of the top of the window when loaded for the first time on a machine. + * When the window corresponding to that id is loaded again, the value of top is taken to be the last value before the window was closed. Default: 100. + */ + defaultTop?: number; + /** + * The default width of the window. Specifies the width of the window when loaded for the first time on a machine. + * When the window corresponding to that id is loaded again, the width is taken to be the last width of the window before it was closed. Default: 800. + */ + defaultLeft?: number; + /** + * A flag to show the frame. Default: true. + * Updatable + */ + frame?: boolean; + /** + * A flag to allow a window to be hidden when the close button is clicked.Default: false. + * Updatable + */ + hideOnClose?: boolean; + /** + * A URL for the icon to be shown in the window title bar and the taskbar.Default: The parent application's applicationIcon. + * Updatable + */ + icon?: string; + /** + * The maximum height of a window.Will default to the OS defined value if set to - 1. Default: -1. + * Updatable + */ + maxHeight?: number; + /** + * A flag that lets the window be maximized.Default: true. + * Updatable + */ + maximizable?: boolean; + /** + * The maximum width of a window.Will default to the OS defined value if set to - 1. Default: -1. + * Updatable + */ + maxWidth?: number; + /** + * The minimum height of a window.Default: 0. + * Updatable + */ + minHeight?: number; + /** + * A flag that lets the window be minimized.Default: true. + */ + minimizable?: boolean; + /** + * The minimum width of a window.Default: 0. + */ + minWidth?: number; + /** + * The name for the window which must be unique within the context of the invoking Application. + */ + name?: string; + /** + * A flag that specifies how transparent the window will be.This value is clamped between 0.0 and 1.0.Default: 1.0. + * Updatable + */ + opacity?: number; + /** + * A flag to drop to allow the user to resize the window.Default: true. + * Updatable + */ + resizable?: boolean; + /** + * Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window. + * Updatable + */ + resizeRegion?: { + /** + * The size in pixels (Default: 2), + */ + size?: number; + /** + * The size in pixels of an additional + * square resizable region located at the + * bottom right corner of a + * frameless window. (Default: 4) + */ + bottomRightCorner?: number; + }; + /** + * A flag to show the Window's icon in the taskbar. Default: true. + */ + showTaskbarIcon?: boolean; + /** + * A flag to cache the location of the window or not. Default: true. + */ + saveWindowState?: boolean; + /** + * Specify a taskbar group for the window. Default: app's uuid. + */ + taskbarIconGroup?: string; + /** + * A string that sets the window to be "minimized", "maximized", or "normal" on creation. Default: "normal". + */ + state?: string; + /** + * The URL of the window. Default: "about:blank". + */ + url?: string; + /** + * When set to false, the window will render before the "load" event is fired on the content's window. + * Caution, when false you will see an initial empty white window. Default: true. + */ + waitForPageLoad?: boolean; + } + + /** + * Clipboard + * Clipboard API allows reading and writting to the clipboard in multiple formats. + */ + interface OpenFinClipboard { + /** + * Reads available formats for the clipboard type + */ + availableFormats(type: string | null, callback?: (formats: string[]) => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Reads available formats for the clipboard type + */ + readHtml(type: string | null, callback?: (html: string) => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Read the content of the clipboard as Rtf + */ + readRtf(type: string | null, callback?: (rtf: string) => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Read the content of the clipboard as plain text + */ + readText(type: string | null, callback?: (text: string) => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Writes data into the clipboard + */ + write(data: any, type: string | null, callback?: () => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Writes data into the clipboard as Html + */ + writeHtml(data: string, type: string | null, callback?: () => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Writes data into the clipboard as Rtf + */ + writeRtf(data: string, type: string | null, callback?: () => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Writes data into the clipboard as plain text + */ + writeText(data: string, type: string | null, callback?: () => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + } + + interface OpenFinExternalApplicationStatic { + /** + * Returns an External Application object that represents an existing external application. + */ + wrap(uuid: string): OpenFinExternalApplication; + } + /** + * ExternalApplication + * An object representing an application. Allows the developer to create, execute, show and close an application, as well as listen to application events. + */ + interface OpenFinExternalApplication { + /** + * Retrieves information about the application. + */ + getInfo(callback?: (info: ExternalApplicationInfo) => void, + errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Registers an event listener on the specified event. + */ + addEventListener( + type: OpenFinExternalApplicationEventType, + listener: () => void, + callback?: () => void, + errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Removes a previously registered event listener from the specified event. + */ + removeEventListener( + type: OpenFinExternalApplicationEventType, + listener: () => void, + callback?: () => void, + errorCallback?: (reason: string, error: ErrorInfo) => void): void; + } + + /** + * InterApplicationBus + * A messaging bus that allows for pub/sub messaging between different applications. + */ + interface OpenFinInterApplicationBus { + /** + * Adds a listener that gets called when applications subscribe to the current application's messages. + */ + addSubscribeListener(listener: (uuid: string, topic: string, name: string) => void): void; + /** + * Adds a listener that gets called when applications unsubscribe to the current application's messages. + */ + addUnsubscribeListener(listener: (uuid: string, topic: string, name: string) => void): void; + /** + * Removes a previously registered subscribe listener. + */ + removeSubscribeListener(listener: (uuid: string, topic: string, name: string) => void): void; + /** + * Removes a previously registered unsubscribe listener. + */ + removeUnsubscribeListener(listener: (uuid: string, topic: string, name: string) => void): void; + /** + * Publishes a message to all applications running on OpenFin Runtime that are subscribed to the specified topic. + */ + publish(topic: string, message: any, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Sends a message to a specific application on a specific topic. + */ + send(destinationUuid: string, name: string, topic: string, message: any, callback?: () => void, errorCallback?: (reason: string) => void): void; + send(destinationUuid: string, topic: string, message: any, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Subscribes to messages from the specified application on the specified topic. If the subscription is for a uuid, [name], + * topic combination that has already been published to upon subscription you will receive the last 20 missed messages in the order they were published. + */ + subscribe( + senderUuid: string, + name: string, + topic: string, + listener: (message: any, uuid: string, name: string) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + subscribe( + senderUuid: string, + topic: string, + listener: (message: any, uuid: string, name: string) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + /** + * Unsubscribes to messages from the specified application on the specified topic. + */ + unsubscribe( + senderUuid: string, + name: string, + topic: string, + listener: (message: any, uuid: string, name: string) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + unsubscribe( + senderUuid: string, + topic: string, + listener: (message: any, uuid: string, name: string) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + } + + interface OpenFinNotificationStatic { + /** + * ctor + */ + new (options: NotificationOptions, callback?: () => void, errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinNotification; + /** + * Gets an instance of the current notification. For use within a notification window to close the window or send a message back to its parent application. + */ + getCurrent(): OpenFinNotification; + } + + /** + * Notification + * Notification represents a window on OpenFin Runtime which is shown briefly to the user on the bottom-right corner of the primary monitor. + * A notification is typically used to alert the user of some important event which requires his or her attention. + * Notifications are a child or your application that are controlled by the runtime. + */ + interface OpenFinNotification { + /** + * Closes the notification. + */ + close(callback?: () => void): void; + /** + * Sends a message to the notification. + */ + sendMessage(message: any, callback?: () => void): void; + /** + * Sends a message from the notification to the application that created the notification. The message is handled by the notification's onMessage callback. + */ + sendMessageToApplication(message: any, callback?: () => void): void; + } + + interface NotificationOptions { + /** + * A boolean that will force dismissal even if the mouse is hovering over the notification + */ + ignoreMouseOver?: boolean; + /** + * A message of any primitive or composite-primitive type to be passed to the notification upon creation. + */ + message?: any; + /** + * The timeout for displaying a notification.Can be in milliseconds or "never". + */ + duration?: number | "never"; + /** + * The url of the notification + */ + url?: string; + /** + * A function that is called when a notification is clicked. + */ + onClick?(callback: () => void): void; + /** + * Invoked when the notification is closed via .close() method on the created notification instance + * or the by the notification itself via fin.desktop.Notification.getCurrent().close(). + * NOTE: this is not invoked when the notification is dismissed via a swipe. For the swipe dismissal callback see onDismiss + */ + onClose?(callback: () => void): void; + /** + * Invoked when a the notification is dismissed by swiping it off the screen to the right. NOTE: this is no fired on a programmatic close. + */ + onDismiss?(callback: () => void): void; + /** + * A function that is called when an error occurs.The reason for the error is passed as an argument. + */ + onError?(errorCallback: (reason: string, errorObj: NetworkErrorInfo) => void): void; + /** + * The onMessage function will respond to messages sent from notification.sendMessageToApplication. + * The function is passed the message, which can be of any primitive or composite-primitive type. + */ + onMessage?(callback: (message: any) => void): void; + /** + * A function that is called when a notification is shown. + */ + onShow?(callback: (successObj: SuccessObj) => void): void; + } + + /** + * System + * An object representing the core of OpenFin Runtime. + * Allows the developer to perform system-level actions, such as accessing logs, viewing processes, clearing the cache and exiting the runtime. + */ + interface OpenFinSystem { + Clipboard: OpenFinClipboard; + /** + * Registers an event listener on the specified event. + */ + addEventListener( + type: OpenFinSystemEventType, + listener: (event: SystemBaseEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + /** + * Clears cached data containing window state/positions, + * application resource files (images, HTML, JavaScript files), cookies, and items stored in the Local Storage. + */ + clearCache(options: CacheOptions, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Clears all cached data when OpenFin Runtime exits. + */ + deleteCacheOnExit(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Downloads the given application asset + */ + downloadAsset( + assetObj: AppAssetInfo, + progressListener?: (progress: { downloadedBytes: number, totalBytes: number }) => void, + callback?: (successObj: { path: string }) => void, + errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): void; + + /** + * Download preload scripts from given URLs + */ + downloadPreloadScripts(scripts: DownloadPreloadOption[], callback?: (downloadInfo: DownloadPreloadInfo[]) => void, + errorCallback?: (reason: string) => void): void; + /** + * Downloads the given OpenFin Runtime. + */ + downloadRuntime(options: RuntimeDownloadOptions, onProgress?: (progress: RuntimeDownloadProgress) => void, onComplete?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Exits the Runtime. + */ + exit(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Writes any unwritten cookies data to disk. + */ + flushCookieStore(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of data for all applications. + */ + getAllApplications(callback?: (applicationInfoList: ApplicationInfo[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of data for all external applications. + */ + getAllExternalApplications(callback?: (applicationInfoList: ApplicationInfo[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of data (name, ids, bounds) for all application windows. + */ + getAllWindows(callback?: (windowInfoList: WindowDetails[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns information about the app asset. + */ + getAppAssetInfo(options: AppAssetOptions, callback?: (appAssetInfo: AppAssetInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Get additional info of cookies. + */ + getCookies(option: CookieOption, callback?: (info: CookieInfo[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the command line argument string that started OpenFin Runtime. + */ + getCommandLineArguments(callback?: (args: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the configuration object that started the OpenFin Runtime. + */ + getDeviceId(callback?: (uuid: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns a hex encoded hash of the mac address and the currently logged in user name + */ + getDeviceUserId(callback?: (id: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns an Entity info object relating to the entity specified by the uuid and name passed in. The possible types are 'window', 'iframe', 'external connection' or 'unknown'. + */ + getEntityInfo(uuid: string, name: string, callback?: (info: EntityInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Gets the value of a given environment variable on the computer on which the runtime is installed. + */ + getEnvironmentVariable(envVar: string, callback?: (variable: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves currently focused window identity. + */ + getFocusedWindow(callback?: (focusedWindowIdentity: Identity) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves system information. + */ + getHostSpecs(callback?: (info: HostSpecInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the contents of the log with the specified filename. + */ + getLog(logFileName: string, callback?: (variable: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array containing information for each log file. + */ + getLogList(callback?: (logInfoList: LogInfo[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the minimum (inclusive) logging level that is currently being written to the logs. + */ + getMinLogLevel(callback?: (logLevel: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an object that contains data about the about the monitor setup of the computer that the runtime is running on. + */ + getMonitorInfo(callback?: (monitorInfo: MonitorInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns the mouse in virtual screen coordinates (left, top). + */ + getMousePosition(callback?: (mousePosition: VirtualScreenCoordinates) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array of all of the runtime processes that are currently running. + * Each element in the array is an object containing the uuid and the name of the application to which the process belongs. + */ + getProcessList(callback?: (processInfoList: ProcessInfo[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves the Proxy settings. + */ + getProxySettings(callback?: (proxy: ProxyInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns information about the running RVM in an object. + */ + getRvmInfo(callback?: (rvmInfo: RvmInfo) => void, errorCallback?: (reason: string) => void): void; + /** + * Returns the version of the runtime. The version contains the major, minor, build and revision numbers. + */ + getVersion(callback?: (version: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Runs an executable or batch file. + */ + launchExternalProcess(options: ExternalProcessLaunchInfo, callback?: (payload: { uuid: string }) => void, errorCallback?: (reason: string) => void): void; + /** + * Writes the passed message into both the log file and the console. + */ + log(level: "debug" | "info" | "warn" | "error", message: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Monitors a running process. + */ + monitorExternalProcess(options: ExternalProcessInfo, callback?: (payload: { uuid: string }) => void, errorCallback?: (reason: string) => void): void; + /** + * Opens the passed URL in the default web browser. + */ + openUrlWithBrowser(url: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Opens the passed URL in the default web browser. + */ + readRegistryValue(rootKey: string, subkey: string, value: string, callback?: (info: RegistryInfo) => void, + errorCallback?: (reason: string) => void): void; + /** + * This function call will register a unique id and produce a token. The token can be used to broker an external connection. + */ + registerExternalConnection( + uuid: string, + callback?: (detail: { + /** + * this will be unique each time + */ + token: string; + /** + * "remote-connection-uuid" + */ + uuid: string; + }) => void, + errorCallback?: (reason: string) => void): void; + /** + * Removes the process entry for the passed UUID obtained from a prior call of fin.desktop.System.launchExternalProcess(). + */ + releaseExternalProcess(processUuid: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Removes a previously registered event listener from the specified event. + */ + removeEventListener( + type: OpenFinSystemEventType, + listener: (event: SystemBaseEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent) => void, + callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Set the minimum log level above which logs will be written to the OpenFin log + */ + setMinLogLevel(logLevel: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Shows the Chrome Developer Tools for the specified window. + */ + showDeveloperTools(uuid: string, name: string, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Attempt to close an external process. The process will be terminated if it has not closed after the elapsed timeout in milliseconds. + */ + terminateExternalProcess( + processUuid: string, + timeout: number, + killTree: boolean, + callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, + errorCallback?: (reason: string) => void): void; + terminateExternalProcess( + processUuid: string, + timeout: number, + callback?: (info: { result: "clean" | "terminated" | "failed" }) => void, + errorCallback?: (reason: string) => void): void; + /** + * Update the OpenFin Runtime Proxy settings. + */ + updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; + } + + interface CacheOptions { + cache?: boolean; + cookies?: boolean; + localStorage?: boolean; + appcache?: boolean; + userData?: boolean; + } + + interface AppAssetInfo { + src?: string; + alias?: string; + version?: string; + target?: string; + args?: string; + mandatory?: boolean; + } + + interface AppAssetOptions { + alias: string; + } + + interface ApplicationInfo { + /** + * true when the application is running. + */ + isRunning?: boolean; + /** + * uuid of the application. + */ + uuid?: string; + /** + * uuid of the application that launches this application. + */ + parentUuid?: string; + } + + interface Identity { + uuid: string; + name: string; + } + + interface EntityInfo { + name: string; + uuid: string; + parent: Identity; + entityType: string; + } + + interface DownloadPreloadOption { + url: string; + } + + interface DownloadPreloadInfo { + success: boolean; + url?: string; + error: string; + } + + interface CookieInfo { + name: string; + // expirationDate: Date; + domain: string; + path: string; + } + + interface CookieOption { + name: string; + } + + interface RegistryInfo { + data: any; + rootKey: string; + subkey: string; + type: string; + value: string; + } + + interface RuntimeDownloadOptions { + version: string; + } + + interface RuntimeDownloadProgress { + downloadedBytes: number; + totalBytes: number; + } + + interface WindowDetails { + uuid?: string; + mainWindow?: WindowInfo; + childWindows?: WindowInfo[]; + } + + interface WindowInfo { + /** + * name of the child window + */ + name?: string; + /** + * top-most coordinate of the child window + */ + top?: number; + /** + * right-most coordinate of the child window + */ + right?: number; + /** + * bottom-most coordinate of the child window + */ + bottom?: number; + /** + * left-most coordinate of the child window + */ + left?: number; + } + + interface HostSpecInfo { + /** + * "x86" for 32-bit or "x86_64" for 64-bit + */ + arch: string; + /** + * Same payload as Node's os.cpus() + */ + cpus: NodeCpuInfo[]; + gpu: { + /** + * Graphics card name + */ + name: string; + }; + /** + * Same payload as Node's os.totalmem() + */ + memory: number; + /** + * OS name and version/edition + */ + name: string; + } + + interface NodeCpuInfo { + model: string; + /** + * in MHz + */ + speed: number; + times: { + /** + * The number of milliseconds the CPU has spent in user mode. + */ + user: number; + /** + * The number of milliseconds the CPU has spent in nice mode. + */ + nice: number; + /** + * The number of milliseconds the CPU has spent in sys mode. + */ + sys: number; + /** + * The number of milliseconds the CPU has spent in idle mode. + */ + idle: number; + /** + * The number of milliseconds the CPU has spent in irq mode. + */ + irq: number; + }; + } + + interface LogInfo { + /** + * the filename of the log + */ + name?: string; + /** + * the size of the log in bytes + */ + size?: number; + /** + * the unix time at which the log was created "Thu Jan 08 2015 14:40:30 GMT-0500 (Eastern Standard Time)" + */ + date?: string; + } + + interface ProcessInfo { + /** + * the percentage of total CPU usage + */ + cpuUsage?: number; + /** + * the application name + */ + name?: string; + /** + * the current nonpaged pool usage in bytes + */ + nonPagedPoolUsage?: number; + /** + * the number of page faults + */ + pageFaultCount?: number; + /** + * the current paged pool usage in bytes + */ + pagedPoolUsage?: number; + /** + * the total amount of memory in bytes that the memory manager has committed + */ + pagefileUsage?: number; + /** + * the peak nonpaged pool usage in bytes + */ + peakNonPagedPoolUsage?: number; + /** + * the peak paged pool usage in bytes + */ + peakPagedPoolUsage?: number; + /** + * the peak value in bytes of pagefileUsage during the lifetime of this process + */ + peakPagefileUsage?: number; + /** + * the peak working set size in bytes + */ + peakWorkingSetSize?: number; + /** + * the native process identifier + */ + processId?: number; + /** + * the application UUID + */ + uuid?: string; + /** + * the current working set size (both shared and private data) in bytes + */ + workingSetSize?: number; + } + + interface ProxyInfo { + /** + * the configured Proxy Address + */ + proxyAddress?: string; + /** + * the configured Proxy port + */ + proxyPort?: number; + /** + * Proxy Type + */ + type?: string; + } + + interface RvmInfo { + version?: string; + "start-time"?: string; + } + + interface ExternalProcessLaunchInfo { + path?: string; + /** + * Additionally note that the executable found in the zip file specified in appAssets + * will default to the one mentioned by appAssets.target + * If the the path below refers to a specific path it will override this default + */ + alias?: string; + /** + * When using alias; if no arguments are passed then the arguments (if any) + * are taken from the 'app.json' file, from the 'args' parameter + * of the 'appAssets' Object with the relevant 'alias'. + * If 'arguments' is passed as a parameter it takes precedence + * over any 'args' set in the 'app.json'. + */ + arguments?: string; + listener?(result: { + /** + * "Exited" Or "released" on a call to releaseExternalProcess + */ + topic?: string; + /** + * The mapped UUID which identifies the launched process + */ + uuid?: string; + /* + * Process exit code + */ + exitCode?: number; + }): void; + certificate?: CertificationInfo; + } + + interface CertificationInfo { + /** + * A hex string with or without spaces + */ + serial?: string; + /** + * An internally tokenized and comma delimited string allowing partial or full checks of the subject fields + */ + subject?: string; + /** + * A hex string with or without spaces + */ + publickey?: string; + /** + * A hex string with or without spaces + */ + thumbprint?: string; + /** + * A boolean indicating that the certificate is trusted and not revoked + */ + trusted?: boolean; + } + + interface ExternalProcessInfo { + pid?: number; + listener?(result: { + /** + * "Exited" Or "released" on a call to releaseExternalProcess + */ + topic?: string; + /** + * The mapped UUID which identifies the launched process + */ + uuid?: string; + /* + * Process exit code + */ + exitCode?: number; + }): void; + } + + interface OpenFinWindowStatic { + /** + * Class: Window + * + * new Window(options, callbackopt, errorCallbackopt) + * + * Creates a new OpenFin Window + * + * A basic window that wraps a native HTML window. Provides more fine-grained control over the window state such as the ability to minimize, + * maximize, restore, etc. By default a window does not show upon instantiation; instead the window's show() method must be invoked manually. + * The new window appears in the same process as the parent window. + * @param options - The options of the window + * @param [callback] - Called if the window creation was successful + * @param [callback.successObj] - httpResponseCode + */ + new ( + options: WindowOptions, + callback?: (successObj: { httpResponseCode: number }) => void, + errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinWindow; + /** + * Returns an instance of the current window. + * @returns Current window + */ + getCurrent(): OpenFinWindow; + /** + * Returns a Window object that wraps an existing window. + */ + wrap(appUuid: string, windowName: string): OpenFinWindow; + } + + /** + * Window + * A basic window that wraps a native HTML window. Provides more fine-grained control over the window state such as the ability to minimize, + * maximize, restore, etc. By default a window does not show upon instantiation; instead the window's show() method must be invoked manually. + * The new window appears in the same process as the parent window. + */ + interface OpenFinWindow { + /** + * uuid of the application that the window belongs to. + */ + uuid: string; + /** + * Name of window + */ + name: string; + /** + * Returns the native JavaScript "window" object for the window. This method can only be used by the parent application or the window itself, + * otherwise it will return undefined. The same Single-Origin-Policy (SOP) rules apply for child windows created by window.open(url) in that the + * contents of the window object are only accessible if the URL has the same origin as the invoking window. See example below. + * Also, will not work with fin.desktop.Window objects created with fin.desktop.Window.wrap(). + * @returns Native window + */ + getNativeWindow(): Window; + /** + * Gets the parent application. + * @returns Parent application + */ + getParentApplication(): OpenFinApplication; + /** + * Gets the parent window. + */ + getParentWindow(): OpenFinWindow; + /** + * Registers an event listener on the specified event. + */ + addEventListener( + type: OpenFinWindowEventType, + listener: (event: WindowBaseEvent + | WindowAuthRequestedEvent + | WindowBoundsEvent + | WindowExternalProcessStartedEvent + | WindowExternalProcessExited + | WindowGroupChangedEvent + | WindowHiddenEvent + | Window_NavigationRejectedEvent) => void, + callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Performs the specified window transitions + */ + animate(transitions: AnimationTransition, options: AnimationOptions, callback?: (event: any) => void, errorCallback?: (reason: string) => void): void; + /** + * Provides credentials to authentication requests + */ + authenticate(userName: string, password: string, callback?: () => void, errorCallback?: (reason: string, error: ErrorInfo) => void): void; + /** + * Removes focus from the window. + */ + blur(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Brings the window to the front of the OpenFin window stack. + */ + bringToFront(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Closes the window. + * @param Close will be prevented from closing when force is false and 'close-requested' has been subscribed to for application's main window. + */ + close(force?: boolean, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Prevents a user from changing a window's size/position when using the window's frame. + * 'disabled-frame-bounds-changing' is generated at the start of and during a user move/size operation. + * 'disabled-frame-bounds-changed' is generated after a user move/size operation. + * The events provide the bounds that would have been applied if the frame was enabled. + * 'frame-disabled' is generated when an enabled frame becomes disabled. + */ + disableFrame(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Re-enables user changes to a window's size/position when using the window's frame. + * 'disabled-frame-bounds-changing' is generated at the start of and during a user move/size operation. + * 'disabled-frame-bounds-changed' is generated after a user move/size operation. + * The events provide the bounds that would have been applied if the frame was enabled. + * 'frame-enabled' is generated when a disabled frame has becomes enabled. + */ + enableFrame(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Flashes the window's frame and taskbar icon until the window is activated. + */ + flash(options?: any, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Gives focus to the window. + */ + focus(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Gets the current bounds (top, left, width, height) of the window. + */ + getBounds(callback?: (bounds: WindowBounds) => void, errorCallback?: (reason: string) => void): void; + /** + * Retrieves an array containing wrapped fin.desktop.Windows that are grouped with this window. If a window is not in a group an empty array is returned. + * Please note that calling window is included in the result array. + */ + getGroup(callback?: (group: OpenFinWindow[]) => void, errorCallback?: (reason: string) => void): void; + /** + * Gets the current settings of the window. + */ + getOptions(callback?: (options: WindowOptions) => void, errorCallback?: (reason: string) => void): void; + /** + * Gets a base64 encoded PNG snapshot of the window. + */ + getSnapshot(callback?: (base64Snapshot: string) => void, errorCallback?: (reason: string) => void): void; + /** + * Gets the current state ("minimized", "maximized", or "restored") of the window. + */ + getState(callback?: (state: "minimized" | "maximized" | "restored") => void, errorCallback?: (reason: string) => void): void; + /** + * Returns the zoom level of the window. + */ + getZoomLevel(callback?: (level: number) => void, errorCallback?: (reason: string) => void): void; + /** + * Hides the window. + */ + hide(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Determines if the window is currently showing. + */ + isShowing(callback?: (showing: boolean) => void, errorCallback?: (reason: string) => void): void; + /** + * Joins the same window group as the specified window. + */ + joinGroup(target: OpenFinWindow, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Leaves the current window group so that the window can be move independently of those in the group. + */ + leaveGroup(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Maximizes the window. + */ + maximize(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Merges the instance's window group with the same window group as the specified window + */ + mergeGroups(target: OpenFinWindow, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Minimizes the window. + */ + minimize(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Moves the window by a specified amount. + */ + moveBy(deltaLeft: number, deltaTop: number, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Moves the window to a specified location. + */ + moveTo(left: number, top: number, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Removes a previously registered event listener from the specified event. + */ + removeEventListener( + type: OpenFinWindowEventType, + listener: (event: WindowBaseEvent + | WindowAuthRequestedEvent + | WindowBoundsEvent + | WindowExternalProcessStartedEvent + | WindowExternalProcessExited + | WindowGroupChangedEvent + | WindowHiddenEvent + | Window_NavigationRejectedEvent) => void, + callback?: () => void, + errorCallback?: (reason: string) => void): void; + /** + * Resizes the window by a specified amount. + */ + resizeBy(deltaWidth: number, deltaHeight: number, anchor: OpenFinAnchor, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Resizes the window by a specified amount. + */ + resizeTo(width: number, height: number, anchor: OpenFinAnchor, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Restores the window to its normal state (i.e., unminimized, unmaximized). + */ + restore(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Will bring the window to the front of the entire stack and give it focus. + */ + setAsForeground(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Sets the window's size and position + */ + setBounds(left: number, top: number, width: number, height: number, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Sets the zoom level of the window. + */ + setZoomLevel(level: number, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Shows the window if it is hidden. + * @param Show will be prevented from closing when force is false and 'show-requested' has been subscribed to for application's main window. + */ + show(force?: boolean, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Shows the window if it is hidden at the specified location. If the toggle parameter is set to true, the window will alternate between showing and hiding. + */ + showAt(left: number, top: number, force?: boolean, callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Stops the taskbar icon from flashing. + */ + stopFlashing(callback?: () => void, errorCallback?: (reason: string) => void): void; + /** + * Updates the window using the passed options + */ + updateOptions(options: WindowOptions, callback?: () => void, errorCallback?: (reason: string) => void): void; + } + + interface OpenFinFrameStatic { + wrap(uuid: string, name: string): OpenFinFrame; + + getCurrent(): OpenFinFrame; + } + + interface OpenFinFrame { + name: string; + uuid: string; + + addEventListener(type: string, listener: () => void, callback?: () => void, errorCallback?: (reason: string) => void): void; + + getParentWindow(callback?: (entityInfo: EntityInfo) => void, errorCallback?: (reason: string) => void): void; + + getInfo(callback?: (entityInfo: EntityInfo) => void, errorCallback?: (reason: string) => void): void; + + removeEventListener(type: string, listener: () => void, callback?: () => void, errorCallback?: (reason: string) => void): void; + } + + interface ApplicationBaseEvent { + topic: string; + type: OpenFinApplicationEventType; + uuid: string; + } + + interface TrayIconClickedEvent extends ApplicationBaseEvent { + button: number; // 0 for left, 1 for middle, 2 for right + monitorInfo: MonitorInfo; + x: number; // the cursor x coordinate + y: number; // the cursor y coordinate + } + + interface WindowEvent extends ApplicationBaseEvent { + name: string; + } + + interface WindowAlertRequestedEvent extends WindowEvent { + message: string; + url: string; + } + + interface WindowAuthRequested extends WindowEvent { + authInfo: { + host: string; + isProxy: boolean; + port: number; + realm: string; + scheme: string; + }; + } + + interface WindowNavigationRejectedEvent extends WindowEvent { + sourceName: string; + url: string; + } + + interface WindowEndLoadEvent extends WindowEvent { + documentName: string; + isMain: boolean; + } + + interface MonitorInfoChangedEvent extends MonitorInfo { + topic: "system"; + type: "monitor-info-changed"; + } + + interface MonitorInfo { + nonPrimaryMonitors: MonitorInfoDetail[]; + primaryMonitor: MonitorInfoDetail; + reason: string; + taskbar: { + edge: "left" | "right" | "top" | "bottom", + rect: MontiorCoordinates + }; + topic: "system"; + type: "monitor-info-changed"; + virtualScreen: MontiorCoordinates; + } + + interface TrayIconInfo { + x: number; + y: number; + bounds: { + x: number; + y: number; + width: number; + height: number; + }; + monitorInfo: MonitorInfo; + } + + interface MonitorInfoDetail { + availableRect: MontiorCoordinates; + deviceId: string; + displayDeviceActive: boolean; + monitorRect: MontiorCoordinates; + name: string; + } + + interface MontiorCoordinates { + bottom: number; + left: number; + right: number; + top: number; + } + + interface VirtualScreenCoordinates { + left: number; + top: number; + } + + interface SystemBaseEvent { + topic: string; + type: OpenFinSystemEventType; + uuid: string; + } + + interface DesktopIconClickedEvent { + mouse: { + /** + * the left virtual screen coordinate of the mouse + */ + left: number, + /** + * the top virtual screen coordinate of the mouse + */ + top: number + }; + /** + * the number of milliseconds that have elapsed since the system was started, + */ + tickCount: number; + topic: "system"; + type: "desktop-icon-clicked"; + } + + interface IdleStateChangedEvent { + /** + * How long in milliseconds since the user has been idle. + */ + elapsedTime: number; + /** + * true when the user is idle,false when the user has returned; + */ + isIdle: boolean; + topic: "system"; + type: "idle-state-changed"; + } + + interface WindowBaseEvent { + /** + * the name of the window + */ + name: string; + /** + * always window + */ + topic: "window"; + /** + * window event type + */ + type: OpenFinWindowEventType; + /** + * the UUID of the application the window belongs to + */ + uuid: string; + } + + interface WindowAuthRequestedEvent extends WindowBaseEvent { + authInfo: { + host: string; + isProxy: boolean; + port: number; + realm: string; + scheme: string; + }; + } + + interface WindowBoundsEvent extends WindowBaseEvent { + /** + * describes what kind of change occurred. + * 0 means a change in position. + * 1 means a change in size. + * 2 means a change in position and size. + */ + changeType: number; + /** + * true when pending changes have been applied to the window. + */ + deferred: boolean; + /** + * the new height of the window. + */ + height: number; + /** + * the left-most coordinate of the window. + */ + left: number; + /** + * the top-most coordinate of the window. + */ + top: number; + + type: "bounds-changed" | "bounds-changing" | "disabled-frame-bounds-changed" | "disabled-frame-bounds-changing"; + /** + * the new width of the window. + */ + width: number; + } + + interface WindowExternalProcessStartedEvent extends WindowBaseEvent { + /** + * the process handle uuid + */ + processUuid: string; + type: "external-process-started"; + } + + interface WindowExternalProcessExited extends WindowBaseEvent { + /** + * the process exit code + */ + exitCode: number; + /** + * the process handle uuid + */ + processUuid: string; + type: "external-process-exited"; + } + + interface WindowGroupChangedEvent extends WindowBaseEvent { + /** + * Which group array the window that the event listener was registered on is included in: + * 'source' The window is included in sourceGroup. + * 'target' The window is included in targetGroup. + * 'nothing' The window is not included in sourceGroup nor targetGroup. + */ + memberOf: "source" | "target" | "nothing"; + /** + * The reason this event was triggered. + * 'leave' A window has left the group due to a leave or merge with group. + * 'join' A window has joined the group. + * 'merge' Two groups have been merged together. + * 'disband' There are no other windows in the group. + */ + reason: "leave" | "join" | "merge" | "disband"; + /** + * All the windows in the group the sourceWindow originated from. + */ + sourceGroup: WindowOfGroupInfo[]; + /** + * The UUID of the application the sourceWindow belongs to The source window is the window in which (merge/join/leave)group(s) was called. + */ + sourceWindowAppUuid: string; + /** + * the name of the sourcewindow.The source window is the window in which(merge / join / leave) group(s) was called. + */ + sourceWindowName: string; + /** + * All the windows in the group the targetWindow orginated from + */ + targetGroup: WindowOfGroupInfo[]; + /** + * The UUID of the application the targetWindow belongs to. The target window is the window that was passed into (merge/join) group(s). + */ + targetWindowAppUuid: string; + /** + * The name of the targetWindow. The target window is the window that was passed into (merge/join) group(s). + */ + targetWindowName: string; + type: "group-changed"; + } + + interface WindowOfGroupInfo { + /** + * The UUID of the application this window entry belongs to. + */ + appUuid: string; + /** + * The name of this window entry. + */ + windowName: string; + } + + interface WindowHiddenEvent extends WindowBaseEvent { + /** + * What action prompted the close. + * The reasons are: "hide", "hide-on-close" + */ + reason: "hide" | "hide-on-close"; + type: "hidden"; + } + + interface Window_NavigationRejectedEvent { + name: string; + /** + * source of navigation window name + */ + sourceName: string; + topic: "navigation-rejected"; + /** + * Url that was not reached "http://blocked-content.url" + */ + url: string; + /** + * the UUID of the application the window belongs to. + */ + uuid: string; + } + + interface AnimationTransition { + opacity?: { + /** + * This value is clamped from 0.0 to 1.0 + */ + opacity?: number; + /** + * The total time in milliseconds this transition should take. + */ + duration?: number; + /** + * Treat 'opacity' as absolute or as a delta. Defaults to false. + */ + relative?: boolean; + }; + position?: { + /** + * Defaults to the window's current left position in virtual screen coordinates. + */ + left?: number; + /** + * Defaults to the window's current top position in virtual screen coordinates. + */ + top?: number; + /** + * The total time in milliseconds this transition should take. + */ + duration?: number; + /** + * Treat 'left' and 'top' as absolute or as deltas. Defaults to false. + */ + relative?: boolean; + }; + size?: { + /** + * Optional if height is present. Defaults to the window's current width. + */ + width?: number; + /** + * Optional if width is present. Defaults to the window's current height. + */ + height?: number; + /** + * The total time in milliseconds this transition should take. + */ + duration?: number; + /** + * Treat 'width' and 'height' as absolute or as deltas. Defaults to false. + */ + relative?: boolean; + }; + } + + interface AnimationOptions { + /** + * This option interrupts the current animation. When false it pushes this animation onto the end of the animation queue. + */ + interrupt?: boolean; + /** + * Transition effect. Defaults to 'ease-in-out'. + */ + tween?: OpenFinTweenType; + } + + interface WindowBounds { + /** + * the height of the window. + */ + height?: number; + /** + * left-most coordinate of the window. + */ + left?: number; + /** + * top-most coordinate of the window. + */ + top?: number; + /** + * the width of the window. + */ + width?: number; + } + + interface ExternalApplicationInfo { + parent: { + uuid: string; + name: string; + }; + } + + interface SessionChangedEvent { + /** + * the action that triggered this event: + */ + reason: "lock" + | "unlock" + | "remote-connect" + | "remote-disconnect" + | "unknown"; + topic: "system"; + type: "session-changed"; + } + + interface LaunchInfo { + launchMode: "fin-protocol" + | "fins-protocol" + | "shortcut" + | "command-line" + | "adapter" + | "other" + | string; + } + + type OpenFinTweenType = "linear" + | "ease-in" + | "ease-out" + | "ease-in-out" + | "ease-in-quad" + | "ease-out-quad" + | "ease-in-out-quad" + | "ease-in-cubic" + | "ease-out-cubic" + | "ease-in-out-cubic" + | "ease-out-bounce" + | "ease-in-back" + | "ease-out-back" + | "ease-in-out-back" + | "ease-in-elastic" + | "ease-out-elastic" + | "ease-in-out-elastic"; + + type OpenFinApplicationEventType = "closed" + | "connected" + | "crashed" + | "initialized" + | "manifest-changed" + | "not-responding" + | "out-of-memory" + | "responding" + | "run-requested" + | "started" + | "tray-icon-clicked" + | "window-alert-requested" + | "window-auth-requested" + | "window-closed" + | "window-created" + | "window-end-load" + | "window-navigation-rejected" + | "window-show-requested" + | "window-start-load"; + + type OpenFinExternalApplicationEventType = "connected" + | "disconnected"; + + type OpenFinSystemEventType = "application-closed" + | "application-crashed" + | "application-created" + | "application-started" + | "desktop-icon-clicked" + | "idle-state-changed" + | "monitor-info-changed" + | "session-changed"; + + type OpenFinWindowEventType = "auth-requested" + | "blurred" + | "bounds-changed" + | "bounds-changing" + | "close-requested" + | "closed" + | "disabled-frame-bounds-changed" + | "disabled-frame-bounds-changing" + | "embedded" + | "external-process-exited" + | "external-process-started" + | "focused" + | "frame-disabled" + | "frame-enabled" + | "group-changed" + | "hidden" + | "initialized" + | "maximized" + | "minimized" + | "navigation-rejected" + | "restored" + | "show-requested" + | "shown"; + + type OpenFinAnchor = "top-left" + | "top-right" + | "bottom-left" + | "bottom-right"; +} diff --git a/types/openfin/v34/openfin-tests.ts b/types/openfin/v34/openfin-tests.ts new file mode 100644 index 0000000000..6059f54de7 --- /dev/null +++ b/types/openfin/v34/openfin-tests.ts @@ -0,0 +1,800 @@ +function test_application() { + let application: fin.OpenFinApplication; + // constructor + application = new fin.desktop.Application({ + url: "application.html", + uuid: "74BED629-2D8E-4141-8582-73E364BDFA74", + name: "Application Name", + plugins: false, + mainWindowOptions: { + defaultHeight: 600, + defaultWidth: 800, + defaultTop: 300, + defaultLeft: 300, + autoShow: true + } + }, (successObj) => { + console.log("Application successfully created, HTTP response code:", successObj); + application.run(); + }, (error) => { + console.log("Error creating application:", error); + }); + // createFromManifest + fin.desktop.Application.createFromManifest("http://stuf.com/app.json", (app) => { + console.log(app.uuid); + }, err => console.log(err)); + // getCurrent + application = fin.desktop.Application.getCurrent(); + // wrap + application = fin.desktop.Application.wrap("454C7F31-A915-4EA2-83F2-CFA655453C52"); + // getWindow + application.getWindow(); + // addEventListener + application.addEventListener("closed", (event) => { + console.log("The application has closed"); + }, () => { + console.log("The registration was successful"); + }, reason => { + console.log("failure: " + reason); + }); + // close + application.close(); + // getChildWindows + application.getChildWindows(children => { + children.forEach(childWindow => { + console.log("Showing child: " + childWindow.name); + childWindow.show(); + }); + }); + // getGroups + application.getGroups(allGroups => { + console.log(`There are a total of ${allGroups.length} groups.`); + + let groupCounter = 1; + allGroups.forEach(windowGroup => { + console.log(`Group ${groupCounter} contains ${windowGroup.length} windows.`); + ++groupCounter; + }); + }); + // getManifest + application.getManifest(manifest => { + console.log("Application manifest:"); + console.log(manifest); + }); + // getParentUuid + application.getParentUuid(parentUuid => { + console.log("UUID of parent application:"); + console.log(parentUuid); + }); + // getShortcuts + application.getShortcuts(config => { + console.log("Desktop shortcut is enabled: ", config.desktop); + console.log("Start Menu shortcut is enabled: ", config.startMenu); + console.log("System Startup shortcut is enabled: ", config.systemStartup); + }); + // getInfo + application.getInfo(info => { + console.log(`Launch mode: ${info.launchMode}`); + }); + // getTrayIconInfo + application.getTrayIconInfo(info => { + console.log(info.x, info.y, info.bounds.x, info.bounds.y, info.bounds.height, info.bounds.width, + info.monitorInfo.type, info.monitorInfo.reason); + }); + // isRunning + application.isRunning(running => { + console.log("the application is", running ? "running" : "not running"); + }); + // registerCustomData + application.registerUser("a", "b", () => console.log("done"), err => console.log(err)); + // removeEventListener + application.removeEventListener("closed", (event: any) => { + console.log(event); + }, () => { + console.log("The unregistration was successful"); + }, err => { + console.log("failure:", err); + }); + // removeTrayIcon + application.removeTrayIcon(() => { + console.log("Removed the tray icon."); + }, err => { + console.log("failure:", err); + }); + // restart + application.restart(() => { + console.log("You will not read this."); + }, err => { + console.log("failure:", err); + }); + // schedule restart + application.scheduleRestart(() => { + console.log("You will not read this."); + }, err => { + console.log("failure:", err); + }); + // setShortcuts + application.setShortcuts({ + desktop: true, + startMenu: false, + systemStartup: true + }, () => { + console.log("Successfully set new shortcut states"); + }, error => { + console.log("Failed to set new shortcut states. Error: ", error); + }); + // setTrayIcon + application.setTrayIcon("https://developer.openf.in/download/openfin.png", clickInfo => { + console.log(`The mouse has clicked at (${clickInfo.x}, ${clickInfo.y})`); + }); + // terminate + application.terminate(); + // wait + application.addEventListener("not-responding", () => { + console.log("waiting for hung application"); + application.wait(); + }); + // uuid + const hasUuid = application.uuid; +} + +function test_external_application() { + let externalApp: fin.OpenFinExternalApplication; + // wrap + externalApp = fin.desktop.ExternalApp.wrap('my-uuid'); + // addEventListener + externalApp.addEventListener('connected', () => { + console.log('external app connected'); + }, () => { + console.log('The registration was successful'); + }, (reason, err) => { + console.log(`Error Message: ${err.message} Error Stack: ${err.stack}`); + }); + // removeEventListener + const previousCallback = () => { }; + externalApp.removeEventListener('connected', previousCallback, () => { + console.log('The unregistration was successful'); + }, (reason, err) => { + console.log(`Error Message: ${err.message} Error Stack: ${err.stack}`); + }); + + // getInfo + externalApp.getInfo(info => { + console.log(info.parent.uuid, info.parent.name); + }, err => console.log(err)); +} + +function test_inter_application_bus() { + // addSubscribeListener + fin.desktop.InterApplicationBus.addSubscribeListener((uuid, topic, name) => { + console.log(`The application ${uuid} has subscribed to ${topic}`); + }); + // addUnsubscribeListener + fin.desktop.InterApplicationBus.addUnsubscribeListener((uuid, topic, name) => { + console.log(`The application ${uuid} has unsubscribed to ${topic}`); + }); + // removeSubscribeListener + const aRegisteredListener = (uuid: string, topic: string, name: string) => { }; + fin.desktop.InterApplicationBus.removeSubscribeListener(aRegisteredListener); + // removeUnsubscribeListener + fin.desktop.InterApplicationBus.removeUnsubscribeListener(aRegisteredListener); + // publish + fin.desktop.InterApplicationBus.publish("a topic", { + field1: "value1", + field2: "value2" + }); + // send + fin.desktop.InterApplicationBus.send("an application's uuid", "a topic", { + field1: "value1", + field2: "value2" + }); + // subscribe + fin.desktop.InterApplicationBus.subscribe("*", "a topic", (message, uuid, name) => { + console.log(`The application ${uuid} sent this message: ${message}`); + }); + // unsubscribe + const aRegisteredMessageListener = (message: any, senderUuid: string) => { + console.log(message, senderUuid); + }; + fin.desktop.InterApplicationBus.unsubscribe("*", "a topic", aRegisteredMessageListener); +} + +function test_notification() { + let notification: fin.OpenFinNotification; + // getCurrent + notification = fin.desktop.Notification.getCurrent(); + // close + notification.close(); + // sendMessage + notification = new fin.desktop.Notification({ + duration: 10, + url: "http://localhost:5000/Account/Register", + message: "Hello", + onShow: () => { }, + // onClose: () => { }, + onDismiss: () => { }, + // onClick: () => { }, + onMessage: () => { }, + onError: () => { } + }); + // sendMessageToApplication + notification.sendMessageToApplication("some message"); +} + +function test_system() { + // addEventListener + fin.desktop.System.addEventListener('monitor-info-changed', event => { + console.log("The monitor information has changed to: ", event); + }, () => { + console.log("The registration was successful"); + }, err => { + console.log("failure: " + err); + }); + // clearCache + fin.desktop.System.clearCache({ + cache: true, + cookies: true, + localStorage: true, + appcache: true, + userData: true + }); + // deleteCacheOnExit + fin.desktop.System.deleteCacheOnExit(() => { + console.log("successful"); + }, err => { + console.log("failure: " + err); + }); + // downloadAsset + const dirAppAsset = { + src: 'http://local:8000/dir.zip', + alias: 'dirApp', + version: '1.23.24', + target: 'dir.bat', + args: '' + }; + fin.desktop.System.downloadAsset(dirAppAsset, progress => { + const downloadedPercent = Math.floor((progress.downloadedBytes / progress.totalBytes) * 100); + console.log(`Downloaded ${downloadedPercent}%`); + }, p => { + console.log(`Downlod complete, can be found on ${p.path}`); + // lets launch our application asset. + // launchDirApp(); + }, (reason, err) => { + console.log(reason, err); + }); + // downloadRuntime + fin.desktop.System.downloadRuntime({ version: '9.61.31.56' }, progress => { + console.log(progress.downloadedBytes, progress.downloadedBytes); + }, () => console.log('download complete'), err => console.error(err)); + // downloadPreloadScript + const preloadScripts = [ + { url: 'http://whatever.com/script.js' } + ]; + fin.desktop.System.downloadPreloadScripts(preloadScripts, info => { + const downloadInfo = info[0]; + console.log(downloadInfo.success, downloadInfo.url, downloadInfo.error); + }, err => { + console.log(err); + }); + // exit + fin.desktop.System.exit(() => { + console.log("successful"); + }, err => { + console.log("failure: " + err); + }); + // flushCookieStore + fin.desktop.System.flushCookieStore(() => { + console.log('successful'); + }, err => { + console.log('failure', err); + }); + // getAllApplications + fin.desktop.System.getAllApplications(applicationInfoList => { + applicationInfoList.forEach(applicationInfo => { + console.log("Showing information for application with uuid: " + + applicationInfo.uuid); + console.log("isRunning: ", applicationInfo.isRunning); + }); + }); + // getAllExternalApplications + fin.desktop.System.getAllExternalApplications(externalAppsInfoList => { + externalAppsInfoList.forEach(appInfo => { + console.log(`External app connected to the runtime with UUID ${appInfo.uuid}`); + }); + }); + // getAllWindows + fin.desktop.System.getAllWindows(windowInfoList => { + windowInfoList.forEach(windowInfo => { + console.log("Showing information for application with uuid: ", windowInfo.uuid); + console.log("Main window: ", windowInfo.mainWindow); + console.log("Child windows: ", windowInfo.childWindows); + }); + }); + // getAppAssetInfo + fin.desktop.System.getAppAssetInfo({ alias: 'myAppAsset' }, info => { + console.log(info.alias, info.args, info.mandatory, info.src, info.target, info.version); + }, err => console.log(err)); + // getCommandLineArguments + fin.desktop.System.getCommandLineArguments(args => { + console.log("The command line arguments are " + args); + }); + // getCookieInfo + fin.desktop.System.getCookies({ name: 'myCookie1'}, cookies => { + const cookie1 = cookies[0]; + console.log(cookie1.name, cookie1.domain, cookie1.path); + }, err => console.log(err)); + // getDeviceId + fin.desktop.System.getDeviceId(id => { + console.log("The id of the device is: " + id); + }); + // getDeviceUserId + fin.desktop.System.getDeviceUserId(id => console.log(id), err => console.error(err)); + // getEntityInfo + fin.desktop.System.getEntityInfo('uuid', 'name', info => { + console.log(info.entityType, info.name, info.uuid, info.parent.name, info.parent.uuid); + }, err => console.log(err)); + // getEnvironmentVariable + fin.desktop.System.getEnvironmentVariable("APPDATA", variable => { + console.log("this is the APPDATA value", variable); + }); + // getFocusedWindow + fin.desktop.System.getFocusedWindow(win => { + console.log(win.uuid, win.name); + }, err => console.log(err)); + // getHostSpecs + fin.desktop.System.getHostSpecs(info => { + console.log(info); + }, error => { + console.log('There was an error:', error); + }); + // getLog + fin.desktop.System.getLog('debug-2015-01-08-22-27-53.log', log => { + console.log(log); + }); + // getLogList + fin.desktop.System.getLogList(logList => { + logList.forEach(logInfo => { + console.log(`The filename of the log is ${logInfo.name}, the size is ${logInfo.size}, and the date of creation is ${logInfo.date}`); + }); + }); + // getMinLogLevel + fin.desktop.System.getMinLogLevel(level => console.log(level), err => console.log(err)); + // getMonitorInfo + fin.desktop.System.getMonitorInfo(monitorInfo => { + console.log("This object contains information about all monitors: ", monitorInfo); + }); + // getMousePosition + fin.desktop.System.getMousePosition(mousePosition => { + console.log(`The mouse is located at left: ${mousePosition.left}, top: ${mousePosition.top}`); + }); + // getProcessList + fin.desktop.System.getProcessList(list => { + list.forEach(process => { + console.log(`UUID: ${process.uuid}, Application Name: ${process.name}`); + }); + }); + // getProxySettings + fin.desktop.System.getProxySettings(proxy => { + console.log(proxy); + }); + // getRvmInfo + fin.desktop.System.getRvmInfo(rvmInfoObject => { + console.log("RVM version:", rvmInfoObject.version); + console.log("RVM has been running since:", rvmInfoObject["start-time"]); + }, err => { + console.log("Failed to get rvm info, error message:", err); + }); + // getVersion + fin.desktop.System.getVersion(version => { + console.log("The version is " + version); + }); + // launchExternalProcess + fin.desktop.System.launchExternalProcess({ + path: "notepad", + arguments: "", + listener(result) { + console.log('the exit code', result.exitCode); + } + }, payload => { + console.log('Success:', payload.uuid); + }, error => { + console.log('Error:', error); + }); + // launch external process with an alias + fin.desktop.System.launchExternalProcess({ + // Additionally note that the executable found in the zip file specified in appAssets + // will default to the one mentioned by appAssets.target + // If the the path below refers to a specific path it will override this default + alias: "myApp", + listener(result) { + console.log('the exit code', result.exitCode); + } + }, payload => { + console.log('Success:', payload.uuid); + }, error => { + console.log('Error:', error); + }); + // + fin.desktop.System.launchExternalProcess({ + alias: "myApp", + arguments: "e f g", + listener(result) { + console.log('the exit code', result.exitCode); + } + }, payload => { + console.log('Success:', payload.uuid); + }, error => { + console.log('Error:', error); + }); + // + fin.desktop.System.launchExternalProcess({ + path: "C:\Users\ExampleUser\AppData\Local\OpenFin\OpenFinRVM.exe", + arguments: "--version", + certificate: { + trusted: true, + subject: 'O=OpenFin INC., L=New York, S=NY, C=US', + thumbprint: '3c a5 28 19 83 05 fe 69 88 e6 8f 4b 3a af c5 c5 1b 07 80 5b' + }, + listener(result) { + console.log('the exit code', result.exitCode); + } + }, payload => { + console.log('Success:', payload.uuid); + }, error => { + console.log('Error:', error); + }); + // log + fin.desktop.System.log("info", "An example log message", () => { + console.log("message successfully logged"); + }, err => { + console.log(err); + }); + // monitorExternalProcess + fin.desktop.System.monitorExternalProcess({ + pid: 2508, + listener(result) { + console.log('the exit code', result.exitCode); + } + }, payload => { + console.log("The process is now being monitored: ", payload.uuid); + }, error => { + console.log("Error:", error); + }); + // openUrlWithBrowser + fin.desktop.System.openUrlWithBrowser("https://developer.openf.in/", () => { + console.log("successful"); + }, err => { + console.log("failure: " + err); + }); + // readRegistryValue + fin.desktop.System.readRegistryValue('HKEY_SOMETHING', 'HARDWARE\\SOMETHING', 'BootSomething', info => { + console.log(info.data, info.rootKey, info.subkey, info.type, info.value); + }, err => console.log(err)); + // registerExternalConnection + fin.desktop.System.registerExternalConnection("remote-connection-uuid", (...args: any[]) => { + console.log(args); + }); + // releaseExternalProcess + fin.desktop.System.launchExternalProcess({ + path: "notepad", + arguments: "", + listener(result) { + console.log("The exit code", result.exitCode); + } + }, result => { + console.log("Result UUID is " + result.uuid); + + // release it. + fin.desktop.System.releaseExternalProcess(result.uuid, () => { + console.log("Process has been unmapped!"); + }, reason => { + console.log("failure: " + reason); + }); + }); + // removeEventListener + fin.desktop.System.removeEventListener("monitor-info-changed", (event) => { + console.log(event); + }, () => { + console.log("successful"); + }, (err: any) => { + console.log("failure: " + err); + }); + // setMinLogLevel + fin.desktop.System.setMinLogLevel("log level", () => console.log('Success'), (err: any) => console.error(err)); + // showDeveloperTools + fin.desktop.System.showDeveloperTools("uuid", "name", () => { + console.log("successful"); + }, err => { + console.log("failure: " + err); + }); + // terminateExternalProcess + fin.desktop.System.launchExternalProcess({ + // notepad is in the system's PATH + path: "notepad", + arguments: "", + listener(result) { + console.log("The exit code", result.exitCode); + } + }, result => { + console.log("Result UUID is " + result.uuid); + + // Attempt to close the process. Terminate after 4 seconds if it + // has not done so. + fin.desktop.System.terminateExternalProcess(result.uuid, 4000, info => { + console.log("Termination result " + info.result); + }, reason => { + console.log("failure: " + reason); + }); + }); + // updateProxySettings + fin.desktop.System.updateProxySettings("type", "proxyAddress", 8080, () => { + console.log('success'); + }, err => { + console.log(err); + }); +} + +function test_system_clipboard() { + // availableFormats + fin.desktop.System.Clipboard.availableFormats(null, formats => { + formats.forEach(format => console.log(`The format ${format} is available to read`)); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // readHtml + fin.desktop.System.Clipboard.readHtml(null, html => { + console.log(`This is the html from the clipboard: ${html}`); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // readRtf + fin.desktop.System.Clipboard.readRtf(null, rtf => { + console.log(`This is the rtf from the clipboard: ${rtf}`); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // readText + fin.desktop.System.Clipboard.readText(null, text => { + console.log(`This is the text from the clipboard: ${text}`); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // write + fin.desktop.System.Clipboard.write({ + text: 'Hello Text!', + html: '

Hello Html

', + rtf: 'Hello Rtf' + }, null, () => { + console.log('Success!!'); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // writeHtml + fin.desktop.System.Clipboard.writeHtml('

Hello World

', null, () => { + console.log('Success!!'); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // writeRtf + fin.desktop.System.Clipboard.writeRtf('Hello World!', null, () => { + console.log('Success!!'); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); + // writeText + fin.desktop.System.Clipboard.writeText('Hello World', null, () => { + console.log('Success!!'); + }, (reason, err) => { + console.log(`Error while reading the clipboard Message: ${err.message}, Stack: ${err.stack}`); + }); +} + +function test_window() { + let finWindow: fin.OpenFinWindow; + // constructor + finWindow = new fin.desktop.Window({ + name: "childWindow", + url: "child.html", + defaultWidth: 320, + defaultHeight: 320, + defaultTop: 10, + defaultLeft: 300, + frame: false, + resizable: false, + state: "normal" + }, () => { + const _win = finWindow.getNativeWindow(); + _win.addEventListener("DOMContentLoaded", () => { finWindow.show(); }); + }, error => { + console.log("Error creating window:", error); + }); + // getCurrent + finWindow = fin.desktop.Window.getCurrent(); + // getNativeWindow + let nativeWindow: Window; + nativeWindow = finWindow.getNativeWindow(); + // getParentApplication + let parentApp: fin.OpenFinApplication; + parentApp = finWindow.getParentApplication(); + // getParentWindow + let parentFinWindow: fin.OpenFinWindow; + parentFinWindow = finWindow.getParentWindow(); + // wrap + finWindow = fin.desktop.Window.wrap("uuid", "name"); + // addEventListener + finWindow.addEventListener("bounds-changed", event => { + console.log("The window has been moved or resized"); + }, () => { + console.log("The registration was successful"); + }, reason => { + console.log("failure:" + reason); + }); + // animate + finWindow.animate({ + opacity: { + opacity: 0.15, + duration: 1000 + }, + position: { + left: 10, + top: 10, + duration: 3000 + } + }, { + interrupt: false + }, evt => { + // Callback will only fire after both "opacity" and "position" have finished animating. + }); + // authenticate + finWindow.addEventListener('auth-requested', evt => { + finWindow.authenticate('userName', 'P@assw0rd', () => { }, (reason, err) => { + console.log("failure:", err); + }); + }); + // blur + finWindow.blur(); + // bringToFront + finWindow.bringToFront(); + // close + finWindow.close(); + // disableFrame + finWindow.disableFrame(); + // enableFrame + finWindow.enableFrame(); + // flash + finWindow.flash(); + // focus + finWindow.focus(); + // getBounds + finWindow.getBounds(bounds => { + console.log(`top: ${bounds.top} left: ${bounds.left} height: ${bounds.height} width: ${bounds.width}`); + }); + // getOptions + finWindow.getOptions(options => { + console.log(options); + }); + // getSnapshot + finWindow.getSnapshot(base64Snapshot => { + console.log("data:image/png;base64," + base64Snapshot); + }); + // getState + finWindow.getState(state => { + console.log("state: " + state); + }); + // getZoomLevel + finWindow.getZoomLevel(level => { + console.log("zoom level: " + level); + }, error => { + console.log('error:', error); + }); + // hide + finWindow.hide(); + // isShowing + finWindow.isShowing(showing => { + console.log("the window is " + (showing ? "showing" : "hidden")); + }); + // joinGroup + let secondWindow = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "secondWindow", + autoShow: true + }, () => { + // When mainWindow moves or is moved, secondWindow moves by the same amount + secondWindow.joinGroup(finWindow); + }); + // leaveGroup + secondWindow = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "secondWindow", + autoShow: true + }, () => { + // When finWindow moves or is moved, secondWindow moves by the same amount + secondWindow.joinGroup(finWindow, () => { + // once we are in the group, lets leave it. + secondWindow.leaveGroup(); + }); + }); + // maximize + finWindow.maximize(); + // mergeGroups + { + const finWindowOne = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "finWindowOne", + autoShow: true + }); + const finWindowTwo = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "finWindowTwo", + autoShow: true + }); + const finWindowThree = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "finWindowThree", + autoShow: true + }); + const finWindowFour = new fin.desktop.Window({ + url: "http://www.openfin.co", + name: "finWindowFour", + autoShow: true + }); + // When finWindowOne moves or is moved, finWindowTwo moves by the same amount + finWindowOne.joinGroup(finWindowTwo); + // When finWindowThree moves or is moved, finWindowFour moves by the same amount + finWindowThree.joinGroup(finWindowFour); + // finWindowOne, finWindowTwo, finWindowThree, and finWindowFour now move together in the same group + finWindowOne.mergeGroups(finWindowThree); + } + // minimize + finWindow.minimize(); + // moveBy + finWindow.moveBy(10, 10); + // moveTo + finWindow.moveTo(100, 200); + // removeEventListener + finWindow.removeEventListener("bounds-changed", event => { + console.log(event); + }); + // resizeBy + finWindow.resizeBy(10, 10, "top-right"); + // resizeTo + finWindow.resizeTo(10, 10, "top-right"); + // restore + finWindow.restore(); + // setAsForeground + finWindow.setAsForeground(); + // setBounds + finWindow.setBounds(100, 200, 400, 400); + // setZoomLevel + finWindow.setZoomLevel(10); + // show + finWindow.show(); + // showAt + finWindow.showAt(10, 10, false); + // stopFlashing + finWindow.stopFlashing(); + // updateOptions + finWindow.updateOptions({ + frame: false, + maxWidth: 500 + }); +} + +function test_frame() { + // wrap + const frame = fin.desktop.Frame.wrap('uuid', 'name'); + // getCurrent + const currentFrame = fin.desktop.Frame.getCurrent(); + // addEventlistener + frame.addEventListener('event', () => console.log('on event'), () => console.log('success'), err => console.error(err)); + // removeEventListener + frame.removeEventListener('event', () => console.log('on event'), () => console.log('success'), err => console.error(err)); + // getInfo + frame.getInfo(info => { + console.log(info.uuid, info.name, info.entityType, info.parent.uuid, info.parent.name); + }, err => console.error(err)); + // getParentWindow + frame.getParentWindow(parent => { + console.log(parent.uuid, parent.name, parent.entityType, parent.parent.uuid, parent.parent.name); + }, err => console.error(err)); +} diff --git a/types/openfin/v34/tsconfig.json b/types/openfin/v34/tsconfig.json new file mode 100644 index 0000000000..2a2c9d108b --- /dev/null +++ b/types/openfin/v34/tsconfig.json @@ -0,0 +1,81 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "openfin-tests.ts", + "_v2/api/application/application.d.ts", + "_v2/api/base.d.ts", + "_v2/api/clipboard/clipboard.d.ts", + "_v2/api/clipboard/write-request.d.ts", + "_v2/api/external-application/external-application.d.ts", + "_v2/api/fin.d.ts", + "_v2/api/frame/frame.d.ts", + "_v2/api/global-hotkey/index.d.ts", + "_v2/api/interappbus/channel/channel.d.ts", + "_v2/api/interappbus/channel/client.d.ts", + "_v2/api/interappbus/channel/index.d.ts", + "_v2/api/interappbus/channel/provider.d.ts", + "_v2/api/interappbus/interappbus.d.ts", + "_v2/api/notification/notification.d.ts", + "_v2/api/system/application.d.ts", + "_v2/api/system/clearCacheOption.d.ts", + "_v2/api/system/cookie.d.ts", + "_v2/api/system/crashReporterOption.d.ts", + "_v2/api/system/download-asset.d.ts", + "_v2/api/system/download-preload.d.ts", + "_v2/api/system/entity.d.ts", + "_v2/api/system/external-process.d.ts", + "_v2/api/system/host-specs.d.ts", + "_v2/api/system/log.d.ts", + "_v2/api/system/monitor.d.ts", + "_v2/api/system/point.d.ts", + "_v2/api/system/process.d.ts", + "_v2/api/system/proxy.d.ts", + "_v2/api/system/registry-info.d.ts", + "_v2/api/system/runtime-info.d.ts", + "_v2/api/system/rvm.d.ts", + "_v2/api/system/system.d.ts", + "_v2/api/system/window.d.ts", + "_v2/api/window/bounds-changed.d.ts", + "_v2/api/window/bounds.d.ts", + "_v2/api/window/transition.d.ts", + "_v2/api/window/window.d.ts", + "_v2/environment/environment.d.ts", + "_v2/environment/node-env.d.ts", + "_v2/environment/openfin-env.d.ts", + "_v2/environment/openfin-renderer-api.d.ts", + "_v2/identity.d.ts", + "_v2/launcher/launcher.d.ts", + "_v2/launcher/nix-launch.d.ts", + "_v2/launcher/util.d.ts", + "_v2/launcher/win-launch.d.ts", + "_v2/main.d.ts", + "_v2/of-main.d.ts", + "_v2/transport/elipc.d.ts", + "_v2/transport/port-discovery.d.ts", + "_v2/transport/transport-errors.d.ts", + "_v2/transport/transport.d.ts", + "_v2/transport/websocket.d.ts", + "_v2/transport/wire.d.ts", + "_v2/util/normalize-config.d.ts", + "_v2/util/promises.d.ts", + "_v2/util/ref-counter.d.ts" + ] +} diff --git a/types/openfin/v34/tslint.json b/types/openfin/v34/tslint.json new file mode 100644 index 0000000000..f95a4974aa --- /dev/null +++ b/types/openfin/v34/tslint.json @@ -0,0 +1,18 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "max-line-length": false, + "no-redundant-jsdoc-2": false, + "jsdoc-format": false, + "no-var-keyword": false, + "whitespace": false, + "semicolon": false, + "strict-export-declare-modifiers": false, + "array-type": false, + "unified-signatures": false, + "void-return": false, + "ban-types": false, + "callable-types": false, + "no-const-enum": false + } +} From 6b2775d9b4606067ea03bdfa553a4414edd220e9 Mon Sep 17 00:00:00 2001 From: Chris Yungmann Date: Fri, 26 Oct 2018 12:11:17 -0500 Subject: [PATCH 045/213] [jasmine] make SpyObjMethodNames more strongly-typed When a generic type argument is provided, require the method names array to only include keys of the generic type argument and for the object syntax, additionally require that the setup returned type matches the return type of the method. Requires TS 2.8 for conditional types. --- types/angular-wizard/index.d.ts | 2 +- types/frisby/index.d.ts | 2 +- types/frisby/v0/index.d.ts | 2 +- types/gulp-jasmine/index.d.ts | 2 +- types/jasmine-ajax/index.d.ts | 2 +- types/jasmine-data_driven_tests/index.d.ts | 2 +- types/jasmine-es6-promise-matchers/index.d.ts | 2 +- types/jasmine-fixture/index.d.ts | 2 +- types/jasmine-jquery/index.d.ts | 2 +- types/jasmine-matchers/index.d.ts | 2 +- types/jasmine-node/index.d.ts | 2 +- types/jasmine-promise-matchers/index.d.ts | 2 +- types/jasmine/index.d.ts | 12 +++++++++--- types/jasmine_dom_matchers/index.d.ts | 2 +- types/jasminewd2/index.d.ts | 2 +- types/karma-jasmine/index.d.ts | 2 +- types/protractor-helpers/index.d.ts | 2 +- types/saywhen/index.d.ts | 2 +- 18 files changed, 26 insertions(+), 20 deletions(-) diff --git a/types/angular-wizard/index.d.ts b/types/angular-wizard/index.d.ts index 33fa8b2b0a..fa14a2f2f7 100644 --- a/types/angular-wizard/index.d.ts +++ b/types/angular-wizard/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/mgonto/angular-wizard // Definitions by: Marko Jurisic , Ronald Wildenberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 import * as angular from 'angular'; diff --git a/types/frisby/index.d.ts b/types/frisby/index.d.ts index 9057edae6d..1bcd6fdabb 100644 --- a/types/frisby/index.d.ts +++ b/types/frisby/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Christopher E. Woodland // Johnny Li // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 2.8 /// diff --git a/types/frisby/v0/index.d.ts b/types/frisby/v0/index.d.ts index 37ccb7c15f..bb41e93321 100644 --- a/types/frisby/v0/index.d.ts +++ b/types/frisby/v0/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/vlucas/frisby // Definitions by: Johnny Li // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/gulp-jasmine/index.d.ts b/types/gulp-jasmine/index.d.ts index d36896d855..e1693e38cd 100644 --- a/types/gulp-jasmine/index.d.ts +++ b/types/gulp-jasmine/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/sindresorhus/gulp-jasmine#readme // Definitions by: Andrey Lalev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// /// diff --git a/types/jasmine-ajax/index.d.ts b/types/jasmine-ajax/index.d.ts index 2e111a19f3..ad95004612 100644 --- a/types/jasmine-ajax/index.d.ts +++ b/types/jasmine-ajax/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/jasmine/jasmine-ajax // Definitions by: Louis Grignon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 interface JasmineAjaxResponse { status?: number; diff --git a/types/jasmine-data_driven_tests/index.d.ts b/types/jasmine-data_driven_tests/index.d.ts index 54a7ea0441..6e6a070eaa 100644 --- a/types/jasmine-data_driven_tests/index.d.ts +++ b/types/jasmine-data_driven_tests/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/gburghardt/jasmine-data_driven_tests // Definitions by: Anthony MacKinnon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 declare var all: JasmineDataDrivenTest; declare var xall: JasmineDataDrivenTest; diff --git a/types/jasmine-es6-promise-matchers/index.d.ts b/types/jasmine-es6-promise-matchers/index.d.ts index e80b9241c7..0a1c5360be 100644 --- a/types/jasmine-es6-promise-matchers/index.d.ts +++ b/types/jasmine-es6-promise-matchers/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/bvaughn/jasmine-es6-promise-matchers // Definitions by: Stephen Lautier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/jasmine-fixture/index.d.ts b/types/jasmine-fixture/index.d.ts index 82449ffc01..cb68513a79 100644 --- a/types/jasmine-fixture/index.d.ts +++ b/types/jasmine-fixture/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/searls/jasmine-fixture // Definitions by: Craig Brett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/jasmine-jquery/index.d.ts b/types/jasmine-jquery/index.d.ts index 0dc023f33a..1675992a7b 100644 --- a/types/jasmine-jquery/index.d.ts +++ b/types/jasmine-jquery/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/velesin/jasmine-jquery // Definitions by: Gregor Stamac // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// /// diff --git a/types/jasmine-matchers/index.d.ts b/types/jasmine-matchers/index.d.ts index e5167e2084..7284ffce49 100644 --- a/types/jasmine-matchers/index.d.ts +++ b/types/jasmine-matchers/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/uxebu/jasmine-matchers // Definitions by: Bart van der Schoor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /* Typings 2013 Bart van der Schoor diff --git a/types/jasmine-node/index.d.ts b/types/jasmine-node/index.d.ts index dcb55bcd2d..3270b356bd 100644 --- a/types/jasmine-node/index.d.ts +++ b/types/jasmine-node/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/mhevery/jasmine-node // Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/jasmine-promise-matchers/index.d.ts b/types/jasmine-promise-matchers/index.d.ts index e2b3c0116e..3c05b5304e 100644 --- a/types/jasmine-promise-matchers/index.d.ts +++ b/types/jasmine-promise-matchers/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/bvaughn/jasmine-promise-matchers // Definitions by: Matthew Hill // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 254714ff94..8e8ca9489f 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -1,8 +1,14 @@ // Type definitions for Jasmine 2.8.0 // Project: http://jasmine.github.io/ -// Definitions by: Boris Yankov , Theodore Brown , David Pärsson , Gabe Moothart , Lukas Zech , Boris Breuer +// Definitions by: Boris Yankov +// Theodore Brown +// David Pärsson +// Gabe Moothart +// Lukas Zech +// Boris Breuer +// Chris Yungmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 // For ddescribe / iit use : https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/karma-jasmine/karma-jasmine.d.ts /** @@ -129,7 +135,7 @@ declare function waits(timeout?: number): void; declare namespace jasmine { type Expected = T | ObjectContaining | Any | Spy; - type SpyObjMethodNames = string[] | {[methodName: string]: any} | Array; + type SpyObjMethodNames = T extends undefined ? (ReadonlyArray | {[methodName: string]: any}) : (ReadonlyArray | {[P in keyof T]?: ReturnType any ? T[P] : any>}); var clock: () => Clock; diff --git a/types/jasmine_dom_matchers/index.d.ts b/types/jasmine_dom_matchers/index.d.ts index 5ab86cc799..b3a625f08c 100644 --- a/types/jasmine_dom_matchers/index.d.ts +++ b/types/jasmine_dom_matchers/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/charleshansen/jasmine_dom_matchers // Definitions by: Yaroslav Admin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/jasminewd2/index.d.ts b/types/jasminewd2/index.d.ts index efabeaafe0..7e75d87991 100644 --- a/types/jasminewd2/index.d.ts +++ b/types/jasminewd2/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Sammy Jelin // George Kalpakas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/karma-jasmine/index.d.ts b/types/karma-jasmine/index.d.ts index ae929c6af3..73ca7a480e 100644 --- a/types/karma-jasmine/index.d.ts +++ b/types/karma-jasmine/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/karma-runner/karma-jasmine // Definitions by: Michel Salib // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// diff --git a/types/protractor-helpers/index.d.ts b/types/protractor-helpers/index.d.ts index bc52455d6e..686c2442be 100644 --- a/types/protractor-helpers/index.d.ts +++ b/types/protractor-helpers/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/wix/protractor-helpers // Definitions by: John Cant // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 import * as webdriver from "selenium-webdriver"; diff --git a/types/saywhen/index.d.ts b/types/saywhen/index.d.ts index 1c78d4a78e..8c2310312d 100644 --- a/types/saywhen/index.d.ts +++ b/types/saywhen/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/pushtechnology/saywhen // Definitions by: Sean Sobey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 /// From be48833bf936a77fb956b345046b060a2dbd5bff Mon Sep 17 00:00:00 2001 From: licui Date: Fri, 26 Oct 2018 15:40:51 -0400 Subject: [PATCH 046/213] update v2 to latest --- .../_v2/api/application/application.d.ts | 66 ++++--- types/openfin/_v2/api/base.d.ts | 45 ++--- types/openfin/_v2/api/events/application.d.ts | 56 ++++++ types/openfin/_v2/api/events/base.d.ts | 18 ++ types/openfin/_v2/api/events/channel.d.ts | 10 + types/openfin/_v2/api/events/emitterMap.d.ts | 15 ++ .../_v2/api/events/eventAggregator.d.ts | 5 + .../_v2/api/events/externalApplication.d.ts | 5 + types/openfin/_v2/api/events/frame.d.ts | 9 + .../openfin/_v2/api/events/globalHotkey.d.ts | 11 ++ .../openfin/_v2/api/events/notifications.d.ts | 8 + types/openfin/_v2/api/events/system.d.ts | 22 +++ types/openfin/_v2/api/events/window.d.ts | 176 ++++++++++++++++++ .../external-application.d.ts | 26 ++- types/openfin/_v2/api/frame/frame.d.ts | 38 +++- .../openfin/_v2/api/global-hotkey/index.d.ts | 7 +- .../_v2/api/interappbus/channel/index.d.ts | 21 +-- .../_v2/api/interappbus/channel/provider.d.ts | 10 +- .../_v2/api/notification/notification.d.ts | 5 +- types/openfin/_v2/api/system/system.d.ts | 16 +- types/openfin/_v2/api/window/window.d.ts | 75 +++++--- types/openfin/_v2/transport/transport.d.ts | 19 +- types/openfin/index.d.ts | 5 +- 23 files changed, 545 insertions(+), 123 deletions(-) create mode 100644 types/openfin/_v2/api/events/application.d.ts create mode 100644 types/openfin/_v2/api/events/base.d.ts create mode 100644 types/openfin/_v2/api/events/channel.d.ts create mode 100644 types/openfin/_v2/api/events/emitterMap.d.ts create mode 100644 types/openfin/_v2/api/events/eventAggregator.d.ts create mode 100644 types/openfin/_v2/api/events/externalApplication.d.ts create mode 100644 types/openfin/_v2/api/events/frame.d.ts create mode 100644 types/openfin/_v2/api/events/globalHotkey.d.ts create mode 100644 types/openfin/_v2/api/events/notifications.d.ts create mode 100644 types/openfin/_v2/api/events/system.d.ts create mode 100644 types/openfin/_v2/api/events/window.d.ts diff --git a/types/openfin/_v2/api/application/application.d.ts b/types/openfin/_v2/api/application/application.d.ts index 616501834d..b5797aa7ad 100644 --- a/types/openfin/_v2/api/application/application.d.ts +++ b/types/openfin/_v2/api/application/application.d.ts @@ -1,10 +1,11 @@ -import { EmitterBase, Base, Reply, RuntimeEvent } from '../base'; +import { EmitterBase, Base, Reply } from '../base'; import { Identity } from '../../identity'; import { _Window } from '../window/window'; import { Point } from '../system/point'; import { MonitorInfo } from '../system/monitor'; import Transport from '../../transport/transport'; import Bounds from '../window/bounds'; +import { ApplicationEvents } from '../events/application'; export interface TrayIconClickReply extends Point, Reply<'application', 'tray-icon-clicked'> { button: number; monitorInfo: MonitorInfo; @@ -32,32 +33,54 @@ export interface TrayInfo { x: number; y: number; } +/** + * @lends Application + */ export default class ApplicationModule extends Base { /** - * Returns an Application object that represents an existing application. - * @param { Identity } indentity + * Asynchronously returns an Application object that represents an existing application. + * @param { Identity } identity * @return {Promise.} * @tutorial Application.wrap + * @static */ wrap(identity: Identity): Promise; + /** + * Synchronously returns an Application object that represents an existing application. + * @param { Identity } identity + * @return {Application} + * @tutorial Application.wrapSync + * @static + */ + wrapSync(identity: Identity): Application; /** * Creates a new Application. * @param {*} appOptions * @return {Promise.} * @tutorial Application.create + * @static */ create(appOptions: any): Promise; /** - * Returns an Application object that represents the current application + * Asynchronously returns an Application object that represents the current application * @return {Promise.} * @tutorial Application.getCurrent + * @static */ getCurrent(): Promise; + /** + * Synchronously returns an Application object that represents the current application + * @return {Application} + * @tutorial Application.getCurrentSync + * @static + */ + getCurrentSync(): Application; /** * Retrieves application's manifest and returns a wrapped application. * @param {string} manifestUrl - The URL of app's manifest. * @return {Promise.} * @tutorial Application.createFromManifest + * @static */ createFromManifest(manifestUrl: string): Promise; } @@ -66,12 +89,11 @@ export default class ApplicationModule extends Base { * execute, show/close an application as well as listen to application events. * @class */ -export declare class Application extends EmitterBase { +export declare class Application extends EmitterBase { identity: Identity; _manifestUrl?: string; private window; constructor(wire: Transport, identity: Identity); - protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; private windowListFromIdentityList; /** * Determines if the application is currently running. @@ -120,6 +142,12 @@ export declare class Application extends EmitterBase { * @tutorial Application.getShortcuts */ getShortcuts(): Promise; + /** + * Returns the current zoom level of the application. + * @return {Promise.} + * @tutorial Application.getZoomLevel + */ + getZoomLevel(): Promise; /** * Returns an instance of the main Window of the application * @return {Promise.<_Window>} @@ -175,6 +203,14 @@ export declare class Application extends EmitterBase { * @tutorial Application.setShortcuts */ setShortcuts(config: ConfigInterface): Promise; + /** + * Sets the zoom level of the application. The original size is 0 and each increment above or below represents zooming 20% + * larger or smaller to default limits of 300% and 50% of original size, respectively. + * @param { number } level The zoom level + * @return {Promise.} + * @tutorial Application.setZoomLevel + */ + setZoomLevel(level: number): Promise; /** * @summary Retrieves information about the system tray. * @desc The only information currently returned is the position and dimensions. @@ -203,21 +239,3 @@ export declare class Application extends EmitterBase { */ getInfo(): Promise; } -export interface Application { - on(type: 'closed', listener: (data: Reply<'application', 'closed'>) => void): Promise; - on(type: 'initialized', listener: (data: Reply<'application', 'initialized'>) => void): Promise; - on(type: 'connected', listener: (data: Reply<'application', 'connected'>) => void): Promise; - on(type: 'crashed', listener: (data: Reply<'application', 'crashed'>) => void): Promise; - on(type: 'error', listener: (data: Reply<'application', 'error'>) => void): Promise; - on(type: 'not-responding', listener: (data: Reply<'application', 'not-responding'>) => void): Promise; - on(type: 'out-of-memory', listener: (data: Reply<'application', 'out-of-memory'>) => void): Promise; - on(type: 'responding', listener: (data: Reply<'application', 'responding'>) => void): Promise; - on(type: 'started', listener: (data: Reply<'application', 'started'>) => void): Promise; - on(type: 'run-requested', listener: (data: Reply<'application', 'run-requested'>) => void): Promise; - on(type: 'window-navigation-rejected', listener: (data: NavigationRejectedReply) => void): Promise; - on(type: 'window-created', listener: (data: Reply<'application', 'window-created'>) => void): Promise; - on(type: 'window-closed', listener: (data: Reply<'application', 'window-closed'>) => void): Promise; - on(type: 'tray-icon-clicked', listener: (data: TrayIconClickReply) => void): Promise; - on(type: 'removeListener', listener: (eventType: string) => void): Promise; - on(type: 'newListener', listener: (eventType: string) => void): Promise; -} diff --git a/types/openfin/_v2/api/base.d.ts b/types/openfin/_v2/api/base.d.ts index 1f17e1f24f..5cbb8658a7 100644 --- a/types/openfin/_v2/api/base.d.ts +++ b/types/openfin/_v2/api/base.d.ts @@ -1,10 +1,11 @@ /// -import Transport, { Message } from '../transport/transport'; +import Transport from '../transport/transport'; import { Identity } from '../identity'; import { EventEmitter } from 'events'; -export interface RuntimeEvent extends Identity { - topic: string; - type: string | symbol; +import { EmitterAccessor } from './events/emitterMap'; +import { BaseEventMap } from './events/base'; +interface SubOptions { + timestamp?: number; } export declare class Base { wire: Transport; @@ -14,26 +15,27 @@ export declare class Base { readonly me: Identity; protected isNodeEnvironment: () => boolean; protected isOpenFinEnvironment: () => boolean; - protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; } -export declare class EmitterBase extends Base { +export declare class EmitterBase extends Base { + private emitterAccessor; protected identity: Identity; - protected emitter: EventEmitter; - listeners: (event: string | symbol) => Function[]; + constructor(wire: Transport, emitterAccessor: EmitterAccessor); + eventNames: () => (string | symbol)[]; + emit: >(eventName: E, payload: E extends Extract ? EventTypes[E] : any, ...args: any[]) => boolean; + private hasEmitter; + private getEmitter; + listeners: (type: string | symbol) => Function[]; listenerCount: (type: string | symbol) => number; - constructor(wire: Transport); - emit: (eventName: string | symbol, ...args: any[]) => void; - protected onmessage: (message: Message) => boolean; - protected registerEventListener: (listener: RuntimeEvent) => Promise>; - protected deregisterEventListener: (listener: RuntimeEvent) => Promise>; - on(eventType: string, listener: (...args: any[]) => void): Promise; - addListener: (eventType: string, listener: (...args: any[]) => void) => Promise; - once(eventType: string, listener: (...args: any[]) => void): Promise; - prependListener(eventType: string, listener: (...args: any[]) => void): Promise; - prependOnceListener(eventType: string, listener: (...args: any[]) => void): Promise; - removeListener(eventType: string, listener: (...args: any[]) => void): Promise; - protected deregisterAllListeners: (eventType: string | symbol) => Promise>; - removeAllListeners(eventType?: string): Promise; + protected registerEventListener: (eventType: string | symbol | Extract, options?: SubOptions) => Promise; + protected deregisterEventListener: (eventType: string | symbol | Extract, options?: SubOptions) => Promise; + on | string | symbol>(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions): Promise; + addListener: >(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions) => Promise; + once | string | symbol>(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions): Promise; + prependListener | string | symbol>(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions): Promise; + prependOnceListener | string | symbol>(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions): Promise; + removeListener | string | symbol>(eventType: E, listener: (payload: E extends keyof EventTypes ? EventTypes[E] : any, ...args: any[]) => void, options?: SubOptions): Promise; + protected deregisterAllListeners: (eventType: string | symbol | Extract) => Promise; + removeAllListeners(eventType?: Extract | string | symbol): Promise; } export declare class Reply implements Identity { topic: TOPIC; @@ -41,3 +43,4 @@ export declare class Reply imp uuid: string; name?: string; } +export {}; diff --git a/types/openfin/_v2/api/events/application.d.ts b/types/openfin/_v2/api/events/application.d.ts new file mode 100644 index 0000000000..444d358cbd --- /dev/null +++ b/types/openfin/_v2/api/events/application.d.ts @@ -0,0 +1,56 @@ +import { WindowEvent, BaseEventMap, ApplicationEvent } from './base'; +import { WindowAlertRequestedEvent, WindowAuthRequestedEvent, WindowEndLoadEvent, PropagatedWindowEvents } from './window'; +export interface CrashedEvent { + reason: 'normal-termination' | 'abnormal-termination' | 'killed' | 'crashed' | 'still-running' | 'launch-failed' | 'out-of-memory'; +} +export interface RunRequestedEvent extends ApplicationEvent { + userAppConfigArgs: any; +} +export interface TrayIconClicked extends ApplicationEvent { + button: 0 | 1 | 2; + x: number; + y: number; + monitorInfo: any; +} +export interface ApplicationEventMapping extends BaseEventMap { + 'closed': ApplicationEvent; + 'connected': ApplicationEvent; + 'crashed': CrashedEvent & ApplicationEvent; + 'initialized': ApplicationEvent; + 'manifest-changed': ApplicationEvent; + 'not-responding': ApplicationEvent; + 'responding': ApplicationEvent; + 'run-requested': RunRequestedEvent; + 'started': ApplicationEvent; + 'tray-icon-clicked': TrayIconClicked; + 'window-alert-requested': WindowAlertRequestedEvent; + 'window-auth-requested': WindowAuthRequestedEvent; + 'window-created': WindowEvent; + 'window-end-load': WindowEndLoadEvent; + 'window-not-responding': WindowEvent; + 'window-responding': WindowEvent; + 'window-show-requested': WindowEvent; + 'window-start-load': WindowEvent; +} +export interface PropagatedApplicationEventMapping { + 'application-closed': ApplicationEvent; + 'application-connected': ApplicationEvent; + 'application-crashed': CrashedEvent & ApplicationEvent; + 'application-initialized': ApplicationEvent; + 'application-manifest-changed': ApplicationEvent; + 'application-not-responding': ApplicationEvent; + 'application-responding': ApplicationEvent; + 'application-started': ApplicationEvent; + 'application-tray-icon-clicked': TrayIconClicked; + 'window-created': WindowEvent; + 'window-end-load': WindowEndLoadEvent; + 'window-not-responding': WindowEvent; + 'window-responding': WindowEvent; + 'window-start-load': WindowEvent; +} +export declare type ApplicationEvents = PropagatedWindowEvents<'application'> & { + [Type in keyof ApplicationEventMapping]: ApplicationEventMapping<'application', Type>[Type]; +}; +export declare type PropagatedApplicationEvents = { + [Type in keyof PropagatedApplicationEventMapping]: PropagatedApplicationEventMapping[Type]; +}; diff --git a/types/openfin/_v2/api/events/base.d.ts b/types/openfin/_v2/api/events/base.d.ts new file mode 100644 index 0000000000..700f82679b --- /dev/null +++ b/types/openfin/_v2/api/events/base.d.ts @@ -0,0 +1,18 @@ +import { FrameEvent } from './frame'; +export declare type RuntimeEvent = Topic extends 'window' ? WindowEvent : Topic extends 'frame' ? FrameEvent : Topic extends 'application' ? ApplicationEvent : BaseEvent; +export interface BaseEvent { + topic: Topic; + type: Type; +} +export interface ApplicationEvent extends BaseEvent { + uuid: string; +} +export interface WindowEvent extends ApplicationEvent { + name: string; +} +export declare function getTopic(e: RuntimeEvent): string; +export interface BaseEventMap { + [name: string]: any; + 'newListener': string; + 'listenerRemoved': string; +} diff --git a/types/openfin/_v2/api/events/channel.d.ts b/types/openfin/_v2/api/events/channel.d.ts new file mode 100644 index 0000000000..3c448071cb --- /dev/null +++ b/types/openfin/_v2/api/events/channel.d.ts @@ -0,0 +1,10 @@ +import { BaseEventMap, ApplicationEvent } from './base'; +export interface ChannelEvent extends ApplicationEvent<'channel', Type> { + channelName: string; + channelId: string; + name?: string; +} +export interface ChannelEvents extends BaseEventMap { + 'connected': ChannelEvent<'connected'>; + 'disconnected': ChannelEvent<'disconnected'>; +} diff --git a/types/openfin/_v2/api/events/emitterMap.d.ts b/types/openfin/_v2/api/events/emitterMap.d.ts new file mode 100644 index 0000000000..aa3fb498e8 --- /dev/null +++ b/types/openfin/_v2/api/events/emitterMap.d.ts @@ -0,0 +1,15 @@ +/// +import { EventEmitter } from 'events'; +export declare class EmitterMap { + private storage; + constructor(); + private hashKeys; + get(keys: EmitterAccessor): EventEmitter; + has(keys: EmitterAccessor): boolean; + delete(keys: EmitterAccessor): boolean; +} +export declare type SystemEmitterAccessor = ['system']; +export declare type ApplicationEmitterAccessor = ['application', string]; +export declare type WindowEmitterAccessor = ['window', string, string]; +export declare type HotkeyEmitterAccessor = ['global-hotkey']; +export declare type EmitterAccessor = SystemEmitterAccessor | ApplicationEmitterAccessor | WindowEmitterAccessor | HotkeyEmitterAccessor | string[]; diff --git a/types/openfin/_v2/api/events/eventAggregator.d.ts b/types/openfin/_v2/api/events/eventAggregator.d.ts new file mode 100644 index 0000000000..ac7b7ca1b2 --- /dev/null +++ b/types/openfin/_v2/api/events/eventAggregator.d.ts @@ -0,0 +1,5 @@ +import { Message } from '../../transport/transport'; +import { EmitterMap } from './emitterMap'; +export declare class EventAggregator extends EmitterMap { + dispatchEvent: (message: Message) => boolean; +} diff --git a/types/openfin/_v2/api/events/externalApplication.d.ts b/types/openfin/_v2/api/events/externalApplication.d.ts new file mode 100644 index 0000000000..f7cd85f45d --- /dev/null +++ b/types/openfin/_v2/api/events/externalApplication.d.ts @@ -0,0 +1,5 @@ +import { RuntimeEvent, BaseEventMap } from './base'; +export interface ExternalApplicationEvents extends BaseEventMap { + connected: RuntimeEvent<'externalapplication', 'connected'>; + disconnected: RuntimeEvent<'externalapplication', 'disconnected'>; +} diff --git a/types/openfin/_v2/api/events/frame.d.ts b/types/openfin/_v2/api/events/frame.d.ts new file mode 100644 index 0000000000..c31933e557 --- /dev/null +++ b/types/openfin/_v2/api/events/frame.d.ts @@ -0,0 +1,9 @@ +import { BaseEventMap, WindowEvent } from './base'; +export interface FrameEvent extends WindowEvent<'frame', Type> { + entityType: 'iframe'; + frameName: string; +} +export interface FrameEvents extends BaseEventMap { + connected: FrameEvent<'connected'>; + disconnected: FrameEvent<'disconnected'>; +} diff --git a/types/openfin/_v2/api/events/globalHotkey.d.ts b/types/openfin/_v2/api/events/globalHotkey.d.ts new file mode 100644 index 0000000000..561baba446 --- /dev/null +++ b/types/openfin/_v2/api/events/globalHotkey.d.ts @@ -0,0 +1,11 @@ +import { RuntimeEvent, BaseEventMap } from './base'; +import { Identity } from '../../identity'; +import { nonHotkeyEvents } from '../global-hotkey'; +export interface GlobalHotkeyEvent extends RuntimeEvent<'global-hotkey', Type> { + identity: Identity; + hotkey: string; +} +export interface GlobalHotkeyEvents extends BaseEventMap { + [nonHotkeyEvents.REGISTERED]: GlobalHotkeyEvent; + [nonHotkeyEvents.UNREGISTERED]: GlobalHotkeyEvent; +} diff --git a/types/openfin/_v2/api/events/notifications.d.ts b/types/openfin/_v2/api/events/notifications.d.ts new file mode 100644 index 0000000000..a269817222 --- /dev/null +++ b/types/openfin/_v2/api/events/notifications.d.ts @@ -0,0 +1,8 @@ +import { RuntimeEvent, BaseEventMap } from './base'; +export interface NotificationEvents extends BaseEventMap { + show: RuntimeEvent<'notification', 'show'>; + close: RuntimeEvent<'notification', 'close'>; + error: RuntimeEvent<'notification', 'error'>; + click: RuntimeEvent<'notification', 'click'>; + message: RuntimeEvent<'notification', 'message'>; +} diff --git a/types/openfin/_v2/api/events/system.d.ts b/types/openfin/_v2/api/events/system.d.ts new file mode 100644 index 0000000000..20285a8862 --- /dev/null +++ b/types/openfin/_v2/api/events/system.d.ts @@ -0,0 +1,22 @@ +import { BaseEvent, ApplicationEvent, BaseEventMap } from './base'; +import { MonitorInfo } from '../system/monitor'; +import { PropagatedWindowEvents } from './window'; +import { PropagatedApplicationEvents } from './application'; +export interface IdleEvent extends BaseEvent { + elapsedTime: number; + isIdle: boolean; +} +export declare type MonitorEvent = MonitorInfo & BaseEvent; +export interface SessionChangedEvent extends BaseEvent { + reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown'; +} +export interface SystemEventMapping extends BaseEventMap { + 'application-created': ApplicationEvent; + 'desktop-icon-clicked': ApplicationEvent; + 'idle-state-changed': IdleEvent; + 'monitor-info-changed': MonitorEvent; + 'session-changed': SessionChangedEvent; +} +export declare type SystemEvents = PropagatedWindowEvents<'system'> & PropagatedApplicationEvents<'system'> & { + [Type in keyof SystemEventMapping]: SystemEventMapping<'system', Type>[Type]; +}; diff --git a/types/openfin/_v2/api/events/window.d.ts b/types/openfin/_v2/api/events/window.d.ts new file mode 100644 index 0000000000..85d4d553f0 --- /dev/null +++ b/types/openfin/_v2/api/events/window.d.ts @@ -0,0 +1,176 @@ +import { CrashedEvent } from './application'; +import { WindowEvent, BaseEventMap } from './base'; +export declare type SpecificWindowEvent = WindowEvent<'window', Type>; +export interface WindowAlertRequestedEvent extends WindowEvent { + message: string; + url: string; +} +export interface WindowAuthRequestedEvent extends WindowEvent { + authInfo: { + host: string; + isProxy: boolean; + port: number; + realm: string; + scheme: string; + }; +} +export interface WindowEndLoadEvent extends WindowEvent { + documentName: string; + isMain: boolean; +} +export interface WindowNavigationRejectedEvent extends WindowEvent { + sourceName: string; + url: string; +} +export interface WindowReloadedEvent extends WindowEvent { + url: string; +} +export interface WindowExternalProcessExitedEvent extends WindowEvent { + processUuid: string; + exitCode: number; +} +export interface WindowExternalProcessStartedEvent extends WindowEvent { + processUuid: string; +} +export interface WindowHiddenEvent extends WindowEvent { + reason: 'closing' | 'hide' | 'hide-on-close'; +} +export interface PreloadScriptInfoRunning { + state: 'load-started' | // started loading preload script + 'load-failed' | // preload script failed to load + 'load-succeeded' | // preload script is loaded and ready to be eval'ed + 'failed' | // preload script failed to eval + 'succeeded'; +} +export interface PreloadScriptInfo { + state: 'load-failed' | // preload script failed to load + 'failed' | // preload script failed to eval + 'succeeded'; +} +export interface WindowPreloadScriptsStateChangeEvent extends WindowEvent { + preloadScripts: (PreloadScriptInfoRunning & any)[]; +} +export interface WindowPreloadScriptsStateChangedEvent extends WindowEvent { + preloadScripts: (PreloadScriptInfoRunning & any)[]; +} +export interface WindowPreloadScriptsStateChangedEvent extends WindowEvent { + preloadScripts: (PreloadScriptInfo & any)[]; +} +export interface WindowResourceLoadFailedEvent extends WindowEvent { + errorCode: number; + errorDescription: string; + validatedURL: string; + isMainFrame: boolean; +} +export interface WindowResourceResponseReceivedEvent extends WindowEvent { + status: boolean; + newUrl: string; + originalUrl: string; + httpResponseCode: number; + requestMethod: string; + referrer: string; + headers: any; + resourceType: 'mainFrame' | 'subFrame' | 'styleSheet' | 'script' | 'image' | 'object' | 'xhr' | 'other'; +} +export interface WindowBeginBoundsChangingEvent extends WindowEvent { + height: number; + left: number; + top: number; + width: number; + windowState: 'minimized' | 'normal' | 'maximized'; +} +export interface WindowBoundsChange extends WindowEvent { + changeType: 0 | 1 | 2; + deferred: boolean; + height: number; + left: number; + top: number; + width: number; +} +export interface WindowGroupChanged extends WindowEvent { + memberOf: 'source' | 'target' | 'nothing'; + reason: 'leave' | 'join' | 'merge' | 'disband'; + sourceGroup: { + appUuid: string; + windowName: string; + }[]; + sourceWindowAppUuid: string; + sourceWindowName: string; + targetGroup: { + appUuid: string; + windowName: string; + }[]; + targetWindowAppUuid: string; + targetWindowName: string; +} +export interface WindowEventMapping extends BaseEventMap { + 'auth-requested': WindowAuthRequestedEvent; + 'begin-user-bounds-changing': WindowBeginBoundsChangingEvent; + 'blurred': WindowEvent; + 'bounds-changed': WindowBoundsChange; + 'bounds-changing': WindowBoundsChange; + 'close-requested': WindowEvent; + 'closed': WindowEvent; + 'closing': WindowEvent; + 'crashed': CrashedEvent & WindowEvent; + 'disabled-frame-bounds-changed': WindowBoundsChange; + 'disabled-frame-bounds-changing': WindowBoundsChange; + 'embedded': WindowEvent; + 'end-user-bounds-changing': WindowBeginBoundsChangingEvent; + 'external-process-exited': WindowExternalProcessExitedEvent; + 'external-process-started': WindowExternalProcessStartedEvent; + 'focused': WindowEvent; + 'frame-disabled': WindowEvent; + 'frame-enabled': WindowEvent; + 'group-changed': WindowGroupChanged; + 'hidden': WindowHiddenEvent; + 'initialized': WindowEvent; + 'maximized': WindowEvent; + 'minimized': WindowEvent; + 'navigation-rejected': WindowNavigationRejectedEvent; + 'preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent; + 'preload-scripts-state-changing': WindowPreloadScriptsStateChangeEvent; + 'resource-load-failed': WindowResourceLoadFailedEvent; + 'resource-response-received': WindowResourceResponseReceivedEvent; + 'reloaded': WindowReloadedEvent; + 'restored': WindowEvent; + 'show-requested': WindowEvent; + 'shown': WindowEvent; +} +export interface PropagatedWindowEventMapping extends BaseEventMap { + 'window-begin-user-bounds-changing': WindowBeginBoundsChangingEvent; + 'window-blurred': WindowEvent; + 'window-bounds-changed': WindowBoundsChange; + 'window-bounds-changing': WindowBoundsChange; + 'window-closed': WindowEvent; + 'window-closing': WindowEvent; + 'window-crashed': CrashedEvent & WindowEvent; + 'window-disabled-frame-bounds-changed': WindowBoundsChange; + 'window-disabled-frame-bounds-changing': WindowBoundsChange; + 'window-embedded': WindowEvent; + 'window-end-user-bounds-changing': WindowBeginBoundsChangingEvent; + 'window-external-process-exited': WindowExternalProcessExitedEvent; + 'window-external-process-started': WindowExternalProcessStartedEvent; + 'window-focused': WindowEvent; + 'window-frame-disabled': WindowEvent; + 'window-frame-enabled': WindowEvent; + 'window-group-changed': WindowGroupChanged; + 'window-hidden': WindowHiddenEvent; + 'window-initialized': WindowEvent; + 'window-maximized': WindowEvent; + 'window-minimized': WindowEvent; + 'window-navigation-rejected': WindowNavigationRejectedEvent; + 'window-preload-scripts-state-changed': WindowPreloadScriptsStateChangeEvent; + 'window-preload-scripts-state-changing': WindowPreloadScriptsStateChangedEvent; + 'window-resource-load-failed': WindowResourceLoadFailedEvent; + 'window-resource-response-received': WindowResourceResponseReceivedEvent; + 'window-reloaded': WindowReloadedEvent; + 'window-restored': WindowEvent; + 'window-shown': WindowEvent; +} +export declare type WindowEvents = { + [Type in keyof WindowEventMapping]: WindowEventMapping<'window', Type>[Type]; +}; +export declare type PropagatedWindowEvents = { + [Type in keyof PropagatedWindowEventMapping]: PropagatedWindowEventMapping[Type]; +}; diff --git a/types/openfin/_v2/api/external-application/external-application.d.ts b/types/openfin/_v2/api/external-application/external-application.d.ts index 2d1f46e0f3..a4f44851e9 100644 --- a/types/openfin/_v2/api/external-application/external-application.d.ts +++ b/types/openfin/_v2/api/external-application/external-application.d.ts @@ -1,16 +1,30 @@ -import { Base, EmitterBase, Reply } from '../base'; +import { Base, EmitterBase } from '../base'; import { Identity } from '../../identity'; import Transport from '../../transport/transport'; +import { ExternalApplicationEvents } from '../events/externalApplication'; export interface ExternalApplicationInfo { parent: Identity; } +/** + * @lends ExternalApplication + */ export default class ExternalApplicationModule extends Base { /** - * Returns an External Application object that represents an existing external application. + * Asynchronously returns an External Application object that represents an existing external application. * @param {string} uuid The UUID of the external application to be wrapped * @return {Promise.} + * @tutorial ExternalApplication.wrap + * @static */ wrap(uuid: string): Promise; + /** + * Synchronously returns an External Application object that represents an existing external application. + * @param {string} uuid The UUID of the external application to be wrapped + * @return {ExternalApplication} + * @tutorial ExternalApplication.wrapSync + * @static + */ + wrapSync(uuid: string): ExternalApplication; } /** * @classdesc An ExternalApplication object representing an application. Allows @@ -18,7 +32,7 @@ export default class ExternalApplicationModule extends Base { * well as listen to application events. * @class */ -export declare class ExternalApplication extends EmitterBase { +export declare class ExternalApplication extends EmitterBase { identity: Identity; constructor(wire: Transport, identity: Identity); /** @@ -28,9 +42,3 @@ export declare class ExternalApplication extends EmitterBase { */ getInfo(): Promise; } -export interface ExternalApplication { - on(type: 'connected', listener: (data: Reply<'externalapplication', 'connected'>) => void): Promise; - on(type: 'disconnected', listener: (data: Reply<'externalapplication', 'disconnected'>) => void): Promise; - on(type: 'removeListener', listener: (eventType: string) => void): Promise; - on(type: 'newListener', listener: (eventType: string) => void): Promise; -} diff --git a/types/openfin/_v2/api/frame/frame.d.ts b/types/openfin/_v2/api/frame/frame.d.ts index 4a5ab971de..8795ae190b 100644 --- a/types/openfin/_v2/api/frame/frame.d.ts +++ b/types/openfin/_v2/api/frame/frame.d.ts @@ -1,6 +1,7 @@ import { Base, EmitterBase } from '../base'; import { Identity } from '../../identity'; import Transport from '../../transport/transport'; +import { FrameEvents } from '../events/frame'; export declare type EntityType = 'window' | 'iframe' | 'external connection' | 'unknown'; export interface FrameInfo { uuid: string; @@ -8,19 +9,40 @@ export interface FrameInfo { entityType: EntityType; parent: Identity; } +/** + * @lends Frame + */ export default class _FrameModule extends Base { /** - * Gets a reference to the specified frame. The frame does not have to exist - * @param {string} uuid - uuid of the frame you want to wrap - * @param {string} name - name of the frame you want to wrap + * Asynchronously returns a reference to the specified frame. The frame does not have to exist + * @param {Identity} identity - the identity of the frame you want to wrap * @return {Promise.<_Frame>} + * @tutorial Frame.wrap + * @static */ - wrap(uuid: string, name: string): Promise<_Frame>; + wrap(identity: Identity): Promise<_Frame>; /** - * Get a reference to the current frame + * Synchronously returns a reference to the specified frame. The frame does not have to exist + * @param {Identity} identity - the identity of the frame you want to wrap + * @return {_Frame} + * @tutorial Frame.wrapSync + * @static + */ + wrapSync(identity: Identity): _Frame; + /** + * Asynchronously returns a reference to the current frame * @return {Promise.<_Frame>} + * @tutorial Frame.getCurrent + * @static */ getCurrent(): Promise<_Frame>; + /** + * Synchronously returns a reference to the current frame + * @return {_Frame} + * @tutorial Frame.getCurrentSync + * @static + */ + getCurrentSync(): _Frame; } /** * @classdesc Represents a way to interact with `iframes`. Facilitates discovery of current context @@ -28,7 +50,7 @@ export default class _FrameModule extends Base { * @class * @alias Frame */ -export declare class _Frame extends EmitterBase { +export declare class _Frame extends EmitterBase { identity: Identity; constructor(wire: Transport, identity: Identity); /** @@ -45,7 +67,3 @@ export declare class _Frame extends EmitterBase { */ getParentWindow(): Promise; } -export interface _Frame { - on(type: 'connected', listener: (eventType: string) => void): Promise; - on(type: 'disconnected', listener: (eventType: string) => void): Promise; -} diff --git a/types/openfin/_v2/api/global-hotkey/index.d.ts b/types/openfin/_v2/api/global-hotkey/index.d.ts index 148ddff7e9..7aa08d6f20 100644 --- a/types/openfin/_v2/api/global-hotkey/index.d.ts +++ b/types/openfin/_v2/api/global-hotkey/index.d.ts @@ -1,10 +1,15 @@ import { EmitterBase } from '../base'; import Transport from '../../transport/transport'; +import { GlobalHotkeyEvents } from '../events/globalHotkey'; +export declare const enum nonHotkeyEvents { + REGISTERED = "registered", + UNREGISTERED = "unregistered" +} /** * The GlobalHotkey module can register/unregister a global hotkeys. * @namespace */ -export default class GlobalHotkey extends EmitterBase { +export default class GlobalHotkey extends EmitterBase { constructor(wire: Transport); /** * Registers a global hotkey with the operating system. diff --git a/types/openfin/_v2/api/interappbus/channel/index.d.ts b/types/openfin/_v2/api/interappbus/channel/index.d.ts index 1297d2c5ea..2b2d963932 100644 --- a/types/openfin/_v2/api/interappbus/channel/index.d.ts +++ b/types/openfin/_v2/api/interappbus/channel/index.d.ts @@ -4,30 +4,29 @@ import { ChannelProvider } from './provider'; import { EmitterBase } from '../../base'; import Transport, { Message, Payload } from '../../../transport/transport'; import { ProviderIdentity } from './channel'; -export interface Options { +import { ChannelEvents } from '../../events/channel'; +export interface ConnectOptions { wait?: boolean; - uuid: string; - name?: string; payload?: any; } export interface ChannelPayload { payload: Payload; } -export interface ChannelMessage { +export interface ChannelMessage extends Message { senderIdentity: Identity; ackToSender: any; - providerIdentity: Identity; + providerIdentity: ProviderIdentity; connectAction: boolean; } -export declare class Channel extends EmitterBase { +export declare class Channel extends EmitterBase { private channelMap; constructor(wire: Transport); getAllChannels(): Promise; - onChannelConnect(listener: Function): Promise; - onChannelDisconnect(listener: Function): Promise; - connect(options: Options): Promise; - create(channelName?: string): Promise; - onmessage: (msg: Message) => boolean; + onChannelConnect(listener: (...args: any[]) => void): Promise; + onChannelDisconnect(listener: (...args: any[]) => void): Promise; + connect(channelName: string, options?: ConnectOptions): Promise; + create(channelName: string): Promise; + onmessage: (msg: ChannelMessage) => boolean; private processChannelMessage; private processChannelConnection; } diff --git a/types/openfin/_v2/api/interappbus/channel/provider.d.ts b/types/openfin/_v2/api/interappbus/channel/provider.d.ts index a869928ac2..4b978c2781 100644 --- a/types/openfin/_v2/api/interappbus/channel/provider.d.ts +++ b/types/openfin/_v2/api/interappbus/channel/provider.d.ts @@ -1,13 +1,15 @@ import { ChannelBase, ProviderIdentity } from './channel'; import Transport from '../../../transport/transport'; -export declare type ConnectionListener = (adapterIdentity: ProviderIdentity, connectionMessage?: any) => any; +import { Identity } from '../../../main'; +export declare type ConnectionListener = (identity: Identity, connectionMessage?: any) => any; export declare class ChannelProvider extends ChannelBase { private connectListener; private disconnectListener; - connections: ProviderIdentity[]; + connections: Identity[]; constructor(providerIdentity: ProviderIdentity, send: Transport['sendAction']); - dispatch(to: ProviderIdentity, action: string, payload: any): Promise; - processConnection(senderId: ProviderIdentity, payload: any): Promise; + dispatch(to: Identity, action: string, payload: any): Promise; + processConnection(senderId: Identity, payload: any): Promise; publish(action: string, payload: any): Promise[]; onConnection(listener: ConnectionListener): void; + onDisconnection(listener: ConnectionListener): void; } diff --git a/types/openfin/_v2/api/notification/notification.d.ts b/types/openfin/_v2/api/notification/notification.d.ts index 8deec180ba..9a6bee7076 100644 --- a/types/openfin/_v2/api/notification/notification.d.ts +++ b/types/openfin/_v2/api/notification/notification.d.ts @@ -1,6 +1,7 @@ import { Base, EmitterBase } from '../base'; import { Identity } from '../../identity'; import Transport from '../../transport/transport'; +import { NotificationEvents } from '../events/notifications'; export declare class NotificationOptions { url: string; message: string; @@ -22,14 +23,12 @@ export interface NotificationCallback { * @class * @alias Notification */ -export declare class _Notification extends EmitterBase { +export declare class _Notification extends EmitterBase { private listenerList; private unhookAllListeners; - private buildLocalPayload; protected options: NotificationOptions; protected generalListener: (msg: any) => void; protected notificationId: number; - protected onmessage: (message: any) => boolean; constructor(wire: Transport, options: NotificationOptions); url: string; timeout: number | string; diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index 8c0bc7d3b6..31ed091619 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -19,6 +19,7 @@ import { RegistryInfo } from './registry-info'; import { DownloadPreloadOption, DownloadPreloadInfo } from './download-preload'; import { ClearCacheOption } from './clearCacheOption'; import { CrashReporterOption } from './crashReporterOption'; +import { SystemEvents } from '../events/system'; /** * AppAssetInfo interface * @typedef { Object } AppAssetInfo @@ -164,7 +165,7 @@ import { CrashReporterOption } from './crashReporterOption'; * clearing the cache and exiting the runtime. * @namespace */ -export default class System extends EmitterBase { +export default class System extends EmitterBase { constructor(wire: Transport); /** * Returns the version of the runtime. The version contains the major, minor, @@ -224,13 +225,6 @@ export default class System extends EmitterBase { * @tutorial System.getCrashReporterState */ getCrashReporterState(): Promise; - /** - * Returns a unique identifier (UUID) for the machine (SHA256 hash of the system's MAC address). - * This call will return the same value on subsequent calls on the same machine(host). - * The values will be different on different machines, and should be considered globally unique. - * @return {Promise.} - * @tutorial System.getDeviceId - */ getDeviceId(): Promise; /** * Start the crash reporter for the browser process if not already running. @@ -275,6 +269,12 @@ export default class System extends EmitterBase { * @tutorial System.getLog */ getLog(options: GetLogRequestType): Promise; + /** + * Returns a unique identifier (UUID) provided by the machine. + * @return {Promise.} + * @tutorial System.getMachineId + */ + getMachineId(): Promise; /** * Returns the minimum (inclusive) logging level that is currently being written to the log. * @return {Promise.} diff --git a/types/openfin/_v2/api/window/window.d.ts b/types/openfin/_v2/api/window/window.d.ts index 8d597a6446..ff89a89051 100644 --- a/types/openfin/_v2/api/window/window.d.ts +++ b/types/openfin/_v2/api/window/window.d.ts @@ -1,32 +1,52 @@ -import { Base, EmitterBase, RuntimeEvent } from '../base'; +import { Base, EmitterBase } from '../base'; import { Identity } from '../../identity'; import Bounds from './bounds'; -import BoundsChangedReply from './bounds-changed'; import { Transition, TransitionOptions } from './transition'; import { Application } from '../application/application'; import Transport from '../../transport/transport'; +import { WindowEvents } from '../events/window'; +/** + * @lends Window + */ export default class _WindowModule extends Base { - private instance; /** - * Returns a Window object that represents an existing window. - * @param { Identity } indentity + * Asynchronously returns a Window object that represents an existing window. + * @param { Identity } identity * @return {Promise.<_Window>} * @tutorial Window.wrap + * @static */ wrap(identity: Identity): Promise<_Window>; + /** + * Synchronously returns a Window object that represents an existing window. + * @param { Identity } identity + * @return {_Window} + * @tutorial Window.wrapSync + * @static + */ + wrapSync(identity: Identity): _Window; /** * Creates a new Window. * @param { * } options - Window creation options * @return {Promise.<_Window>} * @tutorial Window.create + * @static */ create(options: any): Promise<_Window>; /** - * Returns a Window object that represents the current window - * @return {Promise.} - * @tutorial window.getCurrent + * Asynchronously returns a Window object that represents the current window + * @return {Promise.<_Window>} + * @tutorial Window.getCurrent + * @static */ getCurrent(): Promise<_Window>; + /** + * Synchronously returns a Window object that represents the current window + * @return {_Window} + * @tutorial Window.getCurrentSync + * @static + */ + getCurrentSync(): _Window; } export interface CloseEventShape { name: string; @@ -47,6 +67,19 @@ export interface FrameInfo { entityType: string; parent?: Identity; } +export interface Area { + height: number; + width: number; + x: number; + y: number; +} +/** + * @typedef { Object } Area + * @property { number } height Area's height + * @property { number } width Area's width + * @property { number } x X coordinate of area's starting point + * @property { number } y Y coordinate of area's starting point + */ /** * @typedef {object} Transition * @property {Opacity} opacity - The Opacity transition @@ -98,7 +131,7 @@ this animation onto the end of the animation queue. * @class * @alias Window */ -export declare class _Window extends EmitterBase { +export declare class _Window extends EmitterBase { identity: Identity; /** * Raised when a window within this application requires credentials from the user. @@ -425,10 +458,8 @@ export declare class _Window extends EmitterBase { * @property {string} state - The preload script state: "load-failed", "failed", "succeeded" */ - private nativeWindow; constructor(wire: Transport, identity: Identity); createWindow(options: any): Promise<_Window>; - protected runtimeEventComparator: (listener: RuntimeEvent) => boolean; private windowListFromNameList; /** * Retrieves an array of frame info objects representing the main frame and any @@ -443,12 +474,6 @@ export declare class _Window extends EmitterBase { * @tutorial Window.getBounds */ getBounds(): Promise; - /** - * Returns the native JavaScript "window" object for the window. - * @return {Promise.} - * @tutorial Window.getNativeWindow - */ - getNativeWindow(): Promise; /** * Gives focus to the window. * @return {Promise.} @@ -561,11 +586,13 @@ export declare class _Window extends EmitterBase { */ getParentWindow(): Promise<_Window>; /** - * Gets a base64 encoded PNG snapshot of the window. + * Gets a base64 encoded PNG snapshot of the window or just part a of it. + * @param { Area } [area] The area of the window to be captured. + * Omitting it will capture the whole visible window. * @return {Promise.} * @tutorial Window.getSnapshot */ - getSnapshot(): Promise; + getSnapshot(area?: Area): Promise; /** * Gets the current state ("minimized", "maximized", or "restored") of the window. * @return {Promise.} @@ -747,13 +774,3 @@ export declare class _Window extends EmitterBase { */ stopNavigation(): Promise; } -export interface _Window { - on(type: 'focused', listener: Function): Promise; - on(type: 'initialized', listener: Function): Promise; - on(type: 'bounds-changed', listener: (data: BoundsChangedReply) => void): Promise; - on(type: 'hidden', listener: Function): Promise; - on(type: 'removeListener', listener: (eventType: string | symbol) => void): Promise; - on(type: 'newListener', listener: (eventType: string | symbol) => void): Promise; - on(type: 'closed', listener: (eventType: CloseEventShape) => void): Promise; - on(type: 'fire-constructor-callback', listener: Function): Promise; -} diff --git a/types/openfin/_v2/transport/transport.d.ts b/types/openfin/_v2/transport/transport.d.ts index fb7b967240..519562de95 100644 --- a/types/openfin/_v2/transport/transport.d.ts +++ b/types/openfin/_v2/transport/transport.d.ts @@ -3,6 +3,8 @@ import { Wire, WireConstructor, READY_STATE, ExistingConnectConfig, ConnectConfi import { Identity } from '../identity'; import { EventEmitter } from 'events'; import { Environment } from '../environment/environment'; +import { RuntimeEvent } from '../api/events/base'; +import { EventAggregator } from '../api/events/eventAggregator'; export declare type MessageHandler = (data: any) => boolean; declare class Transport extends EventEmitter { protected wireListeners: Map; protected uncorrelatedListener: Function; - protected messageHandlers: MessageHandler[]; me: Identity; protected wire: Wire; environment: Environment; topicRefMap: Map; sendRaw: Wire['send']; + eventAggregator: EventAggregator; + protected messageHandlers: MessageHandler[]; constructor(wireType: WireConstructor, environment: Environment); connectSync: (config: ConnectConfig) => any; connect(config: InternalConnectConfig): Promise; @@ -38,6 +41,20 @@ export declare class Message { payload: T; correlationId?: number; } +export declare class EventMessage implements Message { + action: 'process-desktop-event'; + payload: RuntimeEvent; +} +export declare class NotificationEventMessage implements Message { + action: 'process-notification-event'; + payload: NotificationEvent; +} +export interface NotificationEvent { + payload: { + notificationId: string; + }; + type: string | symbol; +} export declare class Payload { success: boolean; data: any; diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index fe34f0b630..a901fecdc9 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -1,12 +1,13 @@ -// Type definitions for OpenFin API 34.0 +// Type definitions for OpenFin API 37.0 // Project: https://openfin.co/ // Definitions by: Chris Barker // Ricardo de Pena // Roma +// Li Cui // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.9 -// based on v9.61.34.22 +// based on v9.61.37.14 // see https://openfin.co/support/technical-faq/#what-do-the-numbers-in-the-runtime-version-mean /** From 0b16775acbb3591cfd8714f91f485549d42e1e0d Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 26 Oct 2018 21:07:23 +0100 Subject: [PATCH 047/213] Fixed typo in enum --- types/d3-graphviz/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 9d3dc1ac61..e3a30ce4f7 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -407,7 +407,7 @@ export type Engine = 'circo' | 'dot' | 'fdp' | 'neato' | 'osage' | 'patchwork' | export type TypeNames = 'initEnd' | 'start' | 'layoutStart' | 'layoutEnd' | 'dataExtractEnd' | 'dataProcessPass1End' | 'dataProcessPass2End' | 'dataProcessEnd' | 'renderStart' | 'renderEnd' | 'transitionStart' | 'transitionEnd' | - 'resotreEnd' | 'end' | string; // string included to allow for optional addition of a name, e.g. initEnd.foo + 'restoreEnd' | 'end' | string; // string included to allow for optional addition of a name, e.g. initEnd.foo /** * Enum defining the valid strings that can be passed as KeyModes From b4fad1da940bff44921573238f3e9e2ecb1cf77c Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Fri, 26 Oct 2018 22:45:27 +0200 Subject: [PATCH 048/213] [react-table] add typings for selectTableHOC and treeTableHOC --- types/react-table/index.d.ts | 5 ++- types/react-table/lib/hoc/hoc-type.d.ts | 5 +++ types/react-table/lib/hoc/selectTable.d.ts | 50 ++++++++++++++++++++++ types/react-table/lib/hoc/treeTable.d.ts | 10 +++++ 4 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 types/react-table/lib/hoc/hoc-type.d.ts create mode 100644 types/react-table/lib/hoc/selectTable.d.ts create mode 100644 types/react-table/lib/hoc/treeTable.d.ts diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index ca7981a6f8..90ad254134 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -1,6 +1,9 @@ // Type definitions for react-table 6.7 // Project: https://github.com/react-tools/react-table -// Definitions by: Roy Xue , Pavel Sakalo , Krzysztof Porębski +// Definitions by: Roy Xue +// Pavel Sakalo +// Krzysztof Porębski +// Grzegorz Rozdzialik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; diff --git a/types/react-table/lib/hoc/hoc-type.d.ts b/types/react-table/lib/hoc/hoc-type.d.ts new file mode 100644 index 0000000000..9970d07a5b --- /dev/null +++ b/types/react-table/lib/hoc/hoc-type.d.ts @@ -0,0 +1,5 @@ +import { ComponentType } from 'react'; + +type HOC = ( + Component: ComponentType +) => ComponentType; diff --git a/types/react-table/lib/hoc/selectTable.d.ts b/types/react-table/lib/hoc/selectTable.d.ts new file mode 100644 index 0000000000..59cf9d1f17 --- /dev/null +++ b/types/react-table/lib/hoc/selectTable.d.ts @@ -0,0 +1,50 @@ +import { ComponentType } from 'react'; + +import { TableProps } from '../../index'; +import { HOC } from './hoc-type'; + +export type SelectType = 'checkbox' | 'radio'; + +export interface SelectInputComponentProps { + selectType: SelectType; + onClick: (key: string, shiftKeyPressed: boolean, row: any) => any; + checked: boolean; + id: string; + row: any; +} + +export interface SelectAllInputComponent { + selectType: SelectType; + checked: boolean; + onClick: () => any; +} + +export interface SelectTableAdditionalProps { + /** + * Default: _id + */ + keyField?: string; + + isSelected?: (key: string) => boolean; + + selectAll?: boolean; + + toggleAll?: SelectAllInputComponent['onClick']; + + toggleSelection?: SelectInputComponentProps['onClick']; + + /** + * Default: checkbox + */ + selectType?: SelectType; + + SelectInputComponent?: ComponentType; + SelectAllInputComponent?: ComponentType; +} + +declare const selectTableHOC: HOC< + Partial, + SelectTableAdditionalProps +>; + +export default selectTableHOC; diff --git a/types/react-table/lib/hoc/treeTable.d.ts b/types/react-table/lib/hoc/treeTable.d.ts new file mode 100644 index 0000000000..2f91951789 --- /dev/null +++ b/types/react-table/lib/hoc/treeTable.d.ts @@ -0,0 +1,10 @@ +import { ComponentType } from 'react'; + +import { TableProps } from '../../index'; +import { HOC } from './hoc-type'; + +interface TreeTableAdditionalProps {} + +declare const treeTableHOC: HOC, TreeTableAdditionalProps>; + +export default treeTableHOC; From 5c4f74febd6bdca0ad3afcd2ab740c513ff097ca Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Sat, 27 Oct 2018 13:12:02 +0200 Subject: [PATCH 049/213] [react-table] add tests for HOCs --- types/react-table/select-table-tests.tsx | 36 ++++++++++++++++++++++++ types/react-table/tree-table-tests.tsx | 21 ++++++++++++++ types/react-table/tsconfig.json | 4 ++- 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 types/react-table/select-table-tests.tsx create mode 100644 types/react-table/tree-table-tests.tsx diff --git a/types/react-table/select-table-tests.tsx b/types/react-table/select-table-tests.tsx new file mode 100644 index 0000000000..1a29ed07c1 --- /dev/null +++ b/types/react-table/select-table-tests.tsx @@ -0,0 +1,36 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; + +import ReactTable, { Column } from 'react-table'; +import selectTableHOC, { + SelectTableAdditionalProps +} from 'react-table/lib/hoc/selectTable'; + +import 'react-table/react-table.css'; + +const SelectTable = selectTableHOC(ReactTable); + +const selectTableAdditionalProps: SelectTableAdditionalProps = { + isSelected: () => true, + keyField: 'id', + selectAll: true, + selectType: 'checkbox', + toggleAll: () => null, + toggleSelection: () => null +}; + +const data = [{ id: 1, name: 'Foo' }, { id: 2, name: 'Bar' }]; + +const columns: Column[] = [ + { Header: 'ID', accessor: 'id' }, + { Header: 'Name', accessor: 'name' } +]; + +ReactDOM.render( + , + document.getElementById('root') +); diff --git a/types/react-table/tree-table-tests.tsx b/types/react-table/tree-table-tests.tsx new file mode 100644 index 0000000000..14ad8265de --- /dev/null +++ b/types/react-table/tree-table-tests.tsx @@ -0,0 +1,21 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; + +import ReactTable, { Column } from 'react-table'; +import treeTableHOC from 'react-table/lib/hoc/treeTable'; + +import 'react-table/react-table.css'; + +const SelectTable = treeTableHOC(ReactTable); + +const data = [{ id: 1, name: 'Foo' }, { id: 2, name: 'Bar' }]; + +const columns: Column[] = [ + { Header: 'ID', accessor: 'id' }, + { Header: 'Name', accessor: 'name' } +]; + +ReactDOM.render( + , + document.getElementById('root') +); diff --git a/types/react-table/tsconfig.json b/types/react-table/tsconfig.json index de6f3f8e69..b08c4dc5c1 100644 --- a/types/react-table/tsconfig.json +++ b/types/react-table/tsconfig.json @@ -20,6 +20,8 @@ }, "files": [ "index.d.ts", - "react-table-tests.tsx" + "react-table-tests.tsx", + "select-table-tests.tsx", + "tree-table-tests.tsx" ] } \ No newline at end of file From e2ccb7a1434b5fd9556df5024210473582c5b980 Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Sat, 27 Oct 2018 13:22:34 +0200 Subject: [PATCH 050/213] [react-table] add missing options to selectTableHOC --- types/react-table/lib/hoc/hoc-type.d.ts | 9 ++++++++- types/react-table/lib/hoc/selectTable.d.ts | 14 +++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/types/react-table/lib/hoc/hoc-type.d.ts b/types/react-table/lib/hoc/hoc-type.d.ts index 9970d07a5b..c8bdcb462c 100644 --- a/types/react-table/lib/hoc/hoc-type.d.ts +++ b/types/react-table/lib/hoc/hoc-type.d.ts @@ -1,5 +1,12 @@ import { ComponentType } from 'react'; -type HOC = ( +export type HOC = ( Component: ComponentType ) => ComponentType; + +export type HOCWithOptions = < + Props extends OwnProps +>( + Component: ComponentType, + options?: Options +) => ComponentType; diff --git a/types/react-table/lib/hoc/selectTable.d.ts b/types/react-table/lib/hoc/selectTable.d.ts index 59cf9d1f17..910c5a34a4 100644 --- a/types/react-table/lib/hoc/selectTable.d.ts +++ b/types/react-table/lib/hoc/selectTable.d.ts @@ -1,7 +1,7 @@ import { ComponentType } from 'react'; import { TableProps } from '../../index'; -import { HOC } from './hoc-type'; +import { HOCWithOptions } from './hoc-type'; export type SelectType = 'checkbox' | 'radio'; @@ -42,9 +42,17 @@ export interface SelectTableAdditionalProps { SelectAllInputComponent?: ComponentType; } -declare const selectTableHOC: HOC< +export interface SelectTableHOCOptions { + /** + * Default: false + */ + floatingLeft?: boolean; +} + +declare const selectTableHOC: HOCWithOptions< Partial, - SelectTableAdditionalProps + SelectTableAdditionalProps, + SelectTableHOCOptions >; export default selectTableHOC; From 9fd15718934e0f32eebc3c758828180694e4016f Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Sat, 27 Oct 2018 13:40:04 +0200 Subject: [PATCH 051/213] [react-table] move HOC tests to a test directory Fixes linting error [react-table] inline HOC types --- types/react-table/lib/hoc/hoc-type.d.ts | 12 ------------ types/react-table/lib/hoc/selectTable.d.ts | 10 ++++------ types/react-table/lib/hoc/treeTable.d.ts | 7 +++---- types/react-table/{ => test}/select-table-tests.tsx | 0 types/react-table/{ => test}/tree-table-tests.tsx | 0 types/react-table/tsconfig.json | 6 ++++-- 6 files changed, 11 insertions(+), 24 deletions(-) delete mode 100644 types/react-table/lib/hoc/hoc-type.d.ts rename types/react-table/{ => test}/select-table-tests.tsx (100%) rename types/react-table/{ => test}/tree-table-tests.tsx (100%) diff --git a/types/react-table/lib/hoc/hoc-type.d.ts b/types/react-table/lib/hoc/hoc-type.d.ts deleted file mode 100644 index c8bdcb462c..0000000000 --- a/types/react-table/lib/hoc/hoc-type.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ComponentType } from 'react'; - -export type HOC = ( - Component: ComponentType -) => ComponentType; - -export type HOCWithOptions = < - Props extends OwnProps ->( - Component: ComponentType, - options?: Options -) => ComponentType; diff --git a/types/react-table/lib/hoc/selectTable.d.ts b/types/react-table/lib/hoc/selectTable.d.ts index 910c5a34a4..d70d84eb78 100644 --- a/types/react-table/lib/hoc/selectTable.d.ts +++ b/types/react-table/lib/hoc/selectTable.d.ts @@ -1,7 +1,6 @@ import { ComponentType } from 'react'; import { TableProps } from '../../index'; -import { HOCWithOptions } from './hoc-type'; export type SelectType = 'checkbox' | 'radio'; @@ -49,10 +48,9 @@ export interface SelectTableHOCOptions { floatingLeft?: boolean; } -declare const selectTableHOC: HOCWithOptions< - Partial, - SelectTableAdditionalProps, - SelectTableHOCOptions ->; +declare function selectTableHOC>( + Component: ComponentType, + options?: SelectTableHOCOptions +): ComponentType; export default selectTableHOC; diff --git a/types/react-table/lib/hoc/treeTable.d.ts b/types/react-table/lib/hoc/treeTable.d.ts index 2f91951789..35d1522119 100644 --- a/types/react-table/lib/hoc/treeTable.d.ts +++ b/types/react-table/lib/hoc/treeTable.d.ts @@ -1,10 +1,9 @@ import { ComponentType } from 'react'; import { TableProps } from '../../index'; -import { HOC } from './hoc-type'; -interface TreeTableAdditionalProps {} - -declare const treeTableHOC: HOC, TreeTableAdditionalProps>; +declare function treeTableHOC>( + Component: ComponentType +): ComponentType; export default treeTableHOC; diff --git a/types/react-table/select-table-tests.tsx b/types/react-table/test/select-table-tests.tsx similarity index 100% rename from types/react-table/select-table-tests.tsx rename to types/react-table/test/select-table-tests.tsx diff --git a/types/react-table/tree-table-tests.tsx b/types/react-table/test/tree-table-tests.tsx similarity index 100% rename from types/react-table/tree-table-tests.tsx rename to types/react-table/test/tree-table-tests.tsx diff --git a/types/react-table/tsconfig.json b/types/react-table/tsconfig.json index b08c4dc5c1..ef6f8f22a1 100644 --- a/types/react-table/tsconfig.json +++ b/types/react-table/tsconfig.json @@ -20,8 +20,10 @@ }, "files": [ "index.d.ts", + "lib/hoc/selectTable.d.ts", + "lib/hoc/treeTable.d.ts", "react-table-tests.tsx", - "select-table-tests.tsx", - "tree-table-tests.tsx" + "test/select-table-tests.tsx", + "test/tree-table-tests.tsx" ] } \ No newline at end of file From 002028303f1f200a17acee1ab5a1e9e8a50c414a Mon Sep 17 00:00:00 2001 From: "Matt R. Wilson" Date: Sat, 27 Oct 2018 23:05:03 -0600 Subject: [PATCH 052/213] [Luxon] toSQL opts and explain result. --- types/luxon/index.d.ts | 25 +++++++++++++++++++++---- types/luxon/luxon-tests.ts | 7 +++++++ types/luxon/tslint.json | 1 - 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index 7253dc1ce6..8d5b17d697 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Colby DeHart // Hyeonseok Yang // Jonathan Siebern +// Matt R. Wilson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -22,6 +23,11 @@ declare module 'luxon' { round?: boolean; }; + type ToSQLOptions = { + includeOffset?: boolean; + includeZone?: boolean; + }; + type ISOTimeOptions = { suppressMilliseconds?: boolean; suppressSeconds?: boolean; @@ -65,6 +71,17 @@ declare module 'luxon' { conversionAccuracy?: string; }; + type ExplainedFormat = { + input: string; + tokens: Array<{ literal: boolean, val: string }>, + regex?: RegExp; + rawMatches?: RegExpMatchArray | null; + matches?: {[k: string]: any}; + result?: {[k: string]: any} | null; + zone?: Zone | null; + invalidReason?: string; + }; + class DateTime { static readonly DATETIME_FULL: DateTimeFormatOptions; static readonly DATETIME_FULL_WITH_SECONDS: DateTimeFormatOptions; @@ -108,7 +125,7 @@ declare module 'luxon' { text: string, format: string, opts?: DateTimeOptions - ): object; + ): ExplainedFormat; /** * @deprecated since 0.3.0. Use fromFormat instead */ @@ -124,7 +141,7 @@ declare module 'luxon' { text: string, format: string, options?: DateTimeOptions - ): object; + ): ExplainedFormat; static invalid(reason: any): DateTime; static local( year?: number, @@ -213,9 +230,9 @@ declare module 'luxon' { toMillis(): number; toObject(options?: { includeConfig?: boolean }): DateObject; toRFC2822(): string; - toSQL(options?: Object): string; + toSQL(options?: ToSQLOptions): string; toSQLDate(): string; - toSQLTime(options?: Object): string; + toSQLTime(options?: ToSQLOptions): string; toString(): string; toUTC(offset?: number, options?: ZoneOptions): DateTime; until(other: DateTime): Interval; diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index b7d426a2c2..587210815c 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -39,6 +39,11 @@ dt.toLocaleString(); dt.toLocaleString(DateTime.DATE_MED); dt.toISO(); dt.toISO({includeOffset: true}); +dt.toSQL(); +dt.toSQL({includeOffset: false, includeZone: true}); +dt.toSQLDate(); +dt.toSQLTime(); +dt.toSQLTime({includeOffset: false, includeZone: true}); dt.plus({ hours: 3, minutes: 2 }); dt.minus({ days: 7 }); @@ -62,6 +67,8 @@ DateTime.utc().toLocal(); DateTime.fromMillis(1527780819458).toMillis(); +const {input, result, zone} = DateTime.fromFormatExplain("Aug 6 1982", "MMMM d yyyy"); + /* Duration */ const dur = Duration.fromObject({ hours: 2, minutes: 7 }); dt.plus(dur); diff --git a/types/luxon/tslint.json b/types/luxon/tslint.json index 764ebe0c97..bc0a6d599a 100644 --- a/types/luxon/tslint.json +++ b/types/luxon/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, "no-single-declare-module": false, "interface-over-type-literal": false, "no-declare-current-package": false From 6009b7e8bd6dae6a1b64a6e1e353971ba9edb415 Mon Sep 17 00:00:00 2001 From: barahliush Date: Sun, 28 Oct 2018 15:25:09 +0200 Subject: [PATCH 053/213] added interface for i18n plugin in store, updated signature in method "keyExists" --- types/vuex-i18n/index.d.ts | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/types/vuex-i18n/index.d.ts b/types/vuex-i18n/index.d.ts index e1f607ef39..2c8c280e2f 100644 --- a/types/vuex-i18n/index.d.ts +++ b/types/vuex-i18n/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for vuex-i18n 1.7 +// Type definitions for vuex-i18n 1.10 // Project: https://github.com/dkfbasel/vuex-i18n // Definitions by: Cedric Kemp // Noam Kfir +// Suleimanov Artem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.9 import _Vue, { PluginObject } from "vue"; @@ -17,6 +18,14 @@ declare module "vue/types/vue" { } } +export interface i18nState { + fallback: string; + locale: string; + translations: { + [key: string]: Translations; + }; +} + export interface Translations { [key: string]: string | Translations; } @@ -81,9 +90,14 @@ export interface Ii18n { localeExists(locale: string): boolean; /** - * check if the given key is available in the current or fallback locale + * check if the given key is available + * optional with a second parameter to limit the scope + * strict: only current locale (exact match) + * locale: current locale and parent language locale (i.e. en-us & en) + * fallback: current locale, parent language locale and fallback locale + * the default is fallback */ - keyExists(key: string): boolean; + keyExists(key: string, mode?: string): boolean; } declare const _default: { From 988a8af2422524f5eef7fb31278cb9efbe1c3af8 Mon Sep 17 00:00:00 2001 From: barahliush Date: Sun, 28 Oct 2018 15:40:43 +0200 Subject: [PATCH 054/213] added test for store's module interface --- types/vuex-i18n/vuex-i18n-tests.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/types/vuex-i18n/vuex-i18n-tests.ts b/types/vuex-i18n/vuex-i18n-tests.ts index 82d9d864d9..11010df30b 100644 --- a/types/vuex-i18n/vuex-i18n-tests.ts +++ b/types/vuex-i18n/vuex-i18n-tests.ts @@ -3,11 +3,16 @@ import Vue from "vue"; import { Store } from "vuex"; // load vuex i18n module -import vuexI18n from "vuex-i18n"; +import vuexI18n, { i18nState } from "vuex-i18n"; + +// declare interface for store's root state +interface RootState { + i18n: i18nState; +} // initialize the vuex store using the vuex module. note that you can change the -// name of the module if you wish -const store = new Store({}); +// name of the module if you wish +const store = new Store({}); // initialize the internationalization plugin on the vue instance. note that // the store must be passed to the plugin. the plugin will then generate some From 7015d5fc5b753310a5a34c37b79381fd4fc73c5c Mon Sep 17 00:00:00 2001 From: barahliush Date: Sun, 28 Oct 2018 16:00:55 +0200 Subject: [PATCH 055/213] fixed types in store's state --- types/vuex-i18n/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/vuex-i18n/index.d.ts b/types/vuex-i18n/index.d.ts index 2c8c280e2f..d2c5f60b08 100644 --- a/types/vuex-i18n/index.d.ts +++ b/types/vuex-i18n/index.d.ts @@ -19,8 +19,8 @@ declare module "vue/types/vue" { } export interface i18nState { - fallback: string; - locale: string; + fallback: string | null; + locale: string | null; translations: { [key: string]: Translations; }; From 9be14bb68c2b862206317cb4bd7e867786cbb4a6 Mon Sep 17 00:00:00 2001 From: barahliush Date: Sun, 28 Oct 2018 19:31:36 +0200 Subject: [PATCH 056/213] update signature for method "locale" --- types/vuex-i18n/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vuex-i18n/index.d.ts b/types/vuex-i18n/index.d.ts index d2c5f60b08..8282b99c05 100644 --- a/types/vuex-i18n/index.d.ts +++ b/types/vuex-i18n/index.d.ts @@ -32,7 +32,7 @@ export interface Translations { export interface Ii18n { /** get the current locale */ - locale(): string; + locale(): string | null; /** get all the registered locales */ locales(): string[]; From 23c5cba61ccd1d9193f82a7f9c530b6c4a7f3138 Mon Sep 17 00:00:00 2001 From: Deyan Gunchev Date: Fri, 26 Oct 2018 16:15:39 +0300 Subject: [PATCH 057/213] Added 'url' option for file-saver typedef. --- types/file-saver/file-saver-tests.ts | 11 +++++++++++ types/file-saver/index.d.ts | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/types/file-saver/file-saver-tests.ts b/types/file-saver/file-saver-tests.ts index 7e704663d8..cea6d2fff5 100644 --- a/types/file-saver/file-saver-tests.ts +++ b/types/file-saver/file-saver-tests.ts @@ -22,6 +22,17 @@ function testWindowSaveAs() { window.saveAs(data, filename, disableAutoBOM); } +/** + * @summary Test for "saveAs" function with URL as first argument. + */ +function testUrlSaveAs() { + const url = 'https://example.com/test.txt'; + const filename = 'hello world.txt'; + const disableAutoBOM = true; + + window.saveAs(url, filename, disableAutoBOM); +} + /** * @summary Test for "saveAs" function with the 3rd parameter omitted */ diff --git a/types/file-saver/index.d.ts b/types/file-saver/index.d.ts index 267e49d261..524c5964bf 100644 --- a/types/file-saver/index.d.ts +++ b/types/file-saver/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for FileSaver.js 1.3 +// Type definitions for FileSaver.js 2.0 // Project: https://github.com/eligrey/FileSaver.js/ // Definitions by: Cyril Schumacher // Daniel Roth @@ -8,11 +8,11 @@ declare namespace FileSaver { /** * FileSaver.js implements the saveAs() FileSaver interface in browsers that do not natively support it. - * @param data - The actual file data blob. + * @param data - The actual file data blob or URL. * @param filename - The optional name of the file to be downloaded. If omitted, the name used in the file data will be used. If none is provided "download" will be used. * @param disableAutoBOM - Optional & defaults to `false`. Set to `true` if you want FileSaver.js to automatically provide Unicode text encoding hints */ - function saveAs(data: Blob, filename?: string, disableAutoBOM?: boolean): void; + function saveAs(data: Blob | string, filename?: string, disableAutoBOM?: boolean): void; } declare global { From 654a77c45e61694f5fa020680eba4448b312d312 Mon Sep 17 00:00:00 2001 From: Alex Kanunnikov Date: Mon, 29 Oct 2018 12:52:53 +0300 Subject: [PATCH 058/213] typescript plugin support Link to plugin - https://github.com/babel/babel/blob/master/packages/babel-parser/src/plugins/typescript.js --- types/babylon/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/babylon/index.d.ts b/types/babylon/index.d.ts index 07eb74bb32..b179f6f357 100644 --- a/types/babylon/index.d.ts +++ b/types/babylon/index.d.ts @@ -46,6 +46,7 @@ export type PluginName = 'estree' | 'jsx' | 'flow' | + 'typescript' | 'classConstructorCall' | 'doExpressions' | 'objectRestSpread' | From daf6ed8cd4f037d4dd9e15c98e4be832515b5a0c Mon Sep 17 00:00:00 2001 From: Mikhail Date: Mon, 29 Oct 2018 15:11:30 +0300 Subject: [PATCH 059/213] Add argument to .exists method `.exists()` has 1 optional argument https://airbnb.io/enzyme/docs/api/ShallowWrapper/exists.html --- types/enzyme/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts index 60262e3d04..0818b4e5ce 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -101,7 +101,7 @@ export interface CommonWrapper

> { /** * Returns whether or not the current node exists. */ - exists(): boolean; + exists(selector?: EnzymeSelector): boolean; /** * Returns a new wrapper with only the nodes of the current wrapper that don't match the provided selector. From 1275c5d02d12be60f25e80a73843007d23364949 Mon Sep 17 00:00:00 2001 From: licui Date: Mon, 29 Oct 2018 17:18:44 -0400 Subject: [PATCH 060/213] update v2 api --- .../_v2/api/application/application.d.ts | 8 +-- types/openfin/_v2/api/system/process.d.ts | 65 +++++++++++++++---- 2 files changed, 56 insertions(+), 17 deletions(-) diff --git a/types/openfin/_v2/api/application/application.d.ts b/types/openfin/_v2/api/application/application.d.ts index b5797aa7ad..8470f65f55 100644 --- a/types/openfin/_v2/api/application/application.d.ts +++ b/types/openfin/_v2/api/application/application.d.ts @@ -22,7 +22,7 @@ export declare class NavigationRejectedReply extends Reply<'window-navigation-re sourceName: string; url: string; } -export interface ConfigInterface { +export interface ShortCutConfig { desktop?: boolean; startMenu?: boolean; systemStartup?: boolean; @@ -138,10 +138,10 @@ export declare class Application extends EmitterBase { getParentUuid(): Promise; /** * Retrieves current application's shortcut configuration. - * @return {Promise.} + * @return {Promise.} * @tutorial Application.getShortcuts */ - getShortcuts(): Promise; + getShortcuts(): Promise; /** * Returns the current zoom level of the application. * @return {Promise.} @@ -202,7 +202,7 @@ export declare class Application extends EmitterBase { * @return {Promise.} * @tutorial Application.setShortcuts */ - setShortcuts(config: ConfigInterface): Promise; + setShortcuts(config: ShortCutConfig): Promise; /** * Sets the zoom level of the application. The original size is 0 and each increment above or below represents zooming 20% * larger or smaller to default limits of 300% and 50% of original size, respectively. diff --git a/types/openfin/_v2/api/system/process.d.ts b/types/openfin/_v2/api/system/process.d.ts index 8a513ceecd..4a965d78d3 100644 --- a/types/openfin/_v2/api/system/process.d.ts +++ b/types/openfin/_v2/api/system/process.d.ts @@ -1,15 +1,54 @@ export interface ProcessInfo { - cpuUsage: number; - name: string; - nonPagedPoolUsage: number; - pageFaultCount: number; - pagedPoolUsage: number; - pagefileUsage: number; - peakNonPagedPoolUsage: number; - peakPagedPoolUsage: number; - peakPagefileUsage: number; - peakWorkingSetSize: number; - processId: number; - uuid: string; - workingSetSize: number; + /** + * the percentage of total CPU usage + */ + cpuUsage?: number; + /** + * the application name + */ + name?: string; + /** + * the current nonpaged pool usage in bytes + */ + nonPagedPoolUsage?: number; + /** + * the number of page faults + */ + pageFaultCount?: number; + /** + * the current paged pool usage in bytes + */ + pagedPoolUsage?: number; + /** + * the total amount of memory in bytes that the memory manager has committed + */ + pagefileUsage?: number; + /** + * the peak nonpaged pool usage in bytes + */ + peakNonPagedPoolUsage?: number; + /** + * the peak paged pool usage in bytes + */ + peakPagedPoolUsage?: number; + /** + * the peak value in bytes of pagefileUsage during the lifetime of this process + */ + peakPagefileUsage?: number; + /** + * the peak working set size in bytes + */ + peakWorkingSetSize?: number; + /** + * the native process identifier + */ + processId?: number; + /** + * the application UUID + */ + uuid?: string; + /** + * the current working set size (both shared and private data) in bytes + */ + workingSetSize?: number; } From 3b9e843cb4a862ad69f51cae83796a10b935caf1 Mon Sep 17 00:00:00 2001 From: licui Date: Mon, 29 Oct 2018 17:19:38 -0400 Subject: [PATCH 061/213] update v1 to use v2 shapes (partially) --- types/openfin/index.d.ts | 183 +++++---------------------------- types/openfin/openfin-tests.ts | 3 +- 2 files changed, 26 insertions(+), 160 deletions(-) diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index a901fecdc9..bc71eeed85 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -24,16 +24,31 @@ * When running within the OpenFin Runtime your web applications have access to the "fin" namespace and all the modules within the API * without the need to include additional source files. You can treat the "fin" namespace as you would the "window", "navigator" or "documennt" objects. */ +import { Identity } from './_v2/identity'; +import { ShortCutConfig } from './_v2/api/application/application'; +import { ExternalApplicationInfo } from './_v2/api/external-application/external-application'; +import { ClearCacheOption } from './_v2/api/system/clearCacheOption'; +import { CookieInfo, CookieOption } from './_v2/api/system/cookie'; +import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadProgress } from './_v2/api/system/download-asset'; +import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/download-preload'; +import { EntityInfo } from './_v2/api/system/entity'; +import { ProcessInfo } from './_v2/api/system/process'; +import { RegistryInfo } from './_v2/api/system/registry-info'; + +// tslint:disable-next-line:export-just-namespace +export = fin; +export as namespace fin; + declare namespace fin { - var Application: import('./_v2/api/application/application').default - var Clipboard: import('./_v2/api/clipboard/clipboard').default + var Application: import('./_v2/api/application/application').default; + var Clipboard: import('./_v2/api/clipboard/clipboard').default; var ExternalApplication: import('./_v2/api/external-application/external-application').default - var Frame: import('./_v2/api/frame/frame').default - var GlobalHotkey: import('./_v2/api/global-hotkey/index').default - var InterApplicationBus: import('./_v2/api/interappbus/interappbus').default - var Notification: import('./_v2/api/notification/notification').default - var System: import('./_v2/api/system/system').default - var Window: import('./_v2/api/window/window').default + var Frame: import('./_v2/api/frame/frame').default; + var GlobalHotkey: import('./_v2/api/global-hotkey/index').default; + var InterApplicationBus: import('./_v2/api/interappbus/interappbus').default; + var Notification: import('./_v2/api/notification/notification').default; + var System: import('./_v2/api/system/system').default; + var Window: import('./_v2/api/window/window').default; const desktop: OpenFinDesktop; @@ -189,21 +204,6 @@ declare namespace fin { uuid: string; } - interface ShortCutConfig { - /** - * application has a shortcut on the desktop - */ - desktop?: boolean; - /** - * application has no shortcut in the start menu - */ - startMenu?: boolean; - /** - * application will be launched on system startup - */ - systemStartup?: boolean; - } - interface SuccessObj { httpResponseCode: number; } @@ -638,7 +638,7 @@ declare namespace fin { * Clears cached data containing window state/positions, * application resource files (images, HTML, JavaScript files), cookies, and items stored in the Local Storage. */ - clearCache(options: CacheOptions, callback?: () => void, errorCallback?: (reason: string) => void): void; + clearCache(options: ClearCacheOption, callback?: () => void, errorCallback?: (reason: string) => void): void; /** * Clears all cached data when OpenFin Runtime exits. */ @@ -684,7 +684,7 @@ declare namespace fin { /** * Returns information about the app asset. */ - getAppAssetInfo(options: AppAssetOptions, callback?: (appAssetInfo: AppAssetInfo) => void, errorCallback?: (reason: string) => void): void; + getAppAssetInfo(options: AppAssetRequest, callback?: (appAssetInfo: AppAssetInfo) => void, errorCallback?: (reason: string) => void): void; /** * Get additional info of cookies. */ @@ -830,27 +830,6 @@ declare namespace fin { updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; } - interface CacheOptions { - cache?: boolean; - cookies?: boolean; - localStorage?: boolean; - appcache?: boolean; - userData?: boolean; - } - - interface AppAssetInfo { - src?: string; - alias?: string; - version?: string; - target?: string; - args?: string; - mandatory?: boolean; - } - - interface AppAssetOptions { - alias: string; - } - interface ApplicationInfo { /** * true when the application is running. @@ -866,56 +845,6 @@ declare namespace fin { parentUuid?: string; } - interface Identity { - uuid: string; - name: string; - } - - interface EntityInfo { - name: string; - uuid: string; - parent: Identity; - entityType: string; - } - - interface DownloadPreloadOption { - url: string; - } - - interface DownloadPreloadInfo { - success: boolean; - url?: string; - error: string; - } - - interface CookieInfo { - name: string; - // expirationDate: Date; - domain: string; - path: string; - } - - interface CookieOption { - name: string; - } - - interface RegistryInfo { - data: any; - rootKey: string; - subkey: string; - type: string; - value: string; - } - - interface RuntimeDownloadOptions { - version: string; - } - - interface RuntimeDownloadProgress { - downloadedBytes: number; - totalBytes: number; - } - interface WindowDetails { uuid?: string; mainWindow?: WindowInfo; @@ -1015,61 +944,6 @@ declare namespace fin { date?: string; } - interface ProcessInfo { - /** - * the percentage of total CPU usage - */ - cpuUsage?: number; - /** - * the application name - */ - name?: string; - /** - * the current nonpaged pool usage in bytes - */ - nonPagedPoolUsage?: number; - /** - * the number of page faults - */ - pageFaultCount?: number; - /** - * the current paged pool usage in bytes - */ - pagedPoolUsage?: number; - /** - * the total amount of memory in bytes that the memory manager has committed - */ - pagefileUsage?: number; - /** - * the peak nonpaged pool usage in bytes - */ - peakNonPagedPoolUsage?: number; - /** - * the peak paged pool usage in bytes - */ - peakPagedPoolUsage?: number; - /** - * the peak value in bytes of pagefileUsage during the lifetime of this process - */ - peakPagefileUsage?: number; - /** - * the peak working set size in bytes - */ - peakWorkingSetSize?: number; - /** - * the native process identifier - */ - processId?: number; - /** - * the application UUID - */ - uuid?: string; - /** - * the current working set size (both shared and private data) in bytes - */ - workingSetSize?: number; - } - interface ProxyInfo { /** * the configured Proxy Address @@ -1797,13 +1671,6 @@ declare namespace fin { width?: number; } - interface ExternalApplicationInfo { - parent: { - uuid: string; - name: string; - }; - } - interface SessionChangedEvent { /** * the action that triggered this event: diff --git a/types/openfin/openfin-tests.ts b/types/openfin/openfin-tests.ts index 6059f54de7..9c8b714d05 100644 --- a/types/openfin/openfin-tests.ts +++ b/types/openfin/openfin-tests.ts @@ -235,8 +235,7 @@ function test_system() { cache: true, cookies: true, localStorage: true, - appcache: true, - userData: true + appcache: true }); // deleteCacheOnExit fin.desktop.System.deleteCacheOnExit(() => { From 9d052807cc11561a69aefc6ef238613958e316ec Mon Sep 17 00:00:00 2001 From: licui Date: Tue, 30 Oct 2018 11:12:28 -0400 Subject: [PATCH 062/213] update v2 shapes --- types/openfin/_v2/api/system/application.d.ts | 1 + types/openfin/_v2/api/system/process.d.ts | 39 ------ types/openfin/_v2/api/system/system.d.ts | 118 ++++++++++++------ types/openfin/_v2/api/system/window.d.ts | 14 ++- 4 files changed, 90 insertions(+), 82 deletions(-) diff --git a/types/openfin/_v2/api/system/application.d.ts b/types/openfin/_v2/api/system/application.d.ts index 9d7ea09b67..0e14602942 100644 --- a/types/openfin/_v2/api/system/application.d.ts +++ b/types/openfin/_v2/api/system/application.d.ts @@ -1,4 +1,5 @@ export interface ApplicationInfo { isRunning: boolean; uuid: string; + parentUuid?: string; } diff --git a/types/openfin/_v2/api/system/process.d.ts b/types/openfin/_v2/api/system/process.d.ts index 4a965d78d3..98901db137 100644 --- a/types/openfin/_v2/api/system/process.d.ts +++ b/types/openfin/_v2/api/system/process.d.ts @@ -1,54 +1,15 @@ export interface ProcessInfo { - /** - * the percentage of total CPU usage - */ cpuUsage?: number; - /** - * the application name - */ name?: string; - /** - * the current nonpaged pool usage in bytes - */ nonPagedPoolUsage?: number; - /** - * the number of page faults - */ pageFaultCount?: number; - /** - * the current paged pool usage in bytes - */ pagedPoolUsage?: number; - /** - * the total amount of memory in bytes that the memory manager has committed - */ pagefileUsage?: number; - /** - * the peak nonpaged pool usage in bytes - */ peakNonPagedPoolUsage?: number; - /** - * the peak paged pool usage in bytes - */ peakPagedPoolUsage?: number; - /** - * the peak value in bytes of pagefileUsage during the lifetime of this process - */ peakPagefileUsage?: number; - /** - * the peak working set size in bytes - */ peakWorkingSetSize?: number; - /** - * the native process identifier - */ processId?: number; - /** - * the application UUID - */ uuid?: string; - /** - * the current working set size (both shared and private data) in bytes - */ workingSetSize?: number; } diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index 31ed091619..497bd5f358 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -36,6 +36,23 @@ import { SystemEvents } from '../events/system'; * @typedef { Object } AppAssetRequest * @property { string } alias The name of the asset */ +/** + * ApplicationInfo interface + * @typedef { Object } ApplicationInfo + * @property { boolean } isRunning true when the application is running + * @property { string } uuid uuid of the application + * @property { string } parentUuid uuid of the application that launches this application + */ +/** + * @typedef { Object } ClearCacheOption + * @summary Clear cache options. + * @desc These are the options required by the clearCache function. + * + * @property {boolean} appcache html5 application cache + * @property {boolean} cache browser data cache for html files and images + * @property {boolean} cookies browser cookies + * @property {boolean} localStorage browser data that can be used across sessions + */ /** * CookieInfo interface * @typedef { Object } CookieInfo @@ -49,18 +66,26 @@ import { SystemEvents } from '../events/system'; * @property { string } name The name of the cookie */ /** - * ExternalConnection interface - * @typedef { Object } ExternalConnection - * @property { string } token The token to broker an external connection - * @property { string } uuid The uuid of the external connection +* CrashReporterOption interface +* @typedef { Object } CrashReporterOption +* @property { boolean } diagnosticMode In diagnostic mode the crash reporter will send diagnostic logs to +* the OpenFin reporting service on runtime shutdown +* @property { boolean } isRunning check if it's running +*/ +/** + * DownloadPreloadInfo interface + * @typedef { Object } DownloadPreloadInfo + * @desc downloadPreloadScripts function return value + * @property { string } url url to the preload script + * @property { string } error error during preload script acquisition + * @property { boolean } succeess download operation success */ /** -* ExternalProcessRequestType interface -* @typedef { Object } ExternalProcessRequestType -* @property { string } path The file path to where the running application resides -* @property { string } arguments The argument passed to the running application -* @property { Object } listener This is described in the {LaunchExternalProcessListner} type definition -*/ + * DownloadPreloadOption interface + * @typedef { Object } DownloadPreloadOption + * @desc These are the options object required by the downloadPreloadScripts function + * @property { string } url url to the preload script + */ /** * Entity interface * @typedef { Object } Entity @@ -75,6 +100,19 @@ import { SystemEvents } from '../events/system'; * @property { Identity } parent The parent of the entity * @property { string } entityType The type of the entity */ +/** + * ExternalConnection interface + * @typedef { Object } ExternalConnection + * @property { string } token The token to broker an external connection + * @property { string } uuid The uuid of the external connection + */ +/** +* ExternalProcessRequestType interface +* @typedef { Object } ExternalProcessRequestType +* @property { string } path The file path to where the running application resides +* @property { string } arguments The argument passed to the running application +* @property { Object } listener This is described in the {LaunchExternalProcessListner} type definition +*/ /** * GetLogRequestType interface * @typedef { Object } GetLogRequestType @@ -99,6 +137,23 @@ import { SystemEvents } from '../events/system'; * @property { string } error error and above * @property { string } fatal fatal only, indicates a crash is imminent */ +/** + * ProcessInfo interface + * @typedef { Object } ProcessInfo + * @property { numder } cpuUsage The percentage of total CPU usage + * @property { string } name The application name + * @property { number } nonPagedPoolUsage The current nonpaged pool usage in bytes + * @property { number } pageFaultCount The number of page faults + * @property { number } pagedPoolUsage The current paged pool usage in bytes + * @property { number } pagefileUsage The total amount of memory in bytes that the memory manager has committed + * @property { number } peakNonPagedPoolUsage The peak nonpaged pool usage in bytes + * @property { number } peakPagedPoolUsage The peak paged pool usage in bytes + * @property { number } peakPagefileUsage The peak value in bytes of pagefileUsage during the lifetime of this process + * @property { number } peakWorkingSetSize The peak working set size in bytes + * @property { number } processId The native process identifier + * @property { string } uuid The application UUID + * @property { nubmer } workingSetSize The current working set size (both shared and private data) in bytes + */ /** * ProxyConfig interface * @typedef { Object } ProxyConfig @@ -129,36 +184,25 @@ import { SystemEvents } from '../events/system'; * @property { boolean } killtree Value to terminate the running application */ /** - * DownloadPreloadOption interface - * @typedef { Object } DownloadPreloadOption - * @desc These are the options object required by the downloadPreloadScripts function - * @property { string } url url to the preload script + * WindowDetail interface + * @typedef { Object } WindowDetail + * @property { number } bottom The bottom-most coordinate of the window + * @property { number } height The height of the window + * @property { boolean } isShowing Value to check if the window is showing + * @property { number } left The left-most coordinate of the window + * @property { string } name The name of the window + * @property { number } right The right-most coordinate of the window + * @property { string } state The window state + * @property { number } top The top-most coordinate of the window + * @property { number } width The width of the window */ /** - * DownloadPreloadInfo interface - * @typedef { Object } DownloadPreloadInfo - * @desc downloadPreloadScripts function return value - * @property { string } url url to the preload script - * @property { string } error error during preload script acquisition - * @property { boolean } succeess download operation success + * WindowInfo interface + * @typedef { Object } WindowInfo + * @property { Array } childWindows The array of child windows details + * @property { WindowDetail } mainWindow The main window detail + * @property { string } uuid The uuid of the application */ -/** - * @typedef { Object } ClearCacheOption - * @summary Clear cache options. - * @desc These are the options required by the clearCache function. - * - * @property {boolean} appcache html5 application cache - * @property {boolean} cache browser data cache for html files and images - * @property {boolean} cookies browser cookies - * @property {boolean} localStorage browser data that can be used across sessions - */ -/** -* CrashReporterOption interface -* @typedef { Object } CrashReporterOption -* @property { boolean } diagnosticMode In diagnostic mode the crash reporter will send diagnostic logs to -* the OpenFin reporting service on runtime shutdown -* @property { boolean } isRunning check if it's running -*/ /** * An object representing the core of OpenFin Runtime. Allows the developer * to perform system-level actions, such as accessing logs, viewing processes, diff --git a/types/openfin/_v2/api/system/window.d.ts b/types/openfin/_v2/api/system/window.d.ts index 886084fad6..7b2a3b858b 100644 --- a/types/openfin/_v2/api/system/window.d.ts +++ b/types/openfin/_v2/api/system/window.d.ts @@ -1,14 +1,16 @@ export interface WindowInfo { - uuid: string; - mainWindow: WindowDetail; childWindows: Array; + mainWindow: WindowDetail; + uuid: string; } export interface WindowDetail { - name: string; - top: number; - right: number; bottom: number; height: number; - width: number; + isShowing: boolean; left: number; + name: string; + right: number; + state: string; + top: number; + width: number; } From 42c77469c97668daf3e66d4d3ea8dcf3774485e6 Mon Sep 17 00:00:00 2001 From: licui Date: Tue, 30 Oct 2018 11:13:24 -0400 Subject: [PATCH 063/213] remove more shapes from v1 to v2 --- types/openfin/index.d.ts | 48 +++------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index bc71eeed85..fb9a6fdc1d 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -27,6 +27,7 @@ import { Identity } from './_v2/identity'; import { ShortCutConfig } from './_v2/api/application/application'; import { ExternalApplicationInfo } from './_v2/api/external-application/external-application'; +import { ApplicationInfo } from './_v2/api/system/application'; import { ClearCacheOption } from './_v2/api/system/clearCacheOption'; import { CookieInfo, CookieOption } from './_v2/api/system/cookie'; import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadProgress } from './_v2/api/system/download-asset'; @@ -34,6 +35,7 @@ import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/dow import { EntityInfo } from './_v2/api/system/entity'; import { ProcessInfo } from './_v2/api/system/process'; import { RegistryInfo } from './_v2/api/system/registry-info'; +import { WindowDetail, WindowInfo } from './_v2/api/system/window'; // tslint:disable-next-line:export-just-namespace export = fin; @@ -680,7 +682,7 @@ declare namespace fin { /** * Retrieves an array of data (name, ids, bounds) for all application windows. */ - getAllWindows(callback?: (windowInfoList: WindowDetails[]) => void, errorCallback?: (reason: string) => void): void; + getAllWindows(callback?: (windowInfoList: WindowInfo[]) => void, errorCallback?: (reason: string) => void): void; /** * Returns information about the app asset. */ @@ -830,50 +832,6 @@ declare namespace fin { updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; } - interface ApplicationInfo { - /** - * true when the application is running. - */ - isRunning?: boolean; - /** - * uuid of the application. - */ - uuid?: string; - /** - * uuid of the application that launches this application. - */ - parentUuid?: string; - } - - interface WindowDetails { - uuid?: string; - mainWindow?: WindowInfo; - childWindows?: WindowInfo[]; - } - - interface WindowInfo { - /** - * name of the child window - */ - name?: string; - /** - * top-most coordinate of the child window - */ - top?: number; - /** - * right-most coordinate of the child window - */ - right?: number; - /** - * bottom-most coordinate of the child window - */ - bottom?: number; - /** - * left-most coordinate of the child window - */ - left?: number; - } - interface HostSpecInfo { /** * "x86" for 32-bit or "x86_64" for 64-bit From fbb37f35806bf494708030a4ce5fd1581dbdf029 Mon Sep 17 00:00:00 2001 From: licui Date: Tue, 30 Oct 2018 12:23:26 -0400 Subject: [PATCH 064/213] update host specs shape --- types/openfin/_v2/api/system/host-specs.d.ts | 8 ++- types/openfin/_v2/api/system/system.d.ts | 58 +++++++++++++++----- types/openfin/index.d.ts | 58 +------------------- 3 files changed, 52 insertions(+), 72 deletions(-) diff --git a/types/openfin/_v2/api/system/host-specs.d.ts b/types/openfin/_v2/api/system/host-specs.d.ts index 2c5a134aea..dfd3e665fd 100644 --- a/types/openfin/_v2/api/system/host-specs.d.ts +++ b/types/openfin/_v2/api/system/host-specs.d.ts @@ -14,9 +14,11 @@ export interface GpuInfo { name: string; } export interface HostSpecs { - cpu: CpuInfo[]; - memory: number; + aeroGlassEnabled?: boolean; arch: string; - name: string; + cpus: CpuInfo[]; gpu: GpuInfo; + memory: number; + name: string; + screenSaver?: boolean; } diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index 497bd5f358..aa0467f340 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -65,6 +65,13 @@ import { SystemEvents } from '../events/system'; * @typedef { Object } CookieOption * @property { string } name The name of the cookie */ +/** + * CpuInfo interface + * @typedef { Object } CpuInfo + * @property { string } model The model of the cpu + * @property { number } speed The number in MHz + * @property { Time } times The numbers of milliseconds the CPU has spent in different modes. + */ /** * CrashReporterOption interface * @typedef { Object } CrashReporterOption @@ -107,19 +114,35 @@ import { SystemEvents } from '../events/system'; * @property { string } uuid The uuid of the external connection */ /** -* ExternalProcessRequestType interface -* @typedef { Object } ExternalProcessRequestType -* @property { string } path The file path to where the running application resides -* @property { string } arguments The argument passed to the running application -* @property { Object } listener This is described in the {LaunchExternalProcessListner} type definition -*/ + * ExternalProcessRequestType interface + * @typedef { Object } ExternalProcessRequestType + * @property { string } path The file path to where the running application resides + * @property { string } arguments The argument passed to the running application + * @property { Object } listener This is described in the {LaunchExternalProcessListner} type definition + */ /** -* GetLogRequestType interface -* @typedef { Object } GetLogRequestType -* @property { string } name The name of the running application -* @property { number } endFile The file length of the log file -* @property { number } sizeLimit The set size limit of the log file -*/ + * GetLogRequestType interface + * @typedef { Object } GetLogRequestType + * @property { string } name The name of the running application + * @property { number } endFile The file length of the log file + * @property { number } sizeLimit The set size limit of the log file + */ +/** + * GpuInfo interface + * @typedef { Object } GpuInfo + * @property { string } name The graphics card name + */ +/** + * HostSpecs interface + * @typedef { Object } HostSpecs + * @property { boolean } aeroGlassEnabled Value to check if Aero Glass theme is supported on Windows platforms + * @property { string } arch "x86" for 32-bit or "x86_64" for 64-bit + * @property { Array } cpus The same payload as Node's os.cpus() + * @property { GpuInfo } gpu The graphics card name + * @property { number } memory The same payload as Node's os.totalmem() + * @property { string } name The OS name and version/edition + * @property { boolean } screenSaver Value to check if screensaver is running. Supported on Windows only + */ /** * Identity interface * @typedef { Object } Identity @@ -183,6 +206,15 @@ import { SystemEvents } from '../events/system'; * @property { number } timeout Time out period before the running application terminates * @property { boolean } killtree Value to terminate the running application */ +/** + * Time interface + * @typedef { Object } Time + * @property { number } user The number of milliseconds the CPU has spent in user mode + * @property { number } nice The number of milliseconds the CPU has spent in nice mode + * @property { number } sys The number of milliseconds the CPU has spent in sys mode + * @property { number } idle The number of milliseconds the CPU has spent in idle mode + * @property { number } irq The number of milliseconds the CPU has spent in irq mode + */ /** * WindowDetail interface * @typedef { Object } WindowDetail @@ -372,7 +404,7 @@ export default class System extends EmitterBase { getRvmInfo(): Promise; /** * Retrieves system information. - * @return {Promise.} + * @return {Promise.} * @tutorial System.getHostSpecs */ getHostSpecs(): Promise; diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index fb9a6fdc1d..fbde514cb0 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -33,6 +33,7 @@ import { CookieInfo, CookieOption } from './_v2/api/system/cookie'; import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadProgress } from './_v2/api/system/download-asset'; import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/download-preload'; import { EntityInfo } from './_v2/api/system/entity'; +import { HostSpecs } from './_v2/api/system/host-specs'; import { ProcessInfo } from './_v2/api/system/process'; import { RegistryInfo } from './_v2/api/system/registry-info'; import { WindowDetail, WindowInfo } from './_v2/api/system/window'; @@ -718,7 +719,7 @@ declare namespace fin { /** * Retrieves system information. */ - getHostSpecs(callback?: (info: HostSpecInfo) => void, errorCallback?: (reason: string) => void): void; + getHostSpecs(callback?: (info: HostSpecs) => void, errorCallback?: (reason: string) => void): void; /** * Retrieves the contents of the log with the specified filename. */ @@ -832,61 +833,6 @@ declare namespace fin { updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; } - interface HostSpecInfo { - /** - * "x86" for 32-bit or "x86_64" for 64-bit - */ - arch: string; - /** - * Same payload as Node's os.cpus() - */ - cpus: NodeCpuInfo[]; - gpu: { - /** - * Graphics card name - */ - name: string; - }; - /** - * Same payload as Node's os.totalmem() - */ - memory: number; - /** - * OS name and version/edition - */ - name: string; - } - - interface NodeCpuInfo { - model: string; - /** - * in MHz - */ - speed: number; - times: { - /** - * The number of milliseconds the CPU has spent in user mode. - */ - user: number; - /** - * The number of milliseconds the CPU has spent in nice mode. - */ - nice: number; - /** - * The number of milliseconds the CPU has spent in sys mode. - */ - sys: number; - /** - * The number of milliseconds the CPU has spent in idle mode. - */ - idle: number; - /** - * The number of milliseconds the CPU has spent in irq mode. - */ - irq: number; - }; - } - interface LogInfo { /** * the filename of the log From 8c3ffb8ecd348225a00e0ae31a97f3f9f568e96f Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Tue, 30 Oct 2018 18:00:06 +0000 Subject: [PATCH 065/213] Implement new 'Command' logic for Editor --- types/slate-react/index.d.ts | 139 +- types/slate-react/slate-react-tests.tsx | 8 +- types/slate/index.d.ts | 1545 ++++++++++++++++------- types/slate/slate-tests.ts | 45 +- 4 files changed, 1147 insertions(+), 590 deletions(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index 31e7b95cbf..c701f6f5e7 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for slate-react 0.18 +// Type definitions for slate-react 0.20 // Project: https://github.com/ianstormtaylor/slate // Definitions by: Andy Kent // Jamie Talbot @@ -6,9 +6,20 @@ // Patrick Sachs // Brandon Shelton // Irwan Fario Subastian +// Sebastian Greaves // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 -import { Mark, Node, Change, Schema, Value, Stack, Document } from "slate"; +import { + Document, + Editor as Controller, + Mark, + Node, + Operations, + Schema, + Stack, + Value, + Operation, +} from "slate"; import * as Immutable from "immutable"; import * as React from "react"; @@ -20,7 +31,7 @@ export interface RenderAttributes { export interface RenderMarkProps { attributes: RenderAttributes; children: React.ReactNode; - editor: Editor; + editor: Controller; mark: Mark; marks: Immutable.Set; node: Node; @@ -29,75 +40,54 @@ export interface RenderMarkProps { } export interface RenderNodeProps { - attributes: RenderAttributes; + attributes: object; children: React.ReactNode; - editor: Editor; + editor: Controller; + isFocused: boolean; isSelected: boolean; - key: string; node: Node; parent: Node; + readOnly: boolean; } +export interface RenderPlaceholderProps { + editor: Controller; + readOnly: boolean; +} + +export type EventHook = ( + event: Event, + editor: Controller, + next: () => any +) => any; + export interface Plugin { - onBeforeInput?: ( - event: Event, - change: Change, - editor: Editor - ) => Change | void; - onBlur?: (event: Event, change: Change, editor?: Editor) => Change | void; - onFocus?: (event: Event, change: Change, editor?: Editor) => Change | void; - onClick?: (event: Event, change: Change, editor?: Editor) => Change | void; - onCopy?: (event: Event, change: Change, editor?: Editor) => Change | void; - onCut?: (event: Event, change: Change, editor?: Editor) => Change | void; - onDragEnd?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDragEnter?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDragExit?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDragLeave?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDragOver?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDragStart?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onDrop?: (event: Event, change: Change, editor?: Editor) => Change | void; - onInput?: (event: Event, change: Change, editor?: Editor) => Change | void; - onKeyDown?: ( - event: Event, - change: Change, - editor?: Editor - ) => Change | void; - onKeyUp?: (event: Event, change: Change, editor?: Editor) => Change | void; - onPaste?: (event: Event, change: Change, editor?: Editor) => Change | void; - onSelect?: (event: Event, change: Change, editor?: Editor) => Change | void; - onChange?: (change: Change, editor?: Editor) => any; - renderEditor?: (props: RenderAttributes, editor?: Editor) => object | void; - schema?: Schema; - decorateNode?: (node: Node) => Range[] | void; - renderMark?: (props: RenderMarkProps) => any; - renderNode?: (props: RenderNodeProps) => any; - renderPlaceholder?: (props: RenderAttributes) => any; - renderPortal?: (props: RenderAttributes) => any; - validateNode?: (node: Node) => any; + decorateNode?: (node: Node, editor: Controller, next: () => any) => any; + renderEditor?: (props: EditorProps, editor: Controller, next: () => any) => any; + renderMark?: (props: RenderMarkProps, editor: Controller, next: () => any) => any; + renderNode?: (props: RenderNodeProps, editor: Controller, next: () => any) => any; + renderPlaceholder?: (props: RenderPlaceholderProps, editor: Controller, next: () => any) => any; + shouldNodeComponentUpdate?: (previousProps: RenderNodeProps, props: RenderNodeProps, editor: Controller, next: () => any) => any; + + onBeforeInput?: EventHook; + onBlur?: EventHook; + onClick?: EventHook; + onCompositionEnd?: EventHook; + onCompositionStart?: EventHook; + onCopy?: EventHook; + onCut?: EventHook; + onDragEnd?: EventHook; + onDragEnter?: EventHook; + onDragExit?: EventHook; + onDragLeave?: EventHook; + onDragOver?: EventHook; + onDragStart?: EventHook; + onDrop?: EventHook; + onFocus?: EventHook; + onInput?: EventHook; + onKeyDown?: EventHook; + onPaste?: EventHook; + onSelect?: EventHook; } export interface BasicEditorProps { @@ -105,7 +95,7 @@ export interface BasicEditorProps { autoCorrect?: boolean; autoFocus?: boolean; className?: string; - onChange?: (change: Change) => any; + onChange?: (operations: Immutable.List, value: Value) => any; placeholder?: any; plugins?: Plugin[]; readOnly?: boolean; @@ -116,27 +106,34 @@ export interface BasicEditorProps { tabIndex?: number; } -// tsling:disable interface-over-type-literal export type EditorProps = BasicEditorProps & Plugin; export interface EditorState { schema: Schema; value: Value; - stack: Stack; // [TODO] define stack + stack: Stack; } export class Editor extends React.Component { + controller: Controller; schema: Schema; - value: Value; stack: Stack; readonly plugins: Plugin[]; // Instance Methods + applyOperation(...args: any[]): Controller; blur(): void; - change(fn: (change: Change) => any): void; - change(...args: any[]): void; + command(...args: any[]): Controller; focus(): void; + normalize(...args: any[]): Controller; + operations(): Operations; + query(...args: any[]): Controller; + readOnly(): boolean; + resolveController(plugins: Plugin[], schema: Schema, commands: any[], queries: any[]): void; + run(...args: any[]): any; + value(): Value; + withoutNormalizing(...args: any[]): Controller; } export type SlateType = diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index d8c8ea0073..ec46aea800 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -1,5 +1,5 @@ import { Editor, Plugin, EditorProps, RenderNodeProps } from "slate-react"; -import { Change, Value } from "slate"; +import { Value } from "slate"; import * as React from "react"; class MyPlugin implements Plugin { @@ -18,10 +18,6 @@ class MyPlugin implements Plugin { } } } - - onChange(change: Change): void { - change.blur(); - } } const myPlugin = new MyPlugin(); @@ -37,11 +33,9 @@ class MyEditor extends React.Component { value: Value.create() }; } - render() { return ; } } diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 8f80ba4615..aae337ed04 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -42,7 +42,7 @@ export interface Rules { max?: number; match?: ObjectAndType | ObjectAndType[]; }>; - normalize?: (change: Change, error: SlateError) => void; + normalize?: (editor: Editor, error: SlateError) => void; parent?: ObjectAndType | ObjectAndType[]; text?: RegExp; } @@ -145,7 +145,6 @@ export class Value extends Immutable.Record({}) { static fromJS(properties: ValueJSON): Value; static isValue(maybeValue: any): maybeValue is Value; - change(): Change; toJSON(): ValueJSON; addMark(path: Path, offset: number, length: number, mark: Mark): Value; insertNode(path: Path, node: Node): Value; @@ -578,487 +577,6 @@ export class Mark extends Immutable.Record({}) { toJSON(): MarkProperties; } -export interface ChangeOption { - normalize?: boolean; -} - -export class Change extends Immutable.Record({}) { - object: "change"; - value: Value; - operations: Immutable.List; - - call(customChange: (change: Change, ...args: any[]) => Change): Change; - - applyOperations(operations: Operation[]): Change; - applyOperation(operation: Operation): Change; - - withoutNormalization(fn: (change: Change) => void): Change; - setOperationFlag(key: string, value: any): Change; - getFlag(key: string, options?: object): any; - unsetOperationFlag(key: string): Change; - - // Full Value Change - setValue(properties: Value | ValueProperties): Change; - - // Current Value Changes - deleteBackward(n: number): Change; - deleteForward(n: number): Change; - delete(): Change; - insertBlock(block: Block | BlockProperties | string): Change; - insertFragment(fragment: Document): Change; - insertInline(inline: Inline | InlineProperties): Change; - insertText(text: string): Change; - addMark(mark: Mark | MarkProperties | string): Change; - setBlocks(properties: BlockProperties | string): Change; - setInlines(properties: InlineProperties | string): Change; - splitBlock(depth: number): Change; - splitInline(depth: number): Change; - removeMark(mark: Mark | MarkProperties | string): Change; - replaceMark( - mark: Mark | MarkProperties | string, - newMark: Mark | MarkProperties | string - ): Change; - toggleMark(mark: Mark | MarkProperties | string): Change; - unwrapBlock(properties: BlockProperties | string): Change; - unwrapInline(properties: InlineProperties | string): Change; - wrapBlock(properties: BlockProperties | string): Change; - wrapInline(properties: InlineProperties | string): Change; - wrapText(prefix: string, suffix?: string): Change; - - // Selection Changes - blur(): Change; - - flip(): Change; - focus(): Change; - move(n: number): Change; - - moveAnchorBackward(n?: number): Change; - moveAnchorForward(n?: number): Change; - moveAnchorTo(path: Path, offset: number): Change; - moveAnchorToEndOfBlock(): Change; - moveAnchorToEndOfInline(): Change; - moveAnchorToEndOfDocument(): Change; - moveAnchorToEndOfNextBlock(): Change; - moveAnchorToEndOfNextInline(): Change; - moveAnchorToEndOfNextText(): Change; - moveAnchorEndOfNode(node: Node): Change; - moveAnchorToEndOfPreviousBlock(): Change; - moveAnchorToEndOfPreviousInline(): Change; - moveAnchorToEndOfPreviousText(): Change; - moveAnchorToEndOfText(): Change; - moveAnchorToStartOfBlock(): Change; - moveAnchorToStartOfDocument(): Change; - moveAnchorToStartOfInline(): Change; - moveAnchorToStartOfNextBlock(): Change; - moveAnchorToStartOfNextInline(): Change; - moveAnchorToStartOfNextText(): Change; - moveAnchorToStartOfNode(node: Node): Change; - moveAnchorToStartOfPreviousBlock(): Change; - moveAnchorToStartOfPreviousInline(): Change; - moveAnchorToStartOfPreviousText(): Change; - moveAnchorToStartOfText(): Change; - - moveBackward(point: Point, n?: number): Change; - moveEndBackward(point: Point, n?: number): Change; - moveEndForward(point: Point, n?: number): Change; - - moveEndTo(path: Path, offset: number): Change; - moveEndToEndOfBlock(): Change; - moveEndToEndOfDocument(): Change; - moveEndToEndOfInline(): Change; - moveEndToEndOfNextBlock(): Change; - moveEndToEndOfNextInline(): Change; - moveEndToEndOfNextText(): Change; - moveEndToEndOfNode(node: Node): Change; - moveEndToEndOfPreviousBlock(): Change; - moveEndToEndOfPreviousInline(): Change; - moveEndToEndOfPreviousText(): Change; - moveEndToEndOfText(): Change; - moveEndToStartOfBlock(): Change; - moveEndToStartOfDocument(): Change; - moveEndToStartOfInline(): Change; - moveEndToStartOfNextBlock(): Change; - moveEndToStartOfNextInline(): Change; - moveEndToStartOfNextText(): Change; - moveEndToStartOfNode(node: Node): Change; - moveEndToStartOfPreviousBlock(): Change; - moveEndToStartOfPreviousInline(): Change; - moveEndToStartOfPreviousText(): Change; - moveEndToStartOfText(): Change; - - moveFocusBackward(n?: number): Change; - moveFocusForward(n?: number): Change; - moveFocusTo(point: Point, n?: number): Change; - moveFocusToEndOfBlock(): Change; - moveFocusToEndOfDocument(): Change; - moveFocusToEndOfInline(): Change; - moveFocusToEndOfNextBlock(): Change; - moveFocusToEndOfNextInline(): Change; - moveFocusToEndOfNextText(): Change; - moveFocusToEndOfNode(node: Node): Change; - moveFocusToEndOfPreviousBlock(): Change; - moveFocusToEndOfPreviousInline(): Change; - moveFocusToEndOfPreviousText(): Change; - moveFocusToEndOfText(): Change; - moveFocusToStartOfBlock(): Change; - moveFocusToStartOfDocument(): Change; - moveFocusToStartOfInline(): Change; - moveFocusToStartOfNextBlock(): Change; - moveFocusToStartOfNextInline(): Change; - moveFocusToStartOfNextText(): Change; - moveFocusToStartOfNode(node: Node): Change; - moveFocusToStartOfPreviousBlock(): Change; - moveFocusToStartOfPreviousInline(): Change; - moveFocusToStartOfPreviousText(): Change; - moveFocusToStartOfText(): Change; - - moveForward(point: Point, n?: number): Change; - - moveStartForward(point: Point, n?: number): Change; - moveStartBackward(point: Point, n?: number): Change; - moveStartTo(point: Point, n?: number): Change; - moveStartToEndOfBlock(): Change; - moveStartToEndOfDocument(): Change; - moveStartToEndOfInline(): Change; - moveStartToEndOfNextBlock(): Change; - moveStartToEndOfNextInline(): Change; - moveStartToEndOfNextText(): Change; - moveStartToEndOfNode(node: Node): Change; - moveStartToEndOfPreviousBlock(): Change; - moveStartToEndOfPreviousInline(): Change; - moveStartToEndOfPreviousText(): Change; - moveStartToEndOfText(): Change; - moveStartToStartOfBlock(): Change; - moveStartToStartOfDocument(): Change; - moveStartToStartOfInline(): Change; - moveStartToStartOfNextBlock(): Change; - moveStartToStartOfNextInline(): Change; - moveStartToStartOfNextText(): Change; - moveStartToStartOfNode(node: Node): Change; - moveStartToStartOfPreviousBlock(): Change; - moveStartToStartOfPreviousInline(): Change; - moveStartToStartOfPreviousText(): Change; - moveStartToStartOfText(): Change; - - moveTo(path: Path, offset: number): Change; - moveToAnchor(): Change; - moveToFocus(): Change; - moveToStart(): Change; - moveToEnd(): Change; - moveToEndOfBlock(): Change; - moveToEndOfDocument(): Change; - moveToEndOfInline(): Change; - moveToEndOfNextBlock(): Change; - moveToEndOfNextInline(): Change; - moveToEndOfNextText(): Change; - moveToEndOfNode(node: Node): Change; - moveToEndOfPreviousBlock(): Change; - moveToEndOfPreviousInline(): Change; - moveToEndOfPreviousText(): Change; - moveToEndOfText(): Change; - moveToStartOfBlock(): Change; - moveToStartOfDocument(): Change; - moveToStartOfInline(): Change; - moveToStartOfNextBlock(): Change; - moveToStartOfNextInline(): Change; - moveToStartOfNextText(): Change; - moveToStartOfNode(node: Node): Change; - moveToStartOfPreviousBlock(): Change; - moveToStartOfPreviousInline(): Change; - moveToStartOfPreviousText(): Change; - moveToStartOfText(): Change; - - moveToRangeOfDocument(): Change; - moveToRangeOfNode(node: Node): Change; - select(properties: Range | RangeProperties, options: ChangeOption): Change; - setAnchor(point: Point): Change; - setEnd(point: Point): Change; - setFocus(point: Point): Change; - setStart(point: Point): Change; - snapshotSelection(): Change; - deselect(): Change; - - // Document Changes - deleteCharBackwardAtRange(range: Range, options?: ChangeOption): Change; - deleteLineBackwardAtRange(range: Range, options?: ChangeOption): Change; - deleteWordBackwardAtRange(range: Range, options?: ChangeOption): Change; - deleteBackwardAtRange(range: Range, options?: ChangeOption): Change; - deleteCharForwardAtRange(range: Range, options?: ChangeOption): Change; - deleteLineForwardAtRange(range: Range, options?: ChangeOption): Change; - deleteWordForwardAtRange(range: Range, options?: ChangeOption): Change; - deleteForwardAtRange(range: Range, options?: ChangeOption): Change; - deleteAtRange(range: Range, options?: ChangeOption): Change; - insertBlockAtRange( - range: Range, - block: Block | BlockProperties | string, - options?: ChangeOption - ): Change; - insertFragmentAtRange( - range: Range, - fragment: Document, - options?: ChangeOption - ): Change; - insertInlineAtRange( - range: Range, - inline: Inline | InlineProperties, - options?: ChangeOption - ): Change; - insertTextAtRange( - range: Range, - text: string, - marks?: Immutable.Set, - options?: ChangeOption - ): Change; - addMarkAtRange( - range: Range, - mark: Mark | MarkProperties | string, - options?: ChangeOption - ): Change; - addMarksAtRange( - range: Range, - marks: Mark[] | MarkProperties[] | string[], - options?: ChangeOption - ): Change; - setBlocksAtRange( - range: Range, - properties: BlockProperties | string, - options?: ChangeOption - ): Change; - setInlinesAtRange( - range: Range, - properties: InlineProperties | string, - options?: ChangeOption - ): Change; - splitBlockAtRange( - range: Range, - depth: number, - height?: number, - options?: ChangeOption - ): Change; - splitInlineAtRange( - range: Range, - depth: number, - height?: number, - options?: ChangeOption - ): Change; - removeMarkAtRange( - range: Range, - mark: Mark | MarkProperties | string, - options?: ChangeOption - ): Change; - toggleMarkAtRange( - range: Range, - mark: Mark | MarkProperties | string, - options?: ChangeOption - ): Change; - unwrapBlockAtRange( - range: Range, - properties: BlockProperties | string, - options?: ChangeOption - ): Change; - unwrapInlineAtRange( - range: Range, - properties: InlineProperties | string, - options?: ChangeOption - ): Change; - wrapBlockAtRange( - range: Range, - properties: BlockProperties | string, - options?: ChangeOption - ): Change; - wrapInlineAtRange( - range: Range, - properties: InlineProperties | string, - options?: ChangeOption - ): Change; - wrapTextAtRange( - range: Range, - prefix: string, - suffix?: string, - options?: ChangeOption - ): Change; - - // Node Changes - addMarkByKey( - key: string, - offset: number, - length: number, - mark: Mark - ): Change; - insertNodeByKey(key: string, index: number, node: Node): Change; - insertFragmentByKey(key: string, index: number, fragment: Document): Change; - insertTextByKey( - key: string, - offset: number, - text: string, - marks?: Immutable.Set | Mark[] - ): Change; - moveNodeByKey(key: string, newKey: string, newIndex: number): Change; - removeMarkByKey( - key: string, - offset: number, - length: number, - mark: Mark - ): Change; - removeNodeByKey(key: string): Change; - replaceNodeByKey(key: string, node: Node): Change; - removeTextByKey(key: string, offset: number, length: number): Change; - setMarkByKey( - key: string, - offset: number, - length: number, - mark: Mark, - properties: MarkProperties - ): Change; - setNodeByKey( - key: string, - properties: BlockProperties | InlineProperties | string - ): Change; - splitNodeByKey(key: string, offset: number): Change; - unwrapInlineByKey( - key: string, - properties: InlineProperties | string - ): Change; - unwrapBlockByKey(key: string, properties: BlockProperties | string): Change; - unwrapNodeByKey(key: string): Change; - wrapInlineByKey(key: string, properties: InlineProperties | string): Change; - wrapBlockByKey(key: string, properties: BlockProperties | string): Change; - wrapNodeByKey(key: string): Change; - - // by path - addMarkByPath( - path: Path, - offset: number, - length: number, - mark: MarkProperties | Mark | string, - options: ChangeOption - ): Change; - insertFragmentByPath( - path: Path, - index: number, - fragment: Document, - options: ChangeOption - ): Change; - insertNodeByPath( - path: Path, - index: number, - node: Node, - options: ChangeOption - ): Change; - insertTextByPath( - path: Path, - offset: number, - text: string, - marks: Immutable.Set | null | undefined, - options: ChangeOption - ): Change; - mergeNodeByPath(path: Path, options: ChangeOption): Change; - mergeNodeByKey(key: string, options: ChangeOption): Change; - moveNodeByPath( - path: Path, - newPath: Path, - newIndex: number, - options: ChangeOption - ): Change; - removeMarkByPath( - path: Path, - offset: number, - length: number, - mark: MarkProperties | Mark | string, - options: ChangeOption - ): Change; - removeAllMarksByPath(path: Path, options: ChangeOption): Change; - removeAllMarksByKey(key: string, options: ChangeOption): Change; - removeNodeByPath(path: Path, options: ChangeOption): Change; - removeTextByPath( - path: Path, - offset: number, - length: number, - options: ChangeOption - ): Change; - replaceNodeByPath(path: Path, newNode: Node, options: ChangeOption): Change; - replaceTextByPath( - path: Path, - offset: number, - length: number, - text: string, - marks: Immutable.Set | null | undefined, - options: ChangeOption - ): Change; - replaceTextByKey( - key: string, - offset: number, - length: number, - text: string, - marks: Immutable.Set | null | undefined, - options: ChangeOption - ): Change; - setMarksByPath( - path: Path, - offset: number, - length: number, - mark: Mark, - properties: MarkProperties, - options: ChangeOption - ): Change; - setNodeByPath( - path: Path, - properties: NodeProperties, - options: ChangeOption - ): Change; - setTextByPath( - path: Path, - text: string, - marks: Immutable.Set | null | undefined, - options: ChangeOption - ): Change; - setTextByKey( - key: string, - text: string, - marks: Immutable.Set | null | undefined, - options: ChangeOption - ): Change; - splitNodeByPath( - path: Path, - position: number, - options?: ChangeOption - ): Change; - splitDescendantByPath( - path: Path, - textPath: Path, - textOffset: number, - options: ChangeOption - ): Change; - unwrapInlineByPath( - path: Path, - properties: InlineProperties, - options: ChangeOption - ): Change; - unwrapBlockByPath( - path: Path, - properties: BlockProperties, - options: ChangeOption - ): Change; - unwrapNodeByPath(path: Path, options: ChangeOption): Change; - wrapBlockByPath(path: Path, block: Block, options: ChangeOption): Change; - wrapInlineByPath(path: Path, inline: Inline, options: ChangeOption): Change; - wrapNodeByPath(path: Path, node: Node): Change; - - normalize(options: ChangeOption): Change; - normalizeDocument(options: ChangeOption): Change; - normalizeNodeByKey(key: string, options: ChangeOption): Change; - normalizeAncestorsByKey(key: string): Change; - normalizeParentByKey(key: string, options: ChangeOption): Change; - normalizeNodeByPath(path: Path, options: ChangeOption): Change; - normalizeParentByPath(path: Path, options: ChangeOption): Change; - normalizeNodeAndChildren(node: Node, schema: Schema): Change; - normalizeNode(node: Node, schema: Schema): Change; - - // History Changes - redo(): Change; - undo(): Change; -} - export interface SelectionProperties { anchor?: Point; focus?: Point; @@ -1530,7 +1048,7 @@ export interface PathUtils { } export interface EditorProperties { - onChange?: (change: Change) => void; + onChange?: (value: Value) => void; plugins?: any[]; readOnly?: boolean; value?: Value; @@ -1538,21 +1056,1074 @@ export interface EditorProperties { export class Editor { object: "editor"; - onChange: (change: Change) => void; + onChange: (value: Value) => void; plugins: any[]; readOnly: boolean; value: Value; constructor(attributes: EditorProperties) - change(customChange: (change: Change, ...args: any[]) => Change): void; + /** + * Apply an `operation` to the editor, updating its value. + */ + applyOperation(operation: Operation): Editor; + + /** + * Synchronously flush the current changes to editor, calling onChange. + * In normal operation you never need to use this method! Reserved for testing. + */ + flush(): Editor; + command(name: string, ...args: any[]): void; event(handler: string, event: Event | SyntheticEvent): void; query(query: string, ...args: any[]): any; + + /** + * Add a new command by type with the editor. This will make the command available as a top-level method on the editor + */ registerCommand(command: string): void; + + /** + * Add a new query by type with the editor. This will make the query available as a top-level method on the editor. + */ registerQuery(query: string): void; + + /** + * Run the middleware stack by key with args, returning its result. + * In normal operation you never need to use this method! Reserved for testing. + */ run(key: string, ...args: any[]): any; setReadOnly(readOnly: boolean): Editor; - setValue(value: Value, options?: object): Editor; + + /** + * Set the editor's value state. + * You can optionally provide a normalize option to either for the editor to completely re-normalize the new value based on its schema or not. + * By default, the editor will re-normalize only if the value is not equal to its previously seen value (which it knows was normalized). + */ + setValue(value: Value, options?: { normalize: () => void }): Editor; + + // Built in Command Operations // + // Current Selection Commands // + /** + * Add a mark to the characters in the current selection + */ + addMark(mark: Mark | MarkProperties | string): Editor; + + /** + * Delete everything in the current selection. + */ + delete(): Editor; + + /** + * Delete backward n characters at the current cursor. + * If the selection is expanded, behaviour is equivalent to delete() + */ + deleteBackward(n: number): Editor; + + /** + * Delete backward n characters at the current cursor. + * If the selection is expanded, behaviour is equivalent to delete() + */ + deleteForward(n: number): Editor; + + /** + * Insert a new block at the same level as the current block, splitting the current block to make room if it is non-empty. + * If the selection is expanded, it will be deleted first. + */ + insertBlock(block: Block | BlockProperties | string): Editor; + + /** + * Insert a document fragment at the current selection. If the selection is expanded, it will be deleted first. + */ + insertFragment(fragment: Document): Editor; + + /** + * Insert a new inline at the current cursor position, splitting the text to make room if it is non-empty. + * If the selection is expanded, it will be deleted first. + */ + insertInline(inline: Inline | InlineProperties): Editor; + + /** + * Insert a string of text at the current selection. If the selection is expanded, it will be deleted first + */ + insertText(text: string): Editor; + + /** + * Set the properties of the Blocks in the current selection. + * Passing a string will set the blocks' type only. + */ + setBlocks(properties: BlockProperties | string): Editor; + + /** + * Set the properties of the Inlines nodes in the current selection. + * Passing a string will set the nodes' type only. + */ + setInlines(properties: InlineProperties | string): Editor; + + /** + * Split the Block in the current selection by depth levels. + * If the selection is expanded, it will be deleted first. + */ + splitBlock(depth: number): Editor; + + /** + * Split the Inline node in the current selection by depth levels. + * If the selection is expanded, it will be deleted first + */ + splitInline(depth: number): Editor; + + /** + * Remove a mark from the characters in the current selection. + * Passing a string will implicitly create a Mark of that type for removal. + */ + removeMark(mark: Mark | MarkProperties | string): Editor; + + /** + * Remove a mark from the characters in the current selection. + * Passing a string will implicitly create a Mark of that type. + */ + replaceMark( + mark: Mark | MarkProperties | string, + newMark: Mark | MarkProperties | string + ): Editor; + + /** + * Add or remove a mark from the characters in the current selection, depending on it already exists on any or not. + * Passing a string will implicitly create a Mark of that type to toggle. + */ + toggleMark(mark: Mark | MarkProperties | string): Editor; + + /** + * Unwrap all Block nodes in the current selection that match a type and/or data + */ + unwrapBlock(properties: BlockProperties | string): Editor; + + /** + * Unwrap all Inline nodes in the current selection that match a type and/or data + */ + unwrapInline(properties: InlineProperties | string): Editor; + + /** + * Wrap the Block nodes in the current selection with a new Block + */ + wrapBlock(properties: BlockProperties | string): Editor; + + /** + * Wrap the Block nodes in the current selection with a new Inline + */ + wrapInline(properties: InlineProperties | string): Editor; + + /** + * Surround the text in the current selection with prefix and suffix strings. + * If the suffix is ommitted, the prefix will be used instead. + */ + wrapText(prefix: string, suffix?: string): Editor; + + // Selection Commands // + /** + * Blur the current selection + */ + blur(): Editor; + + /** + * Unset the selection + */ + deselect(): Editor; + + /** + * Flip the selection + */ + flip(): Editor; + + /** + * Focus the current selection + */ + focus(): Editor; + + /** + * Move the anchor of the current selection backward n characters + */ + moveAnchorBackward(n?: number): Editor; + /** + * Move the anchor of the current selection forward n characters + */ + moveAnchorForward(n?: number): Editor; + /** + * Move the anchor of the current selection to a new path and offset + */ + moveAnchorTo(path: Path, offset: number): Editor; + /** + * Move the anchor of the current selection to the end of the closest block parent. + */ + moveAnchorToEndOfBlock(): Editor; + /** + * Move the anchor of the current selection to the end of the closest inline parent. + */ + moveAnchorToEndOfInline(): Editor; + /** + * Move the anchor of the current selection to the end of the document. + */ + moveAnchorToEndOfDocument(): Editor; + /** + * Move the anchor of the current selection to the end of the next block. + */ + moveAnchorToEndOfNextBlock(): Editor; + /** + * Move the anchor of the current selection to the end of the next inline. + */ + moveAnchorToEndOfNextInline(): Editor; + /** + * Move the anchor of the current selection to the end of the next text. + */ + moveAnchorToEndOfNextText(): Editor; + /** + * Move the anchor of the current selection to the end of the provided node. + */ + moveAnchorEndOfNode(node: Node): Editor; + /** + * Move the anchor of the current selection to the end of the previous block. + */ + moveAnchorToEndOfPreviousBlock(): Editor; + /** + * Move the anchor of the current selection to the end of the previous inline. + */ + moveAnchorToEndOfPreviousInline(): Editor; + /** + * Move the anchor of the current selection to the end of the previous text. + */ + moveAnchorToEndOfPreviousText(): Editor; + /** + * Move the anchor of the current selection to the end of the current text node. + */ + moveAnchorToEndOfText(): Editor; + /** + * Move the anchor of the current selection to the start of the closest block parent. + */ + moveAnchorToStartOfBlock(): Editor; + /** + * Move the anchor of the current selection to the start of the document. + */ + moveAnchorToStartOfDocument(): Editor; + /** + * Move the anchor of the current selection to the start of the closest inline parent. + */ + moveAnchorToStartOfInline(): Editor; + /** + * Move the anchor of the current selection to the start of the next block. + */ + moveAnchorToStartOfNextBlock(): Editor; + /** + * Move the anchor of the current selection to the start of the next inline. + */ + moveAnchorToStartOfNextInline(): Editor; + /** + * Move the anchor of the current selection to the start of the next text node. + */ + moveAnchorToStartOfNextText(): Editor; + /** + * Move the anchor of the current selection to the start of the provided node. + */ + moveAnchorToStartOfNode(node: Node): Editor; + /** + * Move the anchor of the current selection to the start of the previous block. + */ + moveAnchorToStartOfPreviousBlock(): Editor; + /** + * Move the anchor of the current selection to the start of the previous inline. + */ + moveAnchorToStartOfPreviousInline(): Editor; + /** + * Move the anchor of the current selection to the start of the previous text node. + */ + moveAnchorToStartOfPreviousText(): Editor; + /** + * Move the anchor of the current selection to the start of the current text node. + */ + moveAnchorToStartOfText(): Editor; + + /** + * Move the end of the selection backward n characters + */ + moveEndBackward(n?: number): Editor; + /** + * Move the end of the selection foward n characters + */ + moveEndForward(n?: number): Editor; + + /** + * Move the end of the selection to a new path and offset + */ + moveEndTo(path: Path, offset: number): Editor; + /** + * Move the end of the current selection to the end of the closest block parent. + */ + moveEndToEndOfBlock(): Editor; + /** + * Move the end of the current selection to the end of the document. + */ + moveEndToEndOfDocument(): Editor; + /** + * Move the end of the current selection to the end of the closest inline parent. + */ + moveEndToEndOfInline(): Editor; + /** + * Move the anchor of the current selection to the end of the next block. + */ + moveEndToEndOfNextBlock(): Editor; + /** + * Move the end of the current selection to the end of the next inline. + */ + moveEndToEndOfNextInline(): Editor; + /** + * Move the end of the current selection to the end of the next text. + */ + moveEndToEndOfNextText(): Editor; + /** + * Move the end of the current selection to the end of the provided node. + */ + moveEndToEndOfNode(node: Node): Editor; + /** + * Move the end of the current selection to the end of the previous block. + */ + moveEndToEndOfPreviousBlock(): Editor; + /** + * Move the end of the current selection to the end of the previous inline. + */ + moveEndToEndOfPreviousInline(): Editor; + /** + * Move the editor of the current selection to the end of the previous text. + */ + moveEndToEndOfPreviousText(): Editor; + /** + * Move the end of the current selection to the end of the current text node. + */ + moveEndToEndOfText(): Editor; + /** + * Move the end of the current selection to the start of the closest block parent. + */ + moveEndToStartOfBlock(): Editor; + /** + * Move the end of the current selection to the start of the document. + */ + moveEndToStartOfDocument(): Editor; + /** + * Move the end of the current selection to the start of the closest inline parent. + */ + moveEndToStartOfInline(): Editor; + /** + * Move the end of the current selection to the start of the next block. + */ + moveEndToStartOfNextBlock(): Editor; + /** + * Move the end of the current selection to the start of the next inline. + */ + moveEndToStartOfNextInline(): Editor; + /** + * Move the end of the current selection to the start of the next text node. + */ + moveEndToStartOfNextText(): Editor; + /** + * Move the end of the current selection to the start of the provided node. + */ + moveEndToStartOfNode(node: Node): Editor; + /** + * Move the end of the current selection to the start of the previous block. + */ + moveEndToStartOfPreviousBlock(): Editor; + /** + * Move the end of the current selection to the start of the previous inline. + */ + moveEndToStartOfPreviousInline(): Editor; + /** + * Move the end of the current selection to the start of the previous text node. + */ + moveEndToStartOfPreviousText(): Editor; + /** + * Move the end of the current selection to the start of the current text node. + */ + moveEndToStartOfText(): Editor; + + /** + * Move the focus of the current selection backward n characters + */ + moveFocusBackward(n?: number): Editor; + /** + * Move the focus of the current selection forward n characters + */ + moveFocusForward(n?: number): Editor; + /** + * Move the focus of the current selection to a new path and offset + */ + moveFocusTo(path: Path, offset: number): Editor; + /** + * Move the focus of the current selection to the end of the closest block parent. + */ + moveFocusToEndOfBlock(): Editor; + /** + * Move the focus of the current selection to the end of the document. + */ + moveFocusToEndOfDocument(): Editor; + /** + * Move the focus of the current selection to the end of the closest inline parent. + */ + moveFocusToEndOfInline(): Editor; + /** + * Move the focus of the current selection to the end of the next block. + */ + moveFocusToEndOfNextBlock(): Editor; + /** + * Move the focus of the current selection to the end of the next inline. + */ + moveFocusToEndOfNextInline(): Editor; + /** + * Move the focus of the current selection to the end of the next text. + */ + moveFocusToEndOfNextText(): Editor; + /** + * Move the focus of the current selection to the end of the provided node. + */ + moveFocusToEndOfNode(node: Node): Editor; + /** + * Move the focus of the current selection to the end of the previous block. + */ + moveFocusToEndOfPreviousBlock(): Editor; + /** + * Move the focus of the current selection to the end of the previous inline. + */ + moveFocusToEndOfPreviousInline(): Editor; + /** + * Move the focus of the current selection to the end of the previous text. + */ + moveFocusToEndOfPreviousText(): Editor; + /** + * Move the focus of the current selection to the end of the current text node. + */ + moveFocusToEndOfText(): Editor; + /** + * Move the focus of the current selection to the start of the closest block parent. + */ + moveFocusToStartOfBlock(): Editor; + /** + * Move the focus of the current selection to the start of the document. + */ + moveFocusToStartOfDocument(): Editor; + /** + * Move the focus of the current selection to the start of the closest inline parent. + */ + moveFocusToStartOfInline(): Editor; + /** + * Move the focus of the current selection to the start of the next block. + */ + moveFocusToStartOfNextBlock(): Editor; + /** + * Move the focus of the current selection to the start of the next inline. + */ + moveFocusToStartOfNextInline(): Editor; + /** + * Move the focus of the current selection to the start of the next text node. + */ + moveFocusToStartOfNextText(): Editor; + /** + * Move the focus of the current selection to the start of the provided node. + */ + moveFocusToStartOfNode(node: Node): Editor; + /** + * Move the focus of the current selection to the start of the previous block. + */ + moveFocusToStartOfPreviousBlock(): Editor; + /** + * Move the focus of the current selection to the start of the previous inline. + */ + moveFocusToStartOfPreviousInline(): Editor; + /** + * Move the focus of the current selection to the start of the previous text node. + */ + moveFocusToStartOfPreviousText(): Editor; + /** + * Move the focus of the current selection to the start of the current text node. + */ + moveFocusToStartOfText(): Editor; + + /** + * Move the start of the current selection backward n characters + */ + moveStartForward(point: Point, n?: number): Editor; + /** + * Move the start of the current selection forward n characters + */ + moveStartBackward(point: Point, n?: number): Editor; + /** + * Move the start of the current selection to a new path and offset + */ + moveStartTo(point: Point, n?: number): Editor; + /** + * Move the start of the current selection to the end of the closest block parent. + */ + moveStartToEndOfBlock(): Editor; + /** + * Move the start of the current selection to the end of the document. + */ + moveStartToEndOfDocument(): Editor; + /** + * Move the start of the current selection to the end of the closest inline parent. + */ + moveStartToEndOfInline(): Editor; + /** + * Move the start of the current selection to the end of the next block. + */ + moveStartToEndOfNextBlock(): Editor; + /** + * Move the start of the current selection to the end of the next inline. + */ + moveStartToEndOfNextInline(): Editor; + /** + * Move the start of the current selection to the end of the next text. + */ + moveStartToEndOfNextText(): Editor; + /** + * Move the start of the current selection to the end of the provided node. + */ + moveStartToEndOfNode(node: Node): Editor; + /** + * Move the start of the current selection to the end of the previous block. + */ + moveStartToEndOfPreviousBlock(): Editor; + /** + * Move the start of the current selection to the end of the previous inline. + */ + moveStartToEndOfPreviousInline(): Editor; + /** + * Move the start of the current selection to the end of the previous text. + */ + moveStartToEndOfPreviousText(): Editor; + /** + * Move the start of the current selection to the end of the current text node. + */ + moveStartToEndOfText(): Editor; + /** + * Move the start of the current selection to the start of the closest block parent. + */ + moveStartToStartOfBlock(): Editor; + /** + * Move the start of the current selection to the start of the document. + */ + moveStartToStartOfDocument(): Editor; + /** + * Move the start of the current selection to the start of the closest inline parent. + */ + moveStartToStartOfInline(): Editor; + /** + * Move the start of the current selection to the start of the next block. + */ + moveStartToStartOfNextBlock(): Editor; + /** + * Move the start of the current selection to the start of the next inline. + */ + moveStartToStartOfNextInline(): Editor; + /** + * Move the start of the current selection to the start of the next text node. + */ + moveStartToStartOfNextText(): Editor; + /** + * Move the start of the current selection to the start of the provided node. + */ + moveStartToStartOfNode(node: Node): Editor; + /** + * Move the start of the current selection to the start of the previous block. + */ + moveStartToStartOfPreviousBlock(): Editor; + /** + * Move the start of the current selection to the start of the previous inline. + */ + moveStartToStartOfPreviousInline(): Editor; + /** + * Move the start of the current selection to the start of the previous text node. + */ + moveStartToStartOfPreviousText(): Editor; + /** + * Move the start of the current selection to the start of the current text node. + */ + moveStartToStartOfText(): Editor; + + /** + * Move the anchor and focus of the selection backward n characters. + */ + moveBackward(n?: number): Editor; + /** + * Move the anchor and focus of the selection forward n characters. + */ + moveForward(n?: number): Editor; + /** + * Collapse the current selection at the provided new path and offset. + */ + moveTo(path: Path, offset: number): Editor; + /** + * Collapse the current selection at the anchor. + */ + moveToAnchor(): Editor; + /** + * Collapse the current selection at the focus. + */ + moveToFocus(): Editor; + /** + * Collapse the current selection at the start. + */ + moveToStart(): Editor; + /** + * Collapse the current selection at the end. + */ + moveToEnd(): Editor; + /** + * Collapse the current selection at the end of the closest block parent. + */ + moveToEndOfBlock(): Editor; + /** + * Collapse the current selection at the end of the document. + */ + moveToEndOfDocument(): Editor; + /** + * Collapse the current selection at the end of the closest inline parent. + */ + moveToEndOfInline(): Editor; + /** + * Collapse the current selection at the end of the next block. + */ + moveToEndOfNextBlock(): Editor; + /** + * Collapse the current selection at the end of the inline. + */ + moveToEndOfNextInline(): Editor; + /** + * Collapse the current selection at the end of the next text node. + */ + moveToEndOfNextText(): Editor; + /** + * Collapse the current selection at the end of the provided node. + */ + moveToEndOfNode(node: Node): Editor; + /** + * Collapse the current selection at the end of the previous block. + */ + moveToEndOfPreviousBlock(): Editor; + /** + * Collapse the current selection at the end of the previous inline. + */ + moveToEndOfPreviousInline(): Editor; + /** + * Collapse the current selection at the end of the previous text node. + */ + moveToEndOfPreviousText(): Editor; + /** + * Collapse the current selection at the end of the current text node. + */ + moveToEndOfText(): Editor; + /** + * Collapse the current selection at the start of the nearest block parent. + */ + moveToStartOfBlock(): Editor; + /** + * Collapse the current selection at the start of the document. + */ + moveToStartOfDocument(): Editor; + /** + * Collapse the current selection at the start of the nearest inline parent. + */ + moveToStartOfInline(): Editor; + /** + * Collapse the current selection at the start of the next block. + */ + moveToStartOfNextBlock(): Editor; + /** + * Collapse the current selection at the start of the next inline. + */ + moveToStartOfNextInline(): Editor; + /** + * Collapse the current selection at the start of the next text node. + */ + moveToStartOfNextText(): Editor; + /** + * Collapse the current selection at the start of the provided node. + */ + moveToStartOfNode(node: Node): Editor; + /** + * Collapse the current selection at the start of the previous block. + */ + moveToStartOfPreviousBlock(): Editor; + /** + * Collapse the current selection at the start of the previous inline. + */ + moveToStartOfPreviousInline(): Editor; + /** + * Collapse the current selection at the start of the previous text node. + */ + moveToStartOfPreviousText(): Editor; + /** + * Collapse the current selection at the start of the current text node. + */ + moveToStartOfText(): Editor; + + /** + * Move the current selection's anchor to the start of the document and its focus to the end of it, selecting everything. + */ + moveToRangeOfDocument(): Editor; + /** + * Move the current selection's anchor to the start of the provided node and its focus to the end of it. + */ + moveToRangeOf(node: Node): Editor; + /** + * Merge the current selection with the provided properties + */ + select(properties: Range | RangeProperties): Editor; + + // Document Range Commands // + + /** + * Add a mark to the characters in the range. + * Passing a string as `mark` will implicitly create a mark with that `type` + */ + addMarkAtRange(range: Range, mark: Mark | MarkProperties | string): Editor; + /** + * Delete everything in the range + */ + deleteAtRange(range: Range): Editor; + /** + * Delete backward until the char boundary at a range + */ + deleteCharBackwardAtRange(range: Range): Editor; + /** + * Delete backward until the line boundary at a range + */ + deleteLineBackwardAtRange(range: Range): Editor; + /** + * Delete backward until the word boundary at a range + */ + deleteWordBackwardAtRange(range: Range): Editor; + /** + * Delete backward n characters at a range + */ + deleteBackwardAtRange(range: Range, n: number): Editor; + /** + * Delete forward until the char boundary at a range + */ + deleteCharForwardAtRange(range: Range): Editor; + /** + * Delete forward until the line boundary at a range + */ + deleteLineForwardAtRange(range: Range): Editor; + /** + * Delete forward until the word boundary at a range + */ + deleteWordForwardAtRange(range: Range): Editor; + /** + * Delete forward n characters at a range + */ + deleteForwardAtRange(range: Range, n: number): Editor; + + /** + * Insert a block node at range, splitting text to make room if it is non-empty. + * If the range is expanded, it will be deleted first. + */ + insertBlockAtRange(range: Range, block: Block | BlockProperties | string): Editor; + /** + * Insert a document fragment at a range, if the range is expanded, it will be deleted first. + */ + insertFragmentAtRange(range: Range, fragment: Document): Editor; + /** + * Insert a new inline at range, splitting text to make room if it is non-empty. + * If the range is expanded, it will be deleted first. + */ + insertInlineAtRange(range: Range, inline: Inline | InlineProperties): Editor; + /** + * Insert text at range. If the range is expanded it will be deleted first + */ + insertTextAtRange(range: Range, text: string): Editor; + /** + * Set the properties of the block nodes in a range. + * Passing a string will set the nodes' type only + */ + setBlocksAtRange(range: Range, properties: BlockProperties | string): Editor; + /** + * Set the properties of the inline nodes in a range. + * Passing a string will set the nodes' type only + */ + setInlinesAtRange(range: Range, properties: InlineProperties | string): Editor; + /** + * Split the block in a range by depth levels. If the range is expanded it will be deleted first. + */ + splitBlockAtRange(range: Range, depth: number): Editor; + /** + * Split the inline in a range by depth levels. If the range is expanded it will be deleted first. + */ + splitInlineAtRange(range: Range, depth: number): Editor; + /** + * Remove a mark from characters in the range. Passing a string will + * implicitly create a mark of that type for deletion. + */ + removeMarkAtRange(range: Range, mark: Mark | MarkProperties | string): Editor; + /** + * Add or remove a mark from characters in the range. Passing a string will + * implicitly create a mark of that type for deletion. + */ + toggleMarkAtRange(range: Range, mark: Mark | MarkProperties | string): Editor; + /** + * Unwrap all block nodes in a range that match properties + */ + unwrapBlockAtRange(range: Range, properties: BlockProperties | string): Editor; + /** + * Unwrap all inline nodes in a range that match properties + */ + unwrapInlineAtRange(range: Range, properties: InlineProperties | string): Editor; + /** + * wrap all block nodes in a range with a new block node with the provided properties + */ + wrapBlockAtRange(range: Range, properties: BlockProperties | string): Editor; + /** + * wrap all inline nodes in a range with a new inline node with the provided properties + */ + wrapInlineAtRange(range: Range, properties: InlineProperties | string): Editor; + /** + * Surround the text in a range with a prefix and suffix. If the suffix is ommitted, + * the prefix will be used instead. + */ + wrapTextAtRange(range: Range, prefix: string, suffix?: string): Editor; + + // Node commands // + /** + * Add a mark to length characters starting at an offset in a node by key + */ + addMarkByKey( + key: string, + offset: number, + length: number, + mark: Mark + ): Editor; + /** + * Add a mark to length characters starting at an offset in a node by path + */ + addMarkByPath( + path: Path, + offset: number, + length: number, + mark: MarkProperties | Mark | string + ): Editor; + /** + * Insert a node at index inside a parent node by key + */ + insertNodeByKey(key: string, index: number, node: Node): Editor; + /** + * Insert a node at index inside a parent node by apth + */ + insertNodeByPath(path: Path, index: number, node: Node): Editor; + /** + * Insert a document fragment at index inside a parent node by key + */ + insertFragmentByKey(key: string, index: number, fragment: Document): Editor; + /** + * Insert a document fragment at index inside a parent node by path + */ + insertFragmentByPath(path: Path, index: number, fragment: Document): Editor; + /** + * Insert text at an offset in a text node by its key with optional marks + */ + insertTextByKey( + key: string, + offset: number, + text: string, + marks?: Immutable.Set | Mark[] + ): Editor; + /** + * Insert text at an offset in a text node by its path with optional marks + */ + insertTextByPath( + path: Path, + offset: number, + text: string, + marks?: Immutable.Set | Mark[] + ): Editor; + /** + * Merge a node by its key with its previous sibling + */ + mergeNodeByKey(key: string): Editor; + /** + * Merge a node by its path with its previous sibling + */ + mergeNodeByPath(path: Path): Editor; + /** + * Move a node by its key to a new parent node with with newkey at newindex + */ + moveNodeByKey(key: string, newKey: string, newIndex: number): Editor; + /** + * Move a node by its path to a new parent node with with newpath at newindex + */ + moveNodeByPath(path: Path, newPath: Path, newIndex: number): Editor; + /** + * Remove a mark from length characters starting at an offset in a node by key + */ + removeMarkByKey( + key: string, + offset: number, + length: number, + mark: Mark + ): Editor; + /** + * Remove a mark from length characters starting at an offset in a node by path + */ + removeMarkByPath( + path: Path, + offset: number, + length: number, + mark: MarkProperties | Mark | string + ): Editor; + /** + * Remove a node from the document by its key + */ + removeNodeByKey(key: string): Editor; + /** + * Remove a node from the document by its path + */ + removeNodeByPath(path: Path): Editor; + /** + * Replace a node in the document with a new node by key + */ + replaceNodeByKey(key: string, node: Node): Editor; + /** + * Replace a node in the document with a new node by path + */ + replaceNodeByPath(path: Path, newNode: Node): Editor; + /** + * Remove length characters of text starting at an offset in a node by key + */ + removeTextByKey(key: string, offset: number, length: number): Editor; + /** + * Remove length characters of text starting at an offset in a node by path + */ + removeTextByPath(path: Path, offset: number, length: number): Editor; + /** + * Set a dictionary of properties on a mark by its key. + */ + setMarkByKey( + key: string, + offset: number, + length: number, + mark: Mark, + properties: MarkProperties + ): Editor; + /** + * Set a dictionary of properties on a mark by its path. + */ + setMarksByPath( + path: Path, + offset: number, + length: number, + mark: Mark, + properties: MarkProperties + ): Editor; + /** + * Set a dictionary of properties on a node by its key. + */ + setNodeByKey( + key: string, + properties: BlockProperties | InlineProperties | string + ): Editor; + /** + * Set a dictionary of properties on a node by its key. + */ + setNodeByPath(path: Path, properties: NodeProperties): Editor; + /** + * Split a node by its key at an offset + */ + splitNodeByKey(key: string, offset: number): Editor; + /** + * Split a node by its path at an offset + */ + splitNodeByPath(path: Path, position: number): Editor; + /** + * Unwrap all inner content of an inline node by its key that match properties + */ + unwrapInlineByKey(key: string, properties: InlineProperties | string): Editor; + /** + * Unwrap all inner content of an inline node by its path that match properties + */ + unwrapInlineByPath(path: Path, properties: InlineProperties | string): Editor; + /** + * Unwrap all inner content of a block node by its key that match properties + */ + unwrapBlockByKey(key: string, properties: BlockProperties | string): Editor; + /** + * Unwrap all inner content of a block node by its path that match properties + */ + unwrapBlockByPath(path: Path, properties: BlockProperties): Editor; + /** + * Unwrap a single node from its parent. if the node is surrounded with siblings the parent will be split. + * If the node is an only child, it will replace the parent + */ + unwrapNodeByKey(key: string): Editor; + /** + * Unwrap a single node from its parent. if the node is surrounded with siblings the parent will be split. + * If the node is an only child, it will replace the parent + */ + unwrapNodeByPath(path: Path): Editor; + /** + * Wrap the given node by key in an Inline node that matches properties. + */ + wrapInlineByKey(key: string, properties: InlineProperties | string): Editor; + /** + * Wrap the given node by path in an Inline node that matches properties. + */ + wrapInlineByPath(path: Path, properties: InlineProperties | string): Editor; + /** + * Wrap the given node by key in a block node that matches properties. + */ + wrapBlockByKey(key: string, properties: BlockProperties | string): Editor; + /** + * Wrap the given node by path in a block node that matches properties. + */ + wrapBlockByPath(path: Path, block: Block | string): Editor; + /** + * Wrap the node with the specified key with the parent node, this will clear all children of the parent. + */ + wrapNodeByKey(key: string, parent: Node): Editor; + /** + * Wrap the node with the specified key with the parent node, this will clear all children of the parent. + */ + wrapNodeByPath(path: Path, parent: Node): Editor; + + // Miscellaneous Commands // + /** + * Normalizes the document with the value's schema. Run automatically unless manually disabled. + * Use it sparingly and strategically, as it can be very expensive. + */ + normalize(): Editor; + /** + * Calls the provided function with the current editor as the first argument. + * Normalization does not occur while the function is executing and is deferred to execute immediately after completion. + * + * This allows for sequence change operations to not be interrupted by normalization + */ + withoutNormalization(fn: () => void): Editor; + /** + * By default all operations are saved to the editor's history. If you have + * changes that you don't want to show up in history, use this function. + */ + withoutSaving(fn: () => void): Editor; + /** + * Usually all command operations are merged into a single save point in history, + * if more control is desired, create single save points using this function. + */ + withoutMerging(fn: () => void): Editor; + + // History Commands // + /** + * Move forward one step in the history + */ + redo(): Editor; + /** + * Move backward one step in the history + */ + undo(): Editor; + /** + * Snapshot the current selection for undo purposes. + */ + snapshotSelection(): Editor; } export {}; diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 7eb81633bf..4439140bdc 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -1,28 +1,7 @@ -import { Value, Data, BlockJSON, Document, Editor, Change, KeyUtils } from "slate"; +import { Value, Data, BlockJSON, Document, Editor, KeyUtils } from "slate"; const data = Data.create({ foo: "bar " }); const value = Value.create({ data }); -const change = value - .change() - .focus() - .moveAnchorToStartOfDocument() - .moveFocusToEndOfDocument() - .delete() - .insertText("A bit of rich text, followed by...") - .moveToStartOfText() - .move(10) - .moveFocusForward(4) - .addMark("bold") - .moveToEndOfNextBlock() - .insertBlock({ - type: "image", - data: { - src: "http://placekitten.com/200/300", - alt: "Kittens", - className: "img-responsive" - } - }) - .insertBlock("paragraph"); const node: BlockJSON = { object: "block", @@ -47,9 +26,6 @@ const doc = Document.fromJSON({ }); const editor = new Editor({ value }); -editor.change((change: Change) => { - return change.insertText("test"); -}); editor.registerQuery("testQuery"); editor.registerCommand("testCommand"); @@ -58,6 +34,25 @@ editor.command("testCommand"); editor.query("testQuery"); editor.run("testCommand"); editor.event("mouseDown", new Event("mouseDown")); +editor +.focus() +.moveAnchorToStartOfDocument() +.moveFocusToEndOfDocument() +.delete() +.insertText("A bit of rich text, followed by...") +.moveToStartOfText() +.moveFocusForward(4) +.addMark("bold") +.moveToEndOfNextBlock() +.insertBlock({ + type: "image", + data: { + src: "http://placekitten.com/200/300", + alt: "Kittens", + className: "img-responsive" + } +}) +.insertBlock("paragraph"); KeyUtils.setGenerator(() => "Test"); KeyUtils.create(); From d3175aa9978a8bd3fc93af4d0bdeda9c8600578a Mon Sep 17 00:00:00 2001 From: licui Date: Tue, 30 Oct 2018 14:41:40 -0400 Subject: [PATCH 066/213] update LogInfo, ProxyInfo and RVMInfo shapes --- types/openfin/_v2/api/system/proxy.d.ts | 13 ++++---- types/openfin/_v2/api/system/rvm.d.ts | 3 ++ types/openfin/_v2/api/system/system.d.ts | 37 ++++++++++++++++++++-- types/openfin/index.d.ts | 40 +++--------------------- 4 files changed, 48 insertions(+), 45 deletions(-) diff --git a/types/openfin/_v2/api/system/proxy.d.ts b/types/openfin/_v2/api/system/proxy.d.ts index 597afa6548..2f8a945903 100644 --- a/types/openfin/_v2/api/system/proxy.d.ts +++ b/types/openfin/_v2/api/system/proxy.d.ts @@ -1,14 +1,15 @@ export interface ProxyInfo { config: ProxyConfig; - system: { - autoConfigUrl: string; - bypass: ''; - enabled: boolean; - proxy: string; - }; + system: ProxySystemInfo; } export interface ProxyConfig { proxyAddress: string; proxyPort: number; type: string; } +export interface ProxySystemInfo { + autoConfigUrl: string; + bypass: string; + enabled: boolean; + proxy: string; +} diff --git a/types/openfin/_v2/api/system/rvm.d.ts b/types/openfin/_v2/api/system/rvm.d.ts index 42fc0b94db..fb8737a081 100644 --- a/types/openfin/_v2/api/system/rvm.d.ts +++ b/types/openfin/_v2/api/system/rvm.d.ts @@ -1,5 +1,8 @@ export interface RVMInfo { action: string; + appLogDirectory: string; + path: string; 'start-time': string; version: string; + 'working-dir': string; } diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index aa0467f340..24c6ed7ff7 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -149,6 +149,13 @@ import { SystemEvents } from '../events/system'; * @property { string } name The name of the application * @property { string } uuid The uuid of the application */ +/** + * LogInfo interface + * @typedef { Object } LogInfo + * @property { string } name The filename of the log + * @property { number } size The size of the log in bytes + * @property { string } date The unix time at which the log was created "Thu Jan 08 2015 14:40:30 GMT-0500 (Eastern Standard Time)"" + */ /** * @typedef { verbose | info | warning | error | fatal } LogLevel * @summary Log verbosity levels. @@ -180,9 +187,23 @@ import { SystemEvents } from '../events/system'; /** * ProxyConfig interface * @typedef { Object } ProxyConfig - * @property { numder } proxyPort The port number of the running application - * @property { string } proxyAddress The address of the running application - * @property { string } type + * @property { string } proxyAddress The configured proxy address + * @property { numder } proxyPort The configured proxy port + * @property { string } type The proxy Type + */ +/** + * ProxyInfo interface + * @typedef { Object } ProxyInfo + * @property { ProxyConfig } config The proxy config + * @property { ProxySystemInfo } system The proxy system info + */ +/** + * ProxySystemInfo interface + * @typedef { Object } ProxySystemInfo + * @property { string } autoConfigUrl The auto configuration url + * @property { string } bypass The proxy bypass info + * @property { boolean } enabled Value to check if a proxy is enabled + * @property { string } proxy The proxy info */ /** * RegistryInfo interface @@ -199,6 +220,16 @@ import { SystemEvents } from '../events/system'; * @desc These are the options object required by the downloadRuntime function. * @property { string } version The given version to download */ +/** + * RVMInfo interface + * @typedef { Object } RVMInfo + * @property { string } action The name of action: "get-rvm-info" + * @property { string } appLogDirectory The app log directory + * @property { string } path The path of OpenfinRVM.exe + * @property { string } 'start-time' The start time of RVM + * @property { string } version The version of RVM + * @property { string } 'working-dir' The working directory + */ /** * TerminateExternalRequestType interface * @typedef { Object } TerminateExternalRequestType diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index fbde514cb0..7bee14463a 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -34,8 +34,11 @@ import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadP import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/download-preload'; import { EntityInfo } from './_v2/api/system/entity'; import { HostSpecs } from './_v2/api/system/host-specs'; +import { LogInfo } from './_v2/api/system/log'; import { ProcessInfo } from './_v2/api/system/process'; +import { ProxyInfo } from './_v2/api/system/proxy'; import { RegistryInfo } from './_v2/api/system/registry-info'; +import { RVMInfo} from './_v2/api/system/rvm'; import { WindowDetail, WindowInfo } from './_v2/api/system/window'; // tslint:disable-next-line:export-just-namespace @@ -752,7 +755,7 @@ declare namespace fin { /** * Returns information about the running RVM in an object. */ - getRvmInfo(callback?: (rvmInfo: RvmInfo) => void, errorCallback?: (reason: string) => void): void; + getRvmInfo(callback?: (rvmInfo: RVMInfo) => void, errorCallback?: (reason: string) => void): void; /** * Returns the version of the runtime. The version contains the major, minor, build and revision numbers. */ @@ -833,41 +836,6 @@ declare namespace fin { updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; } - interface LogInfo { - /** - * the filename of the log - */ - name?: string; - /** - * the size of the log in bytes - */ - size?: number; - /** - * the unix time at which the log was created "Thu Jan 08 2015 14:40:30 GMT-0500 (Eastern Standard Time)" - */ - date?: string; - } - - interface ProxyInfo { - /** - * the configured Proxy Address - */ - proxyAddress?: string; - /** - * the configured Proxy port - */ - proxyPort?: number; - /** - * Proxy Type - */ - type?: string; - } - - interface RvmInfo { - version?: string; - "start-time"?: string; - } - interface ExternalProcessLaunchInfo { path?: string; /** From b7c956ac52d2511b5a6ef42abb9afaf5312eefb2 Mon Sep 17 00:00:00 2001 From: licui Date: Tue, 30 Oct 2018 16:15:57 -0400 Subject: [PATCH 067/213] Update tray info, window bounds, monitor and animation shapes from v1 to v2 --- types/openfin/_v2/api/system/system.d.ts | 6 + types/openfin/index.d.ts | 142 ++--------------------- types/openfin/openfin-tests.ts | 4 +- 3 files changed, 17 insertions(+), 135 deletions(-) diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index 24c6ed7ff7..88a37d0b26 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -167,6 +167,12 @@ import { SystemEvents } from '../events/system'; * @property { string } error error and above * @property { string } fatal fatal only, indicates a crash is imminent */ +/** + * PointTopLeft interface + * @typedef { Object } PointTopLeft + * @property { number } top The mouse top position in virtual screen coordinates + * @property { number } left The mouse left position in virtual screen coordinates + */ /** * ProcessInfo interface * @typedef { Object } ProcessInfo diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index 7bee14463a..139c874cab 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -25,7 +25,7 @@ * without the need to include additional source files. You can treat the "fin" namespace as you would the "window", "navigator" or "documennt" objects. */ import { Identity } from './_v2/identity'; -import { ShortCutConfig } from './_v2/api/application/application'; +import { ShortCutConfig, TrayInfo } from './_v2/api/application/application'; import { ExternalApplicationInfo } from './_v2/api/external-application/external-application'; import { ApplicationInfo } from './_v2/api/system/application'; import { ClearCacheOption } from './_v2/api/system/clearCacheOption'; @@ -35,11 +35,15 @@ import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/dow import { EntityInfo } from './_v2/api/system/entity'; import { HostSpecs } from './_v2/api/system/host-specs'; import { LogInfo } from './_v2/api/system/log'; +import { MonitorInfo } from './_v2/api/system/monitor'; +import { PointTopLeft } from './_v2/api/system/point'; import { ProcessInfo } from './_v2/api/system/process'; import { ProxyInfo } from './_v2/api/system/proxy'; import { RegistryInfo } from './_v2/api/system/registry-info'; import { RVMInfo} from './_v2/api/system/rvm'; import { WindowDetail, WindowInfo } from './_v2/api/system/window'; +import Bounds from './_v2/api/window/bounds'; +import { Transition, TransitionOptions } from './_v2/api/window/transition'; // tslint:disable-next-line:export-just-namespace export = fin; @@ -146,7 +150,7 @@ declare namespace fin { /** * Retrieves information about the system tray. */ - getTrayIconInfo(callback?: (trayInfo: TrayIconInfo) => void, errorCallback?: (reason: string) => void): void; + getTrayIconInfo(callback?: (trayInfo: TrayInfo) => void, errorCallback?: (reason: string) => void): void; /** * Determines if the application is currently running. */ @@ -742,7 +746,7 @@ declare namespace fin { /** * Returns the mouse in virtual screen coordinates (left, top). */ - getMousePosition(callback?: (mousePosition: VirtualScreenCoordinates) => void, errorCallback?: (reason: string) => void): void; + getMousePosition(callback?: (mousePosition: PointTopLeft) => void, errorCallback?: (reason: string) => void): void; /** * Retrieves an array of all of the runtime processes that are currently running. * Each element in the array is an object containing the uuid and the name of the application to which the process belongs. @@ -989,7 +993,7 @@ declare namespace fin { /** * Performs the specified window transitions */ - animate(transitions: AnimationTransition, options: AnimationOptions, callback?: (event: any) => void, errorCallback?: (reason: string) => void): void; + animate(transitions: Transition, options: TransitionOptions, callback?: (event: any) => void, errorCallback?: (reason: string) => void): void; /** * Provides credentials to authentication requests */ @@ -1034,7 +1038,7 @@ declare namespace fin { /** * Gets the current bounds (top, left, width, height) of the window. */ - getBounds(callback?: (bounds: WindowBounds) => void, errorCallback?: (reason: string) => void): void; + getBounds(callback?: (bounds: Bounds) => void, errorCallback?: (reason: string) => void): void; /** * Retrieves an array containing wrapped fin.desktop.Windows that are grouped with this window. If a window is not in a group an empty array is returned. * Please note that calling window is included in the result array. @@ -1216,51 +1220,6 @@ declare namespace fin { type: "monitor-info-changed"; } - interface MonitorInfo { - nonPrimaryMonitors: MonitorInfoDetail[]; - primaryMonitor: MonitorInfoDetail; - reason: string; - taskbar: { - edge: "left" | "right" | "top" | "bottom", - rect: MontiorCoordinates - }; - topic: "system"; - type: "monitor-info-changed"; - virtualScreen: MontiorCoordinates; - } - - interface TrayIconInfo { - x: number; - y: number; - bounds: { - x: number; - y: number; - width: number; - height: number; - }; - monitorInfo: MonitorInfo; - } - - interface MonitorInfoDetail { - availableRect: MontiorCoordinates; - deviceId: string; - displayDeviceActive: boolean; - monitorRect: MontiorCoordinates; - name: string; - } - - interface MontiorCoordinates { - bottom: number; - left: number; - right: number; - top: number; - } - - interface VirtualScreenCoordinates { - left: number; - top: number; - } - interface SystemBaseEvent { topic: string; type: OpenFinSystemEventType; @@ -1460,89 +1419,6 @@ declare namespace fin { uuid: string; } - interface AnimationTransition { - opacity?: { - /** - * This value is clamped from 0.0 to 1.0 - */ - opacity?: number; - /** - * The total time in milliseconds this transition should take. - */ - duration?: number; - /** - * Treat 'opacity' as absolute or as a delta. Defaults to false. - */ - relative?: boolean; - }; - position?: { - /** - * Defaults to the window's current left position in virtual screen coordinates. - */ - left?: number; - /** - * Defaults to the window's current top position in virtual screen coordinates. - */ - top?: number; - /** - * The total time in milliseconds this transition should take. - */ - duration?: number; - /** - * Treat 'left' and 'top' as absolute or as deltas. Defaults to false. - */ - relative?: boolean; - }; - size?: { - /** - * Optional if height is present. Defaults to the window's current width. - */ - width?: number; - /** - * Optional if width is present. Defaults to the window's current height. - */ - height?: number; - /** - * The total time in milliseconds this transition should take. - */ - duration?: number; - /** - * Treat 'width' and 'height' as absolute or as deltas. Defaults to false. - */ - relative?: boolean; - }; - } - - interface AnimationOptions { - /** - * This option interrupts the current animation. When false it pushes this animation onto the end of the animation queue. - */ - interrupt?: boolean; - /** - * Transition effect. Defaults to 'ease-in-out'. - */ - tween?: OpenFinTweenType; - } - - interface WindowBounds { - /** - * the height of the window. - */ - height?: number; - /** - * left-most coordinate of the window. - */ - left?: number; - /** - * top-most coordinate of the window. - */ - top?: number; - /** - * the width of the window. - */ - width?: number; - } - interface SessionChangedEvent { /** * the action that triggered this event: diff --git a/types/openfin/openfin-tests.ts b/types/openfin/openfin-tests.ts index 9c8b714d05..167a6c86be 100644 --- a/types/openfin/openfin-tests.ts +++ b/types/openfin/openfin-tests.ts @@ -78,8 +78,8 @@ function test_application() { }); // getTrayIconInfo application.getTrayIconInfo(info => { - console.log(info.x, info.y, info.bounds.x, info.bounds.y, info.bounds.height, info.bounds.width, - info.monitorInfo.type, info.monitorInfo.reason); + console.log(info.x, info.y, info.bounds.left, info.bounds.top, info.bounds.height, info.bounds.width, + info.monitorInfo.reason); }); // isRunning application.isRunning(running => { From bede076919554f49d1be7bd7ed0469149602e077 Mon Sep 17 00:00:00 2001 From: Ben Stoddard Date: Tue, 30 Oct 2018 13:30:55 -0700 Subject: [PATCH 068/213] TargetLocator.frame - Should accept null type. --- types/selenium-webdriver/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/selenium-webdriver/index.d.ts b/types/selenium-webdriver/index.d.ts index 4721033bfd..aa8a696576 100644 --- a/types/selenium-webdriver/index.d.ts +++ b/types/selenium-webdriver/index.d.ts @@ -3448,7 +3448,7 @@ export class TargetLocator { * @return {!promise.Promise} A promise that will be resolved * when the driver has changed focus to the specified frame. */ - frame(nameOrIndex: number | WebElement): promise.Promise; + frame(nameOrIndex: number | WebElement | null): promise.Promise; /** * Schedules a command to switch the focus of all future commands to another From 3245c642975dfdd0ebb33e6dcb1af693e4701565 Mon Sep 17 00:00:00 2001 From: FishOrBear Date: Wed, 31 Oct 2018 09:32:52 +0800 Subject: [PATCH 069/213] fix threejs `ShapeUtils` ref: https://github.com/mrdoob/three.js/blob/dev/src/extras/ShapeUtils.js --- types/three/three-core.d.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 66276bb1f4..1e0ed32989 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -6688,11 +6688,17 @@ export namespace SceneUtils { export function attach(child: Object3D, scene: Scene, parent: Object3D): void; } +interface Vec2 +{ + x: number; + y: number; +} + export namespace ShapeUtils { - export function area(contour: number[]): number; - export function triangulate(contour: number[], indices: boolean): number[]; - export function triangulateShape(contour: number[], holes: any[]): number[]; - export function isClockWise(pts: number[]): boolean; + export function area(contour: Vec2[]): number; + export function triangulate(contour: Vec2[], indices: boolean): number[]; + export function triangulateShape(contour: Vec2[], holes: Vec2[]): number[][]; + export function isClockWise(pts: Vec2[]): boolean; } // Extras / Audio ///////////////////////////////////////////////////////////////////// From 3857e2578f1871cf3b2ad0e858fdf8a0320e30a1 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Tue, 30 Oct 2018 22:47:46 -0300 Subject: [PATCH 070/213] Explicitized options interface. --- types/ansi/index.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index 976268a29a..2b11acc7a3 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -14,11 +14,16 @@ /// import { Stream } from "stream"; -declare function ansi(stream: Stream, options?: any): ansi.Cursor; +interface CursorOptions { + enabled: boolean; + buffering: boolean; +} + +declare function ansi(stream: Stream, options?: CursorOptions): ansi.Cursor; declare namespace ansi { class Cursor { - constructor(stream: Stream, options?: any); + constructor(stream: Stream, options?: CursorOptions); /** * Helper function that calls `write()` on the underlying Stream. From 6c4c5409bf86ed2e719b64ac44f584766d6a42e9 Mon Sep 17 00:00:00 2001 From: Hugues Stefanski Date: Wed, 31 Oct 2018 12:23:30 +0100 Subject: [PATCH 071/213] #30160 : density.weight in d3-contour --- types/d3-contour/d3-contour-tests.ts | 7 +++++++ types/d3-contour/index.d.ts | 16 ++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/types/d3-contour/d3-contour-tests.ts b/types/d3-contour/d3-contour-tests.ts index 0184979be0..2d23017040 100644 --- a/types/d3-contour/d3-contour-tests.ts +++ b/types/d3-contour/d3-contour-tests.ts @@ -144,6 +144,13 @@ contDensCustom = contDensCustom.y((datum) => { // get const yAcc: (d: CustomDatum) => number = contDensCustom.y(); +// weight(...) ----------------------------------------------------------------- +contDensCustom = contDensCustom.weight((datum) => { + return 5; +}); + +// get +const weightAcc: (d: CustomDatum) => number = contDensCustom.weight(); // size(...) ------------------------------------------------------------------- // set with chainability diff --git a/types/d3-contour/index.d.ts b/types/d3-contour/index.d.ts index 8d42275ee2..4477c4bfa5 100644 --- a/types/d3-contour/index.d.ts +++ b/types/d3-contour/index.d.ts @@ -126,7 +126,7 @@ export function contours(): Contours; * the elements of the data array used with the density contour generator are two-element arrays. * The first element corresponds to the x-dimension, the second to the y-dimension. */ -export interface ContourDensity { +export interface ContourDensity { /** * Estimates the density contours for the given array of data, returning an array of GeoJSON MultiPolygon geometry objects. * Each geometry object represents the area where the estimated number of points per square pixel is greater than or equal to @@ -169,6 +169,18 @@ export interface ContourDensity { */ y(y: (d: Datum) => number): this; + /** + * Returns the current point weight accessor. + */ + weight(): (d: Datum) => number; + + /** + * Sets the point weight accessor and returns the density contour estimator. + * + * @param weight A point weight accessor function. + */ + weight(weight: (d: Datum) => number): this; + /** * Returns the current size, which defaults to [960, 500]. */ @@ -254,4 +266,4 @@ export interface ContourDensity { * Important: ensure that the x- and y-accessor functions are configured to * match the data type used for the generic Datum. */ -export function contourDensity(): ContourDensity; +export function contourDensity(): ContourDensity; From 0f855d0d5d3fdb64cf9bd6643b286d656f687e94 Mon Sep 17 00:00:00 2001 From: Hugues Stefanski Date: Wed, 31 Oct 2018 12:24:25 +0100 Subject: [PATCH 072/213] #30160 : updated d3-contour version --- types/d3-contour/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/d3-contour/index.d.ts b/types/d3-contour/index.d.ts index 4477c4bfa5..54a9964c2d 100644 --- a/types/d3-contour/index.d.ts +++ b/types/d3-contour/index.d.ts @@ -1,10 +1,10 @@ -// Type definitions for d3-contour 1.2 +// Type definitions for d3-contour 1.3 // Project: https://d3js.org/d3-contour/ // Definitions by: Tom Wanzek , Hugues Stefanski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -// Last module patch version validated against: 1.2.0 +// Last module patch version validated against: 1.3.2 import { MultiPolygon } from 'geojson'; import { ThresholdNumberArrayGenerator, ThresholdCountGenerator } from 'd3-array'; From 0a3806c9d86dffcd9ec9e64b5bcda2d488000b02 Mon Sep 17 00:00:00 2001 From: Hugues Stefanski Date: Wed, 31 Oct 2018 12:31:09 +0100 Subject: [PATCH 073/213] #30160 : fix missing whitespaces --- types/d3-contour/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/d3-contour/index.d.ts b/types/d3-contour/index.d.ts index 54a9964c2d..bb77fb4ef8 100644 --- a/types/d3-contour/index.d.ts +++ b/types/d3-contour/index.d.ts @@ -126,7 +126,7 @@ export function contours(): Contours; * the elements of the data array used with the density contour generator are two-element arrays. * The first element corresponds to the x-dimension, the second to the y-dimension. */ -export interface ContourDensity { +export interface ContourDensity { /** * Estimates the density contours for the given array of data, returning an array of GeoJSON MultiPolygon geometry objects. * Each geometry object represents the area where the estimated number of points per square pixel is greater than or equal to @@ -266,4 +266,4 @@ export interface ContourDensity { * Important: ensure that the x- and y-accessor functions are configured to * match the data type used for the generic Datum. */ -export function contourDensity(): ContourDensity; +export function contourDensity(): ContourDensity; From f037f5bd7478859b215e6df77c100f92682482f1 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 12:11:34 +0000 Subject: [PATCH 074/213] Add tests for commands --- types/slate/index.d.ts | 19 ++- types/slate/slate-tests.ts | 246 +++++++++++++++++++++++++++++++++++-- 2 files changed, 244 insertions(+), 21 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index aae337ed04..7d5eb5ce34 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1546,15 +1546,15 @@ export class Editor { /** * Move the start of the current selection backward n characters */ - moveStartForward(point: Point, n?: number): Editor; + moveStartForward(n?: number): Editor; /** * Move the start of the current selection forward n characters */ - moveStartBackward(point: Point, n?: number): Editor; + moveStartBackward(n?: number): Editor; /** * Move the start of the current selection to a new path and offset */ - moveStartTo(point: Point, n?: number): Editor; + moveStartTo(path: Path, n?: number): Editor; /** * Move the start of the current selection to the end of the closest block parent. */ @@ -1894,7 +1894,7 @@ export class Editor { key: string, offset: number, length: number, - mark: Mark + mark: MarkProperties | Mark | string ): Editor; /** * Add a mark to length characters starting at an offset in a node by path @@ -1962,7 +1962,7 @@ export class Editor { key: string, offset: number, length: number, - mark: Mark + mark: Mark | Mark | string ): Editor; /** * Remove a mark from length characters starting at an offset in a node by path @@ -2020,14 +2020,11 @@ export class Editor { /** * Set a dictionary of properties on a node by its key. */ - setNodeByKey( - key: string, - properties: BlockProperties | InlineProperties | string - ): Editor; + setNodeByKey(key: string, properties: BlockProperties | InlineProperties | string): Editor; /** * Set a dictionary of properties on a node by its key. */ - setNodeByPath(path: Path, properties: NodeProperties): Editor; + setNodeByPath(path: Path, properties: NodeProperties | InlineProperties | string): Editor; /** * Split a node by its key at an offset */ @@ -2051,7 +2048,7 @@ export class Editor { /** * Unwrap all inner content of a block node by its path that match properties */ - unwrapBlockByPath(path: Path, properties: BlockProperties): Editor; + unwrapBlockByPath(path: Path, properties: BlockProperties | string): Editor; /** * Unwrap a single node from its parent. if the node is surrounded with siblings the parent will be split. * If the node is an only child, it will replace the parent diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 4439140bdc..0d6f2331e5 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -1,4 +1,4 @@ -import { Value, Data, BlockJSON, Document, Editor, KeyUtils } from "slate"; +import { Value, Data, BlockJSON, Document, Editor, KeyUtils, Range, Point, Inline, Mark } from "slate"; const data = Data.create({ foo: "bar " }); const value = Value.create({ data }); @@ -9,6 +9,7 @@ const node: BlockJSON = { nodes: [ { object: "text", + key: "a", leaves: [ { text: "example", @@ -26,6 +27,10 @@ const doc = Document.fromJSON({ }); const editor = new Editor({ value }); +const point = Point.create({ key: "a", offset: 0 }); +const range = Range.create({ anchor: point, focus: point }); +const inline = Inline.create("text"); +const mark = Mark.create("bold"); editor.registerQuery("testQuery"); editor.registerCommand("testCommand"); @@ -34,25 +39,246 @@ editor.command("testCommand"); editor.query("testQuery"); editor.run("testCommand"); editor.event("mouseDown", new Event("mouseDown")); + +// Test all editor commands editor -.focus() -.moveAnchorToStartOfDocument() -.moveFocusToEndOfDocument() -.delete() -.insertText("A bit of rich text, followed by...") -.moveToStartOfText() -.moveFocusForward(4) .addMark("bold") -.moveToEndOfNextBlock() +.addMarkAtRange(range, "italic") +.addMarkByKey("a", 0, 1, "bold") +.addMarkByPath("a", 0, 1, "bold") +.blur() +.delete() +.deleteAtRange(range) +.deleteBackward(0) +.deleteBackwardAtRange(range, 0) +.deleteCharBackwardAtRange(range) +.deleteCharForwardAtRange(range) +.deleteForward(0) +.deleteForwardAtRange(range, 0) +.deleteLineBackwardAtRange(range) +.deleteLineForwardAtRange(range) +.deleteWordBackwardAtRange(range) +.deleteWordForwardAtRange(range) +.deselect() +.flip() +.flush() +.focus() .insertBlock({ type: "image", + key: "b", data: { src: "http://placekitten.com/200/300", alt: "Kittens", className: "img-responsive" } }) -.insertBlock("paragraph"); +.insertBlockAtRange(range, "text") +.insertFragment(doc) +.insertFragmentAtRange(range, doc) +.insertFragmentByKey("a", 0, doc) +.insertFragmentByPath("a", 0, doc) +.insertInline(inline) +.insertInlineAtRange(range, inline) +.insertNodeByKey("a", 0, inline) +.insertNodeByPath("a", 0, inline) +.insertText("A bit of rich text, followed by...") +.insertTextAtRange(range, "More text") +.insertTextByKey("a", 0, "text") +.insertTextByPath("a", 0, "text") +.mergeNodeByKey("b") +.mergeNodeByPath("b") +.moveAnchorBackward() +.moveAnchorEndOfNode(inline) +.moveAnchorForward() +.moveAnchorTo("a", 0) +.moveAnchorToEndOfBlock() +.moveAnchorToEndOfDocument() +.moveAnchorToEndOfInline() +.moveAnchorToEndOfNextBlock() +.moveAnchorToEndOfNextInline() +.moveAnchorToEndOfNextText() +.moveAnchorToEndOfPreviousBlock() +.moveAnchorToEndOfPreviousInline() +.moveAnchorToEndOfPreviousText() +.moveAnchorToEndOfText() +.moveAnchorToStartOfBlock() +.moveAnchorToStartOfDocument() +.moveAnchorToStartOfInline() +.moveAnchorToStartOfNextBlock() +.moveAnchorToStartOfNextInline() +.moveAnchorToStartOfNextText() +.moveAnchorToStartOfNode(inline) +.moveAnchorToStartOfPreviousBlock() +.moveAnchorToStartOfPreviousInline() +.moveAnchorToStartOfPreviousText() +.moveAnchorToStartOfText() +.moveBackward() +.moveEndBackward() +.moveEndForward() +.moveEndTo("a", 0) +.moveEndToEndOfBlock() +.moveEndToEndOfDocument() +.moveEndToEndOfInline() +.moveEndToEndOfNextBlock() +.moveEndToEndOfNextInline() +.moveEndToEndOfNextText() +.moveEndToEndOfNode(inline) +.moveEndToEndOfPreviousBlock() +.moveEndToEndOfPreviousInline() +.moveEndToEndOfPreviousText() +.moveEndToEndOfText() +.moveEndToStartOfBlock() +.moveEndToStartOfDocument() +.moveEndToStartOfInline() +.moveEndToStartOfNextBlock() +.moveEndToStartOfNextInline() +.moveEndToStartOfNextText() +.moveEndToStartOfNode(inline) +.moveEndToStartOfPreviousBlock() +.moveEndToStartOfPreviousInline() +.moveEndToStartOfPreviousText() +.moveEndToStartOfText() +.moveFocusBackward() +.moveFocusForward() +.moveFocusTo("a", 0) +.moveFocusToEndOfBlock() +.moveFocusToEndOfDocument() +.moveFocusToEndOfInline() +.moveFocusToEndOfNextBlock() +.moveFocusToEndOfNextInline() +.moveFocusToEndOfNextText() +.moveFocusToEndOfNode(inline) +.moveFocusToEndOfPreviousBlock() +.moveFocusToEndOfPreviousInline() +.moveFocusToEndOfPreviousText() +.moveFocusToEndOfText() +.moveFocusToStartOfBlock() +.moveFocusToStartOfDocument() +.moveFocusToStartOfInline() +.moveFocusToStartOfNextBlock() +.moveFocusToStartOfNextInline() +.moveFocusToStartOfNextText() +.moveFocusToStartOfNode(inline) +.moveFocusToStartOfPreviousBlock() +.moveFocusToStartOfPreviousInline() +.moveFocusToStartOfPreviousText() +.moveFocusToStartOfText() +.moveForward() +.moveNodeByKey("b", "c", 2) +.moveNodeByPath("c", "b", 1) +.moveStartBackward() +.moveStartForward() +.moveStartTo("a", 0) +.moveStartToEndOfBlock() +.moveStartToEndOfDocument() +.moveStartToEndOfInline() +.moveStartToEndOfNextBlock() +.moveStartToEndOfNextInline() +.moveStartToEndOfNextText() +.moveStartToEndOfNode(inline) +.moveStartToEndOfPreviousBlock() +.moveStartToEndOfPreviousInline() +.moveStartToEndOfPreviousText() +.moveStartToEndOfText() +.moveStartToStartOfBlock() +.moveStartToStartOfDocument() +.moveStartToStartOfInline() +.moveStartToStartOfNextBlock() +.moveStartToStartOfNextInline() +.moveStartToStartOfNextText() +.moveStartToStartOfNode(inline) +.moveStartToStartOfPreviousBlock() +.moveStartToStartOfPreviousInline() +.moveStartToStartOfPreviousText() +.moveStartToStartOfText() +.moveTo("a", 0) +.moveToAnchor() +.moveToEnd() +.moveToEndOfBlock() +.moveToEndOfDocument() +.moveToEndOfInline() +.moveToEndOfNextBlock() +.moveToEndOfNextInline() +.moveToEndOfNextText() +.moveToEndOfNode(inline) +.moveToEndOfPreviousBlock() +.moveToEndOfPreviousInline() +.moveToEndOfPreviousText() +.moveToEndOfText() +.moveToFocus() +.moveToRangeOf(inline) +.moveToRangeOfDocument() +.moveToStart() +.moveToStartOfBlock() +.moveToStartOfDocument() +.moveToStartOfInline() +.moveToStartOfNextBlock() +.moveToStartOfNextInline() +.moveToStartOfNextText() +.moveToStartOfNode(inline) +.moveToStartOfPreviousBlock() +.moveToStartOfPreviousInline() +.moveToStartOfPreviousText() +.moveToStartOfText() +.normalize() +.redo() +.removeMark("bold") +.removeMarkAtRange(range, "bold") +.removeMarkByKey("a", 0, 1, "bold") +.removeMarkByPath("a", 0, 1, "bold") +.removeNodeByKey("b") +.removeNodeByPath("b") +.removeTextByKey("a", 0, 1) +.removeTextByPath("a", 0, 1) +.replaceMark("bold", "italic") +.replaceNodeByKey("a", inline) +.replaceNodeByPath("a", inline) +.select(range) +.setBlocks("paragraph") +.setBlocksAtRange(range, "paragraph") +.setInlines("paragraph") +.setInlinesAtRange(range, "paragraph") +.setMarkByKey("a", 0, 1, mark, { type: "bold" }) +.setMarksByPath("a", 0, 1, mark, { type: "bold" }) +.setNodeByKey("a", "paragraph") +.setNodeByPath("a", "paragraph") +.setReadOnly(true) +.setValue(value) +.snapshotSelection() +.splitBlock(0) +.splitBlockAtRange(range, 0) +.splitInline(0) +.splitInlineAtRange(range, 0) +.splitNodeByKey("a", 0) +.splitNodeByPath("a", 0) +.toggleMark("bold") +.toggleMarkAtRange(range, "bold") +.undo() +.unwrapBlock("paragraph") +.unwrapBlockAtRange(range, "paragraph") +.unwrapBlockByKey("a", "paragraph") +.unwrapBlockByPath("a", "paragraph") +.unwrapInline("paragraph") +.unwrapInlineAtRange(range, "paragraph") +.unwrapInlineByKey("a", "paragraph") +.unwrapInlineByPath("a", "paragraph") +.unwrapNodeByKey("a") +.unwrapNodeByPath("a") +.withoutMerging(() => { /* noop */ }) +.withoutNormalization(() => { /* noop */ }) +.withoutSaving(() => { /* noop */ }) +.wrapBlock("paragraph") +.wrapBlockAtRange(range, "paragraph") +.wrapBlockByKey("a", "paragraph") +.wrapBlockByPath("a", "paragraph") +.wrapInline("paragraph") +.wrapInlineAtRange(range, "paragraph") +.wrapInlineByKey("a", "paragraph") +.wrapInlineByPath("a", "paragraph") +.wrapNodeByKey("a", inline) +.wrapNodeByPath("a", inline) +.wrapText("a", "b") +.wrapTextAtRange(range, "a"); KeyUtils.setGenerator(() => "Test"); KeyUtils.create(); From 77440a637fad9aa9b9938b58f2854289789689dc Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 12:50:40 +0000 Subject: [PATCH 075/213] fix slate-react tests --- types/slate-react/slate-react-tests.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index f763ff9b5e..64f1256668 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -1,9 +1,10 @@ import { Editor, Plugin, EditorProps, RenderNodeProps } from "slate-react"; -import { Value } from "slate"; +import { Value, Editor as Controller, Operation } from "slate"; import * as React from "react"; +import * as Immutable from "immutable"; class MyPlugin implements Plugin { - renderNode(props: RenderNodeProps, next: () => void) { + renderNode(props: RenderNodeProps, editor: Controller, next: () => void) { const { node } = props; if (node) { switch (node.object) { @@ -18,6 +19,9 @@ class MyPlugin implements Plugin { } } } + onChange = (operations: Immutable.List, value: Value) => { + console.log(value); + } } const myPlugin = new MyPlugin(); @@ -36,6 +40,7 @@ class MyEditor extends React.Component { render() { return ; + renderNode={ myPlugin.renderNode } + onChange={ myPlugin.onChange }/>; } } From 975e8f9d112b445f9a10781dfc39eae4a43dc0ad Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 13:29:39 +0000 Subject: [PATCH 076/213] Revert unintended change --- types/slate-react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index c701f6f5e7..187bdd0689 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -40,7 +40,7 @@ export interface RenderMarkProps { } export interface RenderNodeProps { - attributes: object; + attributes: RenderAttributes; children: React.ReactNode; editor: Controller; isFocused: boolean; From 24c1321b1adf0888be2840ab300d1559a9216382 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 13:32:15 +0000 Subject: [PATCH 077/213] version number --- types/slate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 7d5eb5ce34..e4a71d52d2 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for slate 0.43 +// Type definitions for slate 0.43.0 // Project: https://github.com/ianstormtaylor/slate // Definitions by: Andy Kent // Jamie Talbot From 33c942bb0e0b3a1dbb9e713a6a36270e66e290a5 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 13:46:35 +0000 Subject: [PATCH 078/213] Revert "version number" This reverts commit 24c1321b1adf0888be2840ab300d1559a9216382. --- types/slate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index e4a71d52d2..7d5eb5ce34 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for slate 0.43.0 +// Type definitions for slate 0.43 // Project: https://github.com/ianstormtaylor/slate // Definitions by: Andy Kent // Jamie Talbot From e4eeaf874062b5b13b6dab14d79a2c760b364c73 Mon Sep 17 00:00:00 2001 From: Laurens Rietveld Date: Wed, 31 Oct 2018 15:15:48 +0100 Subject: [PATCH 079/213] Use single generic for I/O types of datafactory functions --- types/rdf-js/index.d.ts | 4 ++-- types/rdf-js/rdf-js-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/rdf-js/index.d.ts b/types/rdf-js/index.d.ts index 41491d8d09..964f042134 100644 --- a/types/rdf-js/index.d.ts +++ b/types/rdf-js/index.d.ts @@ -297,7 +297,7 @@ export interface DataFactory { * @see Triple * @see DefaultGraph */ - triple(subject: Q_In['subject'], predicate: Q_In['predicate'], object: Q_In['object']): Q_Out; + triple(subject: Q['subject'], predicate: Q['predicate'], object: Q['object']): Q; /** * @param subject The quad subject term. @@ -307,7 +307,7 @@ export interface DataFactory { * @return A new instance of Quad. * @see Quad */ - quad(subject: Q_In['subject'], predicate: Q_In['predicate'], object: Q_In['object'], graph?: Q_In['graph']): Q_Out; + quad(subject: Q['subject'], predicate: Q['predicate'], object: Q['object'], graph?: Q['graph']): Q; } /* Stream Interfaces */ diff --git a/types/rdf-js/rdf-js-tests.ts b/types/rdf-js/rdf-js-tests.ts index eb55002149..12b92b952d 100644 --- a/types/rdf-js/rdf-js-tests.ts +++ b/types/rdf-js/rdf-js-tests.ts @@ -77,7 +77,7 @@ function test_datafactory() { object: Term; graph: Term; } - const quad = dataFactory.quad(literal1, blankNode1, term, term); + const quad = dataFactory.quad(literal1, blankNode1, term, term); const hasBnode = quad.predicate.termType === "BlankNode"; } From da4346e58a177150a4855a2c5c150b2688da7ac6 Mon Sep 17 00:00:00 2001 From: licui Date: Wed, 31 Oct 2018 11:07:13 -0400 Subject: [PATCH 080/213] Update windowOption and applicationOption shapes from v1 to v2 --- .../_v2/api/application/application.d.ts | 5 +- .../api/application/applicationOption.d.ts | 50 ++++ types/openfin/_v2/api/window/anchor-type.d.ts | 1 + types/openfin/_v2/api/window/window.d.ts | 20 +- .../openfin/_v2/api/window/windowOption.d.ts | 46 ++++ types/openfin/index.d.ts | 236 +----------------- 6 files changed, 121 insertions(+), 237 deletions(-) create mode 100644 types/openfin/_v2/api/application/applicationOption.d.ts create mode 100644 types/openfin/_v2/api/window/anchor-type.d.ts create mode 100644 types/openfin/_v2/api/window/windowOption.d.ts diff --git a/types/openfin/_v2/api/application/application.d.ts b/types/openfin/_v2/api/application/application.d.ts index 8470f65f55..37263a9a63 100644 --- a/types/openfin/_v2/api/application/application.d.ts +++ b/types/openfin/_v2/api/application/application.d.ts @@ -6,6 +6,7 @@ import { MonitorInfo } from '../system/monitor'; import Transport from '../../transport/transport'; import Bounds from '../window/bounds'; import { ApplicationEvents } from '../events/application'; +import { ApplicationOption } from './applicationOption'; export interface TrayIconClickReply extends Point, Reply<'application', 'tray-icon-clicked'> { button: number; monitorInfo: MonitorInfo; @@ -55,12 +56,12 @@ export default class ApplicationModule extends Base { wrapSync(identity: Identity): Application; /** * Creates a new Application. - * @param {*} appOptions + * @param { ApplicationOption } appOptions * @return {Promise.} * @tutorial Application.create * @static */ - create(appOptions: any): Promise; + create(appOptions: ApplicationOption): Promise; /** * Asynchronously returns an Application object that represents the current application * @return {Promise.} diff --git a/types/openfin/_v2/api/application/applicationOption.d.ts b/types/openfin/_v2/api/application/applicationOption.d.ts new file mode 100644 index 0000000000..134e4482d6 --- /dev/null +++ b/types/openfin/_v2/api/application/applicationOption.d.ts @@ -0,0 +1,50 @@ +import { WindowOption, CustomRequestHeaders } from '../window/windowOption'; +import { DownloadPreloadOption } from '../system/download-preload'; +export interface ApplicationOption { + disableIabSecureLogging?: boolean; + loadErrorMessage?: string; + mainWindowOptions?: WindowOption; + name?: string; + nonPersistent?: boolean; + plugins?: boolean; + spellCheck?: boolean; + url?: string; + uuid: string; + webSecurity?: boolean; + accelerator?: object; + alwaysOnTop?: boolean; + api?: object; + aspectRatio?: number; + autoShow?: boolean; + backgroundColor?: string; + contentNavigation?: object; + contextMenu?: boolean; + cornerRounding?: object; + customData?: string; + customRequestHeaders?: Array; + defaultCentered?: boolean; + defaultHeight?: number; + defaultLeft?: number; + defaultTop?: number; + defaultWidth?: number; + frame?: boolean; + hideOnClose?: boolean; + icon?: string; + maxHeight?: number; + maximizable?: boolean; + maxWidth?: number; + minHeight?: number; + minimizable?: boolean; + minWidth?: number; + opacity?: number; + preloadScripts?: Array; + resizable?: boolean; + resizeRegion?: object; + saveWindowState?: boolean; + shadow?: boolean; + showTaskbarIcon?: boolean; + smallWindow?: boolean; + state?: string; + taskbarIconGroup?: string; + waitForPageLoad?: boolean; +} diff --git a/types/openfin/_v2/api/window/anchor-type.d.ts b/types/openfin/_v2/api/window/anchor-type.d.ts new file mode 100644 index 0000000000..4e09af40ab --- /dev/null +++ b/types/openfin/_v2/api/window/anchor-type.d.ts @@ -0,0 +1 @@ +export declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; diff --git a/types/openfin/_v2/api/window/window.d.ts b/types/openfin/_v2/api/window/window.d.ts index ff89a89051..fcefc4fa5d 100644 --- a/types/openfin/_v2/api/window/window.d.ts +++ b/types/openfin/_v2/api/window/window.d.ts @@ -5,6 +5,8 @@ import { Transition, TransitionOptions } from './transition'; import { Application } from '../application/application'; import Transport from '../../transport/transport'; import { WindowEvents } from '../events/window'; +import { AnchorType } from './anchor-type'; +import { WindowOption } from './windowOption'; /** * @lends Window */ @@ -27,12 +29,12 @@ export default class _WindowModule extends Base { wrapSync(identity: Identity): _Window; /** * Creates a new Window. - * @param { * } options - Window creation options + * @param { WindowOption } options - Window creation options * @return {Promise.<_Window>} * @tutorial Window.create * @static */ - create(options: any): Promise<_Window>; + create(options: WindowOption): Promise<_Window>; /** * Asynchronously returns a Window object that represents the current window * @return {Promise.<_Window>} @@ -459,7 +461,7 @@ export declare class _Window extends EmitterBase { "load-failed", "failed", "succeeded" */ constructor(wire: Transport, identity: Identity); - createWindow(options: any): Promise<_Window>; + createWindow(options: WindowOption): Promise<_Window>; private windowListFromNameList; /** * Retrieves an array of frame info objects representing the main frame and any @@ -663,24 +665,24 @@ export declare class _Window extends EmitterBase { * Resizes the window by a specified amount. * @param { number } deltaWidth The change in the width of the window * @param { number } deltaHeight The change in the height of the window - * @param { string } anchor Specifies a corner to remain fixed during the resize. - * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right." + * @param { AnchorType } anchor Specifies a corner to remain fixed during the resize. + * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right". * If undefined, the default is "top-left" * @return {Promise.} * @tutorial Window.resizeBy */ - resizeBy(deltaWidth: number, deltaHeight: number, anchor: string): Promise; + resizeBy(deltaWidth: number, deltaHeight: number, anchor: AnchorType): Promise; /** * Resizes the window to the specified dimensions. * @param { number } width The change in the width of the window * @param { number } height The change in the height of the window - * @param { string } anchor Specifies a corner to remain fixed during the resize. - * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right." + * @param { AnchorType } anchor Specifies a corner to remain fixed during the resize. + * Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right". * If undefined, the default is "top-left" * @return {Promise.} * @tutorial Window.resizeTo */ - resizeTo(width: number, height: number, anchor: string): Promise; + resizeTo(width: number, height: number, anchor: AnchorType): Promise; /** * Restores the window to its normal state (i.e., unminimized, unmaximized). * @return {Promise.} diff --git a/types/openfin/_v2/api/window/windowOption.d.ts b/types/openfin/_v2/api/window/windowOption.d.ts new file mode 100644 index 0000000000..faab275187 --- /dev/null +++ b/types/openfin/_v2/api/window/windowOption.d.ts @@ -0,0 +1,46 @@ +import { DownloadPreloadOption } from '../system/download-preload'; +export interface WindowOption { + accelerator?: object; + alwaysOnTop?: boolean; + api?: object; + aspectRatio?: number; + autoShow?: boolean; + backgroundColor?: string; + contentNavigation?: object; + contextMenu?: boolean; + cornerRounding?: object; + customData?: string; + customRequestHeaders?: Array; + defaultCentered?: boolean; + defaultHeight?: number; + defaultLeft?: number; + defaultTop?: number; + defaultWidth?: number; + frame?: boolean; + hideOnClose?: boolean; + icon?: string; + maxHeight?: number; + maximizable?: boolean; + maxWidth?: number; + minHeight?: number; + minimizable?: boolean; + minWidth?: number; + name?: string; + opacity?: number; + preloadScripts?: Array; + resizable?: boolean; + resizeRegion?: object; + saveWindowState?: boolean; + shadow?: boolean; + showTaskbarIcon?: boolean; + smallWindow?: boolean; + state?: string; + taskbarIconGroup?: string; + url?: string; + uuid?: string; + waitForPageLoad?: boolean; +} +export interface CustomRequestHeaders { + urlPatterns: Array; + headers: Array; +} diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index 139c874cab..b77b91eba5 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -25,7 +25,8 @@ * without the need to include additional source files. You can treat the "fin" namespace as you would the "window", "navigator" or "documennt" objects. */ import { Identity } from './_v2/identity'; -import { ShortCutConfig, TrayInfo } from './_v2/api/application/application'; +import { ApplicationInfo as LaunchInfo, ShortCutConfig, TrayInfo } from './_v2/api/application/application'; +import { ApplicationOption } from './_v2/api/application/applicationOption'; import { ExternalApplicationInfo } from './_v2/api/external-application/external-application'; import { ApplicationInfo } from './_v2/api/system/application'; import { ClearCacheOption } from './_v2/api/system/clearCacheOption'; @@ -42,8 +43,10 @@ import { ProxyInfo } from './_v2/api/system/proxy'; import { RegistryInfo } from './_v2/api/system/registry-info'; import { RVMInfo} from './_v2/api/system/rvm'; import { WindowDetail, WindowInfo } from './_v2/api/system/window'; +import { AnchorType } from './_v2/api/window/anchor-type'; import Bounds from './_v2/api/window/bounds'; import { Transition, TransitionOptions } from './_v2/api/window/transition'; +import { WindowOption } from './_v2/api/window/windowOption'; // tslint:disable-next-line:export-just-namespace export = fin; @@ -79,7 +82,7 @@ declare namespace fin { * An object representing an application. Allows the developer to create, execute, show/close an application as well as listen to application events. */ new ( - options: ApplicationOptions, + options: ApplicationOption, callback?: (successObj: { httpResponseCode: number }) => void, errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinApplication; /** @@ -227,192 +230,6 @@ declare namespace fin { message: string; } - interface ApplicationOptions { - /** - * The name of the application. - */ - name?: string; - /** - * The url to the application. - */ - url?: string; - /** - * The UUID of the application, unique within the set of all other applications running in the OpenFin Runtime. name and uuid must match. - */ - uuid?: string; - /** - * Enable Flash at the application level. Default: false. - */ - plugins?: boolean; - /** - * The options of the main window of the application. - */ - mainWindowOptions?: WindowOptions; - } - - interface WindowOptions { - /** - * Enable keyboard shortcuts for devtools and zoom. Default: false for both. - */ - accelerator?: { - devtools?: boolean, - zoom?: boolean, - reload?: boolean, - reloadIgnoreCache?: boolean, - }; - /** - * A flag to always position the window at the top of the window stack. Default: false. - * Updatable - */ - alwaysOnTop?: boolean; - /** - * A flag to automatically show the Window when it is created. Default: false. - */ - autoShow?: boolean; - /** - * A flag to show the context menu when right-clicking on a window. Gives access to the Developer Console for the Window. Default: true - * Updatable - */ - contextMenu?: boolean; - /** - * This defines and applies rounded corners for a frameless window. Default for both width and height: 0. - * Updatable - */ - cornerRounding?: { - width?: number; - height?: number; - }; - /** - * A field that the user can attach serializable data to to be ferried around with the window options. Default: ''. - */ - customData?: any; - /** - * Specifies that the window will be positioned in the center of the primary monitor when loaded for the first time on a machine. - * When the window corresponding to that id is loaded again, the position from before the window was closed is used. - * This option overrides defaultLeft and defaultTop. Default: false. - */ - defaultCentered?: boolean; - /** - * The default height of the window. Specifies the height of the window when loaded for the first time on a machine. - * When the window corresponding to that id is loaded again, the height is taken to be the last height of the window before it was closed. Default: 500. - */ - defaultHeight?: number; - /** - * The default left position of the window. Specifies the position of the left of the window when loaded for the first time on a machine. - * When the window corresponding to that id is loaded again, the value of left is taken to be the last value before the window was closed. Default: 100. - */ - defaultWidth?: number; - /** - * The default top position of the window. Specifies the position of the top of the window when loaded for the first time on a machine. - * When the window corresponding to that id is loaded again, the value of top is taken to be the last value before the window was closed. Default: 100. - */ - defaultTop?: number; - /** - * The default width of the window. Specifies the width of the window when loaded for the first time on a machine. - * When the window corresponding to that id is loaded again, the width is taken to be the last width of the window before it was closed. Default: 800. - */ - defaultLeft?: number; - /** - * A flag to show the frame. Default: true. - * Updatable - */ - frame?: boolean; - /** - * A flag to allow a window to be hidden when the close button is clicked.Default: false. - * Updatable - */ - hideOnClose?: boolean; - /** - * A URL for the icon to be shown in the window title bar and the taskbar.Default: The parent application's applicationIcon. - * Updatable - */ - icon?: string; - /** - * The maximum height of a window.Will default to the OS defined value if set to - 1. Default: -1. - * Updatable - */ - maxHeight?: number; - /** - * A flag that lets the window be maximized.Default: true. - * Updatable - */ - maximizable?: boolean; - /** - * The maximum width of a window.Will default to the OS defined value if set to - 1. Default: -1. - * Updatable - */ - maxWidth?: number; - /** - * The minimum height of a window.Default: 0. - * Updatable - */ - minHeight?: number; - /** - * A flag that lets the window be minimized.Default: true. - */ - minimizable?: boolean; - /** - * The minimum width of a window.Default: 0. - */ - minWidth?: number; - /** - * The name for the window which must be unique within the context of the invoking Application. - */ - name?: string; - /** - * A flag that specifies how transparent the window will be.This value is clamped between 0.0 and 1.0.Default: 1.0. - * Updatable - */ - opacity?: number; - /** - * A flag to drop to allow the user to resize the window.Default: true. - * Updatable - */ - resizable?: boolean; - /** - * Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window. - * Updatable - */ - resizeRegion?: { - /** - * The size in pixels (Default: 2), - */ - size?: number; - /** - * The size in pixels of an additional - * square resizable region located at the - * bottom right corner of a - * frameless window. (Default: 4) - */ - bottomRightCorner?: number; - }; - /** - * A flag to show the Window's icon in the taskbar. Default: true. - */ - showTaskbarIcon?: boolean; - /** - * A flag to cache the location of the window or not. Default: true. - */ - saveWindowState?: boolean; - /** - * Specify a taskbar group for the window. Default: app's uuid. - */ - taskbarIconGroup?: string; - /** - * A string that sets the window to be "minimized", "maximized", or "normal" on creation. Default: "normal". - */ - state?: string; - /** - * The URL of the window. Default: "about:blank". - */ - url?: string; - /** - * When set to false, the window will render before the "load" event is fired on the content's window. - * Caution, when false you will see an initial empty white window. Default: true. - */ - waitForPageLoad?: boolean; - } - /** * Clipboard * Clipboard API allows reading and writting to the clipboard in multiple formats. @@ -930,7 +747,7 @@ declare namespace fin { * @param [callback.successObj] - httpResponseCode */ new ( - options: WindowOptions, + options: WindowOption, callback?: (successObj: { httpResponseCode: number }) => void, errorCallback?: (reason: string, errorObj: NetworkErrorInfo) => void): OpenFinWindow; /** @@ -1047,7 +864,7 @@ declare namespace fin { /** * Gets the current settings of the window. */ - getOptions(callback?: (options: WindowOptions) => void, errorCallback?: (reason: string) => void): void; + getOptions(callback?: (options: WindowOption) => void, errorCallback?: (reason: string) => void): void; /** * Gets a base64 encoded PNG snapshot of the window. */ @@ -1114,11 +931,11 @@ declare namespace fin { /** * Resizes the window by a specified amount. */ - resizeBy(deltaWidth: number, deltaHeight: number, anchor: OpenFinAnchor, callback?: () => void, errorCallback?: (reason: string) => void): void; + resizeBy(deltaWidth: number, deltaHeight: number, anchor: AnchorType, callback?: () => void, errorCallback?: (reason: string) => void): void; /** * Resizes the window by a specified amount. */ - resizeTo(width: number, height: number, anchor: OpenFinAnchor, callback?: () => void, errorCallback?: (reason: string) => void): void; + resizeTo(width: number, height: number, anchor: AnchorType, callback?: () => void, errorCallback?: (reason: string) => void): void; /** * Restores the window to its normal state (i.e., unminimized, unmaximized). */ @@ -1151,7 +968,7 @@ declare namespace fin { /** * Updates the window using the passed options */ - updateOptions(options: WindowOptions, callback?: () => void, errorCallback?: (reason: string) => void): void; + updateOptions(options: WindowOption, callback?: () => void, errorCallback?: (reason: string) => void): void; } interface OpenFinFrameStatic { @@ -1432,34 +1249,6 @@ declare namespace fin { type: "session-changed"; } - interface LaunchInfo { - launchMode: "fin-protocol" - | "fins-protocol" - | "shortcut" - | "command-line" - | "adapter" - | "other" - | string; - } - - type OpenFinTweenType = "linear" - | "ease-in" - | "ease-out" - | "ease-in-out" - | "ease-in-quad" - | "ease-out-quad" - | "ease-in-out-quad" - | "ease-in-cubic" - | "ease-out-cubic" - | "ease-in-out-cubic" - | "ease-out-bounce" - | "ease-in-back" - | "ease-out-back" - | "ease-in-out-back" - | "ease-in-elastic" - | "ease-out-elastic" - | "ease-in-out-elastic"; - type OpenFinApplicationEventType = "closed" | "connected" | "crashed" @@ -1515,9 +1304,4 @@ declare namespace fin { | "restored" | "show-requested" | "shown"; - - type OpenFinAnchor = "top-left" - | "top-right" - | "bottom-left" - | "bottom-right"; } From a25d7799672222e2771c5bfe5c71a2a7d05cf768 Mon Sep 17 00:00:00 2001 From: Jake Chapman Date: Wed, 31 Oct 2018 08:36:59 -0700 Subject: [PATCH 081/213] Added definitions for 'react-native-flip-card' --- types/react-native-flip-card/index.d.ts | 46 +++++++++++++++++++ .../react-native-flip-card-tests.tsx | 33 +++++++++++++ types/react-native-flip-card/tsconfig.json | 24 ++++++++++ types/react-native-flip-card/tslint.json | 3 ++ 4 files changed, 106 insertions(+) create mode 100644 types/react-native-flip-card/index.d.ts create mode 100644 types/react-native-flip-card/react-native-flip-card-tests.tsx create mode 100644 types/react-native-flip-card/tsconfig.json create mode 100644 types/react-native-flip-card/tslint.json diff --git a/types/react-native-flip-card/index.d.ts b/types/react-native-flip-card/index.d.ts new file mode 100644 index 0000000000..6fc1156a1a --- /dev/null +++ b/types/react-native-flip-card/index.d.ts @@ -0,0 +1,46 @@ +// Type definitions for react-native-flip-card 3.5 +// Project: https://github.com/moschan/react-native-flip-card +// Definitions by: Jake Chapman +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import { Component, ReactNode, ComponentClass } from "react"; +import { + ViewProps, + TextProps, + StyleProp, + TextInputProps, + ViewStyle +} from "react-native"; + +// FlipCard +export interface FlipCardProps { + style?: StyleProp; + flip?: boolean; + friction?: number; + perspective?: number; + flipHorizontal?: boolean; + flipVertical?: boolean; + clickable?: boolean; + onFlipEnd?: () => void; + onFlipStart?: () => void; + alignHeight?: boolean; + alignWidth?: boolean; + useNativeDriver?: boolean; +} +// Face +export interface FaceProps { + chilren: JSX.Element[]; +} + +// Back +export interface BackProps { + flipHorizontal: boolean; + flipVertical: boolean; + perspective: number; + chilren: JSX.Element[]; +} + +export const Face: ComponentClass; +export const Back: ComponentClass; +export default class FlipCard extends Component {} diff --git a/types/react-native-flip-card/react-native-flip-card-tests.tsx b/types/react-native-flip-card/react-native-flip-card-tests.tsx new file mode 100644 index 0000000000..e741589be4 --- /dev/null +++ b/types/react-native-flip-card/react-native-flip-card-tests.tsx @@ -0,0 +1,33 @@ +import * as React from "react"; +import { View, Text, StyleSheet } from "react-native"; + +// Component +import FlipCard from "react-native-flip-card"; + +export default class FlipCardTest extends React.Component { + render() { + return ( + {}} + onFlipEnd={() => {}} + alignHeight={false} + alignWidth={false} + useNativeDriver={true} + > + + Front + + + Back + + + ); + } +} diff --git a/types/react-native-flip-card/tsconfig.json b/types/react-native-flip-card/tsconfig.json new file mode 100644 index 0000000000..92f1878d71 --- /dev/null +++ b/types/react-native-flip-card/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "react-native-flip-card-tests.tsx" + ] +} \ No newline at end of file diff --git a/types/react-native-flip-card/tslint.json b/types/react-native-flip-card/tslint.json new file mode 100644 index 0000000000..30a1bdde2e --- /dev/null +++ b/types/react-native-flip-card/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file From 49864f1e5177e3de44fd18ea5157a7a691e5075d Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 17:04:24 +0000 Subject: [PATCH 082/213] Address PR feedback from kalley thanks @kalley! :smiley: --- types/slate-react/index.d.ts | 2 +- types/slate/index.d.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index 187bdd0689..140d9f747d 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -95,7 +95,7 @@ export interface BasicEditorProps { autoCorrect?: boolean; autoFocus?: boolean; className?: string; - onChange?: (operations: Immutable.List, value: Value) => any; + onChange?: (change: { operations: Immutable.List, value: Value }) => any; placeholder?: any; plugins?: Plugin[]; readOnly?: boolean; diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 7d5eb5ce34..d4d12d376a 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1048,7 +1048,7 @@ export interface PathUtils { } export interface EditorProperties { - onChange?: (value: Value) => void; + onChange?: (change: { operations: Immutable.List, value: Value }) => void; plugins?: any[]; readOnly?: boolean; value?: Value; @@ -1056,7 +1056,7 @@ export interface EditorProperties { export class Editor { object: "editor"; - onChange: (value: Value) => void; + onChange: (change: { operations: Immutable.List, value: Value }) => void; plugins: any[]; readOnly: boolean; value: Value; @@ -1099,7 +1099,7 @@ export class Editor { * You can optionally provide a normalize option to either for the editor to completely re-normalize the new value based on its schema or not. * By default, the editor will re-normalize only if the value is not equal to its previously seen value (which it knows was normalized). */ - setValue(value: Value, options?: { normalize: () => void }): Editor; + setValue(value: Value, options?: { normalize: boolean }): Editor; // Built in Command Operations // // Current Selection Commands // @@ -1250,7 +1250,7 @@ export class Editor { /** * Move the anchor of the current selection to a new path and offset */ - moveAnchorTo(path: Path, offset: number): Editor; + moveAnchorTo(path: Path, offset?: number): Editor; /** * Move the anchor of the current selection to the end of the closest block parent. */ @@ -1352,7 +1352,7 @@ export class Editor { /** * Move the end of the selection to a new path and offset */ - moveEndTo(path: Path, offset: number): Editor; + moveEndTo(path: Path, offset?: number): Editor; /** * Move the end of the current selection to the end of the closest block parent. */ @@ -1453,7 +1453,7 @@ export class Editor { /** * Move the focus of the current selection to a new path and offset */ - moveFocusTo(path: Path, offset: number): Editor; + moveFocusTo(path: Path, offset?: number): Editor; /** * Move the focus of the current selection to the end of the closest block parent. */ @@ -1655,7 +1655,7 @@ export class Editor { /** * Collapse the current selection at the provided new path and offset. */ - moveTo(path: Path, offset: number): Editor; + moveTo(path: Path, offset?: number): Editor; /** * Collapse the current selection at the anchor. */ @@ -2096,7 +2096,7 @@ export class Editor { * * This allows for sequence change operations to not be interrupted by normalization */ - withoutNormalization(fn: () => void): Editor; + withoutNormalizing(fn: () => void): Editor; /** * By default all operations are saved to the editor's history. If you have * changes that you don't want to show up in history, use this function. From f7bc39e6e9fdbcfb8a89763ed29489bad86afd60 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 31 Oct 2018 17:07:03 +0000 Subject: [PATCH 083/213] update tests --- types/slate-react/slate-react-tests.tsx | 4 ++-- types/slate/slate-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index 64f1256668..76ecb5c579 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -19,8 +19,8 @@ class MyPlugin implements Plugin { } } } - onChange = (operations: Immutable.List, value: Value) => { - console.log(value); + onChange = (change: {operations: Immutable.List, value: Value}) => { + console.log(change.value); } } diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 0d6f2331e5..98c0758c21 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -265,7 +265,7 @@ editor .unwrapNodeByKey("a") .unwrapNodeByPath("a") .withoutMerging(() => { /* noop */ }) -.withoutNormalization(() => { /* noop */ }) +.withoutNormalizing(() => { /* noop */ }) .withoutSaving(() => { /* noop */ }) .wrapBlock("paragraph") .wrapBlockAtRange(range, "paragraph") From 2d429c4da87ea91c58902ee06ee217dfa3effd40 Mon Sep 17 00:00:00 2001 From: Arne Schubert Date: Wed, 31 Oct 2018 18:51:22 +0100 Subject: [PATCH 084/213] #15313: TileLayerOptions should not be a dictionary to make it checkable --- types/leaflet/index.d.ts | 6 +++++- types/leaflet/leaflet-tests.ts | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 8402d8bc9b..c9f960b3e6 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -494,7 +494,11 @@ export interface TileLayerOptions extends GridLayerOptions { zoomReverse?: boolean; detectRetina?: boolean; crossOrigin?: boolean; - [name: string]: any; + // [name: string]: any; + // You are able add additional properties, but it makes this interface unchackable. + // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15313 + // Example: + // tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?{foo}&{bar}&{abc}', {foo: 'bar', bar: (data: any) => 'foo', abc: () => ''}); } export class TileLayer extends GridLayer { diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index d1375fa83f..87779c6de7 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -227,9 +227,6 @@ tileLayerOptions = { pane: '', className: '', keepBuffer: 1, - foo: 'bar', - bar: () => 'foo', - abc: (data: any) => 'foobar' }; tileLayerOptions.subdomains = 'a'; @@ -245,11 +242,9 @@ tileLayerOptions.bounds = latLngBoundsLiteral; let tileLayer: L.TileLayer; tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png'); tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', tileLayerOptions); -tileLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?{foo}&{bar}&{abc}', {foo: 'bar', bar: (data: any) => 'foo', abc: () => ''}); tileLayer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png'); tileLayer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', tileLayerOptions); -tileLayer = new L.TileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?{foo}&{bar}&{abc}', {foo: 'bar', bar: (data: any) => 'foo', abc: () => ''}); // imageOverlay let imageOverlayOptions: L.ImageOverlayOptions; From cac181f076b8b21962c8df063f0178cf4094d6ef Mon Sep 17 00:00:00 2001 From: Arne Schubert Date: Wed, 31 Oct 2018 19:01:56 +0100 Subject: [PATCH 085/213] #9257: Add the possibility to set styles in GeoJSONOptions via style-function and PathOptions --- types/leaflet/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 8402d8bc9b..c6b97e3b28 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -817,7 +817,7 @@ export interface GeoJSONOptions

extends LayerOptions { pointToLayer?(geoJsonPoint: geojson.Feature, latlng: LatLng): Layer; // should import GeoJSON typings /** - * A Function defining the Path options for styling GeoJSON lines and polygons, + * PathOptions or a Function defining the Path options for styling GeoJSON lines and polygons, * called internally when data is added. * * The default value is to not override any defaults: @@ -828,7 +828,7 @@ export interface GeoJSONOptions

extends LayerOptions { * } * ``` */ - style?: StyleFunction

; + style?: PathOptions | StyleFunction

; /** * A Function that will be called once for each created Feature, after it From facb4b182903effb94da4626d74f923ddcdc6194 Mon Sep 17 00:00:00 2001 From: licui Date: Wed, 31 Oct 2018 15:48:43 -0400 Subject: [PATCH 086/213] Update external process shapes from v1 to v2 --- .../_v2/api/system/external-process.d.ts | 20 ++++- types/openfin/_v2/api/system/system.d.ts | 6 +- types/openfin/index.d.ts | 77 +------------------ 3 files changed, 22 insertions(+), 81 deletions(-) diff --git a/types/openfin/_v2/api/system/external-process.d.ts b/types/openfin/_v2/api/system/external-process.d.ts index 8a68f1eae3..624c93ea18 100644 --- a/types/openfin/_v2/api/system/external-process.d.ts +++ b/types/openfin/_v2/api/system/external-process.d.ts @@ -1,7 +1,17 @@ export interface ExternalProcessRequestType { - path: string; - arguments: string; - listener: LaunchExternalProcessListener; + path?: string; + alias?: string; + arguments?: string; + listener?: LaunchExternalProcessListener; + lifetime?: string; + certificate?: CertificationInfo; +} +export interface CertificationInfo { + serial?: string; + subject?: string; + publickey?: string; + thumbprint?: string; + trusted?: boolean; } export interface ExitCode { topic: string; @@ -20,3 +30,7 @@ export interface ExternalConnection { token: string; uuid: string; } +export interface ExternalProcessInfo { + pid: number; + listener?: LaunchExternalProcessListener; +} diff --git a/types/openfin/_v2/api/system/system.d.ts b/types/openfin/_v2/api/system/system.d.ts index 88a37d0b26..76f244cabf 100644 --- a/types/openfin/_v2/api/system/system.d.ts +++ b/types/openfin/_v2/api/system/system.d.ts @@ -12,7 +12,7 @@ import { RVMInfo } from './rvm'; import { RuntimeInfo } from './runtime-info'; import { Entity, EntityInfo } from './entity'; import { HostSpecs } from './host-specs'; -import { ExternalProcessRequestType, TerminateExternalRequestType, ExternalConnection } from './external-process'; +import { ExternalProcessRequestType, TerminateExternalRequestType, ExternalConnection, ExternalProcessInfo } from './external-process'; import Transport from '../../transport/transport'; import { CookieInfo, CookieOption } from './cookie'; import { RegistryInfo } from './registry-info'; @@ -454,11 +454,11 @@ export default class System extends EmitterBase { launchExternalProcess(options: ExternalProcessRequestType): Promise; /** * Monitors a running process. - * @param { number } pid See tutorial for more details + * @param { ExternalProcessInfo } options See tutorial for more details * @return {Promise.} * @tutorial System.monitorExternalProcess */ - monitorExternalProcess(pid: number): Promise; + monitorExternalProcess(options: ExternalProcessInfo): Promise; /** * Writes the passed message into both the log file and the console. * @param { string } level The log level for the entry. Can be either "info", "warning" or "error" diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index b77b91eba5..41e35c0c45 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -34,6 +34,7 @@ import { CookieInfo, CookieOption } from './_v2/api/system/cookie'; import { AppAssetInfo, AppAssetRequest, RuntimeDownloadOptions, RuntimeDownloadProgress } from './_v2/api/system/download-asset'; import { DownloadPreloadInfo, DownloadPreloadOption } from './_v2/api/system/download-preload'; import { EntityInfo } from './_v2/api/system/entity'; +import { ExternalProcessRequestType, ExternalProcessInfo } from './_v2/api/system/external-process'; import { HostSpecs } from './_v2/api/system/host-specs'; import { LogInfo } from './_v2/api/system/log'; import { MonitorInfo } from './_v2/api/system/monitor'; @@ -584,7 +585,7 @@ declare namespace fin { /** * Runs an executable or batch file. */ - launchExternalProcess(options: ExternalProcessLaunchInfo, callback?: (payload: { uuid: string }) => void, errorCallback?: (reason: string) => void): void; + launchExternalProcess(options: ExternalProcessRequestType, callback?: (payload: { uuid: string }) => void, errorCallback?: (reason: string) => void): void; /** * Writes the passed message into both the log file and the console. */ @@ -657,80 +658,6 @@ declare namespace fin { updateProxySettings(type: string, address: string, port: number, callback?: () => void, errorCallback?: (reason: string) => void): void; } - interface ExternalProcessLaunchInfo { - path?: string; - /** - * Additionally note that the executable found in the zip file specified in appAssets - * will default to the one mentioned by appAssets.target - * If the the path below refers to a specific path it will override this default - */ - alias?: string; - /** - * When using alias; if no arguments are passed then the arguments (if any) - * are taken from the 'app.json' file, from the 'args' parameter - * of the 'appAssets' Object with the relevant 'alias'. - * If 'arguments' is passed as a parameter it takes precedence - * over any 'args' set in the 'app.json'. - */ - arguments?: string; - listener?(result: { - /** - * "Exited" Or "released" on a call to releaseExternalProcess - */ - topic?: string; - /** - * The mapped UUID which identifies the launched process - */ - uuid?: string; - /* - * Process exit code - */ - exitCode?: number; - }): void; - certificate?: CertificationInfo; - } - - interface CertificationInfo { - /** - * A hex string with or without spaces - */ - serial?: string; - /** - * An internally tokenized and comma delimited string allowing partial or full checks of the subject fields - */ - subject?: string; - /** - * A hex string with or without spaces - */ - publickey?: string; - /** - * A hex string with or without spaces - */ - thumbprint?: string; - /** - * A boolean indicating that the certificate is trusted and not revoked - */ - trusted?: boolean; - } - - interface ExternalProcessInfo { - pid?: number; - listener?(result: { - /** - * "Exited" Or "released" on a call to releaseExternalProcess - */ - topic?: string; - /** - * The mapped UUID which identifies the launched process - */ - uuid?: string; - /* - * Process exit code - */ - exitCode?: number; - }): void; - } - interface OpenFinWindowStatic { /** * Class: Window From edabd802ee9e2a8da785ab15263761ed249cdb4e Mon Sep 17 00:00:00 2001 From: Francesco Agnoletto Date: Thu, 1 Nov 2018 00:23:24 +0100 Subject: [PATCH 087/213] Fix RenderNodeProps to only accept Block | Inline as node https://github.com/ianstormtaylor/slate/blob/8dd919dc3457c62ea2aa72f31b83faf42cbaba72/packages/slate-react/src/plugins/react.js#L73 --- types/slate-react/index.d.ts | 5 +++-- types/slate-react/slate-react-tests.tsx | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index c79b945a5b..48dc0db0be 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -5,9 +5,10 @@ // Jan Löbel // Patrick Sachs // Brandon Shelton +// Francesco Agnoletto // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 -import { Mark, Node, Block, Change, Schema, Value, Stack } from 'slate'; +import { Mark, Node, Block, Inline, Change, Schema, Value, Stack } from 'slate'; import * as Immutable from 'immutable'; import * as React from 'react'; @@ -33,7 +34,7 @@ export interface RenderNodeProps { editor: Editor; isSelected: boolean; key: string; - node: Node; + node: Block | Inline; parent: Node; } diff --git a/types/slate-react/slate-react-tests.tsx b/types/slate-react/slate-react-tests.tsx index d8c8ea0073..4b6e6429c0 100644 --- a/types/slate-react/slate-react-tests.tsx +++ b/types/slate-react/slate-react-tests.tsx @@ -11,8 +11,6 @@ class MyPlugin implements Plugin { return

; case "inline": return Hello world; - case "text": - return

Hello world

; default: return undefined; } From 7496851d07cd76b20f8fba4e612b31364fb606d6 Mon Sep 17 00:00:00 2001 From: Francesco Agnoletto Date: Thu, 1 Nov 2018 00:39:55 +0100 Subject: [PATCH 088/213] Switch back single tick for double --- types/slate-react/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index 5fe7ae15bd..7fad370ba4 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -9,9 +9,9 @@ // Francesco Agnoletto // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 -import { Mark, Node, Block, Inline, Change, Schema, Value, Stack, Document } from 'slate'; -import * as Immutable from 'immutable'; -import * as React from 'react'; +import { Mark, Node, Block, Inline, Change, Schema, Value, Stack, Document } from "slate"; +import * as Immutable from "immutable"; +import * as React from "react"; // Values prefixed with "data-..." (Used for spellchecking according to docs) export interface RenderAttributes { From 0849e5e41a0b9f105ff7010e25a52cabfb14cfac Mon Sep 17 00:00:00 2001 From: Viktor Pegij Date: Thu, 1 Nov 2018 10:14:58 +0300 Subject: [PATCH 089/213] [CKEditor] Add more skin settings --- types/ckeditor/ckeditor-tests.ts | 3 +++ types/ckeditor/index.d.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/types/ckeditor/ckeditor-tests.ts b/types/ckeditor/ckeditor-tests.ts index a6f9c9cf5c..6a0b50a4d8 100644 --- a/types/ckeditor/ckeditor-tests.ts +++ b/types/ckeditor/ckeditor-tests.ts @@ -914,6 +914,9 @@ function test_skin() { CKEDITOR.skin.loadPart('part', () => console.log('load')); var path2: string = CKEDITOR.skin.path(); + + CKEDITOR.skin.ua_dialog = 'ie,iequirks,ie8,gecko'; + CKEDITOR.skin.ua_editor = 'ie,gecko'; } function test_style() { diff --git a/types/ckeditor/index.d.ts b/types/ckeditor/index.d.ts index 6815d3aa98..69c23d6a99 100644 --- a/types/ckeditor/index.d.ts +++ b/types/ckeditor/index.d.ts @@ -2,6 +2,7 @@ // Project: https://ckeditor.com/ckeditor-4/ // Definitions by: Thomas Wittwer // Stuart Long +// Viktor Pegy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // WORK-IN-PROGRESS: Any contribution support welcomed. @@ -2168,6 +2169,8 @@ declare namespace CKEDITOR { // tslint:disable-next-line:no-duplicate-variable var name: string; var ua: { [name: string]: any }; + var ua_dialog: string; + var ua_editor: string; function addIcon(name: string, path: string, offset?: number, bgsize?: string): void; function chameleon(editor: string, part: string): void; From aa8090af05e8d2b6fc99a2449e6ae4687df6808c Mon Sep 17 00:00:00 2001 From: Omar Diab Date: Thu, 31 May 2018 14:43:00 -0400 Subject: [PATCH 090/213] uncomment tests that failed in versions prior to tsc 2.9 --- types/react-mailchimp-subscribe/index.d.ts | 2 +- .../react-mailchimp-subscribe-tests.tsx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/types/react-mailchimp-subscribe/index.d.ts b/types/react-mailchimp-subscribe/index.d.ts index 55b5c487ed..ed0165ed00 100644 --- a/types/react-mailchimp-subscribe/index.d.ts +++ b/types/react-mailchimp-subscribe/index.d.ts @@ -2,7 +2,7 @@ // Project: https://revolunet.github.io/react-mailchimp-subscribe/ // Definitions by: Omar Diab // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 2.9 import { Component, ReactNode } from "react"; diff --git a/types/react-mailchimp-subscribe/react-mailchimp-subscribe-tests.tsx b/types/react-mailchimp-subscribe/react-mailchimp-subscribe-tests.tsx index 0507d7657a..d09ef6cc9a 100644 --- a/types/react-mailchimp-subscribe/react-mailchimp-subscribe-tests.tsx +++ b/types/react-mailchimp-subscribe/react-mailchimp-subscribe-tests.tsx @@ -25,9 +25,7 @@ const Example: React.StatelessComponent = () => ( )} url="spam.biz/subscribe" /> - { /* once Typescript 2.9 is out, generics in components will be allowed, at that point uncomment these. */ } - { /* https://github.com/Microsoft/TypeScript/pull/22415 */ } - {/* + render={(hooks) => (
{ @@ -52,6 +50,6 @@ const Example: React.StatelessComponent = () => ( /> )} url="spam.biz/subscribe" - /> */} + /> ); From 1b14cabe4aaf957f19b05e0f9fe32f1877e52b1e Mon Sep 17 00:00:00 2001 From: chrolivier Date: Thu, 1 Nov 2018 11:02:11 +0200 Subject: [PATCH 091/213] Added TypeScript definitions for queue operations --- types/arangodb/index.d.ts | 71 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index 5babc4a961..8f54268e19 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -1440,6 +1440,77 @@ declare module "@arangodb/foxx/router" { export = createRouter; } +declare module "@arangodb/foxx/queues" { + interface QueueItem { + name: string; + mount: string; + backOff: ((failureCount: number) => number) | number | undefined; + maxFailures: number | undefined; + schema: Foxx.Schema | undefined; + preprocess: ((data: any) => any) | undefined; + } + + interface Script { + name: string; + mount: string; + } + + // TODO: flesh this out + type JobCallback = (result: any, jobData: any, job: ArangoDB.Document) => void; + + interface Job { + status: string; + queue: string; + type: Script; + failures: object[]; + runs: number; + data: any; + created: number; + modified: number; + delayUntil: number; + maxFailures: number; + repeatDelay: number; + repeatTimes: number; + repeatUntil: number; + success: string | undefined; + failure: string | undefined; + runFailures: number; + abort(): void; + } + + interface JobOptions { + success: JobCallback | undefined; + failure: JobCallback | undefined; + delayUntil: number | Date | undefined; + backOff: ((failureCount: number) => number) | number | undefined; + maxFailures: number | undefined; + repeatTimes: number | undefined; + repeatUntil: number | Date | undefined; + repeatDelay: number | undefined; + } + + interface Queue { + push(item: QueueItem, data: any): void; + get(jobId: string): ArangoDB.Document; + delete(jobId: string): boolean; + pending(script: Script | undefined): string[]; + progress(script: Script | undefined): string[]; + complete(script: Script | undefined): string[]; + failed(script: Script | undefined): string[]; + all(script: Script | undefined): string[]; + } + + function createQueue(name: string, maxWorkers?: number): Queue; + function deleteQueue(name: string): boolean; + function get(name: string): Queue; + + export { + createQueue as create, + deleteQueue as delete, + get, + }; +} + declare module "@arangodb/foxx/graphql" { import { formatError, GraphQLSchema } from "graphql"; type GraphQLModule = object; From 85b7547a3eb599aa2190cda7d382eeaabf27bc45 Mon Sep 17 00:00:00 2001 From: chrolivier Date: Thu, 1 Nov 2018 12:37:27 +0200 Subject: [PATCH 092/213] function signature fixes --- types/arangodb/index.d.ts | 46 +++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index 8f54268e19..238cea2379 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -1444,10 +1444,10 @@ declare module "@arangodb/foxx/queues" { interface QueueItem { name: string; mount: string; - backOff: ((failureCount: number) => number) | number | undefined; - maxFailures: number | undefined; - schema: Foxx.Schema | undefined; - preprocess: ((data: any) => any) | undefined; + backOff?: ((failureCount: number) => number) | number; + maxFailures?: number; + schema?: Foxx.Schema; + preprocess?: (data: any) => any; } interface Script { @@ -1455,7 +1455,6 @@ declare module "@arangodb/foxx/queues" { mount: string; } - // TODO: flesh this out type JobCallback = (result: any, jobData: any, job: ArangoDB.Document) => void; interface Job { @@ -1472,32 +1471,32 @@ declare module "@arangodb/foxx/queues" { repeatDelay: number; repeatTimes: number; repeatUntil: number; - success: string | undefined; - failure: string | undefined; + success?: string; + failure?: string; runFailures: number; abort(): void; } interface JobOptions { - success: JobCallback | undefined; - failure: JobCallback | undefined; - delayUntil: number | Date | undefined; - backOff: ((failureCount: number) => number) | number | undefined; - maxFailures: number | undefined; - repeatTimes: number | undefined; - repeatUntil: number | Date | undefined; - repeatDelay: number | undefined; + success?: JobCallback; + failure?: JobCallback; + delayUntil?: number | Date; + backOff?: ((failureCount: number) => number) | number; + maxFailures?: number; + repeatTimes?: number; + repeatUntil?: number | Date; + repeatDelay?: number; } interface Queue { - push(item: QueueItem, data: any): void; + push(item: QueueItem, data: any, opts?: JobOptions): void; get(jobId: string): ArangoDB.Document; delete(jobId: string): boolean; - pending(script: Script | undefined): string[]; - progress(script: Script | undefined): string[]; - complete(script: Script | undefined): string[]; - failed(script: Script | undefined): string[]; - all(script: Script | undefined): string[]; + pending(script?: Script): string[]; + progress(script?: Script): string[]; + complete(script?: Script): string[]; + failed(script?: Script): string[]; + all(script?: Script): string[]; } function createQueue(name: string, maxWorkers?: number): Queue; @@ -1508,6 +1507,11 @@ declare module "@arangodb/foxx/queues" { createQueue as create, deleteQueue as delete, get, + JobOptions, + Job, + Queue, + QueueItem, + Script, }; } From 0d341f372340b3137d7a1a2a8c751cab98ae7d9e Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 11:17:30 -0300 Subject: [PATCH 093/213] Updated ANSI typings. --- types/ansi/index.d.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index 2b11acc7a3..cd1181b5d9 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -23,6 +23,9 @@ declare function ansi(stream: Stream, options?: CursorOptions): ansi.Cursor; declare namespace ansi { class Cursor { + bg: Colorer; + fg: Colorer; + constructor(stream: Stream, options?: CursorOptions); /** @@ -165,9 +168,11 @@ declare namespace ansi { brightWhite(): Cursor; } - interface Cursor { - [key: string]: (...anything: any[]) => Cursor; - } + /* Removed index signatures due to conflicts. Now you have to + * add them in consumer code: + * + * <{ [key: string]: (..._: any[]) => Cursor }> myCursorOrColorer; + */ } export = ansi; From c1ec00f135d06eae439b3de127408be6dec04770 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 11:32:15 -0300 Subject: [PATCH 094/213] Fixed ANSI typings. --- types/ansi/ansi-tests.ts | 2 +- types/ansi/index.d.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index 5d8e73e8ec..09d003a563 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -20,5 +20,5 @@ Object.keys({ , brightCyan: 96 , brightWhite: 97 }).forEach((color) => { - cursor[color]().bold().write(`Hello, bold ${color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`)} world!\n`).reset(); + (<{ [key: string]: (..._: any[]) => ansi.Cursor }> cursor)[color]().bold().write(`Hello, bold ${color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`)} world!\n`).reset(); }); diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index cd1181b5d9..e050aa7c22 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -168,11 +168,13 @@ declare namespace ansi { brightWhite(): Cursor; } - /* Removed index signatures due to conflicts. Now you have to - * add them in consumer code: - * - * <{ [key: string]: (..._: any[]) => Cursor }> myCursorOrColorer; - */ + interface Cursor { + [key: string]: ((...anything: any[]) => Cursor) | Colorer; + } + + interface Colorer { + [key: string]: (...anything: any[]) => (Cursor | Colorer); + } } export = ansi; From f6b9c19c45013ff4edff3711686a23532827cf6b Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 11:40:51 -0300 Subject: [PATCH 095/213] Fixed test file line lengths. --- types/ansi/ansi-tests.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index 09d003a563..eda120452d 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -20,5 +20,12 @@ Object.keys({ , brightCyan: 96 , brightWhite: 97 }).forEach((color) => { - (<{ [key: string]: (..._: any[]) => ansi.Cursor }> cursor)[color]().bold().write(`Hello, bold ${color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`)} world!\n`).reset(); + let cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); + + (<(...anything: any[]) => ansi.Cursor> cursor[color])() + .bold() + .write( + `Hello, bold ${cname} world!\n` + ) + .reset(); }); From 8235eb4474dc2738bfa7f03c9133d5def7f6d8c2 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 11:44:29 -0300 Subject: [PATCH 096/213] Using const... --- types/ansi/ansi-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index eda120452d..cc11ec455e 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -20,7 +20,7 @@ Object.keys({ , brightCyan: 96 , brightWhite: 97 }).forEach((color) => { - let cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); + const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); (<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() From c4c7627ef809c74ec3aaa9897d165b7f281ac7f3 Mon Sep 17 00:00:00 2001 From: licui Date: Thu, 1 Nov 2018 11:00:55 -0400 Subject: [PATCH 097/213] Add path mapping rule --- types/openfin/v34/tsconfig.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/openfin/v34/tsconfig.json b/types/openfin/v34/tsconfig.json index 2a2c9d108b..a304909393 100644 --- a/types/openfin/v34/tsconfig.json +++ b/types/openfin/v34/tsconfig.json @@ -14,6 +14,11 @@ "../" ], "types": [], + "paths": { + "openfin": [ + "openfin/v34" + ] + }, "noEmit": true, "forceConsistentCasingInFileNames": true }, From 51f918e8c977427cf55ebcac66c68edec4813bad Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 12:03:11 -0300 Subject: [PATCH 098/213] =?UTF-8?q?Added=20background=20coloring=20to=20te?= =?UTF-8?q?st=20=C2=AF\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/ansi/ansi-tests.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index cc11ec455e..dc6ec1f0da 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,8 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - (<(...anything: any[]) => ansi.Cursor> cursor[color])() + (((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() + .bg as ansi.Colorer)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor) .write( `Hello, bold ${cname} world!\n` ) From 634df0175347b702f369f5e21a5ab1b945c5ee31 Mon Sep 17 00:00:00 2001 From: licui Date: Thu, 1 Nov 2018 11:09:15 -0400 Subject: [PATCH 099/213] Add missing files and change baseUrl --- types/openfin/tsconfig.json | 3 +++ types/openfin/v34/tsconfig.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/types/openfin/tsconfig.json b/types/openfin/tsconfig.json index 2a2c9d108b..a7f3e48849 100644 --- a/types/openfin/tsconfig.json +++ b/types/openfin/tsconfig.json @@ -21,6 +21,7 @@ "index.d.ts", "openfin-tests.ts", "_v2/api/application/application.d.ts", + "_v2/api/application/applicationOption.d.ts", "_v2/api/base.d.ts", "_v2/api/clipboard/clipboard.d.ts", "_v2/api/clipboard/write-request.d.ts", @@ -53,10 +54,12 @@ "_v2/api/system/rvm.d.ts", "_v2/api/system/system.d.ts", "_v2/api/system/window.d.ts", + "_v2/api/window/anchor-type.d.ts", "_v2/api/window/bounds-changed.d.ts", "_v2/api/window/bounds.d.ts", "_v2/api/window/transition.d.ts", "_v2/api/window/window.d.ts", + "_v2/api/window/windowOption.d.ts", "_v2/environment/environment.d.ts", "_v2/environment/node-env.d.ts", "_v2/environment/openfin-env.d.ts", diff --git a/types/openfin/v34/tsconfig.json b/types/openfin/v34/tsconfig.json index a304909393..c446671530 100644 --- a/types/openfin/v34/tsconfig.json +++ b/types/openfin/v34/tsconfig.json @@ -9,9 +9,9 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "baseUrl": "../", + "baseUrl": "../../", "typeRoots": [ - "../" + "../../" ], "types": [], "paths": { From f09c1b738272f418c2e7b016ef4c497ee618df20 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 12:10:26 -0300 Subject: [PATCH 100/213] Fixed slight issues regarding casts. --- types/ansi/ansi-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index dc6ec1f0da..b2625defa5 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,9 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - (((<(...anything: any[]) => ansi.Cursor> cursor[color])() + ((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() - .bg as ansi.Colorer)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor) + .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() .write( `Hello, bold ${cname} world!\n` ) From 505c4ba3cd92a75e10c068f23d9e06937eabe154 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 12:16:07 -0300 Subject: [PATCH 101/213] I'm sincerely confused with TypeScript's casting mechanisms. --- types/ansi/ansi-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index b2625defa5..b2ee94a544 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,9 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - ((<(...anything: any[]) => ansi.Cursor> cursor[color])() + (((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() - .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() + .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor) .write( `Hello, bold ${cname} world!\n` ) From 48877e1cdfdcd6b62ac6a6640041ef8316a71fef Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 12:51:54 -0300 Subject: [PATCH 102/213] This cast *shall* work... --- types/ansi/ansi-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index b2ee94a544..cfac4aada9 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,9 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - (((<(...anything: any[]) => ansi.Cursor> cursor[color])() + ((((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() - .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor) + .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']())) .write( `Hello, bold ${cname} world!\n` ) From 9177bcb136b992b7de8d4bb0bede068f9ebe553c Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 13:04:36 -0300 Subject: [PATCH 103/213] Forcing TypeScript >= 2.1 is the only apparent way. --- types/ansi/ansi-tests.ts | 4 ++-- types/ansi/index.d.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index cfac4aada9..b2625defa5 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,9 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - ((((<(...anything: any[]) => ansi.Cursor> cursor[color])() + ((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() - .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']())) + .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() .write( `Hello, bold ${cname} world!\n` ) diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index e050aa7c22..e027df4c98 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -2,6 +2,7 @@ // Project: https://www.npmjs.com/package/ansi // Definitions by: Gustavo6046 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript version: 2.1 /** * References: From 20b366a5758aa03da779e1ef1cff85857c7675ca Mon Sep 17 00:00:00 2001 From: Arne Schubert Date: Thu, 1 Nov 2018 19:11:10 +0100 Subject: [PATCH 104/213] Fix leaflet-provider after changes on leaflet --- types/leaflet-providers/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/leaflet-providers/index.d.ts b/types/leaflet-providers/index.d.ts index bc9a4576de..c92eeea96f 100644 --- a/types/leaflet-providers/index.d.ts +++ b/types/leaflet-providers/index.d.ts @@ -9,7 +9,7 @@ import * as L from 'leaflet'; declare module 'leaflet' { namespace TileLayer { class Provider extends TileLayer { - constructor(provider: string, options?: TileLayerOptions) + constructor(provider: string, options?: TileLayerOptions & { [name: string]: string; }) } namespace Provider { @@ -28,6 +28,6 @@ declare module 'leaflet' { } namespace tileLayer { - function provider(provider: string, options?: TileLayerOptions): TileLayer.Provider; + function provider(provider: string, options?: TileLayerOptions & { [name: string]: string; }): TileLayer.Provider; } } From 44d0caac7cfa8808fee9558dc558e247efe9a54e Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 30 Oct 2018 16:24:30 +0100 Subject: [PATCH 105/213] [lingui/core] Setup params locales and missing Solves #30136 --- types/lingui__core/i18n.d.ts | 2 ++ types/lingui__core/index.d.ts | 2 +- types/lingui__core/lingui__core-tests.ts | 9 +++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/types/lingui__core/i18n.d.ts b/types/lingui__core/i18n.d.ts index 49f663a6a8..a74ae7a7a0 100644 --- a/types/lingui__core/i18n.d.ts +++ b/types/lingui__core/i18n.d.ts @@ -27,6 +27,8 @@ export interface setupI18nProps { language?: string; catalogs?: Catalogs; development?: object; + locales?: string[]; + missing?: string | ((language: string, id: string) => string); } export class I18n { diff --git a/types/lingui__core/index.d.ts b/types/lingui__core/index.d.ts index e70f62f969..9628f85634 100644 --- a/types/lingui__core/index.d.ts +++ b/types/lingui__core/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @lingui/core 2.1 +// Type definitions for @lingui/core 2.2 // Project: https://lingui.github.io/js-lingui/ // Definitions by: Jeow Li Huan // Definitions: https://github.com/huan086/lingui-typings diff --git a/types/lingui__core/lingui__core-tests.ts b/types/lingui__core/lingui__core-tests.ts index 799bc5812b..09af3e1e4f 100644 --- a/types/lingui__core/lingui__core-tests.ts +++ b/types/lingui__core/lingui__core-tests.ts @@ -80,8 +80,17 @@ const catalog: Catalog = { } } }; + +function missingFn(language: string, id: string) { + return id; +} + const catalogs: Catalogs = { es: catalog }; const setupResult: I18n = setupI18n({ catalogs, language: 'es' }); +const setupResultLocales: I18n = setupI18n({ locales: ['en-UK', 'ar-AS'] }); +const setupResultMissingText: I18n = setupI18n({ missing: 'missing' }); +const setupResultMissingFn: I18n = setupI18n({ missing: missingFn }); +const setupResultCombined: I18n = setupI18n({ catalogs, language: 'de', locales: ['en-UK', 'ar-AS'], missing: missingFn }); const formattedDate: string = date('en', { timeZone: 'UTC' })(new Date()); const formattedNumber: string = number('en', { style: 'currency', currency: 'EUR' })(1234.56); From 16e2d5c048ffc5932250ad289f61cd2a7453ead8 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Thu, 1 Nov 2018 21:13:31 +0000 Subject: [PATCH 106/213] rearrange types to match rebass hierachy, remove unnecessary properties --- types/rebass/index.d.ts | 136 ++++++++++++++++------------------ types/rebass/rebass-tests.tsx | 1 - 2 files changed, 63 insertions(+), 74 deletions(-) diff --git a/types/rebass/index.d.ts b/types/rebass/index.d.ts index be203061ee..220f394f13 100644 --- a/types/rebass/index.d.ts +++ b/types/rebass/index.d.ts @@ -1,31 +1,36 @@ -// Type definitions for Rebass 0.3.7 +// Type definitions for Rebass 0.3.8 // Project: https://github.com/jxnblk/rebass // Definitions by: rhysd // ryee-dev +// jamesmckenzie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from "react"; export interface BaseProps extends React.ClassAttributes { - className?: string; - m?: number; - mt?: number; - mr?: number; - mb?: number; - ml?: number; - mx?: number; - my?: number; - p?: number; - pt?: number; - pr?: number; - pb?: number; - pl?: number; - px?: number; - py?: number; + className?: string; + as?: string; } -export interface BoxProps extends BaseProps { +export interface SpaceProps extends BaseProps { + m?: number; + mt?: number; + mr?: number; + mb?: number; + ml?: number; + mx?: number; + my?: number; + p?: number; + pt?: number; + pr?: number; + pb?: number; + pl?: number; + px?: number; + py?: number; +} + +export interface BoxProps extends SpaceProps { className?: string; width?: number | number[]; fontSize?: number | number[]; @@ -36,82 +41,67 @@ export interface BoxProps extends BaseProps { type BoxClass = React.StatelessComponent; export declare const Box: BoxClass; -export interface ButtonProps extends BaseProps { - fontWeight?: string; - border?: number; - borderColor?: string; - borderRadius?: number; - variant?: string; - bg?: string; - color?: string; +export interface ButtonProps extends BoxProps { + fontWeight?: string; + border?: number; + borderColor?: string; + borderRadius?: number; + variant?: string; } type ButtonClass = React.StatelessComponent; export declare const Button: ButtonClass; -export interface CardProps extends BaseProps { - border?: number; - borderColor?: string; - borderRadius?: number; - boxShadow?: string; - bg?: string; - backgroundImage?: string; - backgroundSize?: string; - backgroundPosition?: string; - backgroundRepeat?: string; - opacity?: number; - fontSize?: number | number[]; - fontWeight?: string; - width?: number | number[]; +export interface CardProps extends BoxProps { + border?: number; + borderColor?: string; + borderRadius?: number; + boxShadow?: string; + backgroundImage?: string; + backgroundSize?: string; + backgroundPosition?: string; + backgroundRepeat?: string; + opacity?: number; + variant?: string; } type CardClass = React.StatelessComponent; export declare const Card: CardClass; -export interface FlexProps extends BaseProps { - alignItems?: string; - justifyContent?: string, - flexDirection?: string, - flexWrap?: string, - width?: number | number[]; +export interface FlexProps extends BoxProps { + alignItems?: string; + justifyContent?: string; + flexDirection?: string; + flexWrap?: string; } -type FlexClass = React.StatelessComponent +type FlexClass = React.StatelessComponent; export declare const Flex: FlexClass; -export interface HeadingProps extends BaseProps { - fontSize?: number | number[]; - fontWeight?: string; - color?: string; - fontFamily?: string; - textAlign?: string; - lineHeight?: number; - letterSpacing?: number; -} -type HeadingClass = React.StatelessComponent -export declare const Heading: HeadingClass; - -export interface ImageProps extends BaseProps { +export interface ImageProps extends BoxProps { height?: number; borderRadius?: number; src?: string; alt?: string; - width?: number | number[]; } -type ImageClass = React.StatelessComponent +type ImageClass = React.StatelessComponent; export declare const Image: ImageClass; -export interface LinkProps extends BaseProps { - href?: string; +export interface LinkProps extends BoxProps { + href?: string; } -type LinkClass = React.StatelessComponent +type LinkClass = React.StatelessComponent; export declare const Link: LinkClass; -export interface TextProps extends BaseProps { - fontSize?: number | number[]; - fontWeight?: string; - color?: string; - fontFamily?: string; - textAlign?: string; - lineHeight?: number; - letterSpacing?: number; +export interface TextProps extends BoxProps { + fontSize?: number | number[]; + fontWeight?: string; + color?: string; + fontFamily?: string; + textAlign?: string; + lineHeight?: number; + letterSpacing?: number; } -type TextClass = React.StatelessComponent +type TextClass = React.StatelessComponent; export declare const Text: TextClass; + +export interface HeadingProps extends TextProps {} +type HeadingClass = React.StatelessComponent; +export declare const Heading: HeadingClass; diff --git a/types/rebass/rebass-tests.tsx b/types/rebass/rebass-tests.tsx index cc701a5c71..5980963829 100644 --- a/types/rebass/rebass-tests.tsx +++ b/types/rebass/rebass-tests.tsx @@ -8,7 +8,6 @@ const RebassTests = () => ( Hi, I'm text. Date: Thu, 1 Nov 2018 14:25:17 -0700 Subject: [PATCH 107/213] Add changed method on TextMarker The TextMarker definition is missing the `changed` method as defined [here](https://github.com/codemirror/CodeMirror/blob/master/src/model/mark_text.js#L111-L131). --- types/codemirror/index.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index c1ea6c99b9..86e9067b3e 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -4,6 +4,7 @@ // nrbernard // Pr1st0n // rileymiller +// toddself // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = CodeMirror; @@ -706,8 +707,27 @@ declare namespace CodeMirror { or undefined if the marker is no longer in the document. */ find(): {from: CodeMirror.Position, to: CodeMirror.Position}; + /** Called when you've done something that might change the size of the marker and want to cheaply update the display*/ + changed(): void; + /** Returns an object representing the options for the marker. If copyWidget is given true, it will clone the value of the replacedWith option, if any. */ getOptions(copyWidget: boolean): CodeMirror.TextMarkerOptions; + + /** Fired when the cursor enters the marked range */ + on(eventName: 'beforeCursorEnter', handler: () => void) : void; + off(eventName: 'beforeCursorEnter', handler: () => void) : void; + + /** Fired when the range is cleared, either through cursor movement in combination with clearOnEnter or through a call to its clear() method */ + on(eventName: 'clear', handler: (from: Position, to: Position) => void) : void; + off(eventName: 'clear', handler: () => void) : void; + + /** Fired when the last part of the marker is removed from the document by editing operations */ + on(eventName: 'hide', handler: () => void) : void; + off(eventname: 'hide', handler: () => void) : void; + + /** Fired when, after the marker was removed by editing, a undo operation brough the marker back */ + on(eventName: 'unhide', handler: () => void) : void; + off(eventname: 'unhide', handler: () => void) : void; } interface LineWidget { From 5dd8f459c6aff79bcec4d0c83625c24ed2318c2a Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 19:21:47 -0300 Subject: [PATCH 108/213] Fixed header. --- types/ansi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index e027df4c98..61b7a515df 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -2,7 +2,7 @@ // Project: https://www.npmjs.com/package/ansi // Definitions by: Gustavo6046 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript version: 2.1 +// TypeScript version: 2.1 /** * References: From dac8f708b0265f7ca46688377f4abc05252f75f0 Mon Sep 17 00:00:00 2001 From: Max Beatty Date: Thu, 1 Nov 2018 15:44:38 -0700 Subject: [PATCH 109/213] [dotenv] Update types for v6.1.0 --- types/dotenv/dotenv-tests.ts | 26 +++++------ types/dotenv/index.d.ts | 85 ++++++++++++++++++++++-------------- 2 files changed, 64 insertions(+), 47 deletions(-) diff --git a/types/dotenv/dotenv-tests.ts b/types/dotenv/dotenv-tests.ts index 613da3b056..2776e6d202 100644 --- a/types/dotenv/dotenv-tests.ts +++ b/types/dotenv/dotenv-tests.ts @@ -1,20 +1,18 @@ -import dotenv = require('dotenv'); +import dotenv = require("dotenv"); const env = dotenv.config(); -const dbUrl: string | null = env.error || !env.parsed ? null : env.parsed['DATABASE_URL']; +const dbUrl: string | null = env.error || !env.parsed ? null : env.parsed["BASIC"]; -dotenv.config({ - path: '.env' +dotenv.load({ + path: ".env-example", + encoding: "utf8", + debug: true }); -dotenv.config({ - encoding: 'utf8' +const parsed = dotenv.parse("NODE_ENV=production\nDB_HOST=a.b.c"); +const dbHost: string = parsed["DB_HOST"]; + +const parsedFromBuffer = dotenv.parse(new Buffer("JUSTICE=league\n"), { + debug: true }); - -dotenv.load(); - -const parsed = dotenv.parse("ENVIRONMENT=production\nDEBUG=no\n"); -const debug: string = parsed['DEBUG']; - -const parsedFromBuffer = dotenv.parse(new Buffer("JUSTICE=league\n")); -const justice: string = parsedFromBuffer['JUSTICE']; +const justice: string = parsedFromBuffer["JUSTICE"]; diff --git a/types/dotenv/index.d.ts b/types/dotenv/index.d.ts index 4dd67b15c0..f8675ec22e 100644 --- a/types/dotenv/index.d.ts +++ b/types/dotenv/index.d.ts @@ -1,46 +1,65 @@ -// Type definitions for dotenv 4.0 +// Type definitions for dotenv 6.1 // Project: https://github.com/motdotla/dotenv -// Definitions by: Jussi Kinnula , Borek Bernard , Eric Naeseth +// Definitions by: Jussi Kinnula +// Borek Bernard +// Eric Naeseth +// Max Beatty // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// +export interface DotenvParseOptions { + /** + * You may turn on logging to help debug why certain keys or values are not being set as you expect. + */ + debug?: boolean; +} + +export interface DotenvParseOutput { + [name: string]: string; +} + /** * Parses a string or buffer in the .env file format into an object. + * + * @param src - contents to be parsed + * @param options - additional options + * @returns an object with keys and values based on `src` */ -export function parse(src: string | Buffer): {[name: string]: string}; +export function parse( + src: string | Buffer, + options?: DotenvParseOptions +): DotenvParseOutput; + +export interface DotenvConfigOptions { + /** + * You may specify a custom path if your file containing environment variables is located elsewhere. + */ + path?: string; + + /** + * You may specify the encoding of your file containing environment variables. + */ + encoding?: string; + + /** + * You may turn on logging to help debug why certain keys or values are not being set as you expect. + */ + debug?: boolean; +} + +export interface DotenvConfigOutput { + error?: Error; + parsed?: DotenvParseOutput; +} /** - * Loads `.env` into `process.env`. - * - * @return Object Object with either - * - "parsed" containing the parsed keys and values or - * - "error" containing an Error object - * + * Loads `.env` file contents into {@link https://nodejs.org/api/process.html#process_process_env | `process.env`}. * Example: 'KEY=value' becomes { parsed: { KEY: 'value' } } + * + * @param options - controls behavior + * @returns an object with a `parsed` key if successful or `error` key if an error occurred + * */ -export function config(options?: DotenvOptions): DotenvResult; +export function config(options?: DotenvConfigOptions): DotenvConfigOutput; export const load: typeof config; - -export interface DotenvOptions { - /** - * You can specify a custom path if your file containing environment variables is named or located differently. - * - * @default '.env' - */ - path?: string; - - /** - * You may specify the encoding of your file containing environment variables using this option. - * - * @default 'utf8' - */ - encoding?: string; -} - -export interface DotenvResult { - error?: Error; - parsed?: { - [name: string]: string; - }; -} From 91fbb0796f5a7888c2c37cd51e2389373ac23364 Mon Sep 17 00:00:00 2001 From: Max Beatty Date: Thu, 1 Nov 2018 15:56:52 -0700 Subject: [PATCH 110/213] fix dotenv-safe type reference --- types/dotenv-safe/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/dotenv-safe/index.d.ts b/types/dotenv-safe/index.d.ts index c4d4398da8..3004b98ba6 100644 --- a/types/dotenv-safe/index.d.ts +++ b/types/dotenv-safe/index.d.ts @@ -50,11 +50,11 @@ export interface DotenvSafeOptions { * * @throws MissingEnvVarsError */ -export function load(options?: DotenvSafeOptions): env.DotenvResult +export function load(options?: DotenvSafeOptions): env.DotenvConfigOutput /** * Loads environment variables file into 'process.env'. * * @throws MissingEnvVarsError */ -export function config(options?: DotenvSafeOptions): env.DotenvResult +export function config(options?: DotenvSafeOptions): env.DotenvConfigOutput From 9ab531176b5d06c618132e3e67500fca51b6ad13 Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 20:08:30 -0300 Subject: [PATCH 111/213] Why isn't the version declaration working? --- types/ansi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ansi/index.d.ts b/types/ansi/index.d.ts index 61b7a515df..4e486d61ef 100644 --- a/types/ansi/index.d.ts +++ b/types/ansi/index.d.ts @@ -2,7 +2,7 @@ // Project: https://www.npmjs.com/package/ansi // Definitions by: Gustavo6046 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript version: 2.1 +// TypeScript Version: 2.1 /** * References: From 316b5156163d953cbf1b83c10e8d9e51f58cd365 Mon Sep 17 00:00:00 2001 From: Duong Tran Date: Fri, 2 Nov 2018 11:07:26 +1100 Subject: [PATCH 112/213] remove mobx-cookie type definition --- notNeededPackages.json | 3514 ++++++++++++------------ types/mobx-cookie/index.d.ts | 17 - types/mobx-cookie/mobx-cookie-tests.ts | 11 - types/mobx-cookie/tsconfig.json | 23 - types/mobx-cookie/tslint.json | 1 - 5 files changed, 1760 insertions(+), 1806 deletions(-) delete mode 100644 types/mobx-cookie/index.d.ts delete mode 100644 types/mobx-cookie/mobx-cookie-tests.ts delete mode 100644 types/mobx-cookie/tsconfig.json delete mode 100644 types/mobx-cookie/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index f81984b338..f65078a775 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1,1756 +1,1762 @@ { - "packages": [ - { - "libraryName": "3d-bin-packing", - "typingsPackageName": "3d-bin-packing", - "sourceRepoURL": "https://github.com/betterwaysystems/packer", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "Ably Realtime and Rest client library", - "typingsPackageName": "ably", - "sourceRepoURL": "https://www.ably.io/", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "ag-grid", - "typingsPackageName": "ag-grid", - "sourceRepoURL": "https://github.com/ceolter/ag-grid", - "asOfVersion": "3.2.0" - }, - { - "libraryName": "ajv", - "typingsPackageName": "ajv", - "sourceRepoURL": "https://github.com/epoberezkin/ajv", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "angular-touchspin", - "typingsPackageName": "angular-touchspin", - "sourceRepoURL": "https://github.com/nkovacic/angular-touchspin", - "asOfVersion": "1.8.2" - }, - { - "libraryName": "angular-ui-router-default", - "typingsPackageName": "angular-ui-router-default", - "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-default", - "asOfVersion": "0.0.5" - }, - { - "libraryName": "angular-ui-router-uib-modal", - "typingsPackageName": "angular-ui-router-uib-modal", - "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", - "asOfVersion": "0.0.11" - }, - { - "libraryName": "antd", - "typingsPackageName": "antd", - "sourceRepoURL": "https://github.com/ant-design/ant-design", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "anydb-sql", - "typingsPackageName": "anydb-sql", - "sourceRepoURL": "https://github.com/doxout/anydb-sql", - "asOfVersion": "0.6.46" - }, - { - "libraryName": "anydb-sql-migrations", - "typingsPackageName": "anydb-sql-migrations", - "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", - "asOfVersion": "2.1.1" - }, - { - "libraryName": "apn", - "typingsPackageName": "apn", - "sourceRepoURL": "https://github.com/node-apn/node-apn", - "asOfVersion": "2.1.2" - }, - { - "libraryName": "Application Insights", - "typingsPackageName": "applicationinsights", - "sourceRepoURL": "https://github.com/Microsoft/ApplicationInsights-node.js", - "asOfVersion": "0.20.0" - }, - { - "libraryName": "Argon2", - "typingsPackageName": "argon2", - "sourceRepoURL": "https://github.com/ranisalt/node-argon2", - "asOfVersion": "0.15.0" - }, - { - "libraryName": "artyom.js", - "typingsPackageName": "artyom.js", - "sourceRepoURL": "https://github.com/sdkcarlos/artyom.js", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "askmethat-rating", - "typingsPackageName": "askmethat-rating", - "sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating", - "asOfVersion": "0.4.0" - }, - { - "libraryName": "assertion-error", - "typingsPackageName": "assertion-error", - "sourceRepoURL": "https://github.com/chaijs/assertion-error", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "asyncblock", - "typingsPackageName": "asyncblock", - "sourceRepoURL": "https://github.com/scriby/asyncblock", - "asOfVersion": "2.2.11" - }, - { - "libraryName": "aurelia-knockout", - "typingsPackageName": "aurelia-knockout", - "sourceRepoURL": "https://github.com/code-chris/aurelia-knockout", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "autobind-decorator", - "typingsPackageName": "autobind-decorator", - "sourceRepoURL": "https://github.com/andreypopp/autobind-decorator", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "aws-sdk", - "typingsPackageName": "aws-sdk", - "sourceRepoURL": "https://github.com/aws/aws-sdk-js", - "asOfVersion": "2.7.0" - }, - { - "libraryName": "axe-core", - "typingsPackageName": "axe-core", - "sourceRepoURL": "https://github.com/dequelabs/axe-core", - "asOfVersion": "3.0.3" - }, - { - "libraryName": "axios", - "typingsPackageName": "axios", - "sourceRepoURL": "https://github.com/mzabriskie/axios", - "asOfVersion": "0.14.0" - }, - { - "libraryName": "axios-mock-adapter", - "typingsPackageName": "axios-mock-adapter", - "sourceRepoURL": "https://github.com/ctimmerm/axios-mock-adapter", - "asOfVersion": "1.10.0" - }, - { - "libraryName": "azure-mobile-apps", - "typingsPackageName": "azure-mobile-apps", - "sourceRepoURL": "https://github.com/Azure/azure-mobile-apps-node/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "BabylonJS", - "typingsPackageName": "babylonjs", - "sourceRepoURL": "http://www.babylonjs.com/", - "asOfVersion": "2.4.1" - }, - { - "libraryName": "base64url", - "typingsPackageName": "base64url", - "sourceRepoURL": "https://github.com/brianloveswords/base64url", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "BigInteger.js", - "typingsPackageName": "big-integer", - "sourceRepoURL": "https://github.com/peterolson/BigInteger.js", - "asOfVersion": "0.0.31" - }, - { - "libraryName": "bignumber.js", - "typingsPackageName": "bignumber.js", - "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "bingmaps", - "typingsPackageName": "bingmaps", - "sourceRepoURL": "https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions", - "asOfVersion": "2.0.15" - }, - { - "libraryName": "bitwise", - "typingsPackageName": "bitwise", - "sourceRepoURL": "https://github.com/dodekeract/bitwise", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "botvs", - "typingsPackageName": "botvs", - "sourceRepoURL": "https://www.botvs.com/", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "Bowser", - "typingsPackageName": "bowser", - "sourceRepoURL": "https://github.com/ded/bowser", - "asOfVersion": "1.1.1" - }, - { - "libraryName": "Bugsnag Browser", - "typingsPackageName": "bugsnag-js", - "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "CacheFactory", - "typingsPackageName": "cachefactory", - "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "camel-case", - "typingsPackageName": "camel-case", - "sourceRepoURL": "https://github.com/blakeembrey/camel-case", - "asOfVersion": "1.2.1" - }, - { - "libraryName": "catalog", - "typingsPackageName": "catalog", - "sourceRepoURL": "https://github.com/interactivethings/catalog", - "asOfVersion": "3.5.0" - }, - { - "libraryName": "chalk", - "typingsPackageName": "chalk", - "sourceRepoURL": "https://github.com/chalk/chalk", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "change-case", - "typingsPackageName": "change-case", - "sourceRepoURL": "https://github.com/blakeembrey/change-case", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "cheap-ruler", - "typingsPackageName": "cheap-ruler", - "sourceRepoURL": "https://github.com/mapbox/cheap-ruler", - "asOfVersion": "2.5.0" - }, - { - "libraryName": "chunked-dc", - "typingsPackageName": "chunked-dc", - "sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js", - "asOfVersion": "0.2.2" - }, - { - "libraryName": "colors.js (colors)", - "typingsPackageName": "colors", - "sourceRepoURL": "https://github.com/Marak/colors.js", - "asOfVersion": "1.2.1" - }, - { - "libraryName": "commander", - "typingsPackageName": "commander", - "sourceRepoURL": "https://github.com/tj/commander.js", - "asOfVersion": "2.12.2" - }, - { - "libraryName": "confirmdialog", - "typingsPackageName": "confirmdialog", - "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "constant-case", - "typingsPackageName": "constant-case", - "sourceRepoURL": "https://github.com/blakeembrey/constant-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "cordova-plugin-battery-status", - "typingsPackageName": "cordova-plugin-battery-status", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-battery-status", - "asOfVersion": "1.2.3" - }, - { - "libraryName": "cordova-plugin-camera", - "typingsPackageName": "cordova-plugin-camera", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-camera", - "asOfVersion": "2.4.0" - }, - { - "libraryName": "cordova-plugin-contacts", - "typingsPackageName": "cordova-plugin-contacts", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-contacts", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "cordova-plugin-device", - "typingsPackageName": "cordova-plugin-device", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device", - "asOfVersion": "1.1.5" - }, - { - "libraryName": "cordova-plugin-device-motion", - "typingsPackageName": "cordova-plugin-device-motion", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-motion", - "asOfVersion": "1.2.4" - }, - { - "libraryName": "Apache Cordova Device Orientation plugin", - "typingsPackageName": "cordova-plugin-device-orientation", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-orientation", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "cordova-plugin-dialogs", - "typingsPackageName": "cordova-plugin-dialogs", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-dialogs", - "asOfVersion": "1.3.2" - }, - { - "libraryName": "Apache Cordova File System plugin", - "typingsPackageName": "cordova-plugin-file", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-file", - "asOfVersion": "4.3.2" - }, - { - "libraryName": "cordova-plugin-file-transfer", - "typingsPackageName": "cordova-plugin-file-transfer", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-file-transfer", - "asOfVersion": "1.6.2" - }, - { - "libraryName": "cordova-plugin-globalization", - "typingsPackageName": "cordova-plugin-globalization", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-globalization", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "cordova-plugin-inappbrowser", - "typingsPackageName": "cordova-plugin-inappbrowser", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-inappbrowser", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "cordova-plugin-media", - "typingsPackageName": "cordova-plugin-media", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-media", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "cordova-plugin-media-capture", - "typingsPackageName": "cordova-plugin-media-capture", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-media-capture", - "asOfVersion": "1.4.2" - }, - { - "libraryName": "cordova-plugin-network-information", - "typingsPackageName": "cordova-plugin-network-information", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-network-information", - "asOfVersion": "1.3.2" - }, - { - "libraryName": "cordova-plugin-splashscreen", - "typingsPackageName": "cordova-plugin-splashscreen", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-splashscreen", - "asOfVersion": "4.0.2" - }, - { - "libraryName": "Apache Cordova StatusBar plugin", - "typingsPackageName": "cordova-plugin-statusbar", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-statusbar", - "asOfVersion": "2.2.2" - }, - { - "libraryName": "Apache Cordova Vibration plugin", - "typingsPackageName": "cordova-plugin-vibration", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-vibration", - "asOfVersion": "2.1.4" - }, - { - "libraryName": "cordova.plugins.diagnostic", - "typingsPackageName": "cordova.plugins.diagnostic", - "sourceRepoURL": "https://github.com/dpa99c/cordova-diagnostic-plugin", - "asOfVersion": "3.7.0" - }, - { - "libraryName": "core-decorators.js", - "typingsPackageName": "core-decorators", - "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", - "asOfVersion": "0.20.0" - }, - { - "libraryName": "cypress", - "typingsPackageName": "cypress", - "sourceRepoURL": "https://cypress.io", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "date-fns", - "typingsPackageName": "date-fns", - "sourceRepoURL": "https://github.com/date-fns/date-fns", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "decimal.js", - "typingsPackageName": "decimal.js", - "sourceRepoURL": "https://github.com/MikeMcl/decimal.js", - "asOfVersion": "7.4.0" - }, - { - "libraryName": "deepmerge", - "typingsPackageName": "deepmerge", - "sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "delay", - "typingsPackageName": "delay", - "sourceRepoURL": "https://github.com/sindresorhus/delay", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "DevExtreme", - "typingsPackageName": "devextreme", - "sourceRepoURL": "http://js.devexpress.com/", - "asOfVersion": "16.2.1" - }, - { - "libraryName": "Dexie.js", - "typingsPackageName": "dexie", - "sourceRepoURL": "https://github.com/dfahlander/Dexie.js", - "asOfVersion": "1.3.1" - }, - { - "libraryName": "docker-file-parser", - "typingsPackageName": "docker-file-parser", - "sourceRepoURL": "https://github.com/joyent/docker-file-parser", - "asOfVersion": "1.0.3" - }, - { - "libraryName": "dot-case", - "typingsPackageName": "dot-case", - "sourceRepoURL": "https://github.com/blakeembrey/dot-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "dva", - "typingsPackageName": "dva", - "sourceRepoURL": "https://github.com/dvajs/dva", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "easy-x-headers", - "typingsPackageName": "easy-x-headers", - "sourceRepoURL": "https://github.com/DeadAlready/easy-x-headers", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "easy-xapi-supertest", - "typingsPackageName": "easy-xapi-supertest", - "sourceRepoURL": "https://github.com/DeadAlready/easy-xapi-supertest", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "EasyStar.js", - "typingsPackageName": "easystarjs", - "sourceRepoURL": "http://easystarjs.com/", - "asOfVersion": "0.3.1" - }, - { - "libraryName": "ecmarkup", - "typingsPackageName": "ecmarkup", - "sourceRepoURL": "https://github.com/bterlson/ecmarkup", - "asOfVersion": "3.4.0" - }, - { - "libraryName": "Egg", - "typingsPackageName": "egg", - "sourceRepoURL": "https://github.com/eggjs/egg", - "asOfVersion": "1.5.0" - }, - { - "libraryName": "electron", - "typingsPackageName": "electron", - "sourceRepoURL": "https://github.com/electron/electron", - "asOfVersion": "1.6.10" - }, - { - "libraryName": "electron-builder", - "typingsPackageName": "electron-builder", - "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", - "asOfVersion": "2.8.0" - }, - { - "libraryName": "email-addresses", - "typingsPackageName": "email-addresses", - "sourceRepoURL": "https://github.com/jackbowman/email-addresses", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "email-validator", - "typingsPackageName": "email-validator", - "sourceRepoURL": "https://github.com/Sembiance/email-validator", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "error-stack-parser", - "typingsPackageName": "error-stack-parser", - "sourceRepoURL": "https://github.com/stacktracejs/error-stack-parser", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "es6-error", - "typingsPackageName": "es6-error", - "sourceRepoURL": "https://github.com/bjyoungblood/es6-error", - "asOfVersion": "4.0.2" - }, - { - "libraryName": "es6-promise", - "typingsPackageName": "es6-promise", - "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", - "asOfVersion": "3.3.0" - }, - { - "libraryName": "eventemitter2", - "typingsPackageName": "eventemitter2", - "sourceRepoURL": "https://github.com/asyncly/EventEmitter2", - "asOfVersion": "4.1.0" - }, - { - "libraryName": "EventEmitter3", - "typingsPackageName": "eventemitter3", - "sourceRepoURL": "https://github.com/primus/eventemitter3", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "expr-eval", - "typingsPackageName": "expr-eval", - "sourceRepoURL": "https://github.com/silentmatt/expr-eval", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "express-validator", - "typingsPackageName": "express-validator", - "sourceRepoURL": "https://github.com/ctavan/express-validator", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "extended-listbox", - "typingsPackageName": "extended-listbox", - "sourceRepoURL": "https://github.com/code-chris/extended-listbox", - "asOfVersion": "4.0.1" - }, - { - "libraryName": "JSON-Patch", - "typingsPackageName": "fast-json-patch", - "sourceRepoURL": "https://github.com/Starcounter-Jack/JSON-Patch", - "asOfVersion": "1.1.5" - }, - { - "libraryName": "FastSimplexNoise", - "typingsPackageName": "fast-simplex-noise", - "sourceRepoURL": "https://www.npmjs.com/package/fast-simplex-noise", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "fecha", - "typingsPackageName": "fecha", - "sourceRepoURL": "https://github.com/taylorhakes/fecha", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "FineUploader", - "typingsPackageName": "fine-uploader", - "sourceRepoURL": "http://fineuploader.com/", - "asOfVersion": "5.14.0" - }, - { - "libraryName": "Firebase API", - "typingsPackageName": "firebase", - "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", - "asOfVersion": "3.2.1" - }, - { - "libraryName": "flatpickr", - "typingsPackageName": "flatpickr", - "sourceRepoURL": "https://github.com/chmln/flatpickr", - "asOfVersion": "3.1.2" - }, - { - "libraryName": "flux-standard-action", - "typingsPackageName": "flux-standard-action", - "sourceRepoURL": "https://github.com/acdlite/flux-standard-action", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "fork-ts-checker-webpack-plugin", - "typingsPackageName": "fork-ts-checker-webpack-plugin", - "sourceRepoURL": "https://github.com/Realytics/fork-ts-checker-webpack-plugin", - "asOfVersion": "0.4.5" - }, - { - "libraryName": "Foundation Sites", - "typingsPackageName": "foundation-sites", - "sourceRepoURL": "http://foundation.zurb.com/", - "asOfVersion": "6.4.3" - }, - { - "libraryName": "FullCalendar", - "typingsPackageName": "fullcalendar", - "sourceRepoURL": "http://arshaw.com/fullcalendar/", - "asOfVersion": "3.8.0" - }, - { - "libraryName": "fuse", - "typingsPackageName": "fuse", - "sourceRepoURL": "https://github.com/krisk/Fuse", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "gaea-model", - "typingsPackageName": "gaea-model", - "sourceRepoURL": "https://github.com/ascoders/gaea-model", - "asOfVersion": "0.0.0" - }, - { - "libraryName": "geolib", - "typingsPackageName": "geolib", - "sourceRepoURL": "https://github.com/manuelbieh/Geolib", - "asOfVersion": "2.0.23" - }, - { - "libraryName": "github", - "typingsPackageName": "github", - "sourceRepoURL": "https://github.com/mikedeboer/node-github", - "asOfVersion": "7.1.0" - }, - { - "libraryName": "graphene-pk11", - "typingsPackageName": "graphene-pk11", - "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", - "asOfVersion": "2.0.31" - }, - { - "libraryName": "griddle-react", - "typingsPackageName": "griddle-react", - "sourceRepoURL": "https://github.com/griddlegriddle/griddle", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "gulp-tslint", - "typingsPackageName": "gulp-tslint", - "sourceRepoURL": "https://github.com/panuhorsmalahti/gulp-tslint", - "asOfVersion": "4.2.0" - }, - { - "libraryName": "gulp-typedoc", - "typingsPackageName": "gulp-typedoc", - "sourceRepoURL": "https://github.com/rogierschouten/gulp-typedoc", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "gulp-typescript", - "typingsPackageName": "gulp-typescript", - "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", - "asOfVersion": "2.13.0" - }, - { - "libraryName": "handsontable", - "typingsPackageName": "handsontable", - "sourceRepoURL": "https://handsontable.com/", - "asOfVersion": "0.35.0" - }, - { - "libraryName": "homeworks", - "typingsPackageName": "homeworks", - "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", - "asOfVersion": "1.0.19" - }, - { - "libraryName": "http-status-codes", - "typingsPackageName": "http-status-codes", - "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "iconv-lite", - "typingsPackageName": "iconv-lite", - "sourceRepoURL": "https://github.com/ashtuchkin/iconv-lite", - "asOfVersion": "0.4.14" - }, - { - "libraryName": "ids", - "typingsPackageName": "ids", - "sourceRepoURL": "https://github.com/bpmn-io/ids", - "asOfVersion": "0.2.2" - }, - { - "libraryName": "immutability-helper", - "typingsPackageName": "immutability-helper", - "sourceRepoURL": "https://github.com/kolodny/immutability-helper", - "asOfVersion": "2.6.3" - }, - { - "libraryName": "Facebook's Immutable", - "typingsPackageName": "immutable", - "sourceRepoURL": "https://github.com/facebook/immutable-js", - "asOfVersion": "3.8.7" - }, - { - "libraryName": "interactjs", - "typingsPackageName": "interact.js", - "sourceRepoURL": "https://github.com/taye/interact.js", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "inversify", - "typingsPackageName": "inversify", - "sourceRepoURL": "http://inversify.io", - "asOfVersion": "2.0.33" - }, - { - "libraryName": "inversify-binding-decorators", - "typingsPackageName": "inversify-binding-decorators", - "sourceRepoURL": "https://github.com/inversify/inversify-binding-decorators", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-express-utils", - "typingsPackageName": "inversify-express-utils", - "sourceRepoURL": "https://github.com/inversify/inversify-express-utils", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-inject-decorators", - "typingsPackageName": "inversify-inject-decorators", - "sourceRepoURL": "https://github.com/inversify/inversify-inject-decorators", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-logger-middleware", - "typingsPackageName": "inversify-logger-middleware", - "sourceRepoURL": "https://github.com/inversify/inversify-logger-middleware", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-restify-utils", - "typingsPackageName": "inversify-restify-utils", - "sourceRepoURL": "https://github.com/inversify/inversify-restify-utils", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "Ionic", - "typingsPackageName": "ionic", - "sourceRepoURL": "http://ionicframework.com", - "asOfVersion": "3.19.0" - }, - { - "libraryName": "is-lower-case", - "typingsPackageName": "is-lower-case", - "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "is-plain-object", - "typingsPackageName": "is-plain-object", - "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", - "asOfVersion": "2.0.4" - }, - { - "libraryName": "is-upper-case", - "typingsPackageName": "is-upper-case", - "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "jasmine-expect", - "typingsPackageName": "jasmine-expect", - "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", - "asOfVersion": "3.8.1" - }, - { - "libraryName": "jimp", - "typingsPackageName": "jimp", - "sourceRepoURL": "https://github.com/oliver-moran/jimp#readme", - "asOfVersion": "0.2.28" - }, - { - "libraryName": "joData", - "typingsPackageName": "jodata", - "sourceRepoURL": "https://github.com/mccow002/joData", - "asOfVersion": "1.0.13" - }, - { - "libraryName": "JointJS", - "typingsPackageName": "jointjs", - "sourceRepoURL": "http://www.jointjs.com/", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "jpush-react-native", - "typingsPackageName": "jpush-react-native", - "sourceRepoURL": "https://github.com/jpush/jpush-react-native", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "jquery.ajaxfile", - "typingsPackageName": "jquery.ajaxfile", - "sourceRepoURL": "https://github.com/fpellet/jquery.ajaxFile", - "asOfVersion": "0.2.29" - }, - { - "libraryName": "js-data", - "typingsPackageName": "js-data", - "sourceRepoURL": "https://github.com/js-data/js-data", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "JSData Http Adapter", - "typingsPackageName": "js-data-http", - "sourceRepoURL": "https://github.com/js-data/js-data-http", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "JSNLog", - "typingsPackageName": "jsnlog", - "sourceRepoURL": "https://github.com/mperdeck/jsnlog.js", - "asOfVersion": "2.17.2" - }, - { - "libraryName": "jsonschema", - "typingsPackageName": "jsonschema", - "sourceRepoURL": "https://github.com/tdegrunt/jsonschema", - "asOfVersion": "1.1.1" - }, - { - "libraryName": "jsplumb", - "typingsPackageName": "jsplumb", - "sourceRepoURL": "https://github.com/jsplumb/jsPlumb", - "asOfVersion": "2.5.7" - }, - { - "libraryName": "keycloak-js", - "typingsPackageName": "keycloak-js", - "sourceRepoURL": "https://github.com/keycloak/keycloak", - "asOfVersion": "3.4.1" - }, - { - "libraryName": "knockout-paging", - "typingsPackageName": "knockout-paging", - "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-paging", - "asOfVersion": "0.3.1" - }, - { - "libraryName": "knockout-pre-rendered", - "typingsPackageName": "knockout-pre-rendered", - "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", - "asOfVersion": "0.7.1" - }, - { - "libraryName": "koa-jwt", - "typingsPackageName": "koa-jwt", - "sourceRepoURL": "https://github.com/koajs/jwt", - "asOfVersion": "3.3.0" - }, - { - "libraryName": "lambda-phi", - "typingsPackageName": "lambda-phi", - "sourceRepoURL": "https://github.com/elitechance/lambda-phi", - "asOfVersion": "1.0.1" - }, - { - "libraryName": "ldclient-js", - "typingsPackageName": "ldclient-js", - "sourceRepoURL": "https://github.com/launchdarkly/js-client", - "asOfVersion": "1.1.11" - }, - { - "libraryName": "left-pad", - "typingsPackageName": "left-pad", - "sourceRepoURL": "https://github.com/stevemao/left-pad", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "Linq.JS", - "typingsPackageName": "linq", - "sourceRepoURL": "https://linqjs.codeplex.com/", - "asOfVersion": "2.2.33" - }, - { - "libraryName": "Linq4JS", - "typingsPackageName": "linq4js", - "sourceRepoURL": "https://github.com/morrisjdev/Linq4JS", - "asOfVersion": "2.1.8" - }, - { - "libraryName": "LinqSharp", - "typingsPackageName": "linqsharp", - "sourceRepoURL": "https://github.com/brunolm/LinqSharp", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "localforage", - "typingsPackageName": "localforage", - "sourceRepoURL": "https://github.com/localForage/localForage", - "asOfVersion": "0.0.34" - }, - { - "libraryName": "localforage-cordovasqlitedriver", - "typingsPackageName": "localforage-cordovasqlitedriver", - "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", - "asOfVersion": "1.5.0" - }, - { - "libraryName": "lodash-decorators", - "typingsPackageName": "lodash-decorators", - "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "log4javascript", - "typingsPackageName": "log4javascript", - "sourceRepoURL": "http://log4javascript.org/", - "asOfVersion": "1.4.15" - }, - { - "libraryName": "log4js", - "typingsPackageName": "log4js", - "sourceRepoURL": "https://github.com/nomiddlename/log4js-node", - "asOfVersion": "2.3.5" - }, - { - "libraryName": "lower-case", - "typingsPackageName": "lower-case", - "sourceRepoURL": "https://github.com/blakeembrey/lower-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "lower-case-first", - "typingsPackageName": "lower-case-first", - "sourceRepoURL": "https://github.com/blakeembrey/lower-case-first", - "asOfVersion": "1.0.1" - }, - { - "libraryName": "mali", - "typingsPackageName": "mali", - "sourceRepoURL": "https://github.com/malijs/mali", - "asOfVersion": "0.9.2" - }, - { - "libraryName": "maquette", - "typingsPackageName": "maquette", - "sourceRepoURL": "http://maquettejs.org/", - "asOfVersion": "2.1.6" - }, - { - "libraryName": "mendixmodelsdk", - "typingsPackageName": "mendixmodelsdk", - "sourceRepoURL": "http://www.mendix.com", - "asOfVersion": "0.8.1" - }, - { - "libraryName": "metisMenu", - "typingsPackageName": "metismenu", - "sourceRepoURL": "https://github.com/onokumus/metisMenu", - "asOfVersion": "2.7.1" - }, - { - "libraryName": "microgears", - "typingsPackageName": "microgears", - "sourceRepoURL": "https://github.com/marcusdb/microgears", - "asOfVersion": "4.0.5" - }, - { - "libraryName": "mobile-detect", - "typingsPackageName": "mobile-detect", - "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", - "asOfVersion": "1.3.4" - }, - { - "libraryName": "mobservable", - "typingsPackageName": "mobservable", - "sourceRepoURL": "github.com/mweststrate/mobservable", - "asOfVersion": "1.2.5" - }, - { - "libraryName": "mobservable-react", - "typingsPackageName": "mobservable-react", - "sourceRepoURL": "https://github.com/mweststrate/mobservable-react", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "Moment", - "typingsPackageName": "moment", - "sourceRepoURL": "https://github.com/moment/moment", - "asOfVersion": "2.13.0" - }, - { - "libraryName": "Monk", - "typingsPackageName": "monk", - "sourceRepoURL": "https://github.com/LearnBoost/monk.git", - "asOfVersion": "6.0.0" - }, - { - "libraryName": "MQTT", - "typingsPackageName": "mqtt", - "sourceRepoURL": "https://github.com/mqttjs/MQTT.js", - "asOfVersion": "2.5.0" - }, - { - "libraryName": "nano", - "typingsPackageName": "nano", - "sourceRepoURL": "https://github.com/apache/couchdb-nano", - "asOfVersion": "7.0.0" - }, - { - "libraryName": "ng-table", - "typingsPackageName": "ng-table", - "sourceRepoURL": "https://github.com/esvit/ng-table", - "asOfVersion": "2.0.1" - }, - { - "libraryName": "node-pg-migrate", - "typingsPackageName": "node-pg-migrate", - "sourceRepoURL": "https://github.com/theoephraim/node-pg-migrate#readme", - "asOfVersion": "2.15.0" - }, - { - "libraryName": "node-waves", - "typingsPackageName": "node-waves", - "sourceRepoURL": "http://fian.my.id/Waves", - "asOfVersion": "0.7.6" - }, - { - "libraryName": "Normalizr", - "typingsPackageName": "normalizr", - "sourceRepoURL": "https://github.com/paularmstrong/normalizr", - "asOfVersion": "2.0.18" - }, - { - "libraryName": "Numbro", - "typingsPackageName": "numbro", - "sourceRepoURL": "https://github.com/foretagsplatsen/numbro/", - "asOfVersion": "1.9.3" - }, - { - "libraryName": "Onsen UI", - "typingsPackageName": "onsenui", - "sourceRepoURL": "http://onsen.io", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "param-case", - "typingsPackageName": "param-case", - "sourceRepoURL": "https://github.com/blakeembrey/param-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "pascal-case", - "typingsPackageName": "pascal-case", - "sourceRepoURL": "https://github.com/blakeembrey/pascal-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "passport-client-cert", - "typingsPackageName": "passport-client-cert", - "sourceRepoURL": "https://github.com/ripjar/passport-client-cert", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "path-case", - "typingsPackageName": "path-case", - "sourceRepoURL": "https://github.com/blakeembrey/path-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "path-to-regexp", - "typingsPackageName": "path-to-regexp", - "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", - "asOfVersion": "1.7.0" - }, - { - "libraryName": "perfect-scrollbar", - "typingsPackageName": "perfect-scrollbar", - "sourceRepoURL": "https://github.com/noraesae/perfect-scrollbar", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "pg-connection-string", - "typingsPackageName": "pg-connection-string", - "sourceRepoURL": "https://github.com/iceddev/pg-connection-string", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "pg-promise", - "typingsPackageName": "pg-promise", - "sourceRepoURL": "https://github.com/vitaly-t/pg-promise", - "asOfVersion": "5.4.3" - }, - { - "libraryName": "phonegap-plugin-push", - "typingsPackageName": "phonegap-plugin-push", - "sourceRepoURL": "https://github.com/phonegap/phonegap-plugin-push", - "asOfVersion": "2.1.2" - }, - { - "libraryName": "pixi-spine", - "typingsPackageName": "pixi-spine", - "sourceRepoURL": "https://github.com/pixijs/pixi-spine", - "asOfVersion": "1.4.2" - }, - { - "libraryName": "pkcs11js", - "typingsPackageName": "pkcs11js", - "sourceRepoURL": "https://github.com/PeculiarVentures/pkcs11js", - "asOfVersion": "1.0.4" - }, - { - "libraryName": "plottable", - "typingsPackageName": "plottable", - "sourceRepoURL": "http://plottablejs.org/", - "asOfVersion": "3.7.0" - }, - { - "libraryName": "poly2tri.js", - "typingsPackageName": "poly2tri", - "sourceRepoURL": "https://github.com/r3mi/poly2tri.js", - "asOfVersion": "1.4.0" - }, - { - "libraryName": "popper.js", - "typingsPackageName": "popper.js", - "sourceRepoURL": "https://github.com/FezVrasta/popper.js/", - "asOfVersion": "1.11.0" - }, - { - "libraryName": "Prando", - "typingsPackageName": "prando", - "sourceRepoURL": "https://github.com/zeh/prando", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "ProtoBuf.js", - "typingsPackageName": "protobufjs", - "sourceRepoURL": "https://github.com/dcodeIO/ProtoBuf.js", - "asOfVersion": "6.0.0" - }, - { - "libraryName": "Protractor", - "typingsPackageName": "protractor", - "sourceRepoURL": "https://github.com/angular/protractor", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "qiniu", - "typingsPackageName": "qiniu", - "sourceRepoURL": "https://github.com/qiniu/nodejs-sdk", - "asOfVersion": "7.0.1" - }, - { - "libraryName": "qrcode-generator", - "typingsPackageName": "qrcode-generator", - "sourceRepoURL": "https://github.com/kazuhikoarase/qrcode-generator", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "Raven JS", - "typingsPackageName": "raven-js", - "sourceRepoURL": "https://github.com/getsentry/raven-js", - "asOfVersion": "3.10.0" - }, - { - "libraryName": "raw-body", - "typingsPackageName": "raw-body", - "sourceRepoURL": "https://github.com/stream-utils/raw-body", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "react-chartjs-2", - "typingsPackageName": "react-chartjs-2", - "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", - "asOfVersion": "2.5.7" - }, - { - "libraryName": "react-day-picker", - "typingsPackageName": "react-day-picker", - "sourceRepoURL": "https://github.com/gpbl/react-day-picker", - "asOfVersion": "5.3.0" - }, - { - "libraryName": "react-dnd", - "typingsPackageName": "react-dnd", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-dnd-html5-backend", - "typingsPackageName": "react-dnd-html5-backend", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-dnd-test-backend", - "typingsPackageName": "react-dnd-test-backend", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-flip-move", - "typingsPackageName": "react-flip-move", - "sourceRepoURL": "https://github.com/joshwcomeau/react-flip-move", - "asOfVersion": "2.9.12" - }, - { - "libraryName": "react-ga", - "typingsPackageName": "react-ga", - "sourceRepoURL": "https://github.com/react-ga/react-ga", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "react-i18next", - "typingsPackageName": "react-i18next", - "sourceRepoURL": "https://github.com/i18next/react-i18next", - "asOfVersion": "8.1.0" - }, - { - "libraryName": "react-monaco-editor", - "typingsPackageName": "react-monaco-editor", - "sourceRepoURL": "https://github.com/superRaytin/react-monaco-editor", - "asOfVersion": "0.16.0" - }, - { - "libraryName": "react-native-collapsible", - "typingsPackageName": "react-native-collapsible", - "sourceRepoURL": "https://github.com/oblador/react-native-collapsible", - "asOfVersion": "0.11.0" - }, - { - "libraryName": "react-native-elements", - "typingsPackageName": "react-native-elements", - "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", - "asOfVersion": "0.18.0" - }, - { - "libraryName": "react-native-goby", - "typingsPackageName": "react-native-goby", - "sourceRepoURL": "https://gitlab.com/MessageDream/react-native-goby", - "asOfVersion": "0.0.5" - }, - { - "libraryName": "react-native-google-analytics-bridge", - "typingsPackageName": "react-native-google-analytics-bridge", - "sourceRepoURL": "https://github.com/idehub/react-native-google-analytics-bridge", - "asOfVersion": "5.3.3" - }, - { - "libraryName": "react-native-linear-gradient", - "typingsPackageName": "react-native-linear-gradient", - "sourceRepoURL": "https://github.com/react-native-community/react-native-linear-gradient", - "asOfVersion": "2.4.0" - }, - { - "libraryName": "react-native-modal", - "typingsPackageName": "react-native-modal", - "sourceRepoURL": "https://github.com/react-native-community/react-native-modal", - "asOfVersion": "4.1.1" - }, - { - "libraryName": "react-native-navigation", - "typingsPackageName": "react-native-navigation", - "sourceRepoURL": "https://github.com/wix/react-native-navigation", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "react-split-pane", - "typingsPackageName": "react-split-pane", - "sourceRepoURL": "https://github.com/tomkp/react-split-pane", - "asOfVersion": "0.1.67" - }, - { - "libraryName": "react-svg", - "typingsPackageName": "react-svg", - "sourceRepoURL": "https://github.com/tanem/react-svg", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "realm", - "typingsPackageName": "realm", - "sourceRepoURL": "https://github.com/realm/realm-js", - "asOfVersion": "1.13.0" - }, - { - "libraryName": "Redux", - "typingsPackageName": "redux", - "sourceRepoURL": "https://github.com/reactjs/redux", - "asOfVersion": "3.6.0" - }, - { - "libraryName": "redux-batched-actions", - "typingsPackageName": "redux-batched-actions", - "sourceRepoURL": "https://github.com/tshelburne/redux-batched-actions", - "asOfVersion": "0.1.5" - }, - { - "libraryName": "redux-bootstrap", - "typingsPackageName": "redux-bootstrap", - "sourceRepoURL": "https://github.com/remojansen/redux-bootstrap", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "redux-devtools-extension", - "typingsPackageName": "redux-devtools-extension", - "sourceRepoURL": "https://github.com/zalmoxisus/redux-devtools-extension", - "asOfVersion": "2.13.2" - }, - { - "libraryName": "redux-little-router", - "typingsPackageName": "redux-little-router", - "sourceRepoURL": "https://github.com/FormidableLabs/redux-little-router", - "asOfVersion": "15.1.0" - }, - { - "libraryName": "redux-persist", - "typingsPackageName": "redux-persist", - "sourceRepoURL": "https://github.com/rt2zz/redux-persist", - "asOfVersion": "4.3.1" - }, - { - "libraryName": "redux-persist-transform-compress", - "typingsPackageName": "redux-persist-transform-compress", - "sourceRepoURL": "https://github.com/rt2zz/redux-persist-transform-compress", - "asOfVersion": "4.2.0" - }, - { - "libraryName": "redux-saga", - "typingsPackageName": "redux-saga", - "sourceRepoURL": "https://github.com/redux-saga/redux-saga", - "asOfVersion": "0.10.5" - }, - { - "libraryName": "redux-saga-routines", - "typingsPackageName": "redux-saga-routines", - "sourceRepoURL": "https://github.com/afitiskin/redux-saga-routines#readme", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "Redux Thunk", - "typingsPackageName": "redux-thunk", - "sourceRepoURL": "https://github.com/gaearon/redux-thunk", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "reflect-metadata", - "typingsPackageName": "reflect-metadata", - "sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators", - "asOfVersion": "0.1.0" - }, - { - "libraryName": "reselect", - "typingsPackageName": "reselect", - "sourceRepoURL": "https://github.com/rackt/reselect", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "rest-io", - "typingsPackageName": "rest-io", - "sourceRepoURL": "https://github.com/EnoF/rest-io", - "asOfVersion": "4.1.0" - }, - { - "libraryName": "rollup", - "typingsPackageName": "rollup", - "sourceRepoURL": "https://github.com/rollup/rollup", - "asOfVersion": "0.54.0" - }, - { - "libraryName": "route-recognizer", - "typingsPackageName": "route-recognizer", - "sourceRepoURL": "https://github.com/tildeio/route-recognizer", - "asOfVersion": "0.3.0" - }, - { - "libraryName": "router5", - "typingsPackageName": "router5", - "sourceRepoURL": "https://github.com/router5/router5", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "rrule", - "typingsPackageName": "rrule", - "sourceRepoURL": "https://github.com/jakubroztocil/rrule", - "asOfVersion": "2.2.9" - }, - { - "libraryName": "rvo2", - "typingsPackageName": "rvo2", - "sourceRepoURL": "https://github.com/TNOCS/rvo2", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "samchon", - "typingsPackageName": "samchon", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "2.0.22" - }, - { - "libraryName": "samchon-framework", - "typingsPackageName": "samchon-framework", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "2.0.21" - }, - { - "libraryName": "samchon-library", - "typingsPackageName": "samchon-library", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "0.1.0" - }, - { - "libraryName": "node-scanf", - "typingsPackageName": "scanf", - "sourceRepoURL": "https://github.com/Lellansin/node-scanf", - "asOfVersion": "0.7.3" - }, - { - "libraryName": "sendgrid", - "typingsPackageName": "sendgrid", - "sourceRepoURL": "https://github.com/sendgrid/sendgrid-nodejs", - "asOfVersion": "4.3.0" - }, - { - "libraryName": "sentence-case", - "typingsPackageName": "sentence-case", - "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "sharp-timer", - "typingsPackageName": "sharp-timer", - "sourceRepoURL": "https://github.com/afractal/SharpTimer", - "asOfVersion": "0.1.3" - }, - { - "libraryName": "Shopify Prime", - "typingsPackageName": "shopify-prime", - "sourceRepoURL": "https://github.com/nozzlegear/shopify-prime", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "should.js", - "typingsPackageName": "should", - "sourceRepoURL": "https://github.com/shouldjs/should.js", - "asOfVersion": "13.0.0" - }, - { - "libraryName": "SimpleSignal", - "typingsPackageName": "simplesignal", - "sourceRepoURL": "https://github.com/zeh/simplesignal", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "smooth-scrollbar", - "typingsPackageName": "smooth-scrollbar", - "sourceRepoURL": "https://github.com/idiotWu/smooth-scrollbar", - "asOfVersion": "8.2.5" - }, - { - "libraryName": "Smoothie Charts", - "typingsPackageName": "smoothie", - "sourceRepoURL": "https://github.com/joewalnes/smoothie", - "asOfVersion": "1.29.1" - }, - { - "libraryName": "snake-case", - "typingsPackageName": "snake-case", - "sourceRepoURL": "https://github.com/blakeembrey/snake-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "soap", - "typingsPackageName": "soap", - "sourceRepoURL": "https://www.npmjs.com/package/soap", - "asOfVersion": "0.21.0" - }, - { - "libraryName": "source-map", - "typingsPackageName": "source-map", - "sourceRepoURL": "https://github.com/mozilla/source-map", - "asOfVersion": "0.5.7" - }, - { - "libraryName": "Spin.js", - "typingsPackageName": "spin.js", - "sourceRepoURL": "http://fgnass.github.com/spin.js/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "spotify-web-api-js", - "typingsPackageName": "spotify-web-api-js", - "sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js", - "asOfVersion": "0.21.0" - }, - { - "libraryName": "ServiceStack Utils", - "typingsPackageName": "ss-utils", - "sourceRepoURL": "https://servicestack.net/", - "asOfVersion": "0.1.5" - }, - { - "libraryName": "striptags", - "typingsPackageName": "striptags", - "sourceRepoURL": "https://github.com/ericnorris/striptags", - "asOfVersion": "3.1.1" - }, - { - "libraryName": "Sugar", - "typingsPackageName": "sugar", - "sourceRepoURL": "https://github.com/andrewplummer/Sugar", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "survey-knockout", - "typingsPackageName": "survey-knockout", - "sourceRepoURL": "http://surveyjs.org/", - "asOfVersion": "0.10.0" - }, - { - "libraryName": "svg-pan-zoom", - "typingsPackageName": "svg-pan-zoom", - "sourceRepoURL": "https://github.com/ariutta/svg-pan-zoom", - "asOfVersion": "3.4.0" - }, - { - "libraryName": "svg.js", - "typingsPackageName": "svg.js", - "sourceRepoURL": "http://www.svgjs.com/", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "swap-case", - "typingsPackageName": "swap-case", - "sourceRepoURL": "https://github.com/blakeembrey/swap-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "SweetAlert", - "typingsPackageName": "sweetalert", - "sourceRepoURL": "https://github.com/t4t5/sweetalert/", - "asOfVersion": "2.0.4" - }, - { - "libraryName": "Tabris.js", - "typingsPackageName": "tabris", - "sourceRepoURL": "http://tabrisjs.com", - "asOfVersion": "1.8.0" - }, - { - "libraryName": "tcomb", - "typingsPackageName": "tcomb", - "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "timezonecomplete", - "typingsPackageName": "timezonecomplete", - "sourceRepoURL": "https://github.com/SpiritIT/timezonecomplete", - "asOfVersion": "5.5.0" - }, - { - "libraryName": "title-case", - "typingsPackageName": "title-case", - "sourceRepoURL": "https://github.com/blakeembrey/title-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "TsMonad", - "typingsPackageName": "tsmonad", - "sourceRepoURL": "https://github.com/cbowdon/TsMonad", - "asOfVersion": "0.5.0" - }, - { - "libraryName": "tstl", - "typingsPackageName": "tstl", - "sourceRepoURL": "https://github.com/samchon/tstl", - "asOfVersion": "1.5.7" - }, - { - "libraryName": "typed.js", - "typingsPackageName": "typed.js", - "sourceRepoURL": "https://github.com/mattboldt/typed.js", - "asOfVersion": "2.0.9" - }, - { - "libraryName": "TypeScript", - "typingsPackageName": "typescript", - "sourceRepoURL": "https://github.com/Microsoft/TypeScript", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "TypeScript", - "typingsPackageName": "typescript-services", - "sourceRepoURL": "https://github.com/Microsoft/TypeScript", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "uk.co.workingedge.phonegap.plugin.istablet", - "typingsPackageName": "uk.co.workingedge.phonegap.plugin.istablet", - "sourceRepoURL": "https://github.com/dpa99c/phonegap-istablet", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "uk.co.workingedge.phonegap.plugin.launchnavigator", - "typingsPackageName": "uk.co.workingedge.phonegap.plugin.launchnavigator", - "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "upper-case", - "typingsPackageName": "upper-case", - "sourceRepoURL": "https://github.com/blakeembrey/upper-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "upper-case-first", - "typingsPackageName": "upper-case-first", - "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "UUID.js", - "typingsPackageName": "uuidjs", - "sourceRepoURL": "https://github.com/LiosK/UUID.js", - "asOfVersion": "3.6.0" - }, - { - "libraryName": "Validate.js", - "typingsPackageName": "validate.js", - "sourceRepoURL": "https://github.com/ansman/validate.js", - "asOfVersion": "0.11.0" - }, - { - "libraryName": "vso-node-api", - "typingsPackageName": "vso-node-api", - "sourceRepoURL": "https://github.com/Microsoft/vso-node-api", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "vuejs", - "typingsPackageName": "vue", - "sourceRepoURL": "https://github.com/vuejs/vue", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "vue-i18n", - "typingsPackageName": "vue-i18n", - "sourceRepoURL": "https://github.com/kazupon/vue-i18n", - "asOfVersion": "7.0.0" - }, - { - "libraryName": "vue-router", - "typingsPackageName": "vue-router", - "sourceRepoURL": "https://github.com/vuejs/vue-router", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "webcola", - "typingsPackageName": "webcola", - "sourceRepoURL": "https://github.com/tgdwyer/WebCola", - "asOfVersion": "3.2.0" - }, - { - "libraryName": "webgme", - "typingsPackageName": "webgme", - "sourceRepoURL": "https://webgme.org", - "asOfVersion": "2.11.0" - }, - { - "libraryName": "Webix UI", - "typingsPackageName": "webix", - "sourceRepoURL": "http://webix.com", - "asOfVersion": "5.1.1" - }, - { - "libraryName": "winston", - "typingsPackageName": "winston", - "sourceRepoURL": "https://github.com/winstonjs/winston.git", - "asOfVersion": "2.4.4" - }, - { - "libraryName": "wolfy87-eventemitter", - "typingsPackageName": "wolfy87-eventemitter", - "sourceRepoURL": "https://github.com/Wolfy87/EventEmitter", - "asOfVersion": "5.2.0" - }, - { - "libraryName": "wonder-commonlib", - "typingsPackageName": "wonder-commonlib", - "sourceRepoURL": "https://github.com/yyc-git/Wonder-CommonLib", - "asOfVersion": "0.1.12" - }, - { - "libraryName": "wonder-frp", - "typingsPackageName": "wonder-frp", - "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", - "asOfVersion": "0.1.25" - }, - { - "libraryName": "x2js", - "typingsPackageName": "x2js", - "sourceRepoURL": "https://code.google.com/p/x2js/", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "xadesjs", - "typingsPackageName": "xadesjs", - "sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "xhr-mock", - "typingsPackageName": "xhr-mock", - "sourceRepoURL": "https://github.com/jameslnewell/xhr-mock#readme", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "xlsx", - "typingsPackageName": "xlsx", - "sourceRepoURL": "https://github.com/sheetjs/js-xlsx", - "asOfVersion": "0.0.36" - }, - { - "libraryName": "xml-js", - "typingsPackageName": "xml-js", - "sourceRepoURL": "https://github.com/nashwaan/xml-js", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "@xmpp/jid", - "typingsPackageName": "xmpp-jid", - "sourceRepoURL": "github.com/node-xmpp/node-xmpp/", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "xterm.js", - "typingsPackageName": "xterm", - "sourceRepoURL": "https://github.com/sourcelair/xterm.js/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "yFiles for HTML", - "typingsPackageName": "yfiles", - "sourceRepoURL": "none", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "zetapush-js", - "typingsPackageName": "zetapush-js", - "sourceRepoURL": "https://github.com/zetapush/zetapush-js", - "asOfVersion": "3.1.2" - }, - { - "libraryName": "Zone.js", - "typingsPackageName": "zone.js", - "sourceRepoURL": "https://github.com/angular/zone.js", - "asOfVersion": "0.5.12" - } - ] + "packages": [ + { + "libraryName": "3d-bin-packing", + "typingsPackageName": "3d-bin-packing", + "sourceRepoURL": "https://github.com/betterwaysystems/packer", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "Ably Realtime and Rest client library", + "typingsPackageName": "ably", + "sourceRepoURL": "https://www.ably.io/", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "ag-grid", + "typingsPackageName": "ag-grid", + "sourceRepoURL": "https://github.com/ceolter/ag-grid", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "ajv", + "typingsPackageName": "ajv", + "sourceRepoURL": "https://github.com/epoberezkin/ajv", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "angular-touchspin", + "typingsPackageName": "angular-touchspin", + "sourceRepoURL": "https://github.com/nkovacic/angular-touchspin", + "asOfVersion": "1.8.2" + }, + { + "libraryName": "angular-ui-router-default", + "typingsPackageName": "angular-ui-router-default", + "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-default", + "asOfVersion": "0.0.5" + }, + { + "libraryName": "angular-ui-router-uib-modal", + "typingsPackageName": "angular-ui-router-uib-modal", + "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", + "asOfVersion": "0.0.11" + }, + { + "libraryName": "antd", + "typingsPackageName": "antd", + "sourceRepoURL": "https://github.com/ant-design/ant-design", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "anydb-sql", + "typingsPackageName": "anydb-sql", + "sourceRepoURL": "https://github.com/doxout/anydb-sql", + "asOfVersion": "0.6.46" + }, + { + "libraryName": "anydb-sql-migrations", + "typingsPackageName": "anydb-sql-migrations", + "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", + "asOfVersion": "2.1.1" + }, + { + "libraryName": "apn", + "typingsPackageName": "apn", + "sourceRepoURL": "https://github.com/node-apn/node-apn", + "asOfVersion": "2.1.2" + }, + { + "libraryName": "Application Insights", + "typingsPackageName": "applicationinsights", + "sourceRepoURL": "https://github.com/Microsoft/ApplicationInsights-node.js", + "asOfVersion": "0.20.0" + }, + { + "libraryName": "Argon2", + "typingsPackageName": "argon2", + "sourceRepoURL": "https://github.com/ranisalt/node-argon2", + "asOfVersion": "0.15.0" + }, + { + "libraryName": "artyom.js", + "typingsPackageName": "artyom.js", + "sourceRepoURL": "https://github.com/sdkcarlos/artyom.js", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "askmethat-rating", + "typingsPackageName": "askmethat-rating", + "sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating", + "asOfVersion": "0.4.0" + }, + { + "libraryName": "assertion-error", + "typingsPackageName": "assertion-error", + "sourceRepoURL": "https://github.com/chaijs/assertion-error", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "asyncblock", + "typingsPackageName": "asyncblock", + "sourceRepoURL": "https://github.com/scriby/asyncblock", + "asOfVersion": "2.2.11" + }, + { + "libraryName": "aurelia-knockout", + "typingsPackageName": "aurelia-knockout", + "sourceRepoURL": "https://github.com/code-chris/aurelia-knockout", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "autobind-decorator", + "typingsPackageName": "autobind-decorator", + "sourceRepoURL": "https://github.com/andreypopp/autobind-decorator", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "aws-sdk", + "typingsPackageName": "aws-sdk", + "sourceRepoURL": "https://github.com/aws/aws-sdk-js", + "asOfVersion": "2.7.0" + }, + { + "libraryName": "axe-core", + "typingsPackageName": "axe-core", + "sourceRepoURL": "https://github.com/dequelabs/axe-core", + "asOfVersion": "3.0.3" + }, + { + "libraryName": "axios", + "typingsPackageName": "axios", + "sourceRepoURL": "https://github.com/mzabriskie/axios", + "asOfVersion": "0.14.0" + }, + { + "libraryName": "axios-mock-adapter", + "typingsPackageName": "axios-mock-adapter", + "sourceRepoURL": "https://github.com/ctimmerm/axios-mock-adapter", + "asOfVersion": "1.10.0" + }, + { + "libraryName": "azure-mobile-apps", + "typingsPackageName": "azure-mobile-apps", + "sourceRepoURL": "https://github.com/Azure/azure-mobile-apps-node/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "BabylonJS", + "typingsPackageName": "babylonjs", + "sourceRepoURL": "http://www.babylonjs.com/", + "asOfVersion": "2.4.1" + }, + { + "libraryName": "base64url", + "typingsPackageName": "base64url", + "sourceRepoURL": "https://github.com/brianloveswords/base64url", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "BigInteger.js", + "typingsPackageName": "big-integer", + "sourceRepoURL": "https://github.com/peterolson/BigInteger.js", + "asOfVersion": "0.0.31" + }, + { + "libraryName": "bignumber.js", + "typingsPackageName": "bignumber.js", + "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "bingmaps", + "typingsPackageName": "bingmaps", + "sourceRepoURL": "https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions", + "asOfVersion": "2.0.15" + }, + { + "libraryName": "bitwise", + "typingsPackageName": "bitwise", + "sourceRepoURL": "https://github.com/dodekeract/bitwise", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "botvs", + "typingsPackageName": "botvs", + "sourceRepoURL": "https://www.botvs.com/", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "Bowser", + "typingsPackageName": "bowser", + "sourceRepoURL": "https://github.com/ded/bowser", + "asOfVersion": "1.1.1" + }, + { + "libraryName": "Bugsnag Browser", + "typingsPackageName": "bugsnag-js", + "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "CacheFactory", + "typingsPackageName": "cachefactory", + "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "camel-case", + "typingsPackageName": "camel-case", + "sourceRepoURL": "https://github.com/blakeembrey/camel-case", + "asOfVersion": "1.2.1" + }, + { + "libraryName": "catalog", + "typingsPackageName": "catalog", + "sourceRepoURL": "https://github.com/interactivethings/catalog", + "asOfVersion": "3.5.0" + }, + { + "libraryName": "chalk", + "typingsPackageName": "chalk", + "sourceRepoURL": "https://github.com/chalk/chalk", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "change-case", + "typingsPackageName": "change-case", + "sourceRepoURL": "https://github.com/blakeembrey/change-case", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "cheap-ruler", + "typingsPackageName": "cheap-ruler", + "sourceRepoURL": "https://github.com/mapbox/cheap-ruler", + "asOfVersion": "2.5.0" + }, + { + "libraryName": "chunked-dc", + "typingsPackageName": "chunked-dc", + "sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js", + "asOfVersion": "0.2.2" + }, + { + "libraryName": "colors.js (colors)", + "typingsPackageName": "colors", + "sourceRepoURL": "https://github.com/Marak/colors.js", + "asOfVersion": "1.2.1" + }, + { + "libraryName": "commander", + "typingsPackageName": "commander", + "sourceRepoURL": "https://github.com/tj/commander.js", + "asOfVersion": "2.12.2" + }, + { + "libraryName": "confirmdialog", + "typingsPackageName": "confirmdialog", + "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "constant-case", + "typingsPackageName": "constant-case", + "sourceRepoURL": "https://github.com/blakeembrey/constant-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "cordova-plugin-battery-status", + "typingsPackageName": "cordova-plugin-battery-status", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-battery-status", + "asOfVersion": "1.2.3" + }, + { + "libraryName": "cordova-plugin-camera", + "typingsPackageName": "cordova-plugin-camera", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-camera", + "asOfVersion": "2.4.0" + }, + { + "libraryName": "cordova-plugin-contacts", + "typingsPackageName": "cordova-plugin-contacts", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-contacts", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "cordova-plugin-device", + "typingsPackageName": "cordova-plugin-device", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device", + "asOfVersion": "1.1.5" + }, + { + "libraryName": "cordova-plugin-device-motion", + "typingsPackageName": "cordova-plugin-device-motion", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-motion", + "asOfVersion": "1.2.4" + }, + { + "libraryName": "Apache Cordova Device Orientation plugin", + "typingsPackageName": "cordova-plugin-device-orientation", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-orientation", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-dialogs", + "typingsPackageName": "cordova-plugin-dialogs", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-dialogs", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "Apache Cordova File System plugin", + "typingsPackageName": "cordova-plugin-file", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file", + "asOfVersion": "4.3.2" + }, + { + "libraryName": "cordova-plugin-file-transfer", + "typingsPackageName": "cordova-plugin-file-transfer", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file-transfer", + "asOfVersion": "1.6.2" + }, + { + "libraryName": "cordova-plugin-globalization", + "typingsPackageName": "cordova-plugin-globalization", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-globalization", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-inappbrowser", + "typingsPackageName": "cordova-plugin-inappbrowser", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-inappbrowser", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "cordova-plugin-media", + "typingsPackageName": "cordova-plugin-media", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "cordova-plugin-media-capture", + "typingsPackageName": "cordova-plugin-media-capture", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media-capture", + "asOfVersion": "1.4.2" + }, + { + "libraryName": "cordova-plugin-network-information", + "typingsPackageName": "cordova-plugin-network-information", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-network-information", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "cordova-plugin-splashscreen", + "typingsPackageName": "cordova-plugin-splashscreen", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-splashscreen", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "Apache Cordova StatusBar plugin", + "typingsPackageName": "cordova-plugin-statusbar", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-statusbar", + "asOfVersion": "2.2.2" + }, + { + "libraryName": "Apache Cordova Vibration plugin", + "typingsPackageName": "cordova-plugin-vibration", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-vibration", + "asOfVersion": "2.1.4" + }, + { + "libraryName": "cordova.plugins.diagnostic", + "typingsPackageName": "cordova.plugins.diagnostic", + "sourceRepoURL": "https://github.com/dpa99c/cordova-diagnostic-plugin", + "asOfVersion": "3.7.0" + }, + { + "libraryName": "core-decorators.js", + "typingsPackageName": "core-decorators", + "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", + "asOfVersion": "0.20.0" + }, + { + "libraryName": "cypress", + "typingsPackageName": "cypress", + "sourceRepoURL": "https://cypress.io", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "date-fns", + "typingsPackageName": "date-fns", + "sourceRepoURL": "https://github.com/date-fns/date-fns", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "decimal.js", + "typingsPackageName": "decimal.js", + "sourceRepoURL": "https://github.com/MikeMcl/decimal.js", + "asOfVersion": "7.4.0" + }, + { + "libraryName": "deepmerge", + "typingsPackageName": "deepmerge", + "sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "delay", + "typingsPackageName": "delay", + "sourceRepoURL": "https://github.com/sindresorhus/delay", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "DevExtreme", + "typingsPackageName": "devextreme", + "sourceRepoURL": "http://js.devexpress.com/", + "asOfVersion": "16.2.1" + }, + { + "libraryName": "Dexie.js", + "typingsPackageName": "dexie", + "sourceRepoURL": "https://github.com/dfahlander/Dexie.js", + "asOfVersion": "1.3.1" + }, + { + "libraryName": "docker-file-parser", + "typingsPackageName": "docker-file-parser", + "sourceRepoURL": "https://github.com/joyent/docker-file-parser", + "asOfVersion": "1.0.3" + }, + { + "libraryName": "dot-case", + "typingsPackageName": "dot-case", + "sourceRepoURL": "https://github.com/blakeembrey/dot-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "dva", + "typingsPackageName": "dva", + "sourceRepoURL": "https://github.com/dvajs/dva", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "easy-x-headers", + "typingsPackageName": "easy-x-headers", + "sourceRepoURL": "https://github.com/DeadAlready/easy-x-headers", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "easy-xapi-supertest", + "typingsPackageName": "easy-xapi-supertest", + "sourceRepoURL": "https://github.com/DeadAlready/easy-xapi-supertest", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "EasyStar.js", + "typingsPackageName": "easystarjs", + "sourceRepoURL": "http://easystarjs.com/", + "asOfVersion": "0.3.1" + }, + { + "libraryName": "ecmarkup", + "typingsPackageName": "ecmarkup", + "sourceRepoURL": "https://github.com/bterlson/ecmarkup", + "asOfVersion": "3.4.0" + }, + { + "libraryName": "Egg", + "typingsPackageName": "egg", + "sourceRepoURL": "https://github.com/eggjs/egg", + "asOfVersion": "1.5.0" + }, + { + "libraryName": "electron", + "typingsPackageName": "electron", + "sourceRepoURL": "https://github.com/electron/electron", + "asOfVersion": "1.6.10" + }, + { + "libraryName": "electron-builder", + "typingsPackageName": "electron-builder", + "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", + "asOfVersion": "2.8.0" + }, + { + "libraryName": "email-addresses", + "typingsPackageName": "email-addresses", + "sourceRepoURL": "https://github.com/jackbowman/email-addresses", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "email-validator", + "typingsPackageName": "email-validator", + "sourceRepoURL": "https://github.com/Sembiance/email-validator", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "error-stack-parser", + "typingsPackageName": "error-stack-parser", + "sourceRepoURL": "https://github.com/stacktracejs/error-stack-parser", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "es6-error", + "typingsPackageName": "es6-error", + "sourceRepoURL": "https://github.com/bjyoungblood/es6-error", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "es6-promise", + "typingsPackageName": "es6-promise", + "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", + "asOfVersion": "3.3.0" + }, + { + "libraryName": "eventemitter2", + "typingsPackageName": "eventemitter2", + "sourceRepoURL": "https://github.com/asyncly/EventEmitter2", + "asOfVersion": "4.1.0" + }, + { + "libraryName": "EventEmitter3", + "typingsPackageName": "eventemitter3", + "sourceRepoURL": "https://github.com/primus/eventemitter3", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "expr-eval", + "typingsPackageName": "expr-eval", + "sourceRepoURL": "https://github.com/silentmatt/expr-eval", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "express-validator", + "typingsPackageName": "express-validator", + "sourceRepoURL": "https://github.com/ctavan/express-validator", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "extended-listbox", + "typingsPackageName": "extended-listbox", + "sourceRepoURL": "https://github.com/code-chris/extended-listbox", + "asOfVersion": "4.0.1" + }, + { + "libraryName": "JSON-Patch", + "typingsPackageName": "fast-json-patch", + "sourceRepoURL": "https://github.com/Starcounter-Jack/JSON-Patch", + "asOfVersion": "1.1.5" + }, + { + "libraryName": "FastSimplexNoise", + "typingsPackageName": "fast-simplex-noise", + "sourceRepoURL": "https://www.npmjs.com/package/fast-simplex-noise", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "fecha", + "typingsPackageName": "fecha", + "sourceRepoURL": "https://github.com/taylorhakes/fecha", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "FineUploader", + "typingsPackageName": "fine-uploader", + "sourceRepoURL": "http://fineuploader.com/", + "asOfVersion": "5.14.0" + }, + { + "libraryName": "Firebase API", + "typingsPackageName": "firebase", + "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", + "asOfVersion": "3.2.1" + }, + { + "libraryName": "flatpickr", + "typingsPackageName": "flatpickr", + "sourceRepoURL": "https://github.com/chmln/flatpickr", + "asOfVersion": "3.1.2" + }, + { + "libraryName": "flux-standard-action", + "typingsPackageName": "flux-standard-action", + "sourceRepoURL": "https://github.com/acdlite/flux-standard-action", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "fork-ts-checker-webpack-plugin", + "typingsPackageName": "fork-ts-checker-webpack-plugin", + "sourceRepoURL": "https://github.com/Realytics/fork-ts-checker-webpack-plugin", + "asOfVersion": "0.4.5" + }, + { + "libraryName": "Foundation Sites", + "typingsPackageName": "foundation-sites", + "sourceRepoURL": "http://foundation.zurb.com/", + "asOfVersion": "6.4.3" + }, + { + "libraryName": "FullCalendar", + "typingsPackageName": "fullcalendar", + "sourceRepoURL": "http://arshaw.com/fullcalendar/", + "asOfVersion": "3.8.0" + }, + { + "libraryName": "fuse", + "typingsPackageName": "fuse", + "sourceRepoURL": "https://github.com/krisk/Fuse", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "gaea-model", + "typingsPackageName": "gaea-model", + "sourceRepoURL": "https://github.com/ascoders/gaea-model", + "asOfVersion": "0.0.0" + }, + { + "libraryName": "geolib", + "typingsPackageName": "geolib", + "sourceRepoURL": "https://github.com/manuelbieh/Geolib", + "asOfVersion": "2.0.23" + }, + { + "libraryName": "github", + "typingsPackageName": "github", + "sourceRepoURL": "https://github.com/mikedeboer/node-github", + "asOfVersion": "7.1.0" + }, + { + "libraryName": "graphene-pk11", + "typingsPackageName": "graphene-pk11", + "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", + "asOfVersion": "2.0.31" + }, + { + "libraryName": "griddle-react", + "typingsPackageName": "griddle-react", + "sourceRepoURL": "https://github.com/griddlegriddle/griddle", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "gulp-tslint", + "typingsPackageName": "gulp-tslint", + "sourceRepoURL": "https://github.com/panuhorsmalahti/gulp-tslint", + "asOfVersion": "4.2.0" + }, + { + "libraryName": "gulp-typedoc", + "typingsPackageName": "gulp-typedoc", + "sourceRepoURL": "https://github.com/rogierschouten/gulp-typedoc", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "gulp-typescript", + "typingsPackageName": "gulp-typescript", + "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", + "asOfVersion": "2.13.0" + }, + { + "libraryName": "handsontable", + "typingsPackageName": "handsontable", + "sourceRepoURL": "https://handsontable.com/", + "asOfVersion": "0.35.0" + }, + { + "libraryName": "homeworks", + "typingsPackageName": "homeworks", + "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", + "asOfVersion": "1.0.19" + }, + { + "libraryName": "http-status-codes", + "typingsPackageName": "http-status-codes", + "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "iconv-lite", + "typingsPackageName": "iconv-lite", + "sourceRepoURL": "https://github.com/ashtuchkin/iconv-lite", + "asOfVersion": "0.4.14" + }, + { + "libraryName": "ids", + "typingsPackageName": "ids", + "sourceRepoURL": "https://github.com/bpmn-io/ids", + "asOfVersion": "0.2.2" + }, + { + "libraryName": "immutability-helper", + "typingsPackageName": "immutability-helper", + "sourceRepoURL": "https://github.com/kolodny/immutability-helper", + "asOfVersion": "2.6.3" + }, + { + "libraryName": "Facebook's Immutable", + "typingsPackageName": "immutable", + "sourceRepoURL": "https://github.com/facebook/immutable-js", + "asOfVersion": "3.8.7" + }, + { + "libraryName": "interactjs", + "typingsPackageName": "interact.js", + "sourceRepoURL": "https://github.com/taye/interact.js", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "inversify", + "typingsPackageName": "inversify", + "sourceRepoURL": "http://inversify.io", + "asOfVersion": "2.0.33" + }, + { + "libraryName": "inversify-binding-decorators", + "typingsPackageName": "inversify-binding-decorators", + "sourceRepoURL": "https://github.com/inversify/inversify-binding-decorators", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-express-utils", + "typingsPackageName": "inversify-express-utils", + "sourceRepoURL": "https://github.com/inversify/inversify-express-utils", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-inject-decorators", + "typingsPackageName": "inversify-inject-decorators", + "sourceRepoURL": "https://github.com/inversify/inversify-inject-decorators", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-logger-middleware", + "typingsPackageName": "inversify-logger-middleware", + "sourceRepoURL": "https://github.com/inversify/inversify-logger-middleware", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-restify-utils", + "typingsPackageName": "inversify-restify-utils", + "sourceRepoURL": "https://github.com/inversify/inversify-restify-utils", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "Ionic", + "typingsPackageName": "ionic", + "sourceRepoURL": "http://ionicframework.com", + "asOfVersion": "3.19.0" + }, + { + "libraryName": "is-lower-case", + "typingsPackageName": "is-lower-case", + "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "is-plain-object", + "typingsPackageName": "is-plain-object", + "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", + "asOfVersion": "2.0.4" + }, + { + "libraryName": "is-upper-case", + "typingsPackageName": "is-upper-case", + "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "jasmine-expect", + "typingsPackageName": "jasmine-expect", + "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", + "asOfVersion": "3.8.1" + }, + { + "libraryName": "jimp", + "typingsPackageName": "jimp", + "sourceRepoURL": "https://github.com/oliver-moran/jimp#readme", + "asOfVersion": "0.2.28" + }, + { + "libraryName": "joData", + "typingsPackageName": "jodata", + "sourceRepoURL": "https://github.com/mccow002/joData", + "asOfVersion": "1.0.13" + }, + { + "libraryName": "JointJS", + "typingsPackageName": "jointjs", + "sourceRepoURL": "http://www.jointjs.com/", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "jpush-react-native", + "typingsPackageName": "jpush-react-native", + "sourceRepoURL": "https://github.com/jpush/jpush-react-native", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "jquery.ajaxfile", + "typingsPackageName": "jquery.ajaxfile", + "sourceRepoURL": "https://github.com/fpellet/jquery.ajaxFile", + "asOfVersion": "0.2.29" + }, + { + "libraryName": "js-data", + "typingsPackageName": "js-data", + "sourceRepoURL": "https://github.com/js-data/js-data", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "JSData Http Adapter", + "typingsPackageName": "js-data-http", + "sourceRepoURL": "https://github.com/js-data/js-data-http", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "JSNLog", + "typingsPackageName": "jsnlog", + "sourceRepoURL": "https://github.com/mperdeck/jsnlog.js", + "asOfVersion": "2.17.2" + }, + { + "libraryName": "jsonschema", + "typingsPackageName": "jsonschema", + "sourceRepoURL": "https://github.com/tdegrunt/jsonschema", + "asOfVersion": "1.1.1" + }, + { + "libraryName": "jsplumb", + "typingsPackageName": "jsplumb", + "sourceRepoURL": "https://github.com/jsplumb/jsPlumb", + "asOfVersion": "2.5.7" + }, + { + "libraryName": "keycloak-js", + "typingsPackageName": "keycloak-js", + "sourceRepoURL": "https://github.com/keycloak/keycloak", + "asOfVersion": "3.4.1" + }, + { + "libraryName": "knockout-paging", + "typingsPackageName": "knockout-paging", + "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-paging", + "asOfVersion": "0.3.1" + }, + { + "libraryName": "knockout-pre-rendered", + "typingsPackageName": "knockout-pre-rendered", + "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", + "asOfVersion": "0.7.1" + }, + { + "libraryName": "koa-jwt", + "typingsPackageName": "koa-jwt", + "sourceRepoURL": "https://github.com/koajs/jwt", + "asOfVersion": "3.3.0" + }, + { + "libraryName": "lambda-phi", + "typingsPackageName": "lambda-phi", + "sourceRepoURL": "https://github.com/elitechance/lambda-phi", + "asOfVersion": "1.0.1" + }, + { + "libraryName": "ldclient-js", + "typingsPackageName": "ldclient-js", + "sourceRepoURL": "https://github.com/launchdarkly/js-client", + "asOfVersion": "1.1.11" + }, + { + "libraryName": "left-pad", + "typingsPackageName": "left-pad", + "sourceRepoURL": "https://github.com/stevemao/left-pad", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "Linq.JS", + "typingsPackageName": "linq", + "sourceRepoURL": "https://linqjs.codeplex.com/", + "asOfVersion": "2.2.33" + }, + { + "libraryName": "Linq4JS", + "typingsPackageName": "linq4js", + "sourceRepoURL": "https://github.com/morrisjdev/Linq4JS", + "asOfVersion": "2.1.8" + }, + { + "libraryName": "LinqSharp", + "typingsPackageName": "linqsharp", + "sourceRepoURL": "https://github.com/brunolm/LinqSharp", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "localforage", + "typingsPackageName": "localforage", + "sourceRepoURL": "https://github.com/localForage/localForage", + "asOfVersion": "0.0.34" + }, + { + "libraryName": "localforage-cordovasqlitedriver", + "typingsPackageName": "localforage-cordovasqlitedriver", + "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", + "asOfVersion": "1.5.0" + }, + { + "libraryName": "lodash-decorators", + "typingsPackageName": "lodash-decorators", + "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "log4javascript", + "typingsPackageName": "log4javascript", + "sourceRepoURL": "http://log4javascript.org/", + "asOfVersion": "1.4.15" + }, + { + "libraryName": "log4js", + "typingsPackageName": "log4js", + "sourceRepoURL": "https://github.com/nomiddlename/log4js-node", + "asOfVersion": "2.3.5" + }, + { + "libraryName": "lower-case", + "typingsPackageName": "lower-case", + "sourceRepoURL": "https://github.com/blakeembrey/lower-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "lower-case-first", + "typingsPackageName": "lower-case-first", + "sourceRepoURL": "https://github.com/blakeembrey/lower-case-first", + "asOfVersion": "1.0.1" + }, + { + "libraryName": "mali", + "typingsPackageName": "mali", + "sourceRepoURL": "https://github.com/malijs/mali", + "asOfVersion": "0.9.2" + }, + { + "libraryName": "maquette", + "typingsPackageName": "maquette", + "sourceRepoURL": "http://maquettejs.org/", + "asOfVersion": "2.1.6" + }, + { + "libraryName": "mendixmodelsdk", + "typingsPackageName": "mendixmodelsdk", + "sourceRepoURL": "http://www.mendix.com", + "asOfVersion": "0.8.1" + }, + { + "libraryName": "metisMenu", + "typingsPackageName": "metismenu", + "sourceRepoURL": "https://github.com/onokumus/metisMenu", + "asOfVersion": "2.7.1" + }, + { + "libraryName": "microgears", + "typingsPackageName": "microgears", + "sourceRepoURL": "https://github.com/marcusdb/microgears", + "asOfVersion": "4.0.5" + }, + { + "libraryName": "mobile-detect", + "typingsPackageName": "mobile-detect", + "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", + "asOfVersion": "1.3.4" + }, + { + "libraryName": "mobservable", + "typingsPackageName": "mobservable", + "sourceRepoURL": "github.com/mweststrate/mobservable", + "asOfVersion": "1.2.5" + }, + { + "libraryName": "mobservable-react", + "typingsPackageName": "mobservable-react", + "sourceRepoURL": "https://github.com/mweststrate/mobservable-react", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "Mobx Cookie", + "typingsPackageName": "mobx-cookie", + "sourceRepoURL": "https://github.com/will-stone/mobx-cookie", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "Moment", + "typingsPackageName": "moment", + "sourceRepoURL": "https://github.com/moment/moment", + "asOfVersion": "2.13.0" + }, + { + "libraryName": "Monk", + "typingsPackageName": "monk", + "sourceRepoURL": "https://github.com/LearnBoost/monk.git", + "asOfVersion": "6.0.0" + }, + { + "libraryName": "MQTT", + "typingsPackageName": "mqtt", + "sourceRepoURL": "https://github.com/mqttjs/MQTT.js", + "asOfVersion": "2.5.0" + }, + { + "libraryName": "nano", + "typingsPackageName": "nano", + "sourceRepoURL": "https://github.com/apache/couchdb-nano", + "asOfVersion": "7.0.0" + }, + { + "libraryName": "ng-table", + "typingsPackageName": "ng-table", + "sourceRepoURL": "https://github.com/esvit/ng-table", + "asOfVersion": "2.0.1" + }, + { + "libraryName": "node-pg-migrate", + "typingsPackageName": "node-pg-migrate", + "sourceRepoURL": "https://github.com/theoephraim/node-pg-migrate#readme", + "asOfVersion": "2.15.0" + }, + { + "libraryName": "node-waves", + "typingsPackageName": "node-waves", + "sourceRepoURL": "http://fian.my.id/Waves", + "asOfVersion": "0.7.6" + }, + { + "libraryName": "Normalizr", + "typingsPackageName": "normalizr", + "sourceRepoURL": "https://github.com/paularmstrong/normalizr", + "asOfVersion": "2.0.18" + }, + { + "libraryName": "Numbro", + "typingsPackageName": "numbro", + "sourceRepoURL": "https://github.com/foretagsplatsen/numbro/", + "asOfVersion": "1.9.3" + }, + { + "libraryName": "Onsen UI", + "typingsPackageName": "onsenui", + "sourceRepoURL": "http://onsen.io", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "param-case", + "typingsPackageName": "param-case", + "sourceRepoURL": "https://github.com/blakeembrey/param-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "pascal-case", + "typingsPackageName": "pascal-case", + "sourceRepoURL": "https://github.com/blakeembrey/pascal-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "passport-client-cert", + "typingsPackageName": "passport-client-cert", + "sourceRepoURL": "https://github.com/ripjar/passport-client-cert", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "path-case", + "typingsPackageName": "path-case", + "sourceRepoURL": "https://github.com/blakeembrey/path-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "path-to-regexp", + "typingsPackageName": "path-to-regexp", + "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", + "asOfVersion": "1.7.0" + }, + { + "libraryName": "perfect-scrollbar", + "typingsPackageName": "perfect-scrollbar", + "sourceRepoURL": "https://github.com/noraesae/perfect-scrollbar", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "pg-connection-string", + "typingsPackageName": "pg-connection-string", + "sourceRepoURL": "https://github.com/iceddev/pg-connection-string", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "pg-promise", + "typingsPackageName": "pg-promise", + "sourceRepoURL": "https://github.com/vitaly-t/pg-promise", + "asOfVersion": "5.4.3" + }, + { + "libraryName": "phonegap-plugin-push", + "typingsPackageName": "phonegap-plugin-push", + "sourceRepoURL": "https://github.com/phonegap/phonegap-plugin-push", + "asOfVersion": "2.1.2" + }, + { + "libraryName": "pixi-spine", + "typingsPackageName": "pixi-spine", + "sourceRepoURL": "https://github.com/pixijs/pixi-spine", + "asOfVersion": "1.4.2" + }, + { + "libraryName": "pkcs11js", + "typingsPackageName": "pkcs11js", + "sourceRepoURL": "https://github.com/PeculiarVentures/pkcs11js", + "asOfVersion": "1.0.4" + }, + { + "libraryName": "plottable", + "typingsPackageName": "plottable", + "sourceRepoURL": "http://plottablejs.org/", + "asOfVersion": "3.7.0" + }, + { + "libraryName": "poly2tri.js", + "typingsPackageName": "poly2tri", + "sourceRepoURL": "https://github.com/r3mi/poly2tri.js", + "asOfVersion": "1.4.0" + }, + { + "libraryName": "popper.js", + "typingsPackageName": "popper.js", + "sourceRepoURL": "https://github.com/FezVrasta/popper.js/", + "asOfVersion": "1.11.0" + }, + { + "libraryName": "Prando", + "typingsPackageName": "prando", + "sourceRepoURL": "https://github.com/zeh/prando", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "ProtoBuf.js", + "typingsPackageName": "protobufjs", + "sourceRepoURL": "https://github.com/dcodeIO/ProtoBuf.js", + "asOfVersion": "6.0.0" + }, + { + "libraryName": "Protractor", + "typingsPackageName": "protractor", + "sourceRepoURL": "https://github.com/angular/protractor", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "qiniu", + "typingsPackageName": "qiniu", + "sourceRepoURL": "https://github.com/qiniu/nodejs-sdk", + "asOfVersion": "7.0.1" + }, + { + "libraryName": "qrcode-generator", + "typingsPackageName": "qrcode-generator", + "sourceRepoURL": "https://github.com/kazuhikoarase/qrcode-generator", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "Raven JS", + "typingsPackageName": "raven-js", + "sourceRepoURL": "https://github.com/getsentry/raven-js", + "asOfVersion": "3.10.0" + }, + { + "libraryName": "raw-body", + "typingsPackageName": "raw-body", + "sourceRepoURL": "https://github.com/stream-utils/raw-body", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "react-chartjs-2", + "typingsPackageName": "react-chartjs-2", + "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", + "asOfVersion": "2.5.7" + }, + { + "libraryName": "react-day-picker", + "typingsPackageName": "react-day-picker", + "sourceRepoURL": "https://github.com/gpbl/react-day-picker", + "asOfVersion": "5.3.0" + }, + { + "libraryName": "react-dnd", + "typingsPackageName": "react-dnd", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-dnd-html5-backend", + "typingsPackageName": "react-dnd-html5-backend", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-dnd-test-backend", + "typingsPackageName": "react-dnd-test-backend", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-flip-move", + "typingsPackageName": "react-flip-move", + "sourceRepoURL": "https://github.com/joshwcomeau/react-flip-move", + "asOfVersion": "2.9.12" + }, + { + "libraryName": "react-ga", + "typingsPackageName": "react-ga", + "sourceRepoURL": "https://github.com/react-ga/react-ga", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "react-i18next", + "typingsPackageName": "react-i18next", + "sourceRepoURL": "https://github.com/i18next/react-i18next", + "asOfVersion": "8.1.0" + }, + { + "libraryName": "react-monaco-editor", + "typingsPackageName": "react-monaco-editor", + "sourceRepoURL": "https://github.com/superRaytin/react-monaco-editor", + "asOfVersion": "0.16.0" + }, + { + "libraryName": "react-native-collapsible", + "typingsPackageName": "react-native-collapsible", + "sourceRepoURL": "https://github.com/oblador/react-native-collapsible", + "asOfVersion": "0.11.0" + }, + { + "libraryName": "react-native-elements", + "typingsPackageName": "react-native-elements", + "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", + "asOfVersion": "0.18.0" + }, + { + "libraryName": "react-native-goby", + "typingsPackageName": "react-native-goby", + "sourceRepoURL": "https://gitlab.com/MessageDream/react-native-goby", + "asOfVersion": "0.0.5" + }, + { + "libraryName": "react-native-google-analytics-bridge", + "typingsPackageName": "react-native-google-analytics-bridge", + "sourceRepoURL": "https://github.com/idehub/react-native-google-analytics-bridge", + "asOfVersion": "5.3.3" + }, + { + "libraryName": "react-native-linear-gradient", + "typingsPackageName": "react-native-linear-gradient", + "sourceRepoURL": "https://github.com/react-native-community/react-native-linear-gradient", + "asOfVersion": "2.4.0" + }, + { + "libraryName": "react-native-modal", + "typingsPackageName": "react-native-modal", + "sourceRepoURL": "https://github.com/react-native-community/react-native-modal", + "asOfVersion": "4.1.1" + }, + { + "libraryName": "react-native-navigation", + "typingsPackageName": "react-native-navigation", + "sourceRepoURL": "https://github.com/wix/react-native-navigation", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "react-split-pane", + "typingsPackageName": "react-split-pane", + "sourceRepoURL": "https://github.com/tomkp/react-split-pane", + "asOfVersion": "0.1.67" + }, + { + "libraryName": "react-svg", + "typingsPackageName": "react-svg", + "sourceRepoURL": "https://github.com/tanem/react-svg", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "realm", + "typingsPackageName": "realm", + "sourceRepoURL": "https://github.com/realm/realm-js", + "asOfVersion": "1.13.0" + }, + { + "libraryName": "Redux", + "typingsPackageName": "redux", + "sourceRepoURL": "https://github.com/reactjs/redux", + "asOfVersion": "3.6.0" + }, + { + "libraryName": "redux-batched-actions", + "typingsPackageName": "redux-batched-actions", + "sourceRepoURL": "https://github.com/tshelburne/redux-batched-actions", + "asOfVersion": "0.1.5" + }, + { + "libraryName": "redux-bootstrap", + "typingsPackageName": "redux-bootstrap", + "sourceRepoURL": "https://github.com/remojansen/redux-bootstrap", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "redux-devtools-extension", + "typingsPackageName": "redux-devtools-extension", + "sourceRepoURL": "https://github.com/zalmoxisus/redux-devtools-extension", + "asOfVersion": "2.13.2" + }, + { + "libraryName": "redux-little-router", + "typingsPackageName": "redux-little-router", + "sourceRepoURL": "https://github.com/FormidableLabs/redux-little-router", + "asOfVersion": "15.1.0" + }, + { + "libraryName": "redux-persist", + "typingsPackageName": "redux-persist", + "sourceRepoURL": "https://github.com/rt2zz/redux-persist", + "asOfVersion": "4.3.1" + }, + { + "libraryName": "redux-persist-transform-compress", + "typingsPackageName": "redux-persist-transform-compress", + "sourceRepoURL": "https://github.com/rt2zz/redux-persist-transform-compress", + "asOfVersion": "4.2.0" + }, + { + "libraryName": "redux-saga", + "typingsPackageName": "redux-saga", + "sourceRepoURL": "https://github.com/redux-saga/redux-saga", + "asOfVersion": "0.10.5" + }, + { + "libraryName": "redux-saga-routines", + "typingsPackageName": "redux-saga-routines", + "sourceRepoURL": "https://github.com/afitiskin/redux-saga-routines#readme", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "Redux Thunk", + "typingsPackageName": "redux-thunk", + "sourceRepoURL": "https://github.com/gaearon/redux-thunk", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "reflect-metadata", + "typingsPackageName": "reflect-metadata", + "sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators", + "asOfVersion": "0.1.0" + }, + { + "libraryName": "reselect", + "typingsPackageName": "reselect", + "sourceRepoURL": "https://github.com/rackt/reselect", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "rest-io", + "typingsPackageName": "rest-io", + "sourceRepoURL": "https://github.com/EnoF/rest-io", + "asOfVersion": "4.1.0" + }, + { + "libraryName": "rollup", + "typingsPackageName": "rollup", + "sourceRepoURL": "https://github.com/rollup/rollup", + "asOfVersion": "0.54.0" + }, + { + "libraryName": "route-recognizer", + "typingsPackageName": "route-recognizer", + "sourceRepoURL": "https://github.com/tildeio/route-recognizer", + "asOfVersion": "0.3.0" + }, + { + "libraryName": "router5", + "typingsPackageName": "router5", + "sourceRepoURL": "https://github.com/router5/router5", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "rrule", + "typingsPackageName": "rrule", + "sourceRepoURL": "https://github.com/jakubroztocil/rrule", + "asOfVersion": "2.2.9" + }, + { + "libraryName": "rvo2", + "typingsPackageName": "rvo2", + "sourceRepoURL": "https://github.com/TNOCS/rvo2", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "samchon", + "typingsPackageName": "samchon", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "2.0.22" + }, + { + "libraryName": "samchon-framework", + "typingsPackageName": "samchon-framework", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "2.0.21" + }, + { + "libraryName": "samchon-library", + "typingsPackageName": "samchon-library", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "0.1.0" + }, + { + "libraryName": "node-scanf", + "typingsPackageName": "scanf", + "sourceRepoURL": "https://github.com/Lellansin/node-scanf", + "asOfVersion": "0.7.3" + }, + { + "libraryName": "sendgrid", + "typingsPackageName": "sendgrid", + "sourceRepoURL": "https://github.com/sendgrid/sendgrid-nodejs", + "asOfVersion": "4.3.0" + }, + { + "libraryName": "sentence-case", + "typingsPackageName": "sentence-case", + "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "sharp-timer", + "typingsPackageName": "sharp-timer", + "sourceRepoURL": "https://github.com/afractal/SharpTimer", + "asOfVersion": "0.1.3" + }, + { + "libraryName": "Shopify Prime", + "typingsPackageName": "shopify-prime", + "sourceRepoURL": "https://github.com/nozzlegear/shopify-prime", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "should.js", + "typingsPackageName": "should", + "sourceRepoURL": "https://github.com/shouldjs/should.js", + "asOfVersion": "13.0.0" + }, + { + "libraryName": "SimpleSignal", + "typingsPackageName": "simplesignal", + "sourceRepoURL": "https://github.com/zeh/simplesignal", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "smooth-scrollbar", + "typingsPackageName": "smooth-scrollbar", + "sourceRepoURL": "https://github.com/idiotWu/smooth-scrollbar", + "asOfVersion": "8.2.5" + }, + { + "libraryName": "Smoothie Charts", + "typingsPackageName": "smoothie", + "sourceRepoURL": "https://github.com/joewalnes/smoothie", + "asOfVersion": "1.29.1" + }, + { + "libraryName": "snake-case", + "typingsPackageName": "snake-case", + "sourceRepoURL": "https://github.com/blakeembrey/snake-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "soap", + "typingsPackageName": "soap", + "sourceRepoURL": "https://www.npmjs.com/package/soap", + "asOfVersion": "0.21.0" + }, + { + "libraryName": "source-map", + "typingsPackageName": "source-map", + "sourceRepoURL": "https://github.com/mozilla/source-map", + "asOfVersion": "0.5.7" + }, + { + "libraryName": "Spin.js", + "typingsPackageName": "spin.js", + "sourceRepoURL": "http://fgnass.github.com/spin.js/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "spotify-web-api-js", + "typingsPackageName": "spotify-web-api-js", + "sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js", + "asOfVersion": "0.21.0" + }, + { + "libraryName": "ServiceStack Utils", + "typingsPackageName": "ss-utils", + "sourceRepoURL": "https://servicestack.net/", + "asOfVersion": "0.1.5" + }, + { + "libraryName": "striptags", + "typingsPackageName": "striptags", + "sourceRepoURL": "https://github.com/ericnorris/striptags", + "asOfVersion": "3.1.1" + }, + { + "libraryName": "Sugar", + "typingsPackageName": "sugar", + "sourceRepoURL": "https://github.com/andrewplummer/Sugar", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "survey-knockout", + "typingsPackageName": "survey-knockout", + "sourceRepoURL": "http://surveyjs.org/", + "asOfVersion": "0.10.0" + }, + { + "libraryName": "svg-pan-zoom", + "typingsPackageName": "svg-pan-zoom", + "sourceRepoURL": "https://github.com/ariutta/svg-pan-zoom", + "asOfVersion": "3.4.0" + }, + { + "libraryName": "svg.js", + "typingsPackageName": "svg.js", + "sourceRepoURL": "http://www.svgjs.com/", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "swap-case", + "typingsPackageName": "swap-case", + "sourceRepoURL": "https://github.com/blakeembrey/swap-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "SweetAlert", + "typingsPackageName": "sweetalert", + "sourceRepoURL": "https://github.com/t4t5/sweetalert/", + "asOfVersion": "2.0.4" + }, + { + "libraryName": "Tabris.js", + "typingsPackageName": "tabris", + "sourceRepoURL": "http://tabrisjs.com", + "asOfVersion": "1.8.0" + }, + { + "libraryName": "tcomb", + "typingsPackageName": "tcomb", + "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "timezonecomplete", + "typingsPackageName": "timezonecomplete", + "sourceRepoURL": "https://github.com/SpiritIT/timezonecomplete", + "asOfVersion": "5.5.0" + }, + { + "libraryName": "title-case", + "typingsPackageName": "title-case", + "sourceRepoURL": "https://github.com/blakeembrey/title-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "TsMonad", + "typingsPackageName": "tsmonad", + "sourceRepoURL": "https://github.com/cbowdon/TsMonad", + "asOfVersion": "0.5.0" + }, + { + "libraryName": "tstl", + "typingsPackageName": "tstl", + "sourceRepoURL": "https://github.com/samchon/tstl", + "asOfVersion": "1.5.7" + }, + { + "libraryName": "typed.js", + "typingsPackageName": "typed.js", + "sourceRepoURL": "https://github.com/mattboldt/typed.js", + "asOfVersion": "2.0.9" + }, + { + "libraryName": "TypeScript", + "typingsPackageName": "typescript", + "sourceRepoURL": "https://github.com/Microsoft/TypeScript", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "TypeScript", + "typingsPackageName": "typescript-services", + "sourceRepoURL": "https://github.com/Microsoft/TypeScript", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "uk.co.workingedge.phonegap.plugin.istablet", + "typingsPackageName": "uk.co.workingedge.phonegap.plugin.istablet", + "sourceRepoURL": "https://github.com/dpa99c/phonegap-istablet", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "typingsPackageName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "upper-case", + "typingsPackageName": "upper-case", + "sourceRepoURL": "https://github.com/blakeembrey/upper-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "upper-case-first", + "typingsPackageName": "upper-case-first", + "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "UUID.js", + "typingsPackageName": "uuidjs", + "sourceRepoURL": "https://github.com/LiosK/UUID.js", + "asOfVersion": "3.6.0" + }, + { + "libraryName": "Validate.js", + "typingsPackageName": "validate.js", + "sourceRepoURL": "https://github.com/ansman/validate.js", + "asOfVersion": "0.11.0" + }, + { + "libraryName": "vso-node-api", + "typingsPackageName": "vso-node-api", + "sourceRepoURL": "https://github.com/Microsoft/vso-node-api", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "vuejs", + "typingsPackageName": "vue", + "sourceRepoURL": "https://github.com/vuejs/vue", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "vue-i18n", + "typingsPackageName": "vue-i18n", + "sourceRepoURL": "https://github.com/kazupon/vue-i18n", + "asOfVersion": "7.0.0" + }, + { + "libraryName": "vue-router", + "typingsPackageName": "vue-router", + "sourceRepoURL": "https://github.com/vuejs/vue-router", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "webcola", + "typingsPackageName": "webcola", + "sourceRepoURL": "https://github.com/tgdwyer/WebCola", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "webgme", + "typingsPackageName": "webgme", + "sourceRepoURL": "https://webgme.org", + "asOfVersion": "2.11.0" + }, + { + "libraryName": "Webix UI", + "typingsPackageName": "webix", + "sourceRepoURL": "http://webix.com", + "asOfVersion": "5.1.1" + }, + { + "libraryName": "winston", + "typingsPackageName": "winston", + "sourceRepoURL": "https://github.com/winstonjs/winston.git", + "asOfVersion": "2.4.4" + }, + { + "libraryName": "wolfy87-eventemitter", + "typingsPackageName": "wolfy87-eventemitter", + "sourceRepoURL": "https://github.com/Wolfy87/EventEmitter", + "asOfVersion": "5.2.0" + }, + { + "libraryName": "wonder-commonlib", + "typingsPackageName": "wonder-commonlib", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-CommonLib", + "asOfVersion": "0.1.12" + }, + { + "libraryName": "wonder-frp", + "typingsPackageName": "wonder-frp", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", + "asOfVersion": "0.1.25" + }, + { + "libraryName": "x2js", + "typingsPackageName": "x2js", + "sourceRepoURL": "https://code.google.com/p/x2js/", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "xadesjs", + "typingsPackageName": "xadesjs", + "sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "xhr-mock", + "typingsPackageName": "xhr-mock", + "sourceRepoURL": "https://github.com/jameslnewell/xhr-mock#readme", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "xlsx", + "typingsPackageName": "xlsx", + "sourceRepoURL": "https://github.com/sheetjs/js-xlsx", + "asOfVersion": "0.0.36" + }, + { + "libraryName": "xml-js", + "typingsPackageName": "xml-js", + "sourceRepoURL": "https://github.com/nashwaan/xml-js", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "@xmpp/jid", + "typingsPackageName": "xmpp-jid", + "sourceRepoURL": "github.com/node-xmpp/node-xmpp/", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "xterm.js", + "typingsPackageName": "xterm", + "sourceRepoURL": "https://github.com/sourcelair/xterm.js/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "yFiles for HTML", + "typingsPackageName": "yfiles", + "sourceRepoURL": "none", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "zetapush-js", + "typingsPackageName": "zetapush-js", + "sourceRepoURL": "https://github.com/zetapush/zetapush-js", + "asOfVersion": "3.1.2" + }, + { + "libraryName": "Zone.js", + "typingsPackageName": "zone.js", + "sourceRepoURL": "https://github.com/angular/zone.js", + "asOfVersion": "0.5.12" + } + ] } diff --git a/types/mobx-cookie/index.d.ts b/types/mobx-cookie/index.d.ts deleted file mode 100644 index fbf3cc58fd..0000000000 --- a/types/mobx-cookie/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -// Type definitions for mobx-cookie 1.1 -// Project: https://github.com/will-stone/mobx-cookie#readme -// Definitions by: Duong Tran -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -import { CookieAttributes } from 'js-cookie'; - -declare class MobxCookie { - constructor(name: string, options?: CookieAttributes); - - get(): any; - set(value: any, options?: CookieAttributes): void; - remove(): void; -} - -export default MobxCookie; diff --git a/types/mobx-cookie/mobx-cookie-tests.ts b/types/mobx-cookie/mobx-cookie-tests.ts deleted file mode 100644 index 66965a9f31..0000000000 --- a/types/mobx-cookie/mobx-cookie-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -import MobxCookie from 'mobx-cookie'; - -// Declare a reactive mobx cookie that last for 20 days -const mobxCookie = new MobxCookie('TEST_MOBX_COOKIE', {expires: 20}); - -// Set a new value for the cookie that last for 10 days -mobxCookie.set('MY_VALUE', {expires: 10}); - -const cookieValue = mobxCookie.get(); - -mobxCookie.remove(); diff --git a/types/mobx-cookie/tsconfig.json b/types/mobx-cookie/tsconfig.json deleted file mode 100644 index 4222165feb..0000000000 --- a/types/mobx-cookie/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "mobx-cookie-tests.ts" - ] -} diff --git a/types/mobx-cookie/tslint.json b/types/mobx-cookie/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/mobx-cookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } From 42b78d41a11f4b1b93e578025286481ddd819d45 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 2 Nov 2018 02:34:35 -0400 Subject: [PATCH 113/213] Update types --- types/react-reconciler/index.d.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/types/react-reconciler/index.d.ts b/types/react-reconciler/index.d.ts index 3aa6a6189e..b303c22d81 100644 --- a/types/react-reconciler/index.d.ts +++ b/types/react-reconciler/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-reconciler 0.15 +// Type definitions for react-reconciler 0.16 // Project: https://reactjs.org/ // Definitions by: Nathan Bierema // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -33,7 +33,11 @@ declare namespace ReactReconciler { // Unique identifier of this child. key: null | string; - // The function/class/module associated with this fiber. + // The value of element.type which is used to preserve the identity during + // reconciliation of this child. + elementType: any, + + // The resolved function/class/ associated with this fiber. type: any; // The local state associated with this fiber. @@ -74,7 +78,7 @@ declare namespace ReactReconciler { firstContextDependency: ContextDependency | null; // Bitfield that describes properties about the fiber and its subtree. E.g. - // the AsyncMode flag indicates whether the subtree should be async-by- + // the ConcurrentMode flag indicates whether the subtree should be async-by- // default. When a fiber is created, it inherits the mode of its // parent. Additional flags can be set at creation time, but after that the // value should remain unchanged throughout the fiber's lifetime, particularly @@ -361,7 +365,7 @@ declare namespace ReactReconciler { ): ExpirationTime; createContainer( containerInfo: Container, - isAsync: boolean, + isConcurrent: boolean, hydrate: boolean, ): OpaqueRoot; updateContainer( @@ -458,10 +462,10 @@ declare namespace ReactReconciler { nextScheduledRoot: FiberRoot | null; } - // The following attributes are only used by interaction tracking builds. + // The following attributes are only used by interaction tracing builds. // They enable interactions to be associated with their async work, // And expose interaction metadata to the React DevTools Profiler plugin. - // Note that these attributes are only defined when the enableSchedulerTracking flag is enabled. + // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled. interface ProfilingOnlyFiberRootProperties { interactionThreadID: number; memoizedInteractions: Set; @@ -473,7 +477,7 @@ declare namespace ReactReconciler { // react-reconciler/ReactFiberScheduler interface Deadline { - timeRemaining: () => number; + timeRemaining(): number; didTimeout: boolean; } @@ -510,7 +514,7 @@ declare namespace ReactReconciler { lastCapturedEffect: Update | null; } - // schedule/Tracking + // scheduler/Tracing interface Interaction { __count: number; @@ -580,7 +584,9 @@ declare namespace ReactReconciler { | 13 | 14 | 15 - | 16; + | 16 + | 17 + | 18; } export = ReactReconciler; From a551a533cbf36a366ba8945fc981dd6e881f1ec3 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 2 Nov 2018 03:57:56 -0400 Subject: [PATCH 114/213] Fix --- types/react-reconciler/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-reconciler/index.d.ts b/types/react-reconciler/index.d.ts index b303c22d81..733cc10435 100644 --- a/types/react-reconciler/index.d.ts +++ b/types/react-reconciler/index.d.ts @@ -35,7 +35,7 @@ declare namespace ReactReconciler { // The value of element.type which is used to preserve the identity during // reconciliation of this child. - elementType: any, + elementType: any; // The resolved function/class/ associated with this fiber. type: any; From b3b5429cb3a01895fb2a14960a3740901dc9b527 Mon Sep 17 00:00:00 2001 From: georgeevans1995 Date: Fri, 2 Nov 2018 08:19:10 +0000 Subject: [PATCH 115/213] Add openDirection on single date range picker openDirection is missing as a prop for SingleDatePickerShape --- types/react-dates/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-dates/index.d.ts b/types/react-dates/index.d.ts index 20739d5918..05058b2ca9 100644 --- a/types/react-dates/index.d.ts +++ b/types/react-dates/index.d.ts @@ -181,6 +181,7 @@ declare namespace ReactDates { ) => string | JSX.Element, orientation?: OrientationShape, anchorDirection?: AnchorDirectionShape, + openDirection?: OpenDirectionShape, horizontalMargin?: number, withPortal?: boolean, withFullScreenPortal?: boolean, From 1e50bf2d44a6cc7513235c651f555192c45a9f4e Mon Sep 17 00:00:00 2001 From: Julian Strecker Date: Fri, 2 Nov 2018 10:26:41 +0100 Subject: [PATCH 116/213] Add screenSpacePanning to OrbitControls which should be there since https://github.com/mrdoob/three.js/commit/312e1b0cd29a859cb81964fcb68b31c3c0ee0914 --- types/three/index.d.ts | 1 + types/three/three-orbitcontrols.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/three/index.d.ts b/types/three/index.d.ts index 74ce9ac0ee..6530be5757 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -21,6 +21,7 @@ // Ethan Kay , // Methuselah96 // Dilip Ramirez +// Julian Strecker // Definitions: https://github.com//DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/three/three-orbitcontrols.d.ts b/types/three/three-orbitcontrols.d.ts index 1d4979217f..6d8627c6ad 100644 --- a/types/three/three-orbitcontrols.d.ts +++ b/types/three/three-orbitcontrols.d.ts @@ -32,6 +32,7 @@ export class OrbitControls { mouseButtons: {ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE;}; enableDamping: boolean; dampingFactor: number; + screenSpacePanning: boolean; rotateLeft(angle?: number): void; From a166be0294b608c61a2e6f351c9a4522a29038fb Mon Sep 17 00:00:00 2001 From: Benjamin Kniffler Date: Fri, 2 Nov 2018 11:14:28 +0100 Subject: [PATCH 117/213] Reach router div props --- types/reach__router/index.d.ts | 4 +++- types/reach__router/reach__router-tests.tsx | 14 +++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/types/reach__router/index.d.ts b/types/reach__router/index.d.ts index 60b1c6253e..ed3a6ff649 100644 --- a/types/reach__router/index.d.ts +++ b/types/reach__router/index.d.ts @@ -24,7 +24,9 @@ export interface History { navigate: NavigateFn; } -export class Router extends React.Component { } +export class Router extends React.Component< + RouterProps & React.HTMLProps +> {} export interface RouterProps { basepath?: string; diff --git a/types/reach__router/reach__router-tests.tsx b/types/reach__router/reach__router-tests.tsx index d279547fd2..a64e1ae70d 100644 --- a/types/reach__router/reach__router-tests.tsx +++ b/types/reach__router/reach__router-tests.tsx @@ -4,9 +4,9 @@ import { RouteComponentProps, Router, Redirect -} from "@reach/router"; -import * as React from "react"; -import { render } from "react-dom"; +} from '@reach/router'; +import * as React from 'react'; +import { render } from 'react-dom'; interface DashParams { id: string; @@ -21,7 +21,7 @@ const Dash = (props: RouteComponentProps) => ( const NotFound = (props: RouteComponentProps) =>
Route not found
; render( - + @@ -33,18 +33,18 @@ render( - + {context => ( <>
hostname is {context.location.hostname}
- )}
, - document.getElementById("app-root") + document.getElementById('app-root') ); From 6448efea6b05d28d3f77f36c7c9e161af18788ea Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 31 Oct 2018 16:40:37 -0600 Subject: [PATCH 118/213] =?UTF-8?q?feat:=20support=20WeakMap=E2=80=99s=20i?= =?UTF-8?q?n=20lodash=20memoize.Cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/lodash/common/common.d.ts | 8 ++++---- types/lodash/lodash-tests.ts | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/types/lodash/common/common.d.ts b/types/lodash/common/common.d.ts index 864450b1bd..554fe76668 100644 --- a/types/lodash/common/common.d.ts +++ b/types/lodash/common/common.d.ts @@ -127,21 +127,21 @@ declare module "../index" { * @param key The key of the value to remove. * @return Returns `true` if the entry was removed successfully, else `false`. */ - delete(key: string): boolean; + delete(key: any): boolean; /** * Gets the cached value for `key`. * @param key The key of the value to get. * @return Returns the cached value. */ - get(key: string): any; + get(key: any): any; /** * Checks if a cached value for `key` exists. * @param key The key of the entry to check. * @return Returns `true` if an entry for `key` exists, else `false`. */ - has(key: string): boolean; + has(key: any): boolean; /** * Sets `value` to `key` of the cache. @@ -154,7 +154,7 @@ declare module "../index" { /** * Removes all key-value entries from the map. */ - clear(): void; + clear?: () => void; } interface MapCacheConstructor { new (): MapCache; diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 0515136714..3ce044165a 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -3484,6 +3484,11 @@ fp.now(); // $ExpectType number // $ExpectType MapCache new _.memoize.Cache(); + _.memoize.Cache = WeakMap; + _.memoize.Cache = Map; + const memoizedFn = _.memoize(memoizeFn); + memoizedFn.cache = new WeakMap(); + memoizedFn.cache = new Map(); } // _.overArgs From 5e8e4d298b0ea95035883a823b95cc6ddece065d Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 2 Nov 2018 10:00:28 -0600 Subject: [PATCH 119/213] fix: patch bug in Typescript 2.9 version of WeakMap --- types/lodash/common/common.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/lodash/common/common.d.ts b/types/lodash/common/common.d.ts index 554fe76668..cbfc534652 100644 --- a/types/lodash/common/common.d.ts +++ b/types/lodash/common/common.d.ts @@ -149,7 +149,7 @@ declare module "../index" { * @param value The value to cache. * @return Returns the cache object. */ - set(key: string, value: any): Dictionary; + set(key: any, value: any): Dictionary; /** * Removes all key-value entries from the map. From 5503f4a7995d17f8de8dd6eb470414637a33108a Mon Sep 17 00:00:00 2001 From: Yipeng Zhao Date: Sat, 3 Nov 2018 01:40:39 +0800 Subject: [PATCH 120/213] [@types/react-infinite-scroller]update props getScrollParent --- types/react-infinite-scroller/index.d.ts | 7 ++++++- .../react-infinite-scroller-tests.tsx | 19 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/types/react-infinite-scroller/index.d.ts b/types/react-infinite-scroller/index.d.ts index 12388231ce..f0af24ac5e 100644 --- a/types/react-infinite-scroller/index.d.ts +++ b/types/react-infinite-scroller/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for react-infinite-scroller 1.0 +// Type definitions for react-infinite-scroller 1.2 // Project: https://github.com/CassetteRocks/react-infinite-scroller // Definitions by: Lauri Lavanti , // Piotr Srebniak // Brett Miller +// Yipeng Zhao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -62,6 +63,10 @@ declare namespace InfiniteScroll { * Loader component for indicating "loading more". */ loader?: React.ReactElement; + /** + * Override method to return a different scroll listener if it's not the immediate parent of InfiniteScroll. + */ + getScrollParent?(): HTMLElement | null; } class InfiniteScroll extends React.Component { getParentElement(elem?: HTMLElement | null): HTMLElement | undefined | null; diff --git a/types/react-infinite-scroller/react-infinite-scroller-tests.tsx b/types/react-infinite-scroller/react-infinite-scroller-tests.tsx index 8f08d576e6..eeb2214826 100644 --- a/types/react-infinite-scroller/react-infinite-scroller-tests.tsx +++ b/types/react-infinite-scroller/react-infinite-scroller-tests.tsx @@ -27,12 +27,29 @@ class Test2 extends React.Component { useCapture useWindow={false} > -
Test 1
+
Test 2
); } } +class Test3 extends React.Component { + inputRef = React.createRef(); + + render() { + return ( +
+ {}} + getScrollParent={() => this.inputRef.current} + > +
Test 3
+
+
+ ); + } +} + class InfiniteScrollOverride extends InfiniteScroll { getParentElement(el: HTMLElement) { if (document.getElementById("scroll-header")) { From 21709f6f4d8d7563606233c0f11274f5fbf99f34 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Fri, 2 Nov 2018 15:23:48 -0600 Subject: [PATCH 121/213] fix: changed return type of _.MapCache.prototype.set --- types/lodash/common/common.d.ts | 2 +- types/lodash/lodash-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/lodash/common/common.d.ts b/types/lodash/common/common.d.ts index cbfc534652..66dbafafb8 100644 --- a/types/lodash/common/common.d.ts +++ b/types/lodash/common/common.d.ts @@ -149,7 +149,7 @@ declare module "../index" { * @param value The value to cache. * @return Returns the cache object. */ - set(key: any, value: any): Dictionary; + set(key: any, value: any): this; /** * Removes all key-value entries from the map. diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 3ce044165a..4f7f229fe6 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -3467,7 +3467,7 @@ fp.now(); // $ExpectType number delete(key: string) { return true; }, get(key: string): any { return 1; }, has(key: string) { return true; }, - set(key: string, value: any): _.Dictionary { return {}; }, + set(key: string, value: any): _.MapCache { return this; }, clear() { }, }; From 3ea302328c1dc5fcc1c369226335053df99d2261 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Fri, 2 Nov 2018 16:02:46 -0700 Subject: [PATCH 122/213] office-js: Add ICalendar to AttachmentContentFormat enum --- types/office-js/index.d.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 105062a56e..2eaf9c5c7b 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -7376,7 +7376,12 @@ declare namespace Office { /** * The content of the attachment is returned as a string representing an .eml formatted file. */ - Eml = "eml" + Eml = "eml", + + /** + * The content of the attachment is returned as a string representing an .icalendar formatted file. + */ + ICalendar = "iCalendar" } /** * Specifies whether an attachment was added to or removed from an item. @@ -8574,8 +8579,13 @@ declare namespace Office { content: string; /** * The string format to use for an attachment's content. - * For file attachments, the formatting is a base64-encoded string. - * For item attachments that represent messages, the formatting is a string representing an .eml formatted file. + * + * For file attachments, the formatting is a base64-encoded string. + * + * For item attachments that represent messages, the formatting is a string representing an .eml formatted file. + * + * For item attachments that represent calendar items, the formatting is an .icalendar file. + * * For cloud attachments, the formatting is a URL string. */ format: Office.MailboxEnums.AttachmentContentFormat; From 98ead4be4b06b065662baad964d52f2ac4eef793 Mon Sep 17 00:00:00 2001 From: Henri Normak Date: Sun, 4 Nov 2018 21:20:06 +0200 Subject: [PATCH 123/213] Add types for mjml-react --- types/mjml-react/index.d.ts | 413 ++++++++++++++++++++++++++ types/mjml-react/mjml-react-tests.tsx | 40 +++ types/mjml-react/tsconfig.json | 24 ++ types/mjml-react/tslint.json | 1 + 4 files changed, 478 insertions(+) create mode 100644 types/mjml-react/index.d.ts create mode 100644 types/mjml-react/mjml-react-tests.tsx create mode 100644 types/mjml-react/tsconfig.json create mode 100644 types/mjml-react/tslint.json diff --git a/types/mjml-react/index.d.ts b/types/mjml-react/index.d.ts new file mode 100644 index 0000000000..6367d1d1ec --- /dev/null +++ b/types/mjml-react/index.d.ts @@ -0,0 +1,413 @@ +// Type definitions for mjml-react 1.0 +// Project: https://github.com/wix-incubator/mjml-react +// Definitions by: Henri Normak +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from 'react'; + +export namespace extensions { + class MjmlComment extends React.Component<{ children: string }> { } + class MjmlConditionalComment extends React.Component<{ children: string; condition: string }> { } + class MjmlTrackingPixel extends React.Component<{ src: string }> { } + class MjmlYahooStyle extends React.Component<{ children: string }> { } +} + +export namespace utils { + function namedEntityToHexCode(html: string): string; + function fixConditionalComment(html: string, havingContent: string, newCondition: string): string; + function useHttps(url?: string): string | undefined; + function toMobileFontSize(sizeWithUnit: string): number; + function addQueryParams(url: string, params: { [key: string]: any }): string; + + type TextAlignment = 'left' | 'right' | 'center' | 'justify' | 'inherit'; + function getTextAlign(value: string, fallback?: TextAlignment): TextAlignment; +} + +export function renderToMjml(email: React.ReactElement): string; + +export interface Mjml2HtmlOptions { + fonts?: { [key: string]: string }; + keepComments?: boolean; + beautify?: boolean; + minify?: boolean; + validationLevel?: 'strict' | 'soft' | 'skip'; + filePath?: string; +} + +export function render(email: React.ReactElement, options?: Mjml2HtmlOptions): { html: string; errors: Error[] }; + +// Components + +export interface RequiredChildrenProps { + children: React.ReactNode; +} + +export interface PaddingProps { + padding?: string | number; + paddingTop?: string | number; + paddingRight?: string | number; + paddingBottom?: string | number; + paddingLeft?: string | number; +} + +export interface BorderProps { + border?: string; + borderBottom?: string; + borderLeft?: string; + borderTop?: string; + borderRight?: string; + borderRadius?: string | number; +} + +export interface ClassNameProps { + cssClass?: string; +} + +export interface HrefProps { + href?: string; + target?: string; + rel?: string; +} + +// mjml +export interface MjmlProps { + lang?: string; + owa?: string; +} + +export class Mjml extends React.Component { } + +// mj-head +export class MjmlHead extends React.Component { } + +// mj-attributes +export class MjmlAttributes extends React.Component { } +export class MjmlAll extends React.Component<{ [key: string]: any; children?: React.ReactNode }> { } +export class MjmlClass extends React.Component<{ [key: string]: any; children?: React.ReactNode; name: string }> { } + +// mj-breakpoint +export interface MjmlBreakpointProps { + width?: string | number; +} + +export class MjmlBreakpoint extends React.Component { } + +// mj-body +export interface MjmlBodyProps { + width ?: number; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlBody extends React.Component { } + +// mj-font +export interface MjmlFontProps { + href?: string; + name?: string; +} + +export class MjmlFont extends React.Component { } + +// mj-preview +export class MjmlPreview extends React.Component<{ children: string }> { } + +// mj-style +export class MjmlStyle extends React.Component<{ children: string, inline?: boolean }> { } + +// mj-title +export class MjmlTitle extends React.Component<{ children: string }> { } + +// mj-accordion +export class MjmlAccordion extends React.Component { } + +export interface MjmlAccordionElementProps { + fontFamily?: string; + iconAlign?: string; + iconWrappedUrl?: string; + iconWrappedAlt?: string; + iconUnwrappedAlt?: string; + iconUnwrappedUrl?: string; + iconPosition?: 'left' | 'right'; + iconHeight?: string; + iconWidth?: string; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlAccordionElement extends React.Component { } + +export interface MjmlAccordionTextProps { + color?: React.CSSProperties['color']; + fontFamily?: string; + fontSize?: string | number; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlAccordionText extends React.Component { } + +export interface MjmlAccordionTitleProps { + color?: React.CSSProperties['color']; + backgroundColor?: React.CSSProperties['backgroundColor']; + fontFamily?: string; + fontSize?: string | number; +} + +export class MjmlAccordionTitle extends React.Component { } + +// mj-button +export interface MjmlButtonProps { + backgroundColor?: React.CSSProperties['backgroundColor']; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; + fontStyle?: string; + fontSize?: string | number; + fontWeight?: number; + fontFamily?: string; + color?: React.CSSProperties['color']; + textAlign?: React.CSSProperties['textAlign']; + textDecoration?: string; + textTransform?: string; + align?: string; + verticalAlign?: React.CSSProperties['verticalAlign']; + lineHeight?: string | number; + innerPadding?: string; + width?: string | number; + height?: string | number; +} + +export class MjmlButton extends React.Component { } + +// mj-carousel +export interface MjmlCarouselProps { + backgroundColor?: React.CSSProperties['backgroundColor']; + align?: string; + borderRadius?: string | number; + thumbnails?: 'hidden' | 'visible'; + tbBorder?: React.CSSProperties['border']; + tbBorderRadius?: React.CSSProperties['borderRadius']; + tbHoverBorderColor?: string; + tbSelectedBorderColor?: string; + tbWidth?: string; + leftIcon?: string; + rightIcon?: string; + iconWidth?: string; +} + +export class MjmlCarousel extends React.Component {} + +export interface MjmlCarouselImageProps { + src?: string; + thumbnailsSrc?: string; + alt?: string; + title?: string; +} + +export class MjmlCarouselImage extends React.Component { } + +// mj-carousel +export interface MjmlColumnProps { + width?: string | number; + verticalAlign?: React.CSSProperties['verticalAlign']; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlColumn extends React.Component { } + +// mj-divider +export interface MjmlDividerProps { + borderColor?: React.CSSProperties['borderColor']; + borderStyle?: React.CSSProperties['borderStyle']; + borderWidth?: string | number; + width?: string | number; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlDivider extends React.Component { } + +// mj-group +export interface MjmlGroupProps { + width?: string | number; + verticalAlign?: React.CSSProperties['verticalAlign']; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlGroup extends React.Component { } + +// mj-hero +export interface MjmlHeroProps { + width?: string | number; + height?: string | number; + mode?: 'fluid-height' | 'fixed-height'; + backgroundWidth?: string; + backgroundHeight?: string; + backgroundUrl?: string; + backgroundPosition?: React.CSSProperties['backgroundPosition']; + verticalAlign?: React.CSSProperties['verticalAlign']; + backgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlHero extends React.Component { } + +// mj-image +export interface MjmlImageProps { + containerBackgroundColor?: React.CSSProperties['backgroundColor']; + border?: React.CSSProperties['border']; + borderRadius?: string | number; + width?: string | number; + height?: string | number; + src?: string; + srcset?: string; + alt?: string; + align?: string; + title?: string; + fluidOnMobile?: string; +} + +export class MjmlImage extends React.Component { } + +// mj-navbar +export interface MjmlNavbarProps { + baseUrl?: string; + hamburger?: 'hamburger'; + align?: string; + icoOpen?: string; + icoClose?: string; + icoPadding?: string; + icoPaddingTop?: string; + icoPaddingRight?: string; + icoPaddingBottom?: string; + icoPaddingLeft?: string; + icoAlign?: string; + icoColor?: React.CSSProperties['color']; + icoFontSize?: string; + icoTextTransform?: string; + icoTextDecoration?: string; + icoLineHeight?: string; +} + +export class MjmlNavbar extends React.Component { } + +export interface MjmlNavbarLinkProps { + color?: React.CSSProperties['color']; + fontFamily?: string; + fontSize?: string | number; + fontStyle?: string; + fontWeight?: number; + lineHeight?: string | number; + textDecoration?: string; + textTransform?: string; +} + +export class MjmlNavbarLink extends React.Component { } + +// mj-raw +export class MjmlRaw extends React.Component { } + +// mj-section +export interface MjmlSectionProps { + fullWidth?: boolean; + backgroundColor?: React.CSSProperties['backgroundColor']; + backgroundUrl?: string; + backgroundRepeat?: React.CSSProperties['backgroundRepeat']; + backgroundSize?: React.CSSProperties['backgroundSize']; + verticalAlign?: React.CSSProperties['verticalAlign']; + textAlign?: React.CSSProperties['textAlign']; + direction?: 'ltr' | 'rtl'; +} + +export class MjmlSection extends React.Component { } + +// mj-social +export interface MjmlSocialProps { + borderRadius?: string | number; + fontFamily?: string; + fontSize?: string | number; + iconSize?: string; + iconHeight?: string; + lineHeight?: string | number; + mode?: 'vertical' | 'horizontal'; + textDecoration?: string; + align?: string; + color?: React.CSSProperties['color']; + innerPadding?: string; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlSocial extends React.Component { } + +export interface MjmlSocialElementProps { + borderRadius?: string | number; + backgroundColor?: React.CSSProperties['backgroundColor']; + fontFamily?: string; + fontSize?: string | number; + iconSize?: string; + iconHeight?: string; + lineHeight?: string | number; + mode?: 'vertical' | 'horizontal'; + textDecoration?: string; + align?: string; + color?: React.CSSProperties['color']; + name?: 'facebook' | 'facebook-noshare' | 'twitter' | 'twitter-noshare' | 'google' | 'google-noshare' | 'pinterest' | 'pinterest-noshare' | + 'linkedin' | 'linkedin-noshare' | 'tumblr' | 'tumblr-noshare' | 'xing' | 'xing-noshare' | + 'github' | 'instagram' | 'web' | 'snapchat' | 'youtube' | 'vimeo' | 'medium' | 'soundcloud' | 'dribbble'; + src?: string; + alt?: string; +} + +export class MjmlSocialElement extends React.Component { } + +// mj-spacer +export interface MjmlSpacerProps { + height?: string | number; + width?: string | number; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; + verticalAlign?: React.CSSProperties['verticalAlign']; +} + +export class MjmlSpacer extends React.Component { } + +// mj-table +export interface MjmlTableProps { + color?: React.CSSProperties['color']; + cellpadding?: string; + cellspacing?: string; + fontFamily?: string; + fontSize?: string | number; + fontStyle?: string; + lineHeight?: string | number; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; + width?: string | number; + tableLayout?: 'auto' | 'fixed' | 'initial' | 'inherit'; +} + +export class MjmlTable extends React.Component { } + +// mj-text +export interface MjmlTextProps { + color?: React.CSSProperties['color']; + fontFamily?: string; + fontSize?: string | number; + fontStyle?: string; + fontWeight?: number; + lineHeight?: string; + letterSpacing?: string; + height?: string | number; + textDecoration?: string; + textTransform?: string; + align?: string; + containerBackgroundColor?: React.CSSProperties['backgroundColor']; +} + +export class MjmlText extends React.Component { } + +// mj-wrapper +export interface MjmlWrapperProps { + fullWidth?: boolean; + backgroundColor?: React.CSSProperties['backgroundColor']; + backgroundUrl?: string; + backgroundRepeat?: React.CSSProperties['backgroundRepeat']; + backgroundSize?: React.CSSProperties['backgroundSize']; + verticalAlign?: React.CSSProperties['verticalAlign']; + textAlign?: React.CSSProperties['textAlign']; +} + +export class MjmlWrapper extends React.Component { } diff --git a/types/mjml-react/mjml-react-tests.tsx b/types/mjml-react/mjml-react-tests.tsx new file mode 100644 index 0000000000..7ff38e21f8 --- /dev/null +++ b/types/mjml-react/mjml-react-tests.tsx @@ -0,0 +1,40 @@ +import * as React from 'react'; +import { + render, + Mjml, + MjmlHead, + MjmlTitle, + MjmlPreview, + MjmlBody, + MjmlSection, + MjmlColumn, + MjmlButton, + MjmlImage +} from 'mjml-react'; + +function renderOutTestEmail() { + // $ExpectType { html: string; errors: Error[]; } + const result = render(( + + + Last Minute Offer + Last Minute Offer... + + + + + + + + + + + + I like it! + + + + + + ), { validationLevel: 'soft' }); +} diff --git a/types/mjml-react/tsconfig.json b/types/mjml-react/tsconfig.json new file mode 100644 index 0000000000..11cabc646f --- /dev/null +++ b/types/mjml-react/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "jsx": "react", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts", + "mjml-react-tests.tsx" + ] +} diff --git a/types/mjml-react/tslint.json b/types/mjml-react/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/mjml-react/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 23a68fa4d7712f9f97a1a5e24d7b27334959854f Mon Sep 17 00:00:00 2001 From: Christian Scott Date: Mon, 5 Nov 2018 11:06:04 +1300 Subject: [PATCH 124/213] update kdbush types --- types/kdbush/index.d.ts | 17 +++++++++++++++-- types/kdbush/kdbush-tests.ts | 17 +++++++++++++---- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/types/kdbush/index.d.ts b/types/kdbush/index.d.ts index 3ef758b85e..bea0366da0 100644 --- a/types/kdbush/index.d.ts +++ b/types/kdbush/index.d.ts @@ -1,14 +1,27 @@ // Type definitions for kdbush 1.0 // Project: https://github.com/mourner/kdbush // Definitions by: DenisCarriere +// Christian Scott // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type Points = number[][]; type Get = (point: T) => number; -type ArrayType = typeof Int32Array | typeof Array; +type ArrayType = + typeof Int8Array + | typeof Int16Array + | typeof Int32Array + | typeof Float32Array + | typeof Float64Array + | typeof Array; declare function kdbush(points: Points): kdbush.KDBush; -declare function kdbush(points: T[], getX: Get, getY: Get, nodeSize?: number, ArrayType?: ArrayType): kdbush.KDBush; +declare function kdbush( + points: T[], + getX: Get, + getY: Get, + nodeSize?: number, + ArrayType?: ArrayType +): kdbush.KDBush; declare namespace kdbush { class KDBush { ids: number[]; diff --git a/types/kdbush/kdbush-tests.ts b/types/kdbush/kdbush-tests.ts index e552af4c19..5ee6165fcb 100644 --- a/types/kdbush/kdbush-tests.ts +++ b/types/kdbush/kdbush-tests.ts @@ -1,10 +1,19 @@ -import * as kdbush from 'kdbush'; -import { KDBush } from 'kdbush'; +import * as kdbush from "kdbush"; +import { KDBush } from "kdbush"; // API const points = [[110, 60], [130, 40]]; const index = kdbush(points); +// Specify array constructor +const pick = (index: number) => (point: number[]) => point[index]; +kdbush(points, pick(0), pick(1), 64, Int8Array); +kdbush(points, pick(0), pick(1), 64, Int16Array); +kdbush(points, pick(0), pick(1), 64, Int32Array); +kdbush(points, pick(0), pick(1), 64, Float32Array); +kdbush(points, pick(0), pick(1), 64, Float64Array); +kdbush(points, pick(0), pick(1), 64, Array); + // properties index.nodeSize; index.points; @@ -20,8 +29,8 @@ index.within(10, 10, 5); index.within(10, 10, 5).map(id => points[id]); // custom points (object) -const xy = [{x: 110, y: 60}, {x: 130, y: 40}]; -const index2: KDBush<{x: number, y: number}> = kdbush(xy, p => p.x, p => p.y); +const xy = [{ x: 110, y: 60 }, { x: 130, y: 40 }]; +const index2: KDBush<{ x: number; y: number }> = kdbush(xy, p => p.x, p => p.y); index2.points[0].x; index2.points[0].y; index2.points.map(p => [p.x, p.y]); From a0298813602f7e7ca9163a31ed050a1824753037 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Mon, 5 Nov 2018 01:46:56 -0800 Subject: [PATCH 125/213] update based on feedback --- types/office-js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 2eaf9c5c7b..2cc58260d5 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -8584,7 +8584,7 @@ declare namespace Office { * * For item attachments that represent messages, the formatting is a string representing an .eml formatted file. * - * For item attachments that represent calendar items, the formatting is an .icalendar file. + * For item attachments that represent calendar items, the formatting is a string representing an .icalendar file. * * For cloud attachments, the formatting is a URL string. */ From 01b5758508e91d54ac53146d5a6fe0245584258f Mon Sep 17 00:00:00 2001 From: Kevin Gonnord Date: Mon, 5 Nov 2018 11:03:11 +0100 Subject: [PATCH 126/213] fix version number + extra space in header --- types/jspdf/index.d.ts | 6 +++--- types/jspdf/tslint.json | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/types/jspdf/index.d.ts b/types/jspdf/index.d.ts index 9324717904..15b9975472 100644 --- a/types/jspdf/index.d.ts +++ b/types/jspdf/index.d.ts @@ -1,7 +1,7 @@ -// Type definitions for jsPDF v1.1.136 +// Type definitions for jsPDF 1.2 // Project: https://github.com/MrRio/jsPDF -// Definitions by: Amber Schühmacher -// Kevin Gonnord +// Definitions by: Amber Schühmacher +// Kevin Gonnord // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'jspdf' { diff --git a/types/jspdf/tslint.json b/types/jspdf/tslint.json index a41bf5d19a..a0357daa61 100644 --- a/types/jspdf/tslint.json +++ b/types/jspdf/tslint.json @@ -7,7 +7,6 @@ "ban-types": false, "callable-types": false, "comment-format": false, - "dt-header": false, "eofline": false, "export-just-namespace": false, "import-spacing": false, From d360dc99596a6869417739617a2f9b7052b11316 Mon Sep 17 00:00:00 2001 From: Nikolaj Kappler Date: Mon, 5 Nov 2018 11:25:49 +0100 Subject: [PATCH 127/213] [CodeMirror] add type defs for comment addon. workstream: --- types/codemirror/codemirror-comment.d.ts | 47 ++++++++++++++++++++++++ types/codemirror/test/comment.ts | 16 ++++++++ types/codemirror/tsconfig.json | 4 +- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 types/codemirror/codemirror-comment.d.ts create mode 100644 types/codemirror/test/comment.ts diff --git a/types/codemirror/codemirror-comment.d.ts b/types/codemirror/codemirror-comment.d.ts new file mode 100644 index 0000000000..50c964ba3d --- /dev/null +++ b/types/codemirror/codemirror-comment.d.ts @@ -0,0 +1,47 @@ +// Type definitions for CodeMirror +// Project: https://github.com/marijnh/CodeMirror +// Definitions by: Nikolaj Kappler +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// See docs https://codemirror.net/doc/manual.html#addon_comment + +// Todo: add 'toggleComment' command, once command type definitions exist in main definitions + +import * as CodeMirror from "codemirror"; + +declare module "codemirror" { + + interface Editor { + /** Tries to uncomment the current selection, and if that fails, line-comments it. */ + toggleComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + /** Set the lines in the given range to be line comments. Will fall back to `blockComment` when no line comment style is defined for the mode. */ + lineComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + /** Wrap the code in the given range in a block comment. Will fall back to `lineComment` when no block comment style is defined for the mode. */ + blockComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + /** Try to uncomment the given range. Returns `true` if a comment range was found and removed, `false` otherwise. */ + uncomment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): boolean; + } + + interface CommentOptions { + /** Override the [comment string properties](https://codemirror.net/doc/manual.html#mode_comment) of the mode with custom comment strings. */ + blockCommentStart?: string; + /** Override the [comment string properties](https://codemirror.net/doc/manual.html#mode_comment) of the mode with custom comment strings. */ + blockCommentEnd?: string; + /** Override the [comment string properties](https://codemirror.net/doc/manual.html#mode_comment) of the mode with custom comment strings. */ + blockCommentLead?: string; + /** Override the [comment string properties](https://codemirror.net/doc/manual.html#mode_comment) of the mode with custom comment strings. */ + lineComment?: string; + /** A string that will be inserted after opening and leading markers, and before closing comment markers. Defaults to a single space. */ + padding?: string; + /** Whether, when adding line comments, to also comment lines that contain only whitespace. */ + commentBlankLines?: boolean; + /** When adding line comments and this is turned on, it will align the comment block to the current indentation of the first line of the block. */ + indent?: boolean; + /** When block commenting, this controls whether the whole lines are indented, or only the precise range that is given. Defaults to `true`. */ + fullLines?: boolean; + } +} + +declare module "codemirror/addon/comment/comment" { + export = CodeMirror; +} diff --git a/types/codemirror/test/comment.ts b/types/codemirror/test/comment.ts new file mode 100644 index 0000000000..3f0fb0b663 --- /dev/null +++ b/types/codemirror/test/comment.ts @@ -0,0 +1,16 @@ +const editor = CodeMirror(document.body); +const position: CodeMirror.Position = { ch: 0, line: 0 }; +const opt: CodeMirror.CommentOptions = { + blockCommentEnd: "*/", + blockCommentStart: "/*", + blockCommentLead: "*", + commentBlankLines: true, + fullLines: true, + indent: true, + lineComment: "//", + padding: " " +}; +editor.toggleComment(position, position, opt); +editor.blockComment(position, position, opt); +editor.lineComment(position, position, opt); +const b: boolean = editor.uncomment(position, position, opt); diff --git a/types/codemirror/tsconfig.json b/types/codemirror/tsconfig.json index 79d2eae5c3..d081586f6e 100644 --- a/types/codemirror/tsconfig.json +++ b/types/codemirror/tsconfig.json @@ -23,12 +23,14 @@ "codemirror-panel.d.ts", "codemirror-runmode.d.ts", "codemirror-showhint.d.ts", + "codemirror-comment.d.ts", "searchcursor.d.ts", "test/index.ts", "test/matchbrackets.ts", "test/panel.ts", "test/runmode.ts", "test/searchcursor.ts", - "test/showhint.ts" + "test/showhint.ts", + "test/comment.ts" ] } \ No newline at end of file From eeb04fa55a9a631354ffd4f78ddc69dd364ceeb6 Mon Sep 17 00:00:00 2001 From: Alexandre Ferrando Date: Mon, 5 Nov 2018 11:44:10 +0100 Subject: [PATCH 128/213] sonic-boom.reopen file descriptor should be optional --- types/sonic-boom/index.d.ts | 2 +- types/sonic-boom/sonic-boom-tests.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/sonic-boom/index.d.ts b/types/sonic-boom/index.d.ts index 292770bd0d..0ae54bc997 100644 --- a/types/sonic-boom/index.d.ts +++ b/types/sonic-boom/index.d.ts @@ -31,7 +31,7 @@ declare class SonicBoom extends EventEmitter { /** * Reopen the file in place, useful for log rotation. */ - reopen(file: string): void; + reopen(fileDescriptor?: string | number): void; /** * Flushes the buffered data synchronously. This is a costly operation. diff --git a/types/sonic-boom/sonic-boom-tests.ts b/types/sonic-boom/sonic-boom-tests.ts index a3beb06d0c..4ed8e1bee5 100644 --- a/types/sonic-boom/sonic-boom-tests.ts +++ b/types/sonic-boom/sonic-boom-tests.ts @@ -7,6 +7,8 @@ sonic.flush(); sonic.flushSync(); +sonic.reopen(); + sonic.end(); sonic.destroy(); From 4e02e69b25f3bab6c895601399facdd560c49f58 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Mon, 5 Nov 2018 11:01:24 +0000 Subject: [PATCH 129/213] Additional feedback --- types/slate-react/index.d.ts | 6 +++--- types/slate/index.d.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/types/slate-react/index.d.ts b/types/slate-react/index.d.ts index 140d9f747d..edcc529dbe 100644 --- a/types/slate-react/index.d.ts +++ b/types/slate-react/index.d.ts @@ -120,6 +120,9 @@ export class Editor extends React.Component { stack: Stack; readonly plugins: Plugin[]; + readonly operations: Immutable.List; + readonly readOnly: boolean; + readonly value: Value; // Instance Methods applyOperation(...args: any[]): Controller; @@ -127,12 +130,9 @@ export class Editor extends React.Component { command(...args: any[]): Controller; focus(): void; normalize(...args: any[]): Controller; - operations(): Operations; query(...args: any[]): Controller; - readOnly(): boolean; resolveController(plugins: Plugin[], schema: Schema, commands: any[], queries: any[]): void; run(...args: any[]): any; - value(): Value; withoutNormalizing(...args: any[]): Controller; } diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index d4d12d376a..3ea0d97817 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1074,7 +1074,6 @@ export class Editor { flush(): Editor; command(name: string, ...args: any[]): void; - event(handler: string, event: Event | SyntheticEvent): void; query(query: string, ...args: any[]): any; /** From d6cd9f321a99681135aa1e4a720389e3af748e0a Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Mon, 5 Nov 2018 11:06:50 +0000 Subject: [PATCH 130/213] Remove uneeded test --- types/slate/slate-tests.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 98c0758c21..8466784bf8 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -38,7 +38,6 @@ editor.setReadOnly(true).setValue(value); editor.command("testCommand"); editor.query("testQuery"); editor.run("testCommand"); -editor.event("mouseDown", new Event("mouseDown")); // Test all editor commands editor From 1e788994d0404f503e1b99a2ebdeb0b3eabf4ee0 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Mon, 5 Nov 2018 20:44:27 +0800 Subject: [PATCH 131/213] change Color constructor --- types/three/three-core.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index e9903ba4fd..f47655416e 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -3278,9 +3278,7 @@ export interface HSL { * @see src/math/Color.js */ export class Color { - constructor(color?: Color); - constructor(color?: string); - constructor(color?: number); + constructor(color?: Color|string|number); constructor(r: number, g: number, b: number); /** From 396819ef8ca2b34d9d02e8a2757fa3c307d8fc12 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Mon, 5 Nov 2018 21:00:06 +0800 Subject: [PATCH 132/213] Update three-fbxloader.d.ts add animation for result value --- types/three/three-fbxloader.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/three/three-fbxloader.d.ts b/types/three/three-fbxloader.d.ts index 5175a6683f..fdd4416a67 100644 --- a/types/three/three-fbxloader.d.ts +++ b/types/three/three-fbxloader.d.ts @@ -3,12 +3,15 @@ import { LoadingManager } from "./three-core"; import {Group} from "./three-core"; +interface ILoadedModel extends Group { + animations?: AnimationClip[]; +} export class FBXLoader { constructor(manager?: LoadingManager); manager: LoadingManager; - load(url: string, onLoad: (group: Group) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; + load(url: string, onLoad: (group: ILoadedModel) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; parse(FBXText: string, resourceDirectory: string) : Group; -} \ No newline at end of file +} From 136996334c100595322ad7e450f99264dfa21574 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Mon, 5 Nov 2018 21:04:35 +0800 Subject: [PATCH 133/213] Update three-fbxloader.d.ts fix error --- types/three/three-fbxloader.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/three/three-fbxloader.d.ts b/types/three/three-fbxloader.d.ts index fdd4416a67..7ba088cbf7 100644 --- a/types/three/three-fbxloader.d.ts +++ b/types/three/three-fbxloader.d.ts @@ -1,7 +1,7 @@ // https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/FBXLoader.js import { LoadingManager } from "./three-core"; -import {Group} from "./three-core"; +import { AnimationClip, Group } from "./three-core"; interface ILoadedModel extends Group { animations?: AnimationClip[]; From 9dc89bd8cb9ae1b604f00fea8b819580895f4168 Mon Sep 17 00:00:00 2001 From: Nikolaj Kappler Date: Mon, 5 Nov 2018 14:46:05 +0100 Subject: [PATCH 134/213] fix unecessary 'CodeMirror.' prefix for Position Interface workstream: --- types/codemirror/codemirror-comment.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/codemirror/codemirror-comment.d.ts b/types/codemirror/codemirror-comment.d.ts index 50c964ba3d..e92935ef00 100644 --- a/types/codemirror/codemirror-comment.d.ts +++ b/types/codemirror/codemirror-comment.d.ts @@ -13,13 +13,13 @@ declare module "codemirror" { interface Editor { /** Tries to uncomment the current selection, and if that fails, line-comments it. */ - toggleComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + toggleComment(from: Position, to: Position, options?: CommentOptions): void; /** Set the lines in the given range to be line comments. Will fall back to `blockComment` when no line comment style is defined for the mode. */ - lineComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + lineComment(from: Position, to: Position, options?: CommentOptions): void; /** Wrap the code in the given range in a block comment. Will fall back to `lineComment` when no block comment style is defined for the mode. */ - blockComment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): void; + blockComment(from: Position, to: Position, options?: CommentOptions): void; /** Try to uncomment the given range. Returns `true` if a comment range was found and removed, `false` otherwise. */ - uncomment(from: CodeMirror.Position, to: CodeMirror.Position, options?: CommentOptions): boolean; + uncomment(from: Position, to: Position, options?: CommentOptions): boolean; } interface CommentOptions { From 295fefafaf639ac1743c86c7201f2387be379aee Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Mon, 5 Nov 2018 15:43:06 +0100 Subject: [PATCH 135/213] Add types for smooth-scroll --- types/smooth-scroll/index.d.ts | 62 +++++++++++++++++++ types/smooth-scroll/package.json | 6 ++ .../test/smooth-scroll-global.test.ts | 34 ++++++++++ .../smooth-scroll/test/smooth-scroll.test.ts | 36 +++++++++++ types/smooth-scroll/tsconfig.json | 19 ++++++ types/smooth-scroll/tslint.json | 1 + 6 files changed, 158 insertions(+) create mode 100644 types/smooth-scroll/index.d.ts create mode 100644 types/smooth-scroll/package.json create mode 100644 types/smooth-scroll/test/smooth-scroll-global.test.ts create mode 100644 types/smooth-scroll/test/smooth-scroll.test.ts create mode 100644 types/smooth-scroll/tsconfig.json create mode 100644 types/smooth-scroll/tslint.json diff --git a/types/smooth-scroll/index.d.ts b/types/smooth-scroll/index.d.ts new file mode 100644 index 0000000000..a5aa54fd24 --- /dev/null +++ b/types/smooth-scroll/index.d.ts @@ -0,0 +1,62 @@ +// Type definitions for smooth-scroll 14.2 +// Project: https://github.com/cferdinandi/smooth-scroll +// Definitions by: Andrei Horodinca +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export as namespace SmoothScroll; + +export = SmoothScroll; + +declare namespace SmoothScroll { + type Easing = + | "Linear" + | "easeInQuad" + | "easeInCubic" + | "easeInQuart" + | "easeInQuint" + | "easeInOutQuad" + | "easeInOutCubic" + | "easeInOutQuart" + | "easeInOutQuint" + | "easeOutQuad" + | "easeOutCubic" + | "easeOutQuart" + | "easeOutQuint"; + + interface Options { + // Selectors + ignore?: string; + header?: string; + topOnEmptyHash?: boolean; + + // Speed & Easing + speed?: number; + clip?: boolean; + offset?: number | ((anchor?: Node | number, toggle?: Node) => number); + easing?: Easing; + customEasing?: (time: number) => number; + + // History + updateURL?: boolean; + popstate?: boolean; + + // Custom Events + emitEvents?: boolean; + } +} + +declare class SmoothScroll { + constructor(selector?: string, options?: SmoothScroll.Options); + + init(options?: SmoothScroll.Options): void; + + destroy(): void; + + animateScroll( + anchor: Node | number, + toggle?: Node, + options?: SmoothScroll.Options + ): void; + + cancelScroll(noEvent?: boolean): void; +} diff --git a/types/smooth-scroll/package.json b/types/smooth-scroll/package.json new file mode 100644 index 0000000000..2e88ca597e --- /dev/null +++ b/types/smooth-scroll/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "smooth-scroll": "^14.2.1" + } +} diff --git a/types/smooth-scroll/test/smooth-scroll-global.test.ts b/types/smooth-scroll/test/smooth-scroll-global.test.ts new file mode 100644 index 0000000000..b34568b993 --- /dev/null +++ b/types/smooth-scroll/test/smooth-scroll-global.test.ts @@ -0,0 +1,34 @@ +// Initialize and destroy SmoothScroll +const example1 = new SmoothScroll('a[href*="#"]', { + ignore: ".ignore", + header: '[data-scroll="header"]', + topOnEmptyHash: false, + speed: 1000, + clip: true, + offset: () => 10, + easing: "easeInCubic", + customEasing: () => 50, + updateURL: false, + popstate: false, + emitEvents: false +}); +example1.destroy(); + +// Scrolling to an anchor +const example2 = () => { + const scroll = new SmoothScroll(); + const anchor: Node = document.querySelector("#bazinga"); + scroll.animateScroll(anchor, null, { speed: 1000 }); +}; + +// Scrolling to a specific Y-position +const example3 = () => { + const scroll = new SmoothScroll('a[href*="#"]'); + scroll.animateScroll(750); +}; + +// Cancel scroll +const example4 = () => { + const scroll = new SmoothScroll(); + scroll.cancelScroll(); +}; diff --git a/types/smooth-scroll/test/smooth-scroll.test.ts b/types/smooth-scroll/test/smooth-scroll.test.ts new file mode 100644 index 0000000000..7db0b4cc2c --- /dev/null +++ b/types/smooth-scroll/test/smooth-scroll.test.ts @@ -0,0 +1,36 @@ +import * as SmoothScroll from "smooth-scroll"; + +// Initialize and destroy SmoothScroll +const example1 = new SmoothScroll('a[href*="#"]', { + ignore: ".ignore", + header: '[data-scroll="header"]', + topOnEmptyHash: false, + speed: 1000, + clip: true, + offset: () => 10, + easing: "easeInCubic", + customEasing: () => 50, + updateURL: false, + popstate: false, + emitEvents: false +}); +example1.destroy(); + +// Scrolling to an anchor +const example2 = () => { + const scroll = new SmoothScroll(); + const anchor: Node = document.querySelector("#bazinga"); + scroll.animateScroll(anchor, null, { speed: 1000 }); +}; + +// Scrolling to a specific Y-position +const example3 = () => { + const scroll = new SmoothScroll('a[href*="#"]'); + scroll.animateScroll(750); +}; + +// Cancel scroll +const example4 = () => { + const scroll = new SmoothScroll(); + scroll.cancelScroll(); +}; diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json new file mode 100644 index 0000000000..563ed576a9 --- /dev/null +++ b/types/smooth-scroll/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "test/smooth-scroll-global.test.ts", + "test/smooth-scroll.test.ts" + ] +} diff --git a/types/smooth-scroll/tslint.json b/types/smooth-scroll/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/smooth-scroll/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 0b67d27091874a2818872ce872be75c9435e161c Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Mon, 5 Nov 2018 15:45:39 +0100 Subject: [PATCH 136/213] Update types/smooth-scroll/tsconfig.json --- types/smooth-scroll/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index 563ed576a9..7f7cf35c9f 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -5,6 +5,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": ["../"], "types": [], From f9348a653c68a58fe420e52681a95a1e295b9ed2 Mon Sep 17 00:00:00 2001 From: Valentin Vetter Date: Mon, 5 Nov 2018 16:19:59 +0100 Subject: [PATCH 137/213] fix(nodegit): make parameters optional --- types/nodegit/repository.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index 20da9ce052..710c0531cd 100644 --- a/types/nodegit/repository.d.ts +++ b/types/nodegit/repository.d.ts @@ -78,7 +78,7 @@ export class Repository { /** * Creates a branch with the passed in name pointing to the commit */ - createBranch(name: string, commit: Commit | string | Oid, force: boolean): Promise; + createBranch(name: string, commit: Commit | string | Oid, force?: boolean): Promise; /** * Look up a refs's commit. */ @@ -175,7 +175,7 @@ export class Repository { * Fetches from all remotes. This is done in series due to deadlocking issues with fetching from many remotes that can happen. */ fetchAll(fetchOptions?: FetchOptions, callback?: Function): Promise; - mergeBranches(to: string | Reference, from: string | Reference, signature: Signature, mergePreference: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise; + mergeBranches(to: string | Reference, from: string | Reference, signature?: Signature, mergePreference?: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise; /** * Rebases a branch onto another branch */ From 514d334a540e4cc9b4ea079943655ac08c08d81f Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Mon, 5 Nov 2018 16:35:09 +0100 Subject: [PATCH 138/213] Remove package.json --- types/smooth-scroll/package.json | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 types/smooth-scroll/package.json diff --git a/types/smooth-scroll/package.json b/types/smooth-scroll/package.json deleted file mode 100644 index 2e88ca597e..0000000000 --- a/types/smooth-scroll/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "smooth-scroll": "^14.2.1" - } -} From 7c2ccbf62fbe6c1c94d7947223b2ee6b80d98931 Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Mon, 5 Nov 2018 16:46:21 +0100 Subject: [PATCH 139/213] Add dom lib --- types/smooth-scroll/index.d.ts | 11 ++++++++--- types/smooth-scroll/test/smooth-scroll-global.test.ts | 2 +- types/smooth-scroll/test/smooth-scroll.test.ts | 2 +- types/smooth-scroll/tsconfig.json | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/types/smooth-scroll/index.d.ts b/types/smooth-scroll/index.d.ts index a5aa54fd24..9a0b86696f 100644 --- a/types/smooth-scroll/index.d.ts +++ b/types/smooth-scroll/index.d.ts @@ -32,7 +32,12 @@ declare namespace SmoothScroll { // Speed & Easing speed?: number; clip?: boolean; - offset?: number | ((anchor?: Node | number, toggle?: Node) => number); + offset?: + | number + | (( + anchor?: Element | number | null, + toggle?: Element | null + ) => number); easing?: Easing; customEasing?: (time: number) => number; @@ -53,8 +58,8 @@ declare class SmoothScroll { destroy(): void; animateScroll( - anchor: Node | number, - toggle?: Node, + anchor: Element | number | null, + toggle?: Element | null, options?: SmoothScroll.Options ): void; diff --git a/types/smooth-scroll/test/smooth-scroll-global.test.ts b/types/smooth-scroll/test/smooth-scroll-global.test.ts index b34568b993..e230635f9e 100644 --- a/types/smooth-scroll/test/smooth-scroll-global.test.ts +++ b/types/smooth-scroll/test/smooth-scroll-global.test.ts @@ -17,7 +17,7 @@ example1.destroy(); // Scrolling to an anchor const example2 = () => { const scroll = new SmoothScroll(); - const anchor: Node = document.querySelector("#bazinga"); + const anchor = document.querySelector("#bazinga"); scroll.animateScroll(anchor, null, { speed: 1000 }); }; diff --git a/types/smooth-scroll/test/smooth-scroll.test.ts b/types/smooth-scroll/test/smooth-scroll.test.ts index 7db0b4cc2c..894790f744 100644 --- a/types/smooth-scroll/test/smooth-scroll.test.ts +++ b/types/smooth-scroll/test/smooth-scroll.test.ts @@ -19,7 +19,7 @@ example1.destroy(); // Scrolling to an anchor const example2 = () => { const scroll = new SmoothScroll(); - const anchor: Node = document.querySelector("#bazinga"); + const anchor = document.querySelector("#bazinga"); scroll.animateScroll(anchor, null, { speed: 1000 }); }; diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index 7f7cf35c9f..8d1fa8372b 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "lib": ["es6"], + "lib": ["es6", "dom"], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, From 34ea6caa86b3b2f9be4650997565696dddfd6609 Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Mon, 5 Nov 2018 16:53:13 +0100 Subject: [PATCH 140/213] Add TypeScript version --- types/smooth-scroll/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/smooth-scroll/index.d.ts b/types/smooth-scroll/index.d.ts index 9a0b86696f..87f90cc298 100644 --- a/types/smooth-scroll/index.d.ts +++ b/types/smooth-scroll/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/cferdinandi/smooth-scroll // Definitions by: Andrei Horodinca // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 export as namespace SmoothScroll; From e3e00a62c20807abf5d06d77f9a351d72ed50b8e Mon Sep 17 00:00:00 2001 From: Gordon Date: Mon, 5 Nov 2018 10:16:12 -0600 Subject: [PATCH 141/213] Add server.d.ts to react-instantsearch --- .../react-instantsearch-dom-tests.tsx | 68 ++++++++++++++++--- types/react-instantsearch-dom/server.d.ts | 14 ++++ types/react-instantsearch/server.d.ts | 1 + 3 files changed, 74 insertions(+), 9 deletions(-) create mode 100644 types/react-instantsearch-dom/server.d.ts create mode 100644 types/react-instantsearch/server.d.ts diff --git a/types/react-instantsearch-dom/react-instantsearch-dom-tests.tsx b/types/react-instantsearch-dom/react-instantsearch-dom-tests.tsx index 1e27e1d09f..6d9b7b55f8 100644 --- a/types/react-instantsearch-dom/react-instantsearch-dom-tests.tsx +++ b/types/react-instantsearch-dom/react-instantsearch-dom-tests.tsx @@ -204,12 +204,62 @@ import { Hit, connectRefinementList, connectMenu } from 'react-instantsearch-cor ; -// https://community.algolia.com/react-instantsearch/guide/Search_parameters.html - - - // widgets -; +() => { + // https://community.algolia.com/react-instantsearch/guide/Search_parameters.html + + + // widgets + ; +}; + +import { createInstantSearch } from 'react-instantsearch-dom/server'; +// import { createServer } from 'http'; +declare function createServer(handler: (req: any, res: any) => any): any; +import { renderToString } from 'react-dom/server'; + +() => { + // https://community.algolia.com/react-instantsearch/guide/Server-side_rendering.html + + // Now we create a dedicated `InstantSearch` component + const { InstantSearch, findResultsState } = createInstantSearch(); + + class App extends React.Component { + render() { + return ( + + + + + ); + } + } + + const server = createServer(async (req, res) => { + const searchState = {query: 'chair'}; + const resultsState = await findResultsState(App, {searchState}); + const appInitialState = {searchState, resultsState}; + const appAsString = renderToString(); + res.send( + ` + + + +

Awesome server-side rendered search

+ ${appAsString}
+ + + + ` + ); + }); +}; diff --git a/types/react-instantsearch-dom/server.d.ts b/types/react-instantsearch-dom/server.d.ts new file mode 100644 index 0000000000..b1ba930ace --- /dev/null +++ b/types/react-instantsearch-dom/server.d.ts @@ -0,0 +1,14 @@ +import * as React from 'react'; + +/** + * Creates a specialized root InstantSearch component. It accepts + * an algolia client and a specification of the root Element. + * @param defaultAlgoliaClient - a function that builds an Algolia client + * @returns an InstantSearch root + */ +export function createInstantSearch( + defaultAlgoliaClient?: (appId: string, apiKey: string, options: { _useRequestCache: boolean }) => object +): { + InstantSearch: React.ComponentClass; + findResultsState(App: React.ComponentType, props: any): Promise +}; diff --git a/types/react-instantsearch/server.d.ts b/types/react-instantsearch/server.d.ts new file mode 100644 index 0000000000..d8fb0d1a46 --- /dev/null +++ b/types/react-instantsearch/server.d.ts @@ -0,0 +1 @@ +export { createInstantSearch } from 'react-instantsearch-dom/server'; From 666f581e83528f0a546d0d5297aa39247d14cf2d Mon Sep 17 00:00:00 2001 From: Gordon Date: Mon, 5 Nov 2018 10:27:19 -0600 Subject: [PATCH 142/213] Add server.d.ts to files in tsconfig --- types/react-instantsearch-dom/tsconfig.json | 1 + types/react-instantsearch/tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/types/react-instantsearch-dom/tsconfig.json b/types/react-instantsearch-dom/tsconfig.json index 3a8fbf89ad..15ec605c21 100644 --- a/types/react-instantsearch-dom/tsconfig.json +++ b/types/react-instantsearch-dom/tsconfig.json @@ -20,6 +20,7 @@ }, "files": [ "index.d.ts", + "server.d.ts", "react-instantsearch-dom-tests.tsx" ] } diff --git a/types/react-instantsearch/tsconfig.json b/types/react-instantsearch/tsconfig.json index 9782cbd17e..79afa53442 100644 --- a/types/react-instantsearch/tsconfig.json +++ b/types/react-instantsearch/tsconfig.json @@ -21,6 +21,7 @@ "connectors.d.ts", "dom.d.ts", "native.d.ts", + "server.d.ts", "react-instantsearch-tests.tsx" ] } From 8996ccf8789076eebe761084462396447a2e7f9d Mon Sep 17 00:00:00 2001 From: Frithjof Winkelmann Date: Mon, 5 Nov 2018 17:43:30 +0100 Subject: [PATCH 143/213] Add types for rmc-drawer --- types/rmc-drawer/index.d.ts | 33 +++++++++++++++++++++++++++ types/rmc-drawer/rmc-drawer-tests.tsx | 19 +++++++++++++++ types/rmc-drawer/tsconfig.json | 25 ++++++++++++++++++++ types/rmc-drawer/tslint.json | 1 + 4 files changed, 78 insertions(+) create mode 100644 types/rmc-drawer/index.d.ts create mode 100644 types/rmc-drawer/rmc-drawer-tests.tsx create mode 100644 types/rmc-drawer/tsconfig.json create mode 100644 types/rmc-drawer/tslint.json diff --git a/types/rmc-drawer/index.d.ts b/types/rmc-drawer/index.d.ts new file mode 100644 index 0000000000..d45ec2a67a --- /dev/null +++ b/types/rmc-drawer/index.d.ts @@ -0,0 +1,33 @@ +// Type definitions for rmc-drawer 0.4 +// Project: https://github.com/react-component/m-drawer +// Definitions by: Frithjof Winkelmann +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import * as moment from "moment"; +import * as React from 'react'; + +interface DrawerProps { + className?: string; + prefixCls?: string; + children?: React.ReactNode | React.ReactNode[]; + style?: React.CSSProperties; + sidebarStyle?: React.CSSProperties; + contentStyle?: React.CSSProperties; + overlayStyle?: React.CSSProperties; + dragHandleStyle?: React.CSSProperties; + sidebar?: React.ReactNode; + onOpenChange?: (open: boolean, overlay?: { overlayClicked: boolean }) => void; + open?: boolean; + position?: 'left' | 'right' | 'top' | 'bottom'; + docked?: boolean; + transitions?: boolean; + touch?: boolean; + enableDragHandle?: boolean; + dragToggleDistance?: number; +} + +declare class Drawer extends React.Component> { +} + +export = Drawer; diff --git a/types/rmc-drawer/rmc-drawer-tests.tsx b/types/rmc-drawer/rmc-drawer-tests.tsx new file mode 100644 index 0000000000..95256785af --- /dev/null +++ b/types/rmc-drawer/rmc-drawer-tests.tsx @@ -0,0 +1,19 @@ +import Drawer from 'rmc-drawer'; +import * as React from 'react'; + +const sidebar = (
+

+ sidebar +

+

this is content!

+
); + +const drawer = {}}> +
+

React component

+ Testcontent +
+
; diff --git a/types/rmc-drawer/tsconfig.json b/types/rmc-drawer/tsconfig.json new file mode 100644 index 0000000000..35dc08b4ff --- /dev/null +++ b/types/rmc-drawer/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "rmc-drawer-tests.tsx" + ] +} diff --git a/types/rmc-drawer/tslint.json b/types/rmc-drawer/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/rmc-drawer/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 0b0ef526061664935053fc030973e4f14a3d6c68 Mon Sep 17 00:00:00 2001 From: Deadly0 Date: Mon, 5 Nov 2018 20:13:11 +0300 Subject: [PATCH 144/213] Improve Enum typing, add helpers. --- types/meteor-astronomy/index.d.ts | 21 +++++--- .../meteor-astronomy-tests.ts | 54 ++++++++++++++----- 2 files changed, 56 insertions(+), 19 deletions(-) diff --git a/types/meteor-astronomy/index.d.ts b/types/meteor-astronomy/index.d.ts index 2bef7e728c..7cfd2c7211 100644 --- a/types/meteor-astronomy/index.d.ts +++ b/types/meteor-astronomy/index.d.ts @@ -7,6 +7,11 @@ /// declare namespace MeteorAstronomy { + type NonFunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T]; // tslint:disable-line:ban-types + type NonFunctionProperties = Pick>; + type FunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T]; // tslint:disable-line:ban-types + type FunctionProperties = Pick>; + type TypeOptionsPrimitives = typeof String | typeof Date | typeof Boolean | typeof Object | typeof Number; type TypeOptions = TypeOptionsPrimitives | TypeOptionsPrimitives[] | Class | Enum; type MongoQuery = object | string; @@ -40,7 +45,11 @@ declare namespace MeteorAstronomy { type ModelField = ModelFullField | TypeOptions; type Fields = { - [P in keyof T]: ModelField; + [P in keyof NonFunctionProperties]: ModelField; + }; + + type Helpers = { + [P in keyof FunctionProperties]: (this: T, ...args: any) => any; }; interface ClassModel { @@ -53,7 +62,7 @@ declare namespace MeteorAstronomy { update: boolean, remove: boolean, } | boolean; - helpers?: object; + helpers?: Helpers; events?: object; meteorMethods?: object; indexes?: object; @@ -61,7 +70,7 @@ declare namespace MeteorAstronomy { interface EnumModel { name: string; - identifiers: T[] | object; + identifiers: string[] | T; } type Model = T & { @@ -92,10 +101,10 @@ declare namespace MeteorAstronomy { update(search: object | string, query: object, callback?: () => void): void; } - interface Enum { + type Enum = T & { getValues(): any[]; - getIdentifier(identifier: T): any; - } + getIdentifier(identifier: any): string; + }; } declare module 'meteor/jagi:astronomy' { // tslint:disable-line:no-single-declare-module diff --git a/types/meteor-astronomy/meteor-astronomy-tests.ts b/types/meteor-astronomy/meteor-astronomy-tests.ts index 871c02964b..59f0f99644 100644 --- a/types/meteor-astronomy/meteor-astronomy-tests.ts +++ b/types/meteor-astronomy/meteor-astronomy-tests.ts @@ -65,8 +65,11 @@ const UserProfile = Class.create({ interface UserInterface extends Meteor.User { address: object; + firstName: string; + lastName: string; phone: string; phoneNumber: string; + fullName: (param: string) => string; } const User = Class.create({ @@ -74,9 +77,11 @@ const User = Class.create({ collection: Meteor.users as Mongo.Collection, fields: { createdAt: Number, + firstName: String, + lastName: String, emails: { type: [Object], - default: () => [], + default: (): Meteor.UserEmail[] => [], }, profile: { type: UserProfile, @@ -91,10 +96,23 @@ const User = Class.create({ }, phone: { type: String, - resolve(doc) { + resolve(doc: UserInterface) { return doc.phoneNumber; + }, + }, + }, + helpers: { + fullName(param: string): string { + const fullName = `${this.firstName} ${this.lastName}`; + + if (param === 'lower') { + return fullName.toLowerCase(); + } else if (param === 'upper') { + return fullName.toUpperCase(); } - } + + return fullName; + }, }, indexes: { fullName: { // Index name. @@ -111,13 +129,16 @@ const user = User.findOne(); user.set({username: 'user1'}); user.save(); -enum IStatus { - OPENED, CLOSED, DONE, CANCELED +interface StatusInterface { + OPENED: number; + CLOSED: number; + DONE: number; + CANCELED: number; } -const Status = Enum.create({ +const Status = Enum.create({ name: 'Status', - identifiers: IStatus, + identifiers: ['OPENED', 'CLOSED', 'DONE', 'CANCELED'], }); const Issue = Class.create({ @@ -131,18 +152,25 @@ const Issue = Class.create({ Status.getValues(); // [0, 1, 2, 3] -const StatusBis = Enum.create({ +interface StatusBisInterface { + OPENED: string; + CLOSED: string; + DONE: string; + CANCELED: string; +} + +const StatusBis = Enum.create({ name: 'Status', identifiers: { - OPENED: 5, - CLOSED: null, - DONE: 15, - CANCELED: undefined + OPENED: 'OPENED', + CLOSED: 'CLOSED', + DONE: 'DONE', + CANCELED: 'CANCELED', } }); StatusBis.getValues(); // [5, 6, 15, 16] -const statusNumber = IStatus.OPENED; +const statusNumber = Status.OPENED; Status.getIdentifier(statusNumber); // "OPENED" From ca9a6163dd8e1813535d47749fc7bcbdb881730e Mon Sep 17 00:00:00 2001 From: Deadly0 Date: Mon, 5 Nov 2018 20:20:05 +0300 Subject: [PATCH 145/213] Fix ts version. --- types/meteor-astronomy/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/meteor-astronomy/index.d.ts b/types/meteor-astronomy/index.d.ts index 7cfd2c7211..485b1d9a39 100644 --- a/types/meteor-astronomy/index.d.ts +++ b/types/meteor-astronomy/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/jagi/meteor-astronomy/ // Definitions by: Igor Golovin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 +// TypeScript Version: 3.1 /// From d850bb85bac2f87da3ff4c2d193d4a881d5c48bd Mon Sep 17 00:00:00 2001 From: Deadly0 Date: Mon, 5 Nov 2018 20:25:51 +0300 Subject: [PATCH 146/213] Add package.json --- types/meteor-astronomy/index.d.ts | 1 - types/meteor-astronomy/package.json | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 types/meteor-astronomy/package.json diff --git a/types/meteor-astronomy/index.d.ts b/types/meteor-astronomy/index.d.ts index 485b1d9a39..5c5771cb9b 100644 --- a/types/meteor-astronomy/index.d.ts +++ b/types/meteor-astronomy/index.d.ts @@ -2,7 +2,6 @@ // Project: https://github.com/jagi/meteor-astronomy/ // Definitions by: Igor Golovin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.1 /// diff --git a/types/meteor-astronomy/package.json b/types/meteor-astronomy/package.json new file mode 100644 index 0000000000..9d81651687 --- /dev/null +++ b/types/meteor-astronomy/package.json @@ -0,0 +1,8 @@ +{ + "name": "meteor-astronomy", + "version": "2.6", + "types": "./index.d.ts", + "typesVersions": { + ">=3.1": { "*": ["ts3.1/*"] } + } +} From e295c455a5b03a8f35df1046046f920324790b26 Mon Sep 17 00:00:00 2001 From: Deadly0 Date: Mon, 5 Nov 2018 20:38:29 +0300 Subject: [PATCH 147/213] Back to ts 2.8 --- types/meteor-astronomy/index.d.ts | 3 ++- types/meteor-astronomy/package.json | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 types/meteor-astronomy/package.json diff --git a/types/meteor-astronomy/index.d.ts b/types/meteor-astronomy/index.d.ts index 5c5771cb9b..c17c1d1498 100644 --- a/types/meteor-astronomy/index.d.ts +++ b/types/meteor-astronomy/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/jagi/meteor-astronomy/ // Definitions by: Igor Golovin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 /// @@ -48,7 +49,7 @@ declare namespace MeteorAstronomy { }; type Helpers = { - [P in keyof FunctionProperties]: (this: T, ...args: any) => any; + [P in keyof FunctionProperties]: (this: T, ...args: any[]) => any; }; interface ClassModel { diff --git a/types/meteor-astronomy/package.json b/types/meteor-astronomy/package.json deleted file mode 100644 index 9d81651687..0000000000 --- a/types/meteor-astronomy/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "meteor-astronomy", - "version": "2.6", - "types": "./index.d.ts", - "typesVersions": { - ">=3.1": { "*": ["ts3.1/*"] } - } -} From 823a2e507d8f2e8e9a7af62186f67e9a771a71da Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 5 Nov 2018 10:49:36 -0800 Subject: [PATCH 148/213] d3-shape: Predeclare CanvasRenderingContext2D (#30284) --- types/d3-shape/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/d3-shape/index.d.ts b/types/d3-shape/index.d.ts index 83222d0ff0..6665e39e6a 100644 --- a/types/d3-shape/index.d.ts +++ b/types/d3-shape/index.d.ts @@ -7,6 +7,10 @@ import { Path } from 'd3-path'; +declare global { + interface CanvasRenderingContext2D {} // tslint:disable-line no-empty-interface +} + // ----------------------------------------------------------------------------------- // Shared Types and Interfaces // ----------------------------------------------------------------------------------- From 5c203c8c61e7d77baaa9594281b9ff2303bd8b86 Mon Sep 17 00:00:00 2001 From: denisname Date: Mon, 5 Nov 2018 19:49:54 +0100 Subject: [PATCH 149/213] d3-selection: Use $ExpectError (#29860) * Use $ExpectError * Small change Let's rerun the CI --- types/d3-selection/d3-selection-tests.ts | 236 +++++++++++++--------- types/d3-selection/index.d.ts | 5 +- types/react-native-svg-charts/tslint.json | 8 +- 3 files changed, 149 insertions(+), 100 deletions(-) diff --git a/types/d3-selection/d3-selection-tests.ts b/types/d3-selection/d3-selection-tests.ts index b99c81e39a..2262a89134 100644 --- a/types/d3-selection/d3-selection-tests.ts +++ b/types/d3-selection/d3-selection-tests.ts @@ -74,7 +74,8 @@ let body: d3Selection.Selection = // with Group element of type BaseType and datum of type 'any' The parent element is of type 'null' with datum of type 'undefined' const baseTypeEl2: d3Selection.Selection = d3Selection.select(baseTypeEl.node()); -// let body2: d3Selection.Selection = d3Selection.select(baseTypeEl.node()); // fails as baseTypeEl.node() is of type cannot be assigned to HTMLElement +// $ExpectError +const body2: d3Selection.Selection = d3Selection.select(baseTypeEl.node()); // fails as baseTypeEl.node() is of type cannot be assigned to HTMLElement const body3: d3Selection.Selection = d3Selection.select(body.node()!); // element types match, but datum is of type 'any' as it cannot be inferred from .node() @@ -86,18 +87,21 @@ const body4: d3Selection.Selection // Explicitly cast body.node() to HTMLBodyElement to narrow selection definition. const body5: d3Selection.Selection = d3Selection.select(body.node()!); -// d3Selection.select(baseTypeEl.node()!); // fails as baseTypeEl.node() is not of type HTMLBodyElement +// $ExpectError +d3Selection.select(baseTypeEl.node()!); // fails as baseTypeEl.node() is not of type HTMLBodyElement // test, when it is not certain, whether an element of the type to be selected exists let maybeSVG1: d3Selection.Selection; maybeSVG1 = d3Selection.select('svg'); let maybeSVG2: d3Selection.Selection; -// maybeSVG2 = d3Selection.select(maybeSVG1.node()); // fails with strict function types +// $ExpectError +maybeSVG2 = d3Selection.select(maybeSVG1.node()); // fails with strict function types maybeSVG2 = d3Selection.select(maybeSVG1.node()); // fails, as node type mismatches selection type -// let body7: d3Selection.Selection = d3Selection.select(maybeSVG1.node()); +// $ExpectError +const body7: d3Selection.Selection = d3Selection.select(maybeSVG1.node()); // test "special case DOM objects" @@ -127,7 +131,8 @@ const divElements: d3Selection.Selection = d3Selection.selectAll(baseTypeElements.nodes()); // fails, group elements types not of compatible for baseTypeElements -// let divElements2: d3Selection.Selection = d3Selection.selectAll(baseTypeElements.nodes()); +// $ExpectError +const divElements2: d3Selection.Selection = d3Selection.selectAll(baseTypeElements.nodes()); // element types match, but datum is of type 'any' as it cannot be inferred from .nodes() const divElements3: d3Selection.Selection = d3Selection.selectAll(divElements.nodes()); @@ -137,7 +142,8 @@ const divElements3: d3Selection.Selection const divElements4: d3Selection.Selection = d3Selection.selectAll(divElements.nodes()); -// d3Selection.selectAll(baseTypeElements.nodes()); // fails as baseTypeEl.node() is not of type HTMLBodyElement +// $ExpectError +d3Selection.selectAll(baseTypeElements.nodes()); // fails as baseTypeEl.node() is not of type HTMLBodyElement // selectAll(...) accepts NodeListOf<...> argument @@ -161,8 +167,8 @@ const documentLinks: d3Selection.Selection = d3Selection.select('svg'); let firstG: d3Selection.Selection = svgEl.select('g'); -// let firstG_2: d3Selection.Selection = svgEl.select('g'); // fails, parent element of selection does not change with .select(...) -// firstG = svgEl.select('g'); // fails, element type defaults to 'BaseType', but SVGGElement expected on left-hand side +// $ExpectError +const firstG_2: d3Selection.Selection = svgEl.select('g'); // fails, parent element of selection does not change with .select(...) // firstG = svgEl.select('svg'); // fails, element type of SVGSVGElement provided, but SVGGElement expected on left-hand side (silly test to begin with) // test, when it is not certain, whether an element of the type to be selected exists @@ -180,14 +186,16 @@ firstG = svgEl.select(svgGroupSelector); firstG = svgEl.select(function() { const that: SVGSVGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch console.log('Get Element width using "this": ', this.width.baseVal.value); // 'this' type is SVGSVGElement return this.querySelector('g')!; // this of type SVGSVGElement by type inference }); firstG = svgEl.select(function(d, i, g) { const that: SVGSVGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: SVGDatum = d; const index: number = i; const group: SVGSVGElement[] | d3Selection.ArrayLike = g; @@ -199,9 +207,10 @@ firstG = svgEl.select(function(d, i, g) { return this.querySelector('g')!; // this of type SVGSVGElement by type inference }); -// firstG = svgEl.select(function() { -// return this.querySelector('a'); // fails, return type HTMLAnchorElement is not compatible with SVGGElement expected by firstG -// }); +// $ExpectError +firstG = svgEl.select(function() { + return this.querySelector('a'); // fails, return type HTMLAnchorElement is not compatible with SVGGElement expected by firstG +}); // selectAll(...) sub-selection -------------------------------------------------------------- @@ -219,7 +228,6 @@ emptySubSelection = svgEl.selectAll(undefined); let elementsUnknownData: d3Selection.Selection = svgEl.selectAll('g'); // let elementsAndDataUnknown: d3Selection.Selection = svgEl.selectAll('g'); // fails with strictFunctionTypes let gElementsOldData: d3Selection.Selection = svgEl.selectAll('g'); -// gElementsOldData = svgEl.selectAll('g'); // fails default type parameters of selectAll for group element type and datum type do not match // Using selectAll(...) sub-selection with a selector function argument. @@ -232,18 +240,21 @@ gElementsOldData = svgEl.selectAll(svgGroupSelectorAll function wrongSvgGroupSelectorAll(this: HTMLElement, d: SVGDatum, i: number, groups: HTMLElement[]): NodeListOf { return this.querySelectorAll('g'); } -// gElementsOldData = svgEl.selectAll(wrongSvgGroupSelectorAll); // fails, wrong this context +// $ExpectError +gElementsOldData = svgEl.selectAll(wrongSvgGroupSelectorAll); // fails, wrong this context gElementsOldData = svgEl.selectAll(function() { const that: SVGSVGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch console.log('Get Element width using "this": ', this.width.baseVal.value); // 'this' type is SVGSVGElement return this.querySelectorAll('g'); // this of type SVGSVGElement by type inference }); gElementsOldData = svgEl.selectAll(function(d, i, g) { const that: SVGSVGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: SVGDatum = d; const index: number = i; const group: SVGSVGElement[] | d3Selection.ArrayLike = g; @@ -255,31 +266,32 @@ gElementsOldData = svgEl.selectAll(function(d, i, g) { return this.querySelectorAll('g'); }); -// gElementsOldData = svgEl.selectAll(function() { // fails, because Datum type is not compatible as selectAll defaults to 'any', but gElementsOldData expects CircleDatum -// return this.querySelectorAll('g'); -// }); - -// gElementsOldData = svgEl.selectAll(function() { // fails, return type HTMLAnchorElement is not compatible with SVGGElement expected by selectAll-typing -// return this.querySelectorAll('a'); -// }); +// $ExpectError +gElementsOldData = svgEl.selectAll(function() { // fails, return type HTMLAnchorElement is not compatible with SVGGElement expected by selectAll-typing + return this.querySelectorAll('a'); +}); elementsUnknownData = svgEl.selectAll(svgGroupSelectorAll); elementsUnknownData = svgEl.selectAll(function() { const that: SVGSVGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch console.log('Get Element width using "this": ', this.width.baseVal.value); // 'this' type is SVGSVGElement return this.querySelectorAll('g'); // this of type SVGSVGElement by type inference }); -// gElementsUnknownData = svgEl.selectAll(function() { // fails, return type HTMLAnchorElement is not compatible with SVGGElement -// return this.querySelectorAll('a'); -// }); +// $ExpectError +gElementsUnknownData = svgEl.selectAll(function() { // fails, return type HTMLAnchorElement is not compatible with SVGGElement + return this.querySelectorAll('a'); +}); maybeG.selectAll(function(d, i, g) { const that: SVGGElement | null = this; - // const that2: SVGGElement = this; // fails with strictNullChecks - // const that3: HTMLElement | null = this; // fails, type mismatch + // $ExpectError + const that2: SVGGElement = this; // fails with strictNullChecks + // $ExpectError + const that3: HTMLElement | null = this; // fails, type mismatch const datum: SVGDatum = d; const index: number = i; const group: Array | d3Selection.ArrayLike = g; @@ -290,11 +302,13 @@ maybeG.selectAll(function(d, i, g) { // selector(...) and selectorAll(...) ---------------------------------------------------- -// d3Selection.select(d3Selection.selector('g')); // fails, selector as argument to top-level select not supported +// $ExpectError +d3Selection.select(d3Selection.selector('g')); // fails, selector as argument to top-level select not supported // supported on sub-selection firstG = svgEl.select(d3Selection.selector('g')); // type parameter of select(...) inferred -// firstG = svgEl.select(d3Selection.selector('div')); // fails, select and selector mismatch +// $ExpectError +firstG = svgEl.select(d3Selection.selector('div')); // fails, select and selector mismatch gElementsOldData = svgEl.selectAll(d3Selection.selectorAll('g')); @@ -308,7 +322,8 @@ filteredGElements = gElementsOldData.filter('.top-level'); filteredGElements = gElementsOldData.filter(function(d, i, g) { const that: SVGGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatum = d; const index: number = i; const group: SVGGElement[] | d3Selection.ArrayLike = g; @@ -325,16 +340,18 @@ filteredGElements = gElementsOldData.filter(function(d, i, g) { let filteredGElements2: d3Selection.Selection; filteredGElements2 = d3Selection.selectAll('.any-svg-type').filter('g'); -// filteredGElements2 = d3Selection.selectAll('.any-type').filter('g'); // fails without using narrowing generic on filter method +// $ExpectError +filteredGElements2 = d3Selection.selectAll('.any-type').filter('g'); // fails without using narrowing generic on filter method filteredGElements2 = d3Selection.selectAll('.any-svg-type').filter(function() { const that: SVGElement = this; return that.tagName === 'g' || that.tagName === 'G'; }); -// filteredGElements2 = d3Selection.selectAll('.any-svg-type').filter(function(){ -// const that: SVGElement = this; -// return that.tagName === 'g'|| that.tagName === 'G'; -// }); // fails without using narrowing generic on filter method +// $ExpectError +filteredGElements2 = d3Selection.selectAll('.any-svg-type').filter(function() { + const that: SVGElement = this; + return that.tagName === 'g' || that.tagName === 'G'; +}); // fails without using narrowing generic on filter method // matcher() ----------------------------------------------------------------------------- @@ -371,7 +388,8 @@ circles = d3Selection.selectAll('circl circles = circles // re-assignment test chaining return-type .attr('cx', function(d, i, g) { const that: SVGGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatum = d; const index: number = i; const group: SVGGElement[] | d3Selection.ArrayLike = g; @@ -395,7 +413,8 @@ divs = divs divs = divs .classed('zero-px-padding', function(d, i, g) { const that: HTMLDivElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: DivDatum = d; const index: number = i; const group: HTMLDivElement[] | d3Selection.ArrayLike = g; @@ -411,13 +430,15 @@ divs = divs divs = divs .style('background-color', 'blue') // string .style('hidden', false) // boolean - // .style('color', 'green', 'test') // fails, invalid priority value + // $ExpectError + .style('color', 'green', 'test') // fails, invalid priority value .style('color', 'green', 'important'); divs = divs .style('padding', function(d, i, g) { const that: HTMLDivElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: DivDatum = d; const index: number = i; const group: HTMLDivElement[] | d3Selection.ArrayLike = g; @@ -428,7 +449,8 @@ divs = divs return d.padding; // string return value }) .style('hidden', () => true, null) // boolean return + test: priority = null - // .style('color', function() { return 'green'; }, 'test') // fails, test: invalid priority value + // $ExpectError + .style('color', () => 'green', 'test') // fails, test: invalid priority value .style('color', () => 'green', 'important'); // boolean return + test: priority = 'important'; // property(...) Tests @@ -442,7 +464,8 @@ circles = circles circles = circles .property('__hitchhikersguide__', function(d, i, g) { const that: SVGCircleElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatumAlternative = d; const index: number = i; const group: SVGCircleElement[] | d3Selection.ArrayLike = g; @@ -466,7 +489,8 @@ body = body body = body .text(function(d, i, g) { const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -482,7 +506,8 @@ body = body body = body .html(function(d, i, g) { const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -521,13 +546,15 @@ let newBodyDatum: { newFoo: string }; newBodyDatum = body.datum({ newFoo: 'new foo' }).datum(); // inferred type -// body.datum({ newFoo: 'new foo' }); // fails, data type incompatible +// $ExpectError +body.datum({ newFoo: 'new foo' }); // fails, data type incompatible // function-based newBodyDatum = body.datum(function(d, i, g) { const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -536,10 +563,11 @@ newBodyDatum = body.datum(function(d, i, g) { return { newFoo: 'new foo' }; }).datum(); // inferred type -// newBodyDatum = body.datum(function(d) { // fails, data type incompatible with return value type -// console.log('HTML5 Custom Data Attributes of body: ', this.dataset); // this typings HTMLBodyElement -// return { newFoo: 'new foo' }; -// }).datum(); // inferred type +// $ExpectError +newBodyDatum = body.datum(function(d) { // fails, data type incompatible with return value type + console.log('HTML5 Custom Data Attributes of body: ', this.dataset); // this typings HTMLBodyElement + return { newFoo: 'new foo' }; +}).datum(); // inferred type // SCENARIO 1: Fully type-parameterized @@ -560,7 +588,8 @@ d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in la .datum(data2) // new data type inferred .classed('has-transform-property', function(d, i, g) { const that: SVGGElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatumAlternative[] = d; const index: number = i; const group: SVGGElement[] | d3Selection.ArrayLike = g; @@ -569,14 +598,14 @@ d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in la }); // below fails, as 'this' in .classed(...) will default to BaseType, which may be null and does not have 'transform' property - -// d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in last step of chain -// .select('g.circles-group') // missing typing of selected DOM element for use in .classed(...) -// .datum(data2) // new data type inferred -// .classed('has-transform-property', function(d) { -// console.log('Color of first data element array', d.length > 0? d[0].color: 'Data array empty'); // CircleDatumAlternative type -// return this.transform !== undefined; -// }); +d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in last step of chain + .select('g.circles-group') // missing typing of selected DOM element for use in .classed(...) + .datum(data2) // new data type inferred + .classed('has-transform-property', function(d) { + console.log('Color of first data element array', d.length > 0 ? d[0].color : 'Data array empty'); // CircleDatumAlternative type + // $ExpectError + return this.transform !== undefined; + }); // SCENARIO 3: Only inferred typing (To have datum-type in 'classed' method call, no need for DOM object access) @@ -585,7 +614,8 @@ d3Selection.select('#svg-1') // irrelevant typing to get contextual typing in la .datum(data2) // new data type inferred .classed('has-green-first-data-element', function(d, i, g) { const that: d3Selection.BaseType = this; - // const that2: Element = this; // fails, type mismatch + // $ExpectError + const that2: Element = this; // fails, type mismatch const datum: CircleDatumAlternative[] = d; const index: number = i; const group: d3Selection.BaseType[] | d3Selection.ArrayLike = g; @@ -663,7 +693,8 @@ circles2 = d3Selection.select('#svg2') circles2 = circles2 // returned update selection has the same type parameters as original selection, if data type is unchanged .data(endCircleData, d => d.nodeId); -// circles2.data(endCircleData, function(d) { return d.nodeId; }); // fails, forced data type parameter and data argument mismatch +// $ExpectError +circles2.data(endCircleData, (d) => d.nodeId); // fails, forced data type parameter and data argument mismatch // ENTER-selection ----------------------------------------------------------------- @@ -690,7 +721,8 @@ const exitCircles = circles2.exit(); // Note: need to re exitCircles .style('opacity', function(d, i, g) { const that: SVGCircleElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatumAlternative = d; const index: number = i; const group: SVGCircleElement[] | d3Selection.ArrayLike = g; @@ -702,12 +734,13 @@ exitCircles // Note: the alternative using only .exit() without typing, will fail, if access to datum properties is attempted. // If access to d is not required, the short-hand is acceptable e.g. circles2.exit().remove(); -// let exitCircles2 = circles2.exit(); // Note: Without explicit re-typing to the old data type, the data type default to '{}' -// exitCircles2 -// .style('opacity', function(d) { -// console.log('Circle Radius exit node: ', this.r.baseVal.value); -// return d.color === 'green' ? 1 : 0; // fails, as data type is defaulted to {}. If datum access is required, this should trigger the thought to type .exit<...> -// }); +const exitCircles2 = circles2.exit(); // Note: Without explicit re-typing to the old data type, the data type default to '{}' +exitCircles2 + .style('opacity', function(d) { + console.log('Circle Radius exit node: ', this.r.baseVal.value); + // $ExpectError + return d.color === 'green' ? 1 : 0; // fails, as data type is defaulted to {}. If datum access is required, this should trigger the thought to type .exit<...> + }); // MERGE ENTER + UPDATE ------------------------------------------------------------------ @@ -733,8 +766,8 @@ tr = d3Selection.select('body') .append('table') .selectAll() .data(matrix) - // .data([{test: 1}, {test: 2}]) // fails, using this data statement instead, would fail assignment to tr due to the data type of tr Selection - // .data([{test: 1}, {test: 2}]) // fails, using this data statement instead, would fail because of its type parameter not being met by input + // $ExpectError + .data([{test: 1}, {test: 2}]) // fails, using this data statement instead, would fail because of its type parameter not being met by input .enter().append('tr'); nMatrix = tr.data(); // i.e. matrix @@ -745,7 +778,6 @@ td = tr.selectAll() .enter().append('td') .text(function(d, i, g) { const that: HTMLTableDataCellElement = this; - // const that2: Element = this; // fails, type mismatch const datum: number = d; const index: number = i; const group: HTMLTableDataCellElement[] | d3Selection.ArrayLike = g; @@ -787,11 +819,13 @@ newDiv2 = body.append('div'); // using creator newDiv2 = body.append(d3Selection.creator('div')); -// newDiv2 = body.append(d3Selection.creator('div')); // fails, as creator returns BaseType element, but HTMLDivElement is expected. +// $ExpectError +newDiv2 = body.append(d3Selection.creator('div')); // fails, as creator returns BaseType element, but HTMLDivElement is expected. newDiv2 = body.append(function(d, i, g) { const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -799,13 +833,15 @@ newDiv2 = body.append(function(d, i, g) { return this.ownerDocument!.createElement('div'); // this-type HTMLBodyElement }); -// newDiv2 = body.append(function(d) { -// return this.ownerDocument.createElement('a'); // fails, HTMLDivElement expected by type parameter, HTMLAnchorElement returned -// }); +// $ExpectError +newDiv2 = body.append(function(d) { + return this.ownerDocument!.createElement('a'); // fails, HTMLDivElement expected by type parameter, HTMLAnchorElement returned +}); -// newDiv2 = body.append(function(d) { -// return this.ownerDocument.createElement('a'); // fails, HTMLDivElement expected by inference, HTMLAnchorElement returned -// }); +// $ExpectError +newDiv2 = body.append(function(d) { + return this.ownerDocument!.createElement('a'); // fails, HTMLDivElement expected by inference, HTMLAnchorElement returned +}); // create a detached element @@ -909,7 +945,8 @@ const size: number = gElementsOldData.size(); // returns 'this' selection circles = circles.each(function(d, i, g) { // check chaining return type by re-assigning const that: SVGCircleElement = this; - // const that2: HTMLElement = this; // fails, type mismatch + // $ExpectError + const that2: HTMLElement = this; // fails, type mismatch const datum: CircleDatum = d; const index: number = i; const group: SVGCircleElement[] | d3Selection.ArrayLike = g; @@ -931,13 +968,15 @@ function enforceMinRadius(selection: d3Selection.Selection):void { -// // fails, group element types of selection not compatible: SVGCircleElement v HTMLDivElement -// }); +// $ExpectError +circles.call((selection: d3Selection.Selection) => { + // fails, group element types of selection not compatible: SVGCircleElement v HTMLDivElement +}); -// circles.call(function(selection: d3Selection.Selection):void { -// // fails, group datum types of selection not compatible: CircleDatumAlternative v DivDatum -// }); +// $ExpectError +circles.call((selection: d3Selection.Selection) => { + // fails, group datum types of selection not compatible: CircleDatumAlternative v DivDatum +}); // --------------------------------------------------------------------------------------- // Tests of Event Handling @@ -949,7 +988,8 @@ let listener: undefined | ((this: HTMLBodyElement, datum: BodyDatum, index: numb body = body.on('click', function(d, i, g) { const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -981,7 +1021,8 @@ body = body.dispatch('fooEvent', fooEventParam); // re-assign for chaining test; body = body.dispatch('fooEvent', function(d, i, g) { // re-assign for chaining test; const that: HTMLBodyElement = this; - // const that2: SVGElement = this; // fails, type mismatch + // $ExpectError + const that2: SVGElement = this; // fails, type mismatch const datum: BodyDatum = d; const index: number = i; const group: HTMLBodyElement[] | d3Selection.ArrayLike = g; @@ -1016,11 +1057,16 @@ function customListener(this: HTMLBodyElement | null, finalOpponent: string): st const resultText: string = d3Selection.customEvent(successEvent, customListener, body.node(), 'Wales'); -// let result = d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in call -// let resultValue: number = d3Selection.customEvent(successEvent, customListener, body.node(), 'Wales'); // fails, incompatible return types -// d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in type parameter and call -// d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in type parameter and call -// d3Selection.customEvent(successEvent, customListener, body.node(), 'Wales'); // fails, incompatible return types +// $ExpectError +const result = d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in call +// $ExpectError +const resultValue: number = d3Selection.customEvent(successEvent, customListener, body.node(), 'Wales'); // fails, incompatible return types +// $ExpectError +d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in type parameter and call +// $ExpectError +d3Selection.customEvent(successEvent, customListener, circles.nodes()[0], 'Wales'); // fails, incompatible 'this' context in type parameter and call +// $ExpectError +d3Selection.customEvent(successEvent, customListener, body.node(), 'Wales'); // fails, incompatible return types // mouse() --------------------------------------------------------------------------------- diff --git a/types/d3-selection/index.d.ts b/types/d3-selection/index.d.ts index d9988636fd..9edcb4aac8 100644 --- a/types/d3-selection/index.d.ts +++ b/types/d3-selection/index.d.ts @@ -1,6 +1,9 @@ // Type definitions for D3JS d3-selection module 1.3 // Project: https://github.com/d3/d3-selection/ -// Definitions by: Tom Wanzek , Alex Ford , Boris Yankov +// Definitions by: Tom Wanzek +// Alex Ford +// Boris Yankov +// denisname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Last module patch version validated against: 1.3.0 diff --git a/types/react-native-svg-charts/tslint.json b/types/react-native-svg-charts/tslint.json index c040aa7670..ca872cae09 100644 --- a/types/react-native-svg-charts/tslint.json +++ b/types/react-native-svg-charts/tslint.json @@ -1,6 +1,6 @@ { - "extends": "dtslint/dt.json", - "rules": { - "strict-export-declare-modifiers": false - } + "extends": "dtslint/dt.json", + "rules": { + "strict-export-declare-modifiers": false + } } From adb0eb59ddd345a05495bf1cc30d5b733ab53b24 Mon Sep 17 00:00:00 2001 From: Kapil Sachdeva Date: Mon, 5 Nov 2018 13:31:42 -0600 Subject: [PATCH 150/213] dockerod - misc fixes and additional typings --- types/dockerode/index.d.ts | 1944 +++++++++++++++++++----------------- 1 file changed, 1036 insertions(+), 908 deletions(-) diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index aa5d93858b..c0114bbfec 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -11,1008 +11,1136 @@ /// -import * as stream from 'stream'; -import * as events from 'events'; +import * as events from "events"; +import * as stream from "stream"; declare namespace Dockerode { - interface Container { - inspect(options: {}, callback: Callback): void; - inspect(callback: Callback): void; - inspect(options?: {}): Promise; + interface Container { + inspect(options: {}, callback: Callback): void; + inspect(callback: Callback): void; + inspect(options?: {}): Promise; + + rename(options: {}, callback: Callback): void; + rename(options: {}): Promise; + + update(options: {}, callback: Callback): void; + update(options: {}): Promise; + + top(options: {}, callback: Callback): void; + top(callback: Callback): void; + top(options?: {}): Promise; + + changes(callback: Callback): void; + changes(): Promise; + + export(callback: Callback): void; + export(): Promise; + + start(options: {}, callback: Callback): void; + start(callback: Callback): void; + start(options?: {}): Promise; + + pause(options: {}, callback: Callback): void; + pause(callback: Callback): void; + pause(options?: {}): Promise; + + unpause(options: {}, callback: Callback): void; + unpause(callback: Callback): void; + unpause(options?: {}): Promise; + + exec(options: {}, callback: Callback): void; + exec(options: {}): Promise; + + commit(options: {}, callback: Callback): void; + commit(callback: Callback): void; + commit(options?: {}): Promise; + + stop(options: {}, callback: Callback): void; + stop(callback: Callback): void; + stop(options?: {}): Promise; + + restart(options: {}, callback: Callback): void; + restart(callback: Callback): void; + restart(options?: {}): Promise; + + kill(options: {}, callback: Callback): void; + kill(callback: Callback): void; + kill(options?: {}): Promise; + + resize(options: {}, callback: Callback): void; + resize(callback: Callback): void; + resize(options?: {}): Promise; + + wait(callback: Callback): void; + wait(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + /** Deprecated since RAPI v1.20 */ + copy(options: {}, callback: Callback): void; + /** Deprecated since RAPI v1.20 */ + copy(callback: Callback): void; + /** Deprecated since RAPI v1.20 */ + copy(options?: {}): Promise; + + getArchive( + options: {}, + callback: Callback + ): void; + getArchive(options: {}): Promise; + + infoArchive(options: {}, callback: Callback): void; + infoArchive(options: {}): Promise; + + /** @param file Filename (will read synchronously), Buffer or stream */ + putArchive( + file: string | Buffer | NodeJS.ReadableStream, + options: {}, + callback: Callback + ): void; + putArchive( + file: string | Buffer | NodeJS.ReadableStream, + options: {} + ): Promise; + + logs( + options: ContainerLogsOptions, + callback: Callback + ): void; + logs(callback: Callback): void; + logs(options?: ContainerLogsOptions): Promise; + + stats(options: {}, callback: Callback): void; + stats(callback: Callback): void; + stats(options?: {}): Promise; + + attach(options: {}, callback: Callback): void; + attach(options: {}): Promise; - rename(options: {}, callback: Callback): void; - rename(options: {}): Promise; + modem: any; + id?: string; + } - update(options: {}, callback: Callback): void; - update(options: {}): Promise; + interface Image { + inspect(callback: Callback): void; + inspect(): Promise; + + history(callback: Callback): void; + history(): Promise; - top(options: {}, callback: Callback): void; - top(callback: Callback): void; - top(options?: {}): Promise; - - changes(callback: Callback): void; - changes(): Promise; - - export(callback: Callback): void; - export(): Promise; - - start(options: {}, callback: Callback): void; - start(callback: Callback): void; - start(options?: {}): Promise; - - pause(options: {}, callback: Callback): void; - pause(callback: Callback): void; - pause(options?: {}): Promise; - - unpause(options: {}, callback: Callback): void; - unpause(callback: Callback): void; - unpause(options?: {}): Promise; - - exec(options: {}, callback: Callback): void; - exec(options: {}): Promise; - - commit(options: {}, callback: Callback): void; - commit(callback: Callback): void; - commit(options?: {}): Promise; - - stop(options: {}, callback: Callback): void; - stop(callback: Callback): void; - stop(options?: {}): Promise; - - restart(options: {}, callback: Callback): void; - restart(callback: Callback): void; - restart(options?: {}): Promise; - - kill(options: {}, callback: Callback): void; - kill(callback: Callback): void; - kill(options?: {}): Promise; - - resize(options: {}, callback: Callback): void; - resize(callback: Callback): void; - resize(options?: {}): Promise; - - wait(callback: Callback): void; - wait(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - /** Deprecated since RAPI v1.20 */ - copy(options: {}, callback: Callback): void; - /** Deprecated since RAPI v1.20 */ - copy(callback: Callback): void; - /** Deprecated since RAPI v1.20 */ - copy(options?: {}): Promise; - - getArchive(options: {}, callback: Callback): void; - getArchive(options: {}): Promise; - - infoArchive(options: {}, callback: Callback): void; - infoArchive(options: {}): Promise; - - /** @param file Filename (will read synchronously), Buffer or stream */ - putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}, callback: Callback): void; - putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}): Promise; - - logs(options: ContainerLogsOptions, callback: Callback): void; - logs(callback: Callback): void; - logs(options?: ContainerLogsOptions): Promise; - - stats(options: {}, callback: Callback): void; - stats(callback: Callback): void; - stats(options?: {}): Promise; - - attach(options: {}, callback: Callback): void; - attach(options: {}): Promise; - - modem: any; - id?: string; - } - - interface Image { - inspect(callback: Callback): void; - inspect(): Promise; - - history(callback: Callback): void; - history(): Promise; - - get(callback: Callback): void; - get(): Promise; - - push(options: {}, callback: Callback): void; - push(callback: Callback): void; - push(options?: {}): Promise; - - tag(options: {}, callback: Callback): void; - tag(callback: Callback): void; - tag(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Volume { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - name?: string; - } - - interface Service { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - update(options: {}, callback: Callback): void; - update(options: {}): Promise; - - modem: any; - id?: string; - } - - interface Task { - inspect(callback: Callback): void; - inspect(): Promise; - - modem: any; - id?: string; - } - - interface Node { - inspect(callback: Callback): void; - inspect(): Promise; - - update(options: {}, callback: Callback): void; - update(callback: Callback): void; - update(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Plugin { - modem: any; - name: string; - remote: any; - - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - privileges(callback: Callback): void; - privileges(): Promise; - - pull(options: {}, callback: Callback): void; - pull(options: {}): Promise; - - enable(options: {}, callback: Callback): void; - enable(callback: Callback): void; - enable(options?: {}): Promise; - - disable(options: {}, callback: Callback): void; - disable(callback: Callback): void; - disable(options?: {}): Promise; - - push(options: {}, callback: Callback): void; - push(callback: Callback): void; - push(options?: {}): Promise; - - configure(options: {}, callback: Callback): void; - configure(callback: Callback): void; - configure(options?: {}): Promise; - - upgrade(auth: any, options: {}, callback: Callback): void; - upgrade(auth: any, callback: Callback): void; - upgrade(auth: any, options?: {}): Promise; - } - - interface Secret { - inspect(callback: Callback): void; - inspect(): Promise; - - update(options: {}, callback: Callback): void; - update(callback: Callback): void; - update(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Network { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - connect(options: {}, callback: Callback): void; - connect(callback: Callback): void; - connect(options?: {}): Promise; - - disconnect(options: {}, callback: Callback): void; - disconnect(callback: Callback): void; - disconnect(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Exec { - inspect(callback: Callback): void; - inspect(): Promise; - - start(options: {}, callback: Callback): void; - start(options: {}): Promise; - - resize(options: {}, callback: Callback): void; - resize(options: {}): Promise; - - modem: any; - id?: string; - } - - interface ImageInfo { - Id: string; - ParentId: string; - RepoTags: string[]; - RepoDigests?: string[]; - Created: number; - Size: number; - VirtualSize: number; - Labels: { [label: string]: string }; - } - - interface ContainerInfo { - Id: string; - Names: string[]; - Image: string; - ImageID: string; - Command: string; - Created: number; - Ports: Port[]; - Labels: { [label: string]: string }; - State: string; - Status: string; - HostConfig: { - NetworkMode: string; - }; - NetworkSettings: { - Networks: { [networkType: string]: NetworkInfo } - }; - } - - interface Port { - IP: string; - PrivatePort: number; - PublicPort: number; - Type: string; - } - - interface NetworkInfo { - IPAMConfig?: any; - Links?: any; - Aliases?: any; - NetworkID: string; - EndpointID: string; - Gateway: string; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - MacAddress: string; - } - - interface ContainerInspectInfo { - Id: string; - Created: string; - Path: string; - Args: string[]; - State: { - Status: string; - Running: boolean; - Paused: boolean; - Restarting: boolean; - OOMKilled: boolean; - Dead: boolean; - Pid: number; - ExitCode: number; - Error: string; - StartedAt: string; - FinishedAt: string; - }; - Image: string; - ResolvConfPath: string; - HostnamePath: string; - HostsPath: string; - LogPath: string; - Name: string; - RestartCount: number; - Driver: string; - MountLabel: string; - ProcessLabel: string; - AppArmorProfile: string; - ExecIDs?: any; - HostConfig: HostConfig; - GraphDriver: { - Name: string; - Data: { - DeviceId: string; - DeviceName: string; - DeviceSize: string; - } - }; - Mounts: Array<{ - Source: string; - Destination: string; - Mode: string; - RW: boolean; - Propagation: string; - }>; - Config: { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} }; - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - Image: string; - Volumes: { [volume: string]: {} }; - WorkingDir: string; - Entrypoint?: any; - OnBuild?: any; - Labels: { [label: string]: string } - }; - NetworkSettings: { - Bridge: string; - SandboxID: string; - HairpinMode: boolean; - LinkLocalIPv6Address: string; - LinkLocalIPv6PrefixLen: number; - Ports: { - [portAndProtocol: string]: Array<{ - HostIp: string; - HostPort: string; + get(callback: Callback): void; + get(): Promise; + + push(options: {}, callback: Callback): void; + push(callback: Callback): void; + push(options?: {}): Promise; + + tag(options: {}, callback: Callback): void; + tag(callback: Callback): void; + tag(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Volume { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + name?: string; + } + + interface Service { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + update(options: {}, callback: Callback): void; + update(options: {}): Promise; + + modem: any; + id?: string; + } + + interface Task { + inspect(callback: Callback): void; + inspect(): Promise; + + modem: any; + id?: string; + } + + interface Node { + inspect(callback: Callback): void; + inspect(): Promise; + + update(options: {}, callback: Callback): void; + update(callback: Callback): void; + update(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Plugin { + modem: any; + name: string; + remote: any; + + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + privileges(callback: Callback): void; + privileges(): Promise; + + pull(options: {}, callback: Callback): void; + pull(options: {}): Promise; + + enable(options: {}, callback: Callback): void; + enable(callback: Callback): void; + enable(options?: {}): Promise; + + disable(options: {}, callback: Callback): void; + disable(callback: Callback): void; + disable(options?: {}): Promise; + + push(options: {}, callback: Callback): void; + push(callback: Callback): void; + push(options?: {}): Promise; + + configure(options: {}, callback: Callback): void; + configure(callback: Callback): void; + configure(options?: {}): Promise; + + upgrade(auth: any, options: {}, callback: Callback): void; + upgrade(auth: any, callback: Callback): void; + upgrade(auth: any, options?: {}): Promise; + } + + interface Secret { + inspect(callback: Callback): void; + inspect(): Promise; + + update(options: {}, callback: Callback): void; + update(callback: Callback): void; + update(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Network { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + connect(options: {}, callback: Callback): void; + connect(callback: Callback): void; + connect(options?: {}): Promise; + + disconnect(options: {}, callback: Callback): void; + disconnect(callback: Callback): void; + disconnect(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Exec { + inspect(callback: Callback): void; + inspect(): Promise; + + start(options: {}, callback: Callback): void; + start(options: {}): Promise; + + resize(options: {}, callback: Callback): void; + resize(options: {}): Promise; + + modem: any; + id?: string; + } + + interface ImageInfo { + Id: string; + ParentId: string; + RepoTags: string[]; + RepoDigests?: string[]; + Created: number; + Size: number; + VirtualSize: number; + Labels: { [label: string]: string }; + } + + interface ContainerInfo { + Id: string; + Names: string[]; + Image: string; + ImageID: string; + Command: string; + Created: number; + Ports: Port[]; + Labels: { [label: string]: string }; + State: string; + Status: string; + HostConfig: { NetworkMode: string }; + NetworkSettings: { Networks: { [networkType: string]: NetworkInfo } }; + } + + interface Port { + IP: string; + PrivatePort: number; + PublicPort: number; + Type: string; + } + + interface NetworkInfo { + IPAMConfig?: any; + Links?: any; + Aliases?: any; + NetworkID: string; + EndpointID: string; + Gateway: string; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + MacAddress: string; + } + + // not complete definition of network inspection + // info which is returned by list / inspect + interface NetworkInspectInfo { + Id: string; + Name: string; + Driver: string; + Created: string; + Scope: string; + EnableIPv6: boolean; + Internal: boolean; + Attachable: boolean; + Ingress: boolean; + } + + interface ContainerInspectInfo { + Id: string; + Created: string; + Path: string; + Args: string[]; + State: { + Status: string; + Running: boolean; + Paused: boolean; + Restarting: boolean; + OOMKilled: boolean; + Dead: boolean; + Pid: number; + ExitCode: number; + Error: string; + StartedAt: string; + FinishedAt: string; + }; + Image: string; + ResolvConfPath: string; + HostnamePath: string; + HostsPath: string; + LogPath: string; + Name: string; + RestartCount: number; + Driver: string; + MountLabel: string; + ProcessLabel: string; + AppArmorProfile: string; + ExecIDs?: any; + HostConfig: HostConfig; + GraphDriver: { + Name: string; + Data: { DeviceId: string; DeviceName: string; DeviceSize: string }; + }; + Mounts: Array<{ + Source: string; + Destination: string; + Mode: string; + RW: boolean; + Propagation: string; }>; - }; - SandboxKey: string; - SecondaryIPAddresses?: any; - SecondaryIPv6Addresses?: any; - EndpointID: string; - Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - MacAddress: string; - Networks: { - [type: string]: { - IPAMConfig?: any; - Links?: any; - Aliases?: any; - NetworkID: string; - EndpointID: string; - Gateway: string; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - MacAddress: string; - } - }; - Node?: { - ID: string; - IP: string; - Addr: string; - Name: string; - Cpus: number; - Memory: number; - Labels: any; - } - }; - } + Config: { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} }; + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + Image: string; + Volumes: { [volume: string]: {} }; + WorkingDir: string; + Entrypoint?: any; + OnBuild?: any; + Labels: { [label: string]: string }; + }; + NetworkSettings: { + Bridge: string; + SandboxID: string; + HairpinMode: boolean; + LinkLocalIPv6Address: string; + LinkLocalIPv6PrefixLen: number; + Ports: { + [portAndProtocol: string]: Array<{ + HostIp: string; + HostPort: string; + }>; + }; + SandboxKey: string; + SecondaryIPAddresses?: any; + SecondaryIPv6Addresses?: any; + EndpointID: string; + Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + MacAddress: string; + Networks: { + [type: string]: { + IPAMConfig?: any; + Links?: any; + Aliases?: any; + NetworkID: string; + EndpointID: string; + Gateway: string; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + MacAddress: string; + }; + }; + Node?: { + ID: string; + IP: string; + Addr: string; + Name: string; + Cpus: number; + Memory: number; + Labels: any; + }; + }; + } - interface HostConfig { - AutoRemove: boolean; - Binds: string[]; - ContainerIDFile: string; - LogConfig: { - Type: string; - Config: any; - }; - NetworkMode: string; - PortBindings?: any; - RestartPolicy: { - Name: string; - MaximumRetryCount: number; - }; - VolumeDriver: string; - VolumesFrom?: any; - CapAdd?: any; - CapDrop?: any; - Dns: any[]; - DnsOptions: any[]; - DnsSearch: any[]; - ExtraHosts?: any; - IpcMode: string; - Links?: any; - OomScoreAdj: number; - PidMode: string; - Privileged: boolean; - PublishAllPorts: boolean; - ReadonlyRootfs: boolean; - SecurityOpt?: any; - UTSMode: string; - ShmSize: number; - ConsoleSize: number[]; - Isolation: string; - CpuShares: number; - CgroupParent: string; - BlkioWeight: number; - BlkioWeightDevice?: any; - BlkioDeviceReadBps?: any; - BlkioDeviceWriteBps?: any; - BlkioDeviceReadIOps?: any; - BlkioDeviceWriteIOps?: any; - CpuPeriod: number; - CpuQuota: number; - CpusetCpus: string; - CpusetMems: string; - Devices?: any; - DiskQuota: number; - KernelMemory: number; - Memory: number; - MemoryReservation: number; - MemorySwap: number; - MemorySwappiness: number; - OomKillDisable: boolean; - PidsLimit: number; - Ulimits?: any; - } + interface HostConfig { + AutoRemove: boolean; + Binds: string[]; + ContainerIDFile: string; + LogConfig: { Type: string; Config: any }; + NetworkMode: string; + PortBindings?: any; + RestartPolicy: { Name: string; MaximumRetryCount: number }; + VolumeDriver: string; + VolumesFrom?: any; + CapAdd?: any; + CapDrop?: any; + Dns: any[]; + DnsOptions: any[]; + DnsSearch: any[]; + ExtraHosts?: any; + IpcMode: string; + Links?: any; + OomScoreAdj: number; + PidMode: string; + Privileged: boolean; + PublishAllPorts: boolean; + ReadonlyRootfs: boolean; + SecurityOpt?: any; + UTSMode: string; + ShmSize: number; + ConsoleSize: number[]; + Isolation: string; + CpuShares: number; + CgroupParent: string; + BlkioWeight: number; + BlkioWeightDevice?: any; + BlkioDeviceReadBps?: any; + BlkioDeviceWriteBps?: any; + BlkioDeviceReadIOps?: any; + BlkioDeviceWriteIOps?: any; + CpuPeriod: number; + CpuQuota: number; + CpusetCpus: string; + CpusetMems: string; + Devices?: any; + DiskQuota: number; + KernelMemory: number; + Memory: number; + MemoryReservation: number; + MemorySwap: number; + MemorySwappiness: number; + OomKillDisable: boolean; + PidsLimit: number; + Ulimits?: any; + } - interface ImageInspectInfo { - Id: string; - RepoTags: string[]; - RepoDigests: string[]; - Parent: string; - Comment: string; - Created: string; - Container: string; - ContainerConfig: - { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} }; - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - ArgsEscaped: boolean; - Image: string; - Volumes: { [path: string]: {} }, - WorkingDir: string; - Entrypoint?: any; - OnBuild?: any[]; - Labels: { [label: string]: string } - }; - DockerVersion: string; - Author: string; - Config: - { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} } - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - ArgsEscaped: boolean; - Image: string; - Volumes: { [path: string]: {} }, - WorkingDir: string; - Entrypoint?: any; - OnBuild: any[]; - Labels: { [label: string]: string } - }; - Architecture: string; - Os: string; - Size: number; - VirtualSize: number; - GraphDriver: - { - Name: string; - Data: - { - DeviceId: string; - DeviceName: string; - DeviceSize: string; - } - }; - } + interface ImageInspectInfo { + Id: string; + RepoTags: string[]; + RepoDigests: string[]; + Parent: string; + Comment: string; + Created: string; + Container: string; + ContainerConfig: { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} }; + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + ArgsEscaped: boolean; + Image: string; + Volumes: { [path: string]: {} }; + WorkingDir: string; + Entrypoint?: any; + OnBuild?: any[]; + Labels: { [label: string]: string }; + }; + DockerVersion: string; + Author: string; + Config: { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} }; + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + ArgsEscaped: boolean; + Image: string; + Volumes: { [path: string]: {} }; + WorkingDir: string; + Entrypoint?: any; + OnBuild: any[]; + Labels: { [label: string]: string }; + }; + Architecture: string; + Os: string; + Size: number; + VirtualSize: number; + GraphDriver: { + Name: string; + Data: { DeviceId: string; DeviceName: string; DeviceSize: string }; + }; + } - interface ContainerCreateOptions { - name?: string; - Hostname?: string; - Domainname?: string; - User?: string; - AttachStdin?: boolean; - AttachStdout?: boolean; - AttachStderr?: boolean; - Tty?: boolean; - OpenStdin?: boolean; - StdinOnce?: boolean; - Env?: string[]; - Cmd?: string[]; - Entrypoint?: string; - Image?: string; - Labels?: { [label: string]: string }; - Volumes?: { [volume: string]: {} }; - WorkingDir?: string; - NetworkDisabled?: boolean; - MacAddress?: boolean; - ExposedPorts?: { [port: string]: {} }; - StopSignal?: string; - HostConfig?: { - AutoRemove?: boolean; - Binds?: string[]; - Links?: string[]; - Memory?: number; - MemorySwap?: number; - MemoryReservation?: number; - KernelMemory?: number; - CpuPercent?: number; - CpuShares?: number; - CpuPeriod?: number; - CpuQuota?: number; - CpusetMems?: string; - MaximumIOps?: number; - MaxmimumIOBps?: number; - BlkioWeightDevice?: Array<{}>; - BlkioDeviceReadBps?: Array<{}>; - BlkioDeviceReadIOps?: Array<{}>; - BlkioDeviceWriteBps?: Array<{}>; - BlkioDeviceWriteIOps?: Array<{}>; - MemorySwappiness?: number; - OomKillDisable?: boolean; - OomScoreAdj?: number; - PidMode?: string; - PidsLimit?: number; - PortBindings?: { [portAndProtocol: string]: Array<{ [index: string]: string }> }; - PublishAllPorts?: boolean; - Privileged?: boolean; - ReadonlyRootfs?: boolean; - Dns?: string[]; - DnsOptions?: string[]; - DnsSearch?: string[]; - ExtraHosts?: any; - VolumesFrom?: string[]; - CapAdd?: string[]; - CapDrop?: string[]; - GroupAdd?: string[]; - RestartPolicy?: { [index: string]: number | string }; - NetworkMode?: string; - Devices?: any[]; - Sysctls?: { [index: string]: string }; - Ulimits?: Array<{}>; - LogConfig?: { [index: string]: string | {} }; - SecurityOpt?: { [index: string]: any }; - CgroupParent?: string; - VolumeDriver?: string; - ShmSize?: number; - }; - NetworkingConfig?: { - EndpointsConfig?: { - [index: string]: any; - isolated_nw?: { - [index: string]: any; - IPAMConfig?: { - IPv4Address?: string; - IPv6Adress?: string; - LinkLocalIPs?: string[]; - } - Links?: string[]; - Aliases?: string[]; - } - } - }; - } + interface PortBinding { + HostIp?: string; + HostPort?: string; + } - interface KeyObject { - pem: string | Buffer; - passphrase?: string; - } + interface PortMap { + [key: string]: PortBinding[]; + } - interface DockerOptions { - socketPath?: string; - host?: string; - port?: number | string; - ca?: string | string[] | Buffer | Buffer[]; - cert?: string | string[] | Buffer | Buffer[]; - key?: string | string[] | Buffer | Buffer[] | KeyObject[]; - protocol?: "https" | "http"; - timeout?: number; - version?: string; - Promise?: typeof Promise; - } + interface RestartPolicy { + Name: string; + MaximumRetryCount?: number; + } - interface SecretVersion { - Index: number; - } + type LoggingDriverType = + | "json-file" + | "syslog" + | "journald" + | "gelf" + | "fluentd" + | "awslogs" + | "splunk" + | "etwlogs" + | "none"; - interface ServiceSpec { - Name: string; - } + interface LogConfig { + Type: LoggingDriverType; + Config?: { [key: string]: string }; + } - interface SecretInfo { - ID: string; - Version: SecretVersion; - CreatedAt: string; - UpdatedAt?: string; - Spec?: ServiceSpec; - } + interface DeviceMapping { + PathOnHost: string; + PathinContainer: string; + CgroupPermissions: string; + } - interface PluginInfo { - Id?: string; - Name: string; - Enabled: boolean; - Settings: PluginSettings; - PluginReference?: string; - Config: PluginConfig; - } + interface ContainerCreateOptions { + name?: string; + Hostname?: string; + Domainname?: string; + User?: string; + AttachStdin?: boolean; + AttachStdout?: boolean; + AttachStderr?: boolean; + Tty?: boolean; + OpenStdin?: boolean; + StdinOnce?: boolean; + Env?: string[]; + Cmd?: string[]; + Entrypoint?: string; + Image?: string; + Labels?: { [label: string]: string }; + Volumes?: { [volume: string]: {} }; + WorkingDir?: string; + NetworkDisabled?: boolean; + MacAddress?: boolean; + ExposedPorts?: { [port: string]: {} }; + StopSignal?: string; + HostConfig?: { + AutoRemove?: boolean; + Binds?: string[]; + Links?: string[]; + Memory?: number; + MemorySwap?: number; + MemoryReservation?: number; + KernelMemory?: number; + CpuPercent?: number; + CpuShares?: number; + CpuPeriod?: number; + CpuQuota?: number; + CpusetMems?: string; + MaximumIOps?: number; + MaxmimumIOBps?: number; + BlkioWeightDevice?: Array<{}>; + BlkioDeviceReadBps?: Array<{}>; + BlkioDeviceReadIOps?: Array<{}>; + BlkioDeviceWriteBps?: Array<{}>; + BlkioDeviceWriteIOps?: Array<{}>; + MemorySwappiness?: number; + OomKillDisable?: boolean; + OomScoreAdj?: number; + PidMode?: string; + PidsLimit?: number; + PortBindings?: PortMap; + PublishAllPorts?: boolean; + Privileged?: boolean; + ReadonlyRootfs?: boolean; + Dns?: string[]; + DnsOptions?: string[]; + DnsSearch?: string[]; + ExtraHosts?: any; + VolumesFrom?: string[]; + CapAdd?: string[]; + CapDrop?: string[]; + GroupAdd?: string[]; + RestartPolicy?: RestartPolicy; + NetworkMode?: string; + Devices?: DeviceMapping[]; + Sysctls?: { [index: string]: string }; + Ulimits?: Array<{}>; + LogConfig?: LogConfig; + SecurityOpt?: { [index: string]: any }; + CgroupParent?: string; + VolumeDriver?: string; + ShmSize?: number; + }; + NetworkingConfig?: { + EndpointsConfig?: { + [index: string]: any; + isolated_nw?: { + [index: string]: any; + IPAMConfig?: { + IPv4Address?: string; + IPv6Adress?: string; + LinkLocalIPs?: string[]; + }; + Links?: string[]; + Aliases?: string[]; + }; + }; + }; + } - type PluginInspectInfo = PluginInfo; + interface KeyObject { + pem: string | Buffer; + passphrase?: string; + } - interface PluginSettings { - Mounts: PluginMount[]; - Env: string[]; - Args: string[]; - Devices: PluginDevice[]; - } + interface DockerOptions { + socketPath?: string; + host?: string; + port?: number | string; + ca?: string | string[] | Buffer | Buffer[]; + cert?: string | string[] | Buffer | Buffer[]; + key?: string | string[] | Buffer | Buffer[] | KeyObject[]; + protocol?: "https" | "http"; + timeout?: number; + version?: string; + Promise?: typeof Promise; + } - interface PluginConfig { - Description: string; - Documentation: string; - Interface: any; - Entrypoint: string[]; - WorkDir: string; - User?: User; - Network: Network; - Linux: Linux; - PropagatedMount: string; - Mounts: PluginMount[]; - Env: PluginEnv[]; - Args: Args; - rootfs: any; - } + interface SecretVersion { + Index: number; + } - interface Interface { - Types: PluginInterfaceType[]; - Socket: string; - } + interface ServiceSpec { + Name: string; + } - interface PluginInterfaceType { - Prefix: string; - Capability: string; - Version: string; - } + interface SecretInfo { + ID: string; + Version: SecretVersion; + CreatedAt: string; + UpdatedAt?: string; + Spec?: ServiceSpec; + } - interface PluginMount { - Name: string; - Description: string; - Settable: string[]; - Source: string; - Destination: string; - Type: string; - Options: string[]; - } + interface PluginInfo { + Id?: string; + Name: string; + Enabled: boolean; + Settings: PluginSettings; + PluginReference?: string; + Config: PluginConfig; + } - interface Linux { - Capabilities: string[]; - AllowAllDevices: boolean; - Devices: PluginDevice[]; - } + type PluginInspectInfo = PluginInfo; - interface PluginDevice { - Name: string; - Description: string; - Settable: string[]; - Path: string; - } + interface PluginSettings { + Mounts: PluginMount[]; + Env: string[]; + Args: string[]; + Devices: PluginDevice[]; + } - interface Network { - Type: string; - } + interface PluginConfig { + Description: string; + Documentation: string; + Interface: any; + Entrypoint: string[]; + WorkDir: string; + User?: User; + Network: Network; + Linux: Linux; + PropagatedMount: string; + Mounts: PluginMount[]; + Env: PluginEnv[]; + Args: Args; + rootfs: any; + } - interface PluginEnv { - Name: string; - Description: string; - Settable: string[]; - Value: string; - } + interface Interface { + Types: PluginInterfaceType[]; + Socket: string; + } - interface Args { - Name: string; - Description: string; - Settable: string[]; - Value: string; - } + interface PluginInterfaceType { + Prefix: string; + Capability: string; + Version: string; + } - interface User { - UID: number; - GID: number; - } + interface PluginMount { + Name: string; + Description: string; + Settable: string[]; + Source: string; + Destination: string; + Type: string; + Options: string[]; + } - interface ImageRemoveInfo { - Untagged: string; - Deleted: string; - } + interface Linux { + Capabilities: string[]; + AllowAllDevices: boolean; + Devices: PluginDevice[]; + } - interface PruneImagesInfo { - ImagesDeleted: ImageRemoveInfo[]; - SpaceReclaimed: number; - } + interface PluginDevice { + Name: string; + Description: string; + Settable: string[]; + Path: string; + } - interface PruneVolumesInfo { - VolumesDeleted: string[]; - SpaceReclaimed: number; - } + interface Network { + Type: string; + } - interface PruneContainersInfo { - ContainersDeleted: string[]; - SpaceReclaimed: number; - } + interface PluginEnv { + Name: string; + Description: string; + Settable: string[]; + Value: string; + } - interface PruneNetworksInfo { - NetworksDeleted: string[]; - } + interface Args { + Name: string; + Description: string; + Settable: string[]; + Value: string; + } - interface ContainerLogsOptions { - stdout?: boolean; - stderr?: boolean; - follow?: boolean; - since?: number; - details?: boolean; - tail?: number; - timestamps?: boolean; - } + interface User { + UID: number; + GID: number; + } - interface ImageBuildContext { - context: string; - src: string[]; - } + interface ImageRemoveInfo { + Untagged: string; + Deleted: string; + } - interface DockerVersion { - ApiVersion: string; - Arch: string; - BuildTime: Date; - Components: Array<{ - Details: { + interface PruneImagesInfo { + ImagesDeleted: ImageRemoveInfo[]; + SpaceReclaimed: number; + } + + interface PruneVolumesInfo { + VolumesDeleted: string[]; + SpaceReclaimed: number; + } + + interface PruneContainersInfo { + ContainersDeleted: string[]; + SpaceReclaimed: number; + } + + interface PruneNetworksInfo { + NetworksDeleted: string[]; + } + + interface ContainerLogsOptions { + stdout?: boolean; + stderr?: boolean; + follow?: boolean; + since?: number; + details?: boolean; + tail?: number; + timestamps?: boolean; + } + + interface ImageBuildContext { + context: string; + src: string[]; + } + + interface DockerVersion { ApiVersion: string; Arch: string; - BuilTime: Date; - Experimental: string; + BuildTime: Date; + Components: Array<{ + Details: { + ApiVersion: string; + Arch: string; + BuilTime: Date; + Experimental: string; + GitCommit: string; + GoVersion: string; + KernelVersion: string; + Os: string; + }; + Name: string; + Version: string; + }>; GitCommit: string; GoVersion: string; KernelVersion: string; + MinAPIVersion: string; Os: string; - }; - Name: string; - Version: string; - }>; - GitCommit: string; - GoVersion: string; - KernelVersion: string; - MinAPIVersion: string; - Os: string; - Platform: { - Name: string; - }; - Version: string; - } + Platform: { Name: string }; + Version: string; + } } type Callback = (error?: any, result?: T) => void; declare class Dockerode { - constructor(options?: Dockerode.DockerOptions); + constructor(options?: Dockerode.DockerOptions); - createContainer(options: Dockerode.ContainerCreateOptions, callback: Callback): void; - createContainer(options: Dockerode.ContainerCreateOptions): Promise; + createContainer( + options: Dockerode.ContainerCreateOptions, + callback: Callback + ): void; + createContainer( + options: Dockerode.ContainerCreateOptions + ): Promise; - createImage(options: {}, callback: Callback): void; - createImage(auth: any, options: {}, callback: Callback): void; - createImage(options: {}): Promise; - createImage(auth: any, options: {}): Promise; + createImage(options: {}, callback: Callback): void; + createImage( + auth: any, + options: {}, + callback: Callback + ): void; + createImage(options: {}): Promise; + createImage(auth: any, options: {}): Promise; - loadImage(file: string | NodeJS.ReadableStream, options: {}, callback: Callback): void; - loadImage(file: string | NodeJS.ReadableStream, callback: Callback): void; - loadImage(file: string | NodeJS.ReadableStream, options?: {}): Promise; + loadImage( + file: string | NodeJS.ReadableStream, + options: {}, + callback: Callback + ): void; + loadImage( + file: string | NodeJS.ReadableStream, + callback: Callback + ): void; + loadImage( + file: string | NodeJS.ReadableStream, + options?: {} + ): Promise; - importImage(file: string | NodeJS.ReadableStream, options: {}, callback: Callback): void; - importImage(file: string | NodeJS.ReadableStream, callback: Callback): void; - importImage(file: string | NodeJS.ReadableStream, options?: {}): Promise; + importImage( + file: string | NodeJS.ReadableStream, + options: {}, + callback: Callback + ): void; + importImage( + file: string | NodeJS.ReadableStream, + callback: Callback + ): void; + importImage( + file: string | NodeJS.ReadableStream, + options?: {} + ): Promise; - checkAuth(options: any, callback: Callback): void; - checkAuth(options: any): Promise; + checkAuth(options: any, callback: Callback): void; + checkAuth(options: any): Promise; - buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options: {}, callback: Callback): void; - buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, callback: Callback): void; - buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options?: {}): Promise; + buildImage( + file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, + options: {}, + callback: Callback + ): void; + buildImage( + file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, + callback: Callback + ): void; + buildImage( + file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, + options?: {} + ): Promise; - getContainer(id: string): Dockerode.Container; + getContainer(id: string): Dockerode.Container; - getImage(name: string): Dockerode.Image; + getImage(name: string): Dockerode.Image; - getVolume(name: string): Dockerode.Volume; + getVolume(name: string): Dockerode.Volume; - getPlugin(name: string, remote: any): Dockerode.Plugin; + getPlugin(name: string, remote: any): Dockerode.Plugin; - getService(id: string): Dockerode.Service; + getService(id: string): Dockerode.Service; - getTask(id: string): Dockerode.Task; + getTask(id: string): Dockerode.Task; - getNode(id: string): Dockerode.Node; + getNode(id: string): Dockerode.Node; - getNetwork(id: string): Dockerode.Network; + getNetwork(id: string): Dockerode.Network; - getSecret(id: string): Dockerode.Secret; + getSecret(id: string): Dockerode.Secret; - getExec(id: string): Dockerode.Exec; + getExec(id: string): Dockerode.Exec; - listContainers(options: {}, callback: Callback): void; - listContainers(callback: Callback): void; - listContainers(options?: {}): Promise; + listContainers( + options: {}, + callback: Callback + ): void; + listContainers(callback: Callback): void; + listContainers(options?: {}): Promise; - listImages(options: {}, callback: Callback): void; - listImages(callback: Callback): void; - listImages(options?: {}): Promise; + listImages(options: {}, callback: Callback): void; + listImages(callback: Callback): void; + listImages(options?: {}): Promise; - listServices(options: {}, callback: Callback): void; - listServices(callback: Callback): void; - listServices(options?: {}): Promise; + listServices(options: {}, callback: Callback): void; + listServices(callback: Callback): void; + listServices(options?: {}): Promise; - listNodes(options: {}, callback: Callback): void; - listNodes(callback: Callback): void; - listNodes(options?: {}): Promise; + listNodes(options: {}, callback: Callback): void; + listNodes(callback: Callback): void; + listNodes(options?: {}): Promise; - listTasks(options: {}, callback: Callback): void; - listTasks(callback: Callback): void; - listTasks(options?: {}): Promise; + listTasks(options: {}, callback: Callback): void; + listTasks(callback: Callback): void; + listTasks(options?: {}): Promise; - listSecrets(options: {}, callback: Callback): void; - listSecrets(callback: Callback): void; - listSecrets(options?: {}): Promise; + listSecrets(options: {}, callback: Callback): void; + listSecrets(callback: Callback): void; + listSecrets(options?: {}): Promise; - listPlugins(options: {}, callback: Callback): void; - listPlugins(callback: Callback): void; - listPlugins(options?: {}): Promise; + listPlugins(options: {}, callback: Callback): void; + listPlugins(callback: Callback): void; + listPlugins(options?: {}): Promise; - listVolumes(options: {}, callback: Callback): void; - listVolumes(callback: Callback): void; - listVolumes(options?: {}): Promise; + listVolumes(options: {}, callback: Callback): void; + listVolumes(callback: Callback): void; + listVolumes(options?: {}): Promise; - listNetworks(options: {}, callback: Callback): void; - listNetworks(callback: Callback): void; - listNetworks(options?: {}): Promise; + listNetworks(options: {}, callback: Callback): void; + listNetworks(callback: Callback): void; + listNetworks(options?: {}): Promise; - createSecret(options: {}, callback: Callback): void; - createSecret(options: {}): Promise; + createSecret(options: {}, callback: Callback): void; + createSecret(options: {}): Promise; - createPlugin(options: {}, callback: Callback): void; - createPlugin(options: {}): Promise; + createPlugin(options: {}, callback: Callback): void; + createPlugin(options: {}): Promise; - createVolume(options: {}, callback: Callback): void; - createVolume(options: {}): Promise; + createVolume(options: {}, callback: Callback): void; + createVolume(options: {}): Promise; - createService(options: {}, callback: Callback): void; - createService(options: {}): Promise; + createService(options: {}, callback: Callback): void; + createService(options: {}): Promise; - createNetwork(options: {}, callback: Callback): void; - createNetwork(options: {}): Promise; + createNetwork(options: {}, callback: Callback): void; + createNetwork(options: {}): Promise; - searchImages(options: {}, callback: Callback): void; - searchImages(options: {}): Promise; + searchImages(options: {}, callback: Callback): void; + searchImages(options: {}): Promise; - pruneImages(options: {}, callback: Callback): void; - pruneImages(callback: Callback): void; - pruneImages(options?: {}): Promise; + pruneImages( + options: {}, + callback: Callback + ): void; + pruneImages(callback: Callback): void; + pruneImages(options?: {}): Promise; - pruneContainers(options: {}, callback: Callback): void; - pruneContainers(callback: Callback): void; - pruneContainers(options?: {}): Promise; + pruneContainers( + options: {}, + callback: Callback + ): void; + pruneContainers(callback: Callback): void; + pruneContainers(options?: {}): Promise; - pruneVolumes(options: {}, callback: Callback): void; - pruneVolumes(callback: Callback): void; - pruneVolumes(options?: {}): Promise; + pruneVolumes( + options: {}, + callback: Callback + ): void; + pruneVolumes(callback: Callback): void; + pruneVolumes(options?: {}): Promise; - pruneNetworks(options: {}, callback: Callback): void; - pruneNetworks(callback: Callback): void; - pruneNetworks(options?: {}): Promise; + pruneNetworks( + options: {}, + callback: Callback + ): void; + pruneNetworks(callback: Callback): void; + pruneNetworks(options?: {}): Promise; - info(callback: Callback): void; - info(): Promise; + info(callback: Callback): void; + info(): Promise; - df(callback: Callback): void; - df(): Promise; + df(callback: Callback): void; + df(): Promise; - version(callback: Callback): void; - version(): Promise; + version(callback: Callback): void; + version(): Promise; - ping(callback: Callback): void; - ping(): Promise; + ping(callback: Callback): void; + ping(): Promise; - getEvents(options: {}, callback: Callback): void; - getEvents(callback: Callback): void; - getEvents(options?: {}): Promise; + getEvents(options: {}, callback: Callback): void; + getEvents(callback: Callback): void; + getEvents(options?: {}): Promise; - pull(repoTag: string, options: {}, callback: Callback, auth?: {}): Dockerode.Image; - pull(repoTag: string, options: {}, auth?: {}): Promise; + pull( + repoTag: string, + options: {}, + callback: Callback, + auth?: {} + ): Dockerode.Image; + pull(repoTag: string, options: {}, auth?: {}): Promise; - run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions: {}, startOptions: {}, callback: Callback): events.EventEmitter; - run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], startOptions: {}, callback: Callback): events.EventEmitter; - run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], callback: Callback): events.EventEmitter; - run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions: {}, callback: Callback): events.EventEmitter; - run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions?: {}, startOptions?: {}): Promise; + run( + image: string, + cmd: string[], + outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], + createOptions: {}, + startOptions: {}, + callback: Callback + ): events.EventEmitter; + run( + image: string, + cmd: string[], + outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], + startOptions: {}, + callback: Callback + ): events.EventEmitter; + run( + image: string, + cmd: string[], + outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], + callback: Callback + ): events.EventEmitter; + run( + image: string, + cmd: string[], + outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], + createOptions: {}, + callback: Callback + ): events.EventEmitter; + run( + image: string, + cmd: string[], + outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], + createOptions?: {}, + startOptions?: {} + ): Promise; - swarmInit(options: {}, callback: Callback): void; - swarmInit(options: {}): Promise; + swarmInit(options: {}, callback: Callback): void; + swarmInit(options: {}): Promise; - swarmJoin(options: {}, callback: Callback): void; - swarmJoin(options: {}): Promise; + swarmJoin(options: {}, callback: Callback): void; + swarmJoin(options: {}): Promise; - swarmLeave(options: {}, callback: Callback): void; - swarmLeave(options: {}): Promise; + swarmLeave(options: {}, callback: Callback): void; + swarmLeave(options: {}): Promise; - swarmUpdate(options: {}, callback: Callback): void; - swarmUpdate(options: {}): Promise; + swarmUpdate(options: {}, callback: Callback): void; + swarmUpdate(options: {}): Promise; - swarmInspect(callback: Callback): void; - swarmInspect(): Promise; + swarmInspect(callback: Callback): void; + swarmInspect(): Promise; - modem: any; + modem: any; } export = Dockerode; From 31ddd01c073107a2970f5af7f3c19a97a99b7b20 Mon Sep 17 00:00:00 2001 From: Dan Dean Date: Mon, 5 Nov 2018 12:11:22 -0800 Subject: [PATCH 151/213] Fix the signaure of @storybook/react .add() method The `add` method takes an optional 3rd `paramters` option which is used to configure globally installed addons for the current story. --- types/storybook__react/index.d.ts | 3 ++- types/storybook__react/storybook__react-tests.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index 3aa3445f61..91b686ffcf 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/storybooks/storybook // Definitions by: Joscha Feth // Anton Izmailov +// Dan Dean // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -16,7 +17,7 @@ export type StoryDecorator = (story: RenderFunction, context: { kind: string, st export interface Story { readonly kind: string; - add(storyName: string, callback: RenderFunction): this; + add(storyName: string, callback: RenderFunction, parameters?: { [key: string]: any }): this; addDecorator(decorator: StoryDecorator): this; } diff --git a/types/storybook__react/storybook__react-tests.tsx b/types/storybook__react/storybook__react-tests.tsx index 12edecb219..ba19df798e 100644 --- a/types/storybook__react/storybook__react-tests.tsx +++ b/types/storybook__react/storybook__react-tests.tsx @@ -30,6 +30,7 @@ storiesOf('withAnyAddon', module) .addWithSideEffect('more', () =>
) .add('another story', () =>
) .add('to Storybook as Array', () => [
,
]) + .add('and a story with additional parameters', () =>
, { parameter: 'foo' }) .addWithSideEffect('even more', () =>
); // configure From feee4f8c4060c78b840897a5e674bbb79b40b836 Mon Sep 17 00:00:00 2001 From: Dan Dean Date: Mon, 5 Nov 2018 12:23:00 -0800 Subject: [PATCH 152/213] =?UTF-8?q?Bump=20from=20@storybook/react=203.0=20?= =?UTF-8?q?=E2=86=92=203.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/storybook__react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index 91b686ffcf..92b173d746 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @storybook/react 3.0 +// Type definitions for @storybook/react 3.4 // Project: https://github.com/storybooks/storybook // Definitions by: Joscha Feth // Anton Izmailov From ff73f631b73e29c66383ca7aeccceb5781aad1b3 Mon Sep 17 00:00:00 2001 From: Orta Date: Mon, 5 Nov 2018 15:30:05 -0500 Subject: [PATCH 153/213] Update styles.d.ts --- types/styled-system/dist/styles.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/styled-system/dist/styles.d.ts b/types/styled-system/dist/styles.d.ts index 5851c51f79..224b9a9392 100644 --- a/types/styled-system/dist/styles.d.ts +++ b/types/styled-system/dist/styles.d.ts @@ -299,7 +299,7 @@ export interface JustifyContentProps { export function justifyContent(...args: any[]): any; -export type FlexWrapValue = true | "nowrap" | "wrap" | "wrap-reverse"; +export type FlexWrapValue = "nowrap" | "wrap" | "wrap-reverse"; export type ResponsiveFlexWrapValue = ResponsiveValue; export interface FlexWrapProps { From 496ba25d2d746caf8eb467fc9b69cd824a45710e Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Mon, 5 Nov 2018 13:20:18 -0800 Subject: [PATCH 154/213] Updated CODEOWNERS as of 2018-11-05 --- .github/CODEOWNERS | 560 +++++++++++++++++++++++++++++++-------------- 1 file changed, 389 insertions(+), 171 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5121e1095e..df45a8a9e7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,6 +3,7 @@ # See https://github.com/DefinitelyTyped/DefinitelyTyped#edit-an-existing-package /types/a-big-triangle/ @MathiasPaumgarten +/types/a11y-dialog/ @Goyatuzo /types/abbrev/ @BendingBender /types/abs/ @AyaMorisawa /types/absolute/ @AyaMorisawa @@ -15,7 +16,7 @@ /types/ace-diff/ @innovation-team /types/acl/ @tkQubo /types/acorn/ @RReverser @e-cloud -/types/actioncable/ @zhu1230 +/types/actioncable/ @zhu1230 @szechyjs /types/actions-on-google/ @joelhegg /types/activedirectory2/ @pasthelod /types/activex-access/ @zspitz @@ -52,11 +53,14 @@ /types/aggregate-error/ @BendingBender /types/agora-rtc-sdk/ @menthays /types/ajv-errors/ @afshawnlotfi +/types/ale-url-parser/ @msn0 /types/alertify/ @jjeffery /types/alexa-sdk/ @petebeegle @hoo29 @pascalwhoop @blforce @rk-7 @alexmalcoci /types/alexa-voice-service/ @dolanmiu /types/algebra.js/ @CaselIT -/types/algoliasearch/ @cbaptiste @haroenv @aherve @samouss +/types/algoliasearch/ @cbaptiste @haroenv @aherve @samouss @keichinger +/types/ali-app/ @taoqf +/types/ali-oss/ @ptrdu /types/allure-js-commons/ @zaqqaz /types/almost-equal/ @cmaddalozzo /types/alt/ @Shearerbeard @@ -68,7 +72,7 @@ /types/amphtml-validator/ @kevincharm /types/amplify/ @joeriks /types/amplify-deferred/ @joeriks @laurentiustamate94 -/types/amplitude-js/ @Asido +/types/amplitude-js/ @Asido @danmana /types/amqp/ @seikho @jonnysparkplugs /types/amqp-connection-manager/ @rogierschouten /types/amqp-rpc/ @wokim @@ -149,6 +153,7 @@ /types/animation-frame/ @qinfchen /types/animejs/ @A-Babin /types/annyang/ @hisham @theluk +/types/ansi/ @Gustavo6046 /types/ansi-colors/ @rogierschouten /types/ansi-escape-sequences/ @aomarks /types/ansi-escapes/ @jacobbubu @@ -161,6 +166,7 @@ /types/any-db-transaction/ @rogierschouten /types/anybar/ @khoomeister /types/anymatch/ @BendingBender +/types/aos/ @shermendev /types/apex.js/ @y13i /types/aphrodite/ @asvetliakov /types/api-error-handler/ @tkrotoff @@ -168,6 +174,7 @@ /types/apigee-access/ @CasperSkydt /types/apollo-codegen/ @bradleyayers @kostspielig /types/apollo-upload-client/ @Slessi +/types/apostrophe/ @afholderman /types/app-root-dir/ @chenyang-biu /types/app-root-path/ @shantmarouti /types/appdmg/ @unindented @@ -195,18 +202,22 @@ /types/array-sort/ @DanielMSchmidt /types/array-uniq/ @DanielRosenwasser /types/array-unique/ @CSLTech +/types/array.prototype.flatmap/ @hallettj /types/arrify/ @wanganjun /types/artillery/ @kmccoan-allocadia /types/asana/ @tkqubo /types/asap/ @fpascutti +/types/ascii-art/ @lukaselmer /types/ascii2mathml/ @RagibHasin /types/asenv/ @remisery /types/asn1js/ @microshine /types/aspnet-identity-pw/ @jt000 +/types/assert/ @nicoabie /types/assert-equal-jsx/ @seryl /types/assert-plus/ @KostyaTretyak /types/assertsharp/ @brunolm /types/assets-webpack-plugin/ @kryops +/types/astring/ @nkappler /types/async/ @borisyankov @kern0 @Penryn @fenying @pascalmartin /types/async-cache/ @BendingBender /types/async-lock/ @elisee @afharo @rhymmor @@ -214,6 +225,7 @@ /types/async-retry/ @albertywu @MeLlamoPablo /types/async.nexttick/ @pyrho /types/asynciterator/ @rubensworks +/types/athenajs/ @warpdesign /types/atlaskit__button/ @dijimsta /types/atlaskit__calendar/ @lstanden /types/atlaskit__inline-edit/ @lstanden @@ -227,7 +239,8 @@ /types/atom-mocha-test-runner/ @GlenCFL /types/atpl/ @soywiz /types/audiosprite/ @Perlmint -/types/auth0/ @wbhob @westy92 @amiram +/types/auth-header/ @ForbesLindesay +/types/auth0/ @westy92 /types/auth0-angular/ @homesar /types/auth0-js/v7/ @advancedrei /types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz @@ -238,12 +251,12 @@ /types/auto-sni/ @janwo /types/autobahn/ @darkl @valepu /types/autolinker/ @leonyu -/types/autoprefixer/ @odnamrataizem +/types/autoprefixer/ @odnamrataizem @murt /types/autosize/ @kingdango @keika299 @NeekSandhu /types/autosuggest-highlight/ @senukartur /types/awesomplete/ @webbiesdk @bmdixon @tbekolay @chrislopresto /types/aws-iot-device-sdk/ @niik @mlamp -/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins +/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins @trevor-leach @jagregory /types/aws-serverless-express/ @threesquared @jcaffey @mattmeye @albertovasquez /types/aws4/ @ajcrites /types/axe-webdriverjs/ @JoshuaKGoldberg @@ -301,10 +314,11 @@ /types/bases/ @harikv /types/bash-glob/ @mrmlnc /types/basic-auth/ @moonpyk @vesse +/types/basicauth-middleware/ @nchaulet /types/batch-stream/ @drudge /types/bazinga-translator/ @alexndlm /types/bcrypt/ @codeanimal @IOAyman @dstapleton92 -/types/bcryptjs/ @RafaelKr +/types/bcryptjs/ @RafaelKr @branoholy /types/bdfjs/ @jeremejevs /types/beats/ @urish /types/bech32/ @micksatana @@ -314,10 +328,10 @@ /types/bencode/ @tobenna /types/better-curry/ @pocesar /types/better-queue/ @maozedong -/types/better-scroll/ @stoneChen +/types/better-scroll/ @stoneChen @cnjack /types/better-sqlite3/ @Morfent @matrumz /types/bezier-easing/ @ptlis -/types/bezier-js/ @danmarshall +/types/bezier-js/ @danmarshall @Epskampie /types/bgiframe/ @sumegizoltan /types/bidirectional-map/ @helenanderson /types/big.js/ @nycdotnet @googol @@ -338,9 +352,8 @@ /types/bitcoinjs-lib/ @mhegazy @dlebrecht @rbuckton @micksatana @youssefgh @kento1218 /types/bitcore-lib/ @lautarodragan /types/bittorrent-protocol/ @feross @tlaziuk -/types/bitwise/ @danwbyrne /types/bitwise-xor/ @rogierschouten -/types/bl/ @Bartvds +/types/bl/ @Bartvds @reconbot /types/blacklist/ @mhegazy /types/blazy/ @julienpa /types/blessed/ @brynbellomy @skellock @@ -371,7 +384,7 @@ /types/boom/ @rogatty @AJamesPhillips @jineshshah36 @TimonVS @danielmachado /types/bootbox/ @vbortone @konpikwastaken @kanup @icereed @trodi @stannynuytkens @renjfk /types/bootpag/ @rdeneau -/types/bootstrap/v3/ @borisyankov +/types/bootstrap/v3/ @borisyankov @denisname /types/bootstrap/ @denisname /types/bootstrap-3-typeahead/ @AndersonFriaca /types/bootstrap-datepicker/ @borisyankov @@ -383,6 +396,7 @@ /types/bootstrap-slider/ @dbeckwith @leonard-thieu /types/bootstrap-switch/ @johnmbaughman /types/bootstrap-table/ @talatbaig +/types/bootstrap-toggle/ @gricey432 /types/bootstrap-touchspin/ @albinsunnanbo /types/bootstrap-treeview/ @jbtronics /types/bootstrap-validator/ @BradyLiles @@ -401,6 +415,7 @@ /types/breeze/ @borisyankov /types/bricks.js/ @kondi /types/bro-fs/ @ffflorian +/types/broccoli-plugin/ @dfreeman /types/brorand/ @chrootsu /types/browser-bunyan/ @PaulLockwood @kryops /types/browser-fingerprint/ @LKay @@ -409,7 +424,7 @@ /types/browser-report/ @JTOne123 /types/browser-resolve/ @marionebl /types/browser-sync/ @joeskeen @aznnomness -/types/browserify/ @AndrewGaspar @jvilk @leonard-thieu +/types/browserify/ @AndrewGaspar @jvilk @leonard-thieu @LinusU /types/bs58/ @chrootsu /types/bson/ @horiuchi @CaselIT /types/btoa/ @johngeorgewright @@ -423,7 +438,7 @@ /types/bufferstream/ @Bartvds /types/builtin-modules/ @ajafff /types/bull/v2/ @bgrieder @JProgrammer -/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 +/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 @danmana /types/bump-regex/ @silkentrance /types/bunnymq/ @cyrilschumacher /types/bunyan/ @amikhalev @@ -439,9 +454,11 @@ /types/byline/ @reppners /types/bytebuffer/ @cappellin /types/bytes/ @danny8002 @believer +/types/bytewise/ @danwbyrne /types/c3/ @mcliment @gerinjacob @denyo @dmitryshindin @timn /types/cache-manager/ @GausSim /types/cal-heatmap/ @RetroChrisB +/types/caller/ @ignocide /types/callsite/ @newclear /types/callsites/ @BendingBender /types/calq/ @eirikhm @@ -450,6 +467,7 @@ /types/camelcase-keys/ @mhegazy /types/camo/ @lucasmciruzzi /types/cancan/ @Vincent-Pang +/types/caniuse-api/ @davecardwell /types/cannon/ @clark-stevenson @Gelio /types/canvas-confetti/ @matracey /types/canvas-gauges/ @Mikhus @@ -475,6 +493,7 @@ /types/chai-datetime/ @cliffburger @mattbishop /types/chai-dom/ @mattlewis92 /types/chai-enzyme/ @asvetliakov +/types/chai-fs/ @dimitardanailov /types/chai-fuzzy/ @Bartvds /types/chai-http/ @Nemo157 @G1itcher @CaselIT @bas-l /types/chai-jest-snapshot/ @mattvperry @@ -493,7 +512,7 @@ /types/chardet/ @Gebatzens /types/charm/ @Xananax /types/charset/ @cspotcode -/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij @danmana @guillaume-ro-fr @archy-bold @braincore @gebeto @frabnt @alexdor @mahnuh +/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij @danmana @guillaume-ro-fr @archy-bold @braincore @frabnt @alexdor @mahnuh @Conrad777 /types/chartist/ @mtgibbs @psimonski @clottman @affilnost @sunnyrjuneja /types/chartmogul-node/ @chartmogul /types/chayns/ @HenningKuehl @@ -506,6 +525,7 @@ /types/chessboardjs/ @sliverb @davidmpaz /types/chmodr/ @BendingBender /types/chokidar/ @reppners @felixfbecker @bayssmekanique +/types/chordsheetjs/ @adamsbloom /types/chosen-js/ @borisyankov @denisname /types/chownr/ @BendingBender /types/chroma-js/v0/ @invliD @@ -533,6 +553,7 @@ /types/cleave.js/ @clentfort @jasongi-at-sportsbet @sashashakun /types/cli/ @kayahr /types/cli-color/ @ChaosinaCan +/types/cli-interact/ @ffflorian /types/cli-progress/ @mhegazy /types/cli-spinner/ @janslow /types/cli-table/ @arylo @@ -573,18 +594,20 @@ /types/color-namer/ @in19farkt /types/color-string/ @BendingBender @danmarshall /types/colorbrewer/ @mtraynham +/types/colresizable/ @gilleswaeber /types/com.darktalker.cordova.screenshot/ @akarienta /types/com.wikitude.phonegap.wikitudeplugin/ @zbarbuto /types/combine-source-map/ @TeamworkGuy2 /types/combined-stream/ @felixge @tlaziuk /types/combokeys/ @iclanton -/types/cometd/ @derekcicerone +/types/cometd/ @derekcicerone @unindented @alxHenry /types/command-line-args/v4/ @CzBuCHi @75lb /types/command-line-args/ @75lb /types/command-line-commands/ @CzBuCHi /types/command-line-usage/ @matrumz @Dvorsky /types/commangular/ @hiraash /types/comment-json/ @Jason3S +/types/commercetools__enzyme-extensions/ @screendriver /types/common-errors/ @icopp /types/common-prefix/ @seangenabe /types/common-tags/ @zuzusik @tzupengwang @@ -592,7 +615,7 @@ /types/commonmark/ @nicojs @leonard-thieu /types/compare-version/ @jpevarnek /types/compare-versions/ @LogvinovLeon -/types/complex/ @AyaMorisawa +/types/complex/ @AyaMorisawa @pavasich /types/component-emitter/ @psnider /types/compose-function/ @denis-sokolov /types/compressible/ @BendingBender @@ -612,6 +635,7 @@ /types/confit/ @ethanresnick /types/connect/ @SomaticIT @EvanHahn /types/connect-busboy/ @pinguet62 +/types/connect-datadog/ @moshegood /types/connect-ensure-login/ @0x6368656174 /types/connect-flash/ @AndreasGassmann /types/connect-history-api-fallback/ @douglasduteil @@ -623,8 +647,10 @@ /types/connect-redis/ @xstoudi @morcerf /types/connect-slashes/ @samherrmann /types/connect-timeout/ @cyrilschumacher +/types/consola/ @Jungwoo-An /types/console-log-level/ @ofrobots /types/console-stamp/ @ericbyers @guusdegraeve +/types/console-ui/ @dfreeman /types/consolidate/ @soywiz @theosherry @nicolashenry /types/consul/ @chrootsu /types/content-disposition/ @bomret @@ -651,6 +677,7 @@ /types/cordova-plugin-background-mode/ @Lordnoname /types/cordova-plugin-badge/ @timbru31 /types/cordova-plugin-ble-central/ @gjunge +/types/cordova-plugin-bluetoothclassic-serial/ @tuvokki /types/cordova-plugin-canvascamera/ @lordazzi /types/cordova-plugin-device-name/ @larrybahr /types/cordova-plugin-file-opener2/ @cyrilgandon @@ -669,17 +696,19 @@ /types/cordova_app_version_plugin/ @larrybahr /types/cordovarduino/ @hendrikmaus /types/core-js/ @rbuckton @mfdeveloper +/types/core-object/ @dfreeman /types/correlation-id/ @natemara /types/cors/ @pluma /types/cosmiconfig/v4/ @ozum /types/cosmiconfig/ @ozum @szeck87 @saadq @jinwoo -/types/cote/ @makepost +/types/cote/ @makepost @roblabat /types/couchbase/ @maouida @fluggo /types/countdown/ @gjuchault /types/counterpart/ @santiagodoldan /types/countries-and-timezones/ @zero51 /types/country-list/ @iRoachie /types/country-select-js/ @humrochagf +/types/countup.js/ @shermendev /types/coverup/ @bevalorous /types/cp-file/ @BendingBender /types/cpx/ @alan-agius4 @@ -694,12 +723,14 @@ /types/createjs-lib/ @evilangelist @gyohk /types/credential/ @phuvo /types/credit-card-type/ @LKay +/types/critters-webpack-plugin/ @JuanJoseGonGi /types/cron/ @horiuchi @winup /types/cropperjs/ @stepancar /types/croppie/ @connor4312 @dklmuc @sarunint @knuthelgesen /types/cross-spawn/ @Alorel /types/crossfilter/ @schmuli @iebaker @nordfjord /types/crossroads/ @diullei +/types/crpc/ @0xdeafcafe /types/cryptiles/ @awendland /types/crypto-js/ @misak113 /types/crypto-random-string/ @MrManny @@ -725,16 +756,16 @@ /types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom /types/currency-formatter/ @mhegazy @davidmpaz /types/custom-error-generator/ @thmiceli -/types/custom-functions-runtime/ @OfficeDev @Zlatkovsky @mscharlock @kbrandl +/types/custom-functions-runtime/ @OfficeDev @Zlatkovsky @mscharlock /types/cwise/ @taoqf /types/cwise-compiler/ @taoqf /types/cwise-parser/ @taoqf /types/cybozulabs-md5/ @pine613 /types/cytoscape/ @phreed @wy193777 @ypconstante @janniclas @cerberuser /types/d3/v3/ @gustavderdrache @borisyankov @MatthiasJobst -/types/d3/v4/ @tomwanzek @gustavderdrache @borisyankov -/types/d3/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek +/types/d3/v4/ @tomwanzek @gustavderdrache @borisyankov @denisname +/types/d3/ @tomwanzek @gustavderdrache @borisyankov @denisname +/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek @denisname /types/d3-axis/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-box/ @lk-chen /types/d3-brush/ @tomwanzek @gustavderdrache @borisyankov @@ -752,10 +783,11 @@ /types/d3-force/ @tomwanzek @gustavderdrache @borisyankov /types/d3-format/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-geo/ @ledragon @tomwanzek @gustavderdrache @borisyankov +/types/d3-graphviz/ @DomParfitt /types/d3-hexbin/ @uncovertruth @tomwanzek @denisname /types/d3-hierarchy/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-hsv/ @arrayjam @denisname -/types/d3-interpolate/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-interpolate/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-path/ @tomwanzek @gustavderdrache @borisyankov /types/d3-polygon/ @tomwanzek @gustavderdrache @borisyankov /types/d3-quadtree/ @tomwanzek @gustavderdrache @borisyankov @denisname @@ -766,12 +798,12 @@ /types/d3-scale/v1/ @tomwanzek @gustavderdrache @borisyankov /types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov /types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov @henriquefm -/types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-selection-multi/ @gustavderdrache @borisyankov /types/d3-shape/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-time/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-time/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-time-format/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-timer/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-timer/ @tomwanzek @gustavderdrache @borisyankov @denisname /types/d3-tip/ @brspnnggrt /types/d3-transition/ @tomwanzek @gustavderdrache @borisyankov /types/d3-voronoi/ @tomwanzek @gustavderdrache @borisyankov @denisname @@ -803,6 +835,7 @@ /types/datejs/ @rupertavery /types/daterangepicker/ @SirMartin @smasala @nertzy /types/dav/ @ToastHawaii +/types/dayzed/ @samhh /types/db-migrate-base/ @nickiannone /types/db-migrate-pg/ @nickiannone /types/db.js/ @cgwrench @@ -810,8 +843,8 @@ /types/dd-trace/ @ColinBradley @alloy /types/deasync/ @Sicilica /types/debessmann/ @vkorehov -/types/debounce/ @denis-sokolov -/types/debug/ @swook @galtalmor @zamb3zi +/types/debounce/ @denis-sokolov @joshuakgoldberg +/types/debug/ @swook @galtalmor @zamb3zi @brasten /types/decamelize/ @samverschueren /types/decay/ @enaeseth /types/decompress/ @plantain-00 @jbethke @@ -825,7 +858,6 @@ /types/deep-freeze/ @Bartvds @aluanhaddad /types/deep-freeze-es6/ @mattbishop /types/deep-freeze-strict/ @mhegazy -/types/deepmerge/ @marvinscharle @syy1125 @AppLover69 /types/defaults/ @IbtihelCHNAB /types/defer-promise/ @niklasf /types/define-lazy-prop/ @BendingBender @@ -858,7 +890,9 @@ /types/detect-pointer/ @thomastilkema /types/detect-port/ @lith-light-g /types/detect-touch-events/ @thomastilkema -/types/detox/ @TareqElMasri +/types/detective/ @TeamworkGuy2 +/types/detox/ @TareqElMasri @stevechun +/types/dev-ip/ @mike-engel /types/devexpress-aspnetcore-bootstrap/ @devexpress @skubarenko /types/df-visible/ @Litee /types/dhtmlxgantt/ @mkozhukh @chriscamicas @@ -867,8 +901,9 @@ /types/di-lite/ @dcrusader /types/diacritics/ @otociulis /types/dialogflow/ @dyladan -/types/diff/ @vvakame @szdc +/types/diff/ @vvakame @szdc @moc-yuto /types/diff2html/ @rtfpessoa +/types/digibyte/ @lautarodragan @werewolfe /types/dir-resolve/ @andy-ms /types/discontinuous-range/ @OiCMudkips /types/discourse-sso/ @championswimmer @@ -887,10 +922,11 @@ /types/dojo/ @vansimke /types/dom-clipboard-api/ @43081j /types/dom-inputevent/ @diagramatics +/types/dom-loaded/ @ltetzlaff /types/dom-to-image/ @JipSterk /types/dom4/ @adidahiya @giladgray /types/domo/ @Steve-Fenton -/types/dompurify/ @bazuzi +/types/dompurify/ @bazuzi @FlowCrypt /types/domready/ @dotnetnerd /types/donna/ @vvakame /types/dookie/ @swanest @@ -917,6 +953,7 @@ /types/draggabilly/ @jaydubu /types/dragster/ @zskovacs /types/dragula/ @pwelter34 @abruzzihraig +/types/dropbox-chooser/ @quas94 /types/dropboxjs/ @Steve-Fenton @xperiments /types/dropkickjs/ @VorobeY1326 /types/dropzone/v4/ @nvivo @outring @renuo @Hikariii @@ -924,7 +961,7 @@ /types/dts-generator/ @mtraynham /types/duplexer2/ @Goldsmith42 /types/duplexer3/ @BendingBender -/types/duplexify/ @strax +/types/duplexify/ @strax @kinwa91 /types/duplicate-package-checker-webpack-plugin/ @mtraynham /types/durandal/ @BlueSpire /types/dustjs-linkedin/ @mdezem @@ -960,6 +997,7 @@ /types/ejs/ @benliddicott /types/ejs-locals/ @jt000 /types/ejson/ @shantanubhadoria +/types/elastic-apm-node/ @shahaed /types/elasticsearch/ @CasperSkydt @bfsmith @ddunkin @pushplay @mlamp @ahmadferdous @SimonSchick @brabster @deerawan /types/electron-config/ @mrfunkycold @unindented /types/electron-debug/ @unindented @@ -1025,6 +1063,7 @@ /types/emojione/ @dbrgn /types/empower/ @vvakame /types/emscripten/ @zakki @periklis +/types/encoding-down/ @MeirionHughes @danwbyrne /types/end-of-stream/ @strax /types/engine.io/ @KentarouTakeda /types/engine.io-client/ @KentarouTakeda @@ -1107,7 +1146,8 @@ /types/expo/v24/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger /types/expo/v25/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov /types/expo/v26/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @tinaroh -/types/expo/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki +/types/expo/v27/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo +/types/expo/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo /types/expo__status-bar-height/ @dawnmist /types/expo__vector-icons/ @incleaf /types/express/ @borisyankov @@ -1138,6 +1178,7 @@ /types/express-mung/ @cyrilschumacher /types/express-myconnection/ @Cellule /types/express-mysql-session/ @Akim95 +/types/express-ntlm/ @forivall /types/express-oauth-server/ @atd-schubert /types/express-openapi/ @mugeso /types/express-paginate/ @AmirTugi @@ -1150,12 +1191,14 @@ /types/express-sanitized/ @cjbarth /types/express-serve-static-core/ @borisyankov @19majkel94 @kacepe @micksatana @samijaber /types/express-session/ @horiuchi @jacobbogers @builtinnya @ry7n +/types/express-sitemap-xml/ @ffflorian /types/express-socket.io-session/ @AylaJK /types/express-to-koa/ @xiaohanzhang /types/express-unless/ @wokim /types/express-wechat-access/ @simmons8616 /types/express-winston/ @bricka /types/express-ws/ @ajliv +/types/express-ws-routes/ @gstamac /types/express-xml-bodyparser/ @noticeMaker @macedigital /types/extend/ @reppners /types/extjs/ @brian428 @@ -1169,8 +1212,9 @@ /types/f1/ @neolwc /types/fabric/ @oklemencic @joewashear007 @mrand01 @NotWoods @bmartinson @RogerioTeixeira @BradleyHill /types/facebook-instant-games/ @menushka @oyvindjam -/types/facebook-js-sdk/ @amritk @mahmoudzohdi +/types/facebook-js-sdk/ @amritk @mahmoudzohdi @fluidsonic /types/facebook-pixel/ @noctishsu +/types/factory-girl/ @stackbuilders @sestrella @elcuy /types/faker/v3/ @Kuniwak /types/faker/ @bensw @basp @Kuniwak @mattbishop /types/falcor/ @Quramy @@ -1187,6 +1231,10 @@ /types/fast-list/ @BendingBender /types/fast-stats/ @rogierschouten /types/fastclick/ @shinnn +/types/fastify-cors/ @jannikkeye +/types/fastify-jwt/ @jannikkeye +/types/fastify-multipart/ @jannikkeye +/types/fastify-static/ @leomelzer /types/favico.js/ @drowse314-dev-ymat /types/favicons/ @mohsen1 /types/fb/ @JoshStrobl @@ -1213,7 +1261,7 @@ /types/feedme/ @codeanimal /types/feedparser/ @cortopy /types/fetch-jsonp/ @tkrotoff -/types/fetch-mock/ @asvetliakov @tamird @merrywhether @chrissinclair @matttennison @quentinbouygues +/types/fetch-mock/ @asvetliakov @tamird @merrywhether @chrissinclair @matttennison @quentinbouygues @mtsmfm /types/fetch.io/ @newraina /types/ffi/ @loyd @waitingsong /types/ffi-napi/ @keerthi16 @KiranNiranjan @@ -1248,7 +1296,7 @@ /types/firebase-token-generator/ @dotdotcommadot /types/firebird/ @karak /types/firefox/ @vvakame -/types/firefox-webext-browser/ @bomjacob +/types/firefox-webext-browser/ @jsmnbom /types/firmata/ @troywweber7 /types/first-mate/ @GlenCFL /types/fixed-data-table/ @pepaar @stephenjelfs @@ -1266,6 +1314,7 @@ /types/flush-write-stream/ @djcsdy /types/flux/ @stkb @GiedriusGrabauskas /types/fluxible/ @xbim +/types/fluxible-addons-react/ @xbim /types/fluxible-router/ @xbim /types/fluxxor/ @mrk21 /types/fm-websync/ @markusmauch @@ -1290,6 +1339,7 @@ /types/foundation/ @borisyankov /types/fpsmeter/ @alampros /types/framebus/ @kbukum +/types/franc/ @wlegate /types/frctl__fractal/ @pmccloghrylaing /types/freedom/ @jpevarnek /types/freeport/ @atd-schubert @@ -1329,6 +1379,7 @@ /types/fxn/ @charrondev /types/gae.channel.api/ @vvakame /types/gamedig/ @ivansieder +/types/gamepad/ @Lange /types/gamequery/ @Laubi /types/ganache-core/ @LogvinovLeon /types/gandi-livedns/ @xstoudi @@ -1491,9 +1542,11 @@ /types/get-stdin/ @DanielRosenwasser /types/get-stream/ @douglasduteil @BendingBender /types/get-value/ @DanielRosenwasser +/types/getenv/ @impankratov /types/getopts/ @azasypkin /types/getos/ @BendingBender /types/gettext.js/ @jucrouzet +/types/gh-pages/ @DanielRosenwasser /types/gifffer/ @gatimus /types/gijgo/ @atatanasov /types/giraffe/ @darthapo @@ -1501,6 +1554,7 @@ /types/git-branch/ @rynclark /types/git-config/ @stpettersens /types/git-remote-origin-url/ @janslow +/types/git-rev-sync/ @khoi-fish /types/git-url-parse/ @ajafff /types/github-url-to-object/ @ajafff /types/github-username-regex/ @BehindTheMath @@ -1510,7 +1564,8 @@ /types/gl-texture2d/ @MathiasPaumgarten /types/gldatepicker/ @qcz /types/glidejs/ @milanjaros -/types/glob/ @vvakame @voy +/types/glob/v5/ @vvakame @voy +/types/glob/ @vvakame @voy @ajafff /types/glob-base/ @alan-agius4 /types/glob-expand/ @vvakame /types/glob-parent/ @mrmlnc @@ -1521,8 +1576,9 @@ /types/globalize-compiler/ @iclanton /types/globby/ @douglasduteil @ikatyang /types/globule/ @durad +/types/glue/v4/ @gjednaszewski /types/glue/ @garfty -/types/gm/ @ChaosinaCan @maartenvanvliet +/types/gm/ @ChaosinaCan @maartenvanvliet @mlejva /types/go/ @NorthwoodsSoftware /types/google-adwords-scripts/ @jafaircl /types/google-apps-script/ @motemen @grant @@ -1543,17 +1599,20 @@ /types/google.geolocation/ @vbortone /types/google.picker/ @grapswiz /types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov @glebm +/types/google__maps/ @indrimuska /types/googlemaps/ @cgwrench @nertzy @xaolas @mrmcnerd @martincostello @svenkreiss @bolatovumar @gauthierm /types/googlemaps.infobubble/ @Dashue -/types/googlepay/ @Fluccioni @Radu-Raicea -/types/got/ @BendingBender @LinusU @ikokostya +/types/googlepay/ @Fluccioni @Radu-Raicea @fstanis +/types/got/v8/ @BendingBender @LinusU @ikokostya +/types/got/ @BendingBender @LinusU @ikokostya @stijnvn /types/graceful-fs/v2/ @Bartvds /types/graceful-fs/ @Bartvds @BendingBender /types/gradient-string/ @Ailrun /types/graham_scan/ @hberntsen /types/gramps__rest-helpers/ @claude /types/graphite-udp/ @EricByers -/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal @tgriesser @dyst5422 @adnsio @divyenduz @bradzacher @clayne11 +/types/graphlib-dot/ @DomParfitt +/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal @tgriesser @dyst5422 @adnsio @divyenduz @bradzacher @clayne11 @JCMais /types/graphql-date/ @enaeseth /types/graphql-deduplicator/ @lfades /types/graphql-depth-limit/ @eritikass @@ -1562,6 +1621,7 @@ /types/graphql-query-complexity/ @abhikmitra /types/graphql-relay/ @arvitaly @nitintutlani @Grelinfo /types/graphql-resolve-batch/ @nayni +/types/graphql-resolvers/ @mike-engel /types/graphql-type-json/ @schfkt /types/graphviz/ @mhfrantz /types/grasp/ @agnoster @@ -1571,12 +1631,11 @@ /types/grecaptcha/v0/ @brentj73 /types/grecaptcha/ @DethAriel @rafaeltavares /types/gregorian-calendar/ @cwalv -/types/grid-styled/ @antonvasin @vittorio @lhache /types/gridfs-stream/ @liorm /types/gridstack/ @PascalSenn @ZoolWay @Sl1MBoy /types/grpc-error/ @danwbyrne /types/grunt/ @jeffmay @basarat -/types/gsap/ @codebelt @ProbablePrime @philipbulley +/types/gsap/ @codebelt @ProbablePrime @philipbulley @leomeloxp /types/gtin/ @RafaelKr /types/guid/ @maroy1986 /types/gulp/ @GiedriusGrabauskas @@ -1722,6 +1781,8 @@ /types/holderjs/ @renjfk /types/hooker/ @misak113 /types/hopscotch/ @pimterry @Aurimas1 +/types/host-validation/ @dintopple +/types/hosted-git-info/ @OiyouYeahYou /types/howler/ @xperiments @tdukart @alien35 @nicholashza /types/hpp/ @kryops /types/html-entities/ @xstoudi @@ -1733,7 +1794,7 @@ /types/html-void-elements/ @rhysd /types/html-webpack-plugin/ @deevus @bumbleblym @tlaziuk /types/html-webpack-template/ @bumbleblym -/types/html2canvas/ @rwhepburn @tan9 @sschocke +/types/html2canvas/ @rwhepburn @tan9 @sschocke @Ristaaf /types/htmlbars-inline-precompile/ @chriskrycho /types/htmlparser2/ @staticfunction @LinusU /types/htmltojsx/ @basarat @@ -1745,7 +1806,7 @@ /types/http-graceful-shutdown/ @dlee-nvisia /types/http-link-header/ @screendriver /types/http-proxy/ @SomaticIT @Raigen @DanielMSchmidt -/types/http-proxy-agent/ @mrmlnc +/types/http-proxy-agent/ @mrmlnc @steprescott /types/http-proxy-middleware/ @zebMcCorkle @BendingBender /types/http-rx/ @L2jLiga /types/http-server/ @plantain-00 @@ -1764,9 +1825,11 @@ /types/hypertext-application-language/ @maks3w /types/hystrixjs/ @igorsechyn /types/i18n/ @SomaticIT @FindQ +/types/i18n-abide/ @smbell /types/i18n-js/ @ypresto /types/i18next/v2/ @mxl @deerawan @GiedriusGrabauskas -/types/i18next/ @mxl @deerawan @GiedriusGrabauskas +/types/i18next/v8/ @mxl @deerawan @GiedriusGrabauskas +/types/i18next/ @mxl @deerawan @GiedriusGrabauskas @lenovouser @qqilihq @butchyyyy /types/i18next-browser-languagedetector/v0/ @cyrilschumacher @GiedriusGrabauskas /types/i18next-browser-languagedetector/ @cyrilschumacher @GiedriusGrabauskas /types/i18next-express-middleware/ @cyrilschumacher @@ -1792,6 +1855,7 @@ /types/ignore-styles/ @tai2 /types/iltorb/ @Alorel @reconbot /types/image-size/ @elisee +/types/image-type/ @ffflorian /types/imagemagick/ @soywiz /types/imagemagick-native/ @horiuchi /types/imagemapster/ @delphinus35 @@ -1807,7 +1871,7 @@ /types/imgur-rest-api/ @lukewestby /types/imperium/ @gaetansenn /types/impress/ @borisyankov -/types/in-app-purchase/ @l-jonas +/types/in-app-purchase/ @l-jonas @IchordeDionysos /types/in-range/ @DanielRosenwasser /types/inboxsdk/ @rdoursenaud @amiram /types/incremental-dom/ @basarat @lanthaler @vvakame @@ -1819,9 +1883,11 @@ /types/inherits/ @chrootsu /types/ini/ @marcinporebski /types/iniparser/ @chrootsu +/types/init-package-json/ @kfarnung /types/inline-css/ @philipisapain -/types/inline-style-prefixer/ @ahz @dpetrezselyova +/types/inline-style-prefixer/ @ahz @dpetrezselyova @franklixuefei /types/inquirer/ @tkQubo @ppathan @jouderianjr @bang88 @bitjson @synarque @jrockwood @kwkelly @Ailrun +/types/inquirer-npm-name/ @manuth /types/insert-module-globals/ @leonard-thieu /types/insight/ @vvakame /types/integer/ @Morfent @@ -1842,7 +1908,7 @@ /types/ion-rangeslider/v1/ @dduugg @Karel-van-de-Plassche /types/ion-rangeslider/ @Karel-van-de-Plassche /types/ioredis/v3/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot -/types/ioredis/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot +/types/ioredis/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor @palindrom615 @reconbot @funthing @iamolegga /types/iota.lib.js/ @fogsh /types/ip/ @codeanimal /types/ip-address/ @icopp @danwbyrne @@ -1860,10 +1926,11 @@ /types/is-ci/ @atd-schubert /types/is-color/ @VitorLuizC /types/is-compressed/ @mhegazy +/types/is-docker/ @YashdalfTheGray /types/is-empty/ @termosa /types/is-finite/ @mhegazy /types/is-glob/ @mrmlnc -/types/is-hotkey/ @petester42 +/types/is-hotkey/ @petester42 @kalley /types/is-ip/ @coderslagoon /types/is-mobile/ @LogvinovLeon /types/is-my-json-valid/ @kruncher @@ -1886,6 +1953,7 @@ /types/is-url-superb/ @kryops /types/is-uuid/ @tedre191 /types/is-windows/ @mizunashi-mana +/types/isaac/ @mo /types/isbn-utils/ @elhaard /types/iscroll/ @csrakowski @devlato /types/ismobilejs/ @Ty3uK @@ -1909,6 +1977,7 @@ /types/japanese-holidays/ @syamatoo /types/jasmine/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software @Engineer2B /types/jasmine-ajax/ @lgrignon +/types/jasmine-data-provider/ @tlaziuk /types/jasmine-data_driven_tests/ @AnthonyMacKinnon /types/jasmine-enzyme/ @bolatovumar /types/jasmine-es6-promise-matchers/ @stephenlautier @@ -1919,7 +1988,7 @@ /types/jasmine-node/ @svi3c /types/jasmine-promise-matchers/ @matthewjh /types/jasmine_dom_matchers/ @devoto13 -/types/jasminewd2/ @sjelin +/types/jasminewd2/ @sjelin @gkalpak /types/java/ @jimlloyd @hrl7 @darti /types/java-applet/ @cyrilschumacher /types/javascript-astar/ @ptlis @@ -1931,8 +2000,9 @@ /types/jdataview/ @RReverser /types/jdenticon/ @mtr /types/jest/v16/ @NoHomey @jwbay -/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @joshuakgoldberg @UselessPickles @r3nya @hotell @sebald +/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @joshuakgoldberg @UselessPickles @r3nya @hotell @sebald @andys8 /types/jest-axe/ @JoshuaKGoldberg +/types/jest-cli/ @lifeiscontent /types/jest-diff/ @myabc /types/jest-docblock/ @ikatyang /types/jest-each/ @theutz @nickmccurdy @@ -1957,6 +2027,7 @@ /types/johnny-five/ @nakakura @ujvzolee @workshop2 /types/joi/v6/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW /types/joi/v10/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @aconanlai +/types/joi/v13/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @dankraus @wanganjun @rafaelkallis @aconanlai @zaphoyd @thewillg @SimonSchick /types/joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @dankraus @wanganjun @rafaelkallis @aconanlai @zaphoyd @thewillg @SimonSchick /types/joigoose/ @boothwhack /types/josa/ @vichyssoise @@ -1968,7 +2039,7 @@ /types/jqrangeslider/ @qcz /types/jquery/v1/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu /types/jquery/v2/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu -/types/jquery/ @leonard-thieu @borisyankov @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @johnnyreilly @DickvdBrink @King2500 +/types/jquery/ @leonard-thieu @borisyankov @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @johnnyreilly @DickvdBrink @King2500 @terrymun /types/jquery-ajax-chain/ @humana-fragilitas /types/jquery-alertable/ @stever /types/jquery-animate-scroll/ @AndersonFriaca @@ -1983,6 +2054,7 @@ /types/jquery-editable-select/ @baywet /types/jquery-focus-exit/ @AndersonFriaca /types/jquery-focusable/ @AndersonFriaca +/types/jquery-formatdatetime/ @AndersonFriaca /types/jquery-fullscreen/ @bgrieder /types/jquery-galleria/ @rimig /types/jquery-gray/ @AndersonFriaca @@ -2105,7 +2177,7 @@ /types/js-yaml/ @Bartvds @sclausen /types/js.spec/ @mattbishop /types/jsbn/ @Evgenus @al2xed -/types/jschannel/ @yitzchok +/types/jschannel/ @yitzchok @McFlat /types/jscrollpane/ @qcz /types/jsdeferred/ @minodisk /types/jsdom/ @leonard-thieu @palmfjord @@ -2113,7 +2185,7 @@ /types/jsend/ @CaselIT /types/jsesc/ @Bartvds /types/jsfl/ @soywiz -/types/jsforce/ @dolanmiu @netes @amphro @tnoonan-salesforce @whiteabelincoln +/types/jsforce/ @dolanmiu @netes @amphro @tnoonan-salesforce @whiteabelincoln @borys-kupar /types/jsftp/ @xyleen /types/jsgraph/ @rosinbum /types/jshamcrest/ @dharkness @@ -2126,6 +2198,7 @@ /types/json-patch-gen/ @RohdeK /types/json-pointer/ @Bartvds /types/json-query/ @mtraynham +/types/json-rpc-random-id/ @micahriggan /types/json-rpc-ws/ @npenin @mlamp /types/json-schema/ @bcherny @cyrilletuzi @lucianbuzzo @rolandjitsu /types/json-socket/ @svi3c @@ -2145,15 +2218,18 @@ /types/jsonnet/ @hookclaw /types/jsonp/ @surenkov /types/jsonpath/ @horiuchi @ikatyang +/types/jsonquery/ @JimmyBoh /types/jsonrpc-serializer/ @Akim95 @many20 /types/jsonstream/ @Bartvds /types/jsontoxml/ @benstevens48 -/types/jsonwebtoken/ @SomaticIT @danielheim @brikou @vpk +/types/jsonwebtoken/ @SomaticIT @danielheim @brikou @vpk @rlgod /types/jsonwebtoken-promisified/ @SomaticIT @danielheim @brikou @aneilbaboo +/types/jspath/ @dex4er /types/jspdf/ @amberjs /types/jsqrcode/ @lordazzi /types/jsrender/ @zakki /types/jsreport-core/ @taoqf +/types/jsreport-html-embedded-in-docx/ @taoqf /types/jsreport-html-to-xlsx/v1/ @me /types/jsreport-html-to-xlsx/ @me /types/jsreport-jsrender/ @taoqf @@ -2175,6 +2251,7 @@ /types/jui/ @easylogic /types/jui-core/ @easylogic /types/jui-grid/ @easylogic +/types/just-debounce-it/ @azizhk /types/just-extend/ @pe8ter /types/jweixin/ @taoqf @gomydodo /types/jwplayer/ @martinduparc @kutomer @philippguertler @danielmcgraw @bpdsw @@ -2185,8 +2262,10 @@ /types/jwt-express/ @nickp10 /types/jwt-simple/ @kenfdev @GaelMagnan /types/jwt-then/ @phenomax +/types/k6/ @MajorBreakfast /types/kafka-node/ @dansitu @bkim54 @sfrooster @amiram -/types/karma/ @tkrotoff @43081j +/types/karma/v1/ @tkrotoff @43081j +/types/karma/ @tkrotoff @43081j @devoto13 /types/karma-chai/ @JayAndCatchFire /types/karma-chai-sinon/ @vasek17 /types/karma-coverage/ @tkrotoff @@ -2196,11 +2275,12 @@ /types/karma-webpack/ @mtraynham /types/katex/ @mrand01 /types/kcors/ @Xstoudi @izayoiko -/types/kdbush/ @DenisCarriere +/types/kdbush/ @DenisCarriere @chrfrasco /types/keen-tracking/ @rui-ferreira /types/kefir/ @AyaMorisawa @HitoriSensei /types/kendo-ui/ @telerik -/types/keyboardjs/ @vbortone @piranha771 +/types/keyboardjs/ @vbortone @piranha771 @teoxoy +/types/keycloak-connect/ @gstamac /types/keygrip/ @jkeylu /types/keymaster/ @nitram509 /types/keymirror/ @jfahrenkrug @@ -2264,6 +2344,7 @@ /types/koa-pino-logger/ @khell /types/koa-pug/ @Xstoudi /types/koa-range/ @strax +/types/koa-ratelimit/ @OutdatedVersion /types/koa-redis/ @nsimmons /types/koa-redis-cache/ @dimamukhin /types/koa-requestid/ @sjmcdowall @@ -2276,15 +2357,17 @@ /types/koa-sslify/ @wingsbob /types/koa-static/ @hellopao @tlaziuk /types/koa-static-cache/ @JounQin +/types/koa-static-server/ @wulunyi /types/koa-views/ @brooklyndev /types/koa-webpack/ @malj @leebenson @miZyind @tlaziuk -/types/koa-websocket/ @moimael @jacogr @zdila +/types/koa-websocket/ @moimael @jacogr @zdila @Kroisse /types/koa-xml-body/ @uwinkelvos /types/koa2-cors/ @xialeistudio /types/koa2-session-redis/ @DimaMukhin /types/koa__cors/ @Xstoudi @izayoiko @stevehipwell @sjmcdowall /types/kolite/ @borisyankov /types/konami.js/ @mareek +/types/kos-core/ @ali-Kos /types/kraken-js/ @darkwebdev @micksatana /types/kramed/ @tonicblue /types/kss/ @giladgray @@ -2293,13 +2376,16 @@ /types/kuromoji/ @mzsm @kgtkr /types/lab/ @prashaantt /types/ladda/ @dflor003 @leemicw +/types/lambda-log/ @armonge +/types/lambda-tester/ @ivank @HajoAhoMantila /types/lasso/ @darkwebdev /types/later/ @jasond-s /types/latinize/ @GiedriusGrabauskas /types/latlon-geohash/ @rimig /types/launchpad/ @rictic +/types/layzr.js/ @shermendev /types/lazy-value/ @ikatyang -/types/lazy.js/ @Bartvds +/types/lazy.js/ @Bartvds @miso440 /types/lazypipe/ @tomc974 /types/ldapjs/ @cvillemure @peterkooijmans /types/leadfoot/ @theintern @@ -2315,7 +2401,7 @@ /types/leaflet-imageoverlay-rotated/ @tkleinke /types/leaflet-label/ @Nemo157 /types/leaflet-mouse-position/ @Hanyon -/types/leaflet-polylinedecorator/ @soucekv +/types/leaflet-polylinedecorator/ @soucekv @michaelfaisst /types/leaflet-providers/ @BendingBender /types/leaflet-rotatedmarker/ @robert-prib-polestar /types/leaflet-routing-machine/ @chanakadrathnayaka @@ -2330,21 +2416,28 @@ /types/leaflet.pancontrol/ @Brictarus /types/leaflet.pm/ @tkleinke /types/leaflet.polylinemeasure/ @RiON69 +/types/leakage/ @atd-schubert /types/leapmotionts/ @logotype +/types/ledgerhq__hw-transport/ @danwbyrne +/types/ledgerhq__hw-transport-node-hid/ @danwbyrne +/types/ledgerhq__hw-transport-u2f/ @danwbyrne /types/legal-eagle/ @j-f1 /types/lerna-get-packages/ @LogvinovLeon -/types/less/ @thasner @pranaygp @dwaxweiler +/types/less/ @thasner @pranaygp @dwaxweiler @chigix /types/less-middleware/ @federicobond /types/less2sass/ @gatimus /types/lestate/ @thelambdaparty /types/level-codec/ @danwbyrne /types/level-sublevel/ @basp -/types/leveldown/ @tarruda @LinusU -/types/levelup/ @blittle @tarruda +/types/leveldown/v1/ @tarruda @LinusU +/types/leveldown/ @MeirionHughes @danwbyrne +/types/levelup/v1/ @blittle @tarruda +/types/levelup/ @MeirionHughes @danwbyrne /types/leven/ @jmalonzo /types/levenshtein/ @geoffreak /types/libpq/ @Lodin /types/libsodium-wrappers/ @ffflorian +/types/libsodium-wrappers-sumo/ @ffflorian /types/libxmljs/ @fdecampredon @ComFreek /types/libxslt/ @alejo90 /types/license-checker/ @rogierschouten @unindented @@ -2354,6 +2447,7 @@ /types/line-reader/ @stpettersens /types/linear-gradient/ @Jack-Works /types/lingui__core/ @huan086 +/types/lingui__macro/ @huan086 /types/lingui__react/ @huan086 /types/linkify-it/ @praxxis /types/listr/ @durad @@ -2372,6 +2466,7 @@ /types/lockfile/v0/ @Bartvds /types/lockfile/ @Bartvds @BendingBender /types/lockr/ @droritos +/types/locks/ @flippynips /types/locutus/ @hookclaw /types/lodash/v3/ @bczengel @chrootsu /types/lodash/ @bczengel @chrootsu @stepancar @aj-r @ailrun @e-cloud @thorn0 @jtmthf @DomiR @@ -2691,6 +2786,7 @@ /types/luxon/ @colbydehart @FourwingsY @jsiebern /types/lwip/ @AyaMorisawa /types/lz-string/ @M0ns1gn0r +/types/lzma-native/ @leshow /types/magic-number/ @stpettersens /types/magicsuggest/ @leonardochaia /types/magnet-uri/ @tlaziuk @@ -2702,7 +2798,9 @@ /types/main-bower-files/ @k-kagurazaka /types/make-dir/ @ikatyang @BendingBender /types/maker.js/ @danmarshall -/types/mali/ @danwbyrne +/types/makeup-expander/ @darkwebdev +/types/makeup-floating-label/ @darkwebdev +/types/makeup-screenreader-trap/ @darkwebdev /types/mali-compose/ @danwbyrne /types/mali-onerror/ @danwbyrne /types/mandrill-api/ @pocesar @@ -2721,6 +2819,7 @@ /types/markdown-it/ @rapropos /types/markdown-it-anchor/ @seryl /types/markdown-it-container/ @hronex +/types/markdown-it-lazy-headers/ @knom /types/markdown-pdf/ @MonsieurMan /types/markdownlint/ @ark120202 /types/marked/ @worr @BendingBender @CrossR @@ -2731,7 +2830,8 @@ /types/maskedinput/ @lokeshpeta /types/masonry-layout/ @m-a-wilson @warriorrocker /types/massive/v3/ @swissspidy @clarenceh -/types/massive/ @swissspidy @clarenceh @AmazingTurtle +/types/massive/v4/ @swissspidy @clarenceh @AmazingTurtle +/types/massive/ @swissspidy @clarenceh @AmazingTurtle @mike-engel /types/match-media-mock/ @asvetliakov /types/match-sorter/ @claasahl /types/material-components-web/ @BrentDouglas @ckosti @@ -2773,6 +2873,7 @@ /types/maxmind/ @geoffreak /types/mcustomscrollbar/ @flurg /types/md5/ @arcdev1 @jprogrammer +/types/md5-file/ @BamButz /types/mdns/ @reppners /types/mdurl/ @rokt33r /types/media-typer/ @BendingBender @@ -2801,11 +2902,12 @@ /types/messenger/ @derekcicerone /types/meteor/ @barbatus @fullflavedave @orefalo @dagatsoin @birkskyum @ardatan @stefanholzapfel @andrei-markeev @lmachens /types/meteor-accounts-phone/ @DAB0mB +/types/meteor-astronomy/ @Deadly0 /types/meteor-collection-hooks/ @twastvedt /types/meteor-jboulhous-dev/ @vangorra /types/meteor-persistent-session/ @vangorra /types/meteor-prime8consulting-oauth2/ @vangorra -/types/meteor-publish-composite/ @vangorra +/types/meteor-publish-composite/ @vangorra @mrz5018 /types/meteor-roles/ @vangorra @mattmm3d /types/meteor-universe-i18n/ @mathewmeconry /types/method-override/ @santialbo @@ -2842,12 +2944,13 @@ /types/mitm/ @alejo90 /types/mixpanel/ @hjellek @Manduro /types/mixto/ @vvakame -/types/mjml/ @aahoughton +/types/mjml/ @aahoughton @marpstar /types/mkdirp/ @Bartvds @mrmlnc /types/mkdirp-promise/ @pluma /types/mkpath/ @optical /types/ml-levenberg-marquardt/ @m93a /types/mobx-apollo/ @pselden +/types/mobx-cookie/ @t49tran /types/mobx-devtools-mst/ @pluma /types/mocha/ @kazimanzurrashid @otiai10 @jt000 @enlight @cspotcode @1999 /types/mocha-each/ @magnostherobot @@ -2864,6 +2967,7 @@ /types/modernizr/ @borisyankov @theodorejb @leonyu @lucax88x @nhardy /types/modesl/ @neeschit /types/module-alias/ @KevinRamharak +/types/module-deps/ @TeamworkGuy2 /types/moji/ @yasupeke /types/moment-business/ @wonbyte /types/moment-business-time/ @swist @@ -2878,11 +2982,11 @@ /types/money-math/ @taoqf /types/mongo-sanitize/ @CedricCazin /types/mongodb/v2/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi -/types/mongodb/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @denys-bushulyak @BastienAr @sindbach @geraldinelemeur @jishi @various89 @angela-1 +/types/mongodb/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @denys-bushulyak @BastienAr @sindbach @geraldinelemeur @jishi @various89 @angela-1 @lirbank @hector7 @floric /types/mongodb-memory-server/ @dmitryrogozhny /types/mongodb-uri/ @mernxl /types/mongoose/v4/ @simonxca @horiuchi @sindrenm @lukasz-zak -/types/mongoose/ @horiuchi @sindrenm @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 +/types/mongoose/ @horiuchi @sindrenm @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 @Fazendaaa @NormanPerrin @danmana @stablio /types/mongoose-auto-increment/ @AyaMorisawa /types/mongoose-deep-populate/ @AyaMorisawa /types/mongoose-geojson-schema/ @bondz @@ -2894,6 +2998,7 @@ /types/mongoose-simple-random/ @rsxdalv /types/mongoose-unique-validator/ @stevehipwell /types/mongorito/ @pinguet62 +/types/mongration/ @soulthreads /types/moo/ @deltaidea @MofX /types/moonjs/ @DanielRosenwasser /types/morgan/ @staticfunction @pscanf @@ -2903,6 +3008,7 @@ /types/motor-hat/ @muntyan /types/mousetrap/ @qcz /types/move-concurrently/ @mgroenhoff +/types/moveto/ @shermendev /types/moviedb/ @basarat @0x6368656174 /types/moxios/ @itoasuka /types/mozilla-readability/ @charlesvdv @@ -2919,6 +3025,7 @@ /types/muicss/ @samuelneff /types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob /types/multer-gridfs-storage/v1/ @devconcept +/types/multer-gridfs-storage/v2/ @devconcept /types/multer-gridfs-storage/ @devconcept /types/multer-s3/ @tcaesvk @galtalmor @terski /types/multi-typeof/ @mhegazy @@ -2933,10 +3040,11 @@ /types/murmurhash3js/ @dlee-nvisia /types/musicmetadata/ @Xstoudi /types/mustache/ @markashleybell @manuth +/types/mutexify/ @maistho /types/mv/ @nenadalm /types/mysql/ @wjohnsto @kacepe @kpping @jdmunro /types/mz/ @ThomasHickman -/types/n3/ @phreed @rubensworks +/types/n3/ @phreed @rubensworks @LaurensRietveld /types/named-regexp-groups/ @jewbre /types/named-routes/ @qqilihq /types/nanoajax/ @nathancahill @@ -2974,11 +3082,13 @@ /types/network-interfaces/ @anderswestberg /types/new-relic-browser/ @renehamburger @piotrkubisa /types/newline-remove/ @OpenByteDev -/types/newman/ @LogvinovLeon -/types/newrelic/ @mastermatt +/types/newman/ @LogvinovLeon @Graham42 +/types/newrelic/ @mastermatt @brookspatton /types/nexpect/ @vvakame -/types/next/ @dru89 @brikou @jthegedus @resir014 @scottdj92 @joaovieira +/types/next/ @dru89 @brikou @jthegedus @resir014 @scottdj92 @joaovieira @ajliv +/types/next-redux-saga/ @leocavalcante /types/next-redux-wrapper/ @stevegeek @Jungwoo-An +/types/next-server/ @dru89 @brikou @jthegedus @resir014 @scottdj92 @joaovieira @ajliv /types/ng-command/ @stephenlautier /types/ng-cordova/ @ksachdeva /types/ng-dialog/ @stephenlautier @@ -3007,25 +3117,27 @@ /types/noble/ @swook @shantanubhadoria @lukel99 @bioball @keton @thegecko /types/nock/ @bonnici @horiuchi @afharo @mastermatt @damour @paambaati /types/nodal/ @charrondev -/types/node/v4/ @eps1lon @Archcry -/types/node/v6/ @WilcoBakker @inlined @eps1lon @Alorel @KSXGitHub @Archcry -/types/node/v7/ @parambirs @tellnes @WilcoBakker @eps1lon @KSXGitHub @Archcry -/types/node/v8/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @hoo29 @n-e @brunoscheufler @KSXGitHub @islishude @r3nya -/types/node/v9/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @ajafff @hoo29 @n-e @brunoscheufler @mohsen1 @KSXGitHub @a-tarasyuk @islishude @r3nya @eyqs -/types/node/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @ajafff @hoo29 @n-e @brunoscheufler @mohsen1 @KSXGitHub @a-tarasyuk @islishude @r3nya @ZaneHannanAU @ThomasdenH @eyqs +/types/node/v0/ @Microsoft @DefinitelyTyped +/types/node/v4/ @Microsoft @DefinitelyTyped @eps1lon @Archcry +/types/node/v6/ @Microsoft @DefinitelyTyped @WilcoBakker @inlined @eps1lon @Alorel @KSXGitHub @Archcry +/types/node/v7/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @eps1lon @KSXGitHub @Archcry +/types/node/v8/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @hoo29 @n-e @brunoscheufler @KSXGitHub @islishude @r3nya +/types/node/v9/ @Microsoft @DefinitelyTyped @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @eps1lon @Hannes-Magnusson-CK @jkomyno @ajafff @hoo29 @n-e @brunoscheufler @mohsen1 @KSXGitHub @a-tarasyuk @islishude @r3nya @eyqs +/types/node/ @Microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @brunoscheufler @smac89 @tellnes @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @matthieusieben @mohsen1 @n-e @octo-sniffle @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @ZaneHannanAU @jeremiergz /types/node-7z/ @erkie /types/node-array-ext/ @Beng89 /types/node-cache/ @chrootsu @dthunell @useltmann /types/node-calendar/ @luzianz /types/node-cleanup/ @agadar -/types/node-cron/ @maximelkin +/types/node-crate/ @gjednaszewski +/types/node-cron/ @maximelkin @burtek /types/node-dijkstra/ @nokutu /types/node-dir/ @panuhorsmalahti /types/node-dogstatsd/ @chrisbobo /types/node-emoji/ @jonestristand @styu /types/node-fetch/ @torstenwerner @nikcorg /types/node-fibers/ @caryhaynie -/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung +/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau /types/node-gcm/ @horiuchi /types/node-geocoder/ @rosek86 /types/node-getopt/ @kcauchy @@ -3045,6 +3157,7 @@ /types/node-pushnotifications/ @menushka /types/node-ral/ @ssddi456 /types/node-red/ @andersea @tbowmo +/types/node-redis-pubsub/ @renekeijzer /types/node-resque/ @gordey4doronin /types/node-rsa/ @alitaheri @xm /types/node-schedule/ @cyrilschumacher @flowpl @@ -3079,9 +3192,10 @@ /types/nodeunit/ @jedigo /types/noisejs/ @izmhr /types/nomnom/ @panopticoncentral +/types/nookies/ @andreasbergqvist /types/nopt/ @jbondc /types/normalize-package-data/ @jdxcode -/types/normalize-url/ @odin3 @BendingBender +/types/normalize-url/ @odin3 @BendingBender @mathieumg /types/notie/ @mateusdemboski /types/notify/ @hellochar /types/notifyjs/ @soundTricker @NateScarlet @@ -3092,13 +3206,13 @@ /types/nouislider/ @bleuarg @lagaffe /types/novnc-core/ @smithkl42 @BendingBender /types/npm/ @SomaticIT -/types/npm-package-arg/ @mgroenhoff +/types/npm-package-arg/ @mgroenhoff @OiYouYeahYou /types/npm-packlist/ @ajafff /types/npmlog/ @DanielMSchmidt @littlepiggy03 /types/ns-api/ @Archcry /types/nslog/ @unindented /types/nsqjs/ @cezaryrk -/types/nuka-carousel/ @Romic +/types/nuka-carousel/ @Romic @altaudio /types/number-is-nan/ @mhegazy /types/number-to-words/ @frederickfogerty /types/numeral/ @vbortone @BehindTheMath @klujanrosas @@ -3109,13 +3223,15 @@ /types/nvd3/ @PjMitchell /types/nw.gui/ @xperiments /types/nw.js/ @alirdn +/types/nwmatcher/ @woutervh- /types/o.js/ @IceOnFire @bradzacher @janhommes @jcchalte -/types/oauth/ @nonAlgebraic +/types/oauth/ @nonAlgebraic @EduardoAC /types/oauth.js/ @nobuoka /types/oauth2-server/ @vangorra @cirick @d-fischer /types/oauth2orize/ @wokim @heycalmdown @stevehipwell /types/obelisk.js/ @bdrupieski /types/obj-file-parser/ @benc-uk +/types/obj-str/ @saenglert /types/object-assign/ @chbrown /types/object-diff/ @rogierschouten /types/object-hash/ @misak113 @@ -3133,8 +3249,8 @@ /types/oclazyload/ @rolandzwaga /types/odata/ @janhommes @jcchalte /types/ofe/ @Morfent -/types/office-js/ @OfficeDev @LanceEA @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT @mscharlock -/types/office-runtime/ @OfficeDev @mscharlock @kbrandl @Zlatkovsky +/types/office-js/ @OfficeDev @LanceEA @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT +/types/office-runtime/ @Zlatkovsky @mscharlock /types/offline-js/ @cgwrench /types/oibackoff/ @geoffreak /types/oidc-token-manager/ @rosieks @@ -3144,11 +3260,12 @@ /types/omggif/ @ffflorian /types/on-finished/ @czechboy0 @BendingBender /types/on-headers/ @jjeffery @BendingBender +/types/on-wake-up/ @ajafff /types/once/ @denis-sokolov @BendingBender /types/onesignal-cordova-plugin/ @broder /types/onetime/ @BendingBender /types/oniguruma/ @smhxx -/types/onoff/ @marcel-ernst +/types/onoff/ @marcel-ernst @Kallu609 /types/ontime/ @Hirse /types/open/ @Bartvds /types/opener/ @tikurahul @@ -3159,16 +3276,18 @@ /types/openlayers/v2/ @bolhovsky /types/openlayers/v3/ @osechet @matthiasdailey-ccri /types/openlayers/ @osechet @wb14123 @ailrun @mylen @iamthechad @danmana @yairtawil @pierremarc @hauke96 @gberaudo -/types/openpgp/ @errietta +/types/openpgp/ @errietta @damonpam /types/openstack-wrapper/ @sanjaymadane /types/opentok/ @westy92 @CatGuardian /types/opentype.js/ @danmarshall @edzis /types/opn/ @shinnn @SomaticIT @tlent +/types/opossum/ @quinnlangille @lance /types/optics-agent/ @crevil /types/optimist/ @soywiz @chbrown /types/optimize-css-assets-webpack-plugin/ @odnamrataizem /types/ora/v0/ @basarat @screendriver /types/ora/ @basarat @screendriver @BendingBender @azasypkin +/types/oracle__oraclejet/ @nolakara @jingxwu /types/oracledb/ @Bigous /types/orchestrator/ @tkQubo @TeamworkGuy2 /types/orderedmap/ @bradleyayers @@ -3221,6 +3340,7 @@ /types/p-wait-for/ @BendingBender /types/p-whilst/ @BendingBender /types/p2/ @clark-stevenson +/types/p5/ @p5-types /types/package-json/ @jinwoo /types/packery/ @piraveen @hanssens /types/pad/ @mhegazy @@ -3228,10 +3348,11 @@ /types/paho-mqtt/ @amikhalev /types/pako/ @cappellin @calebegg /types/pangu/ @plantain-00 -/types/papaparse/ @torpedro @rainshen49 @jfloff @johnnyreilly @albertorestifo @BehindTheMath @3af +/types/papaparse/ @torpedro @rainshen49 @jfloff @johnnyreilly @albertorestifo @BehindTheMath @3af @jliuhtonen /types/paper/ @clark-stevenson @Xakaloz @sebaswebdev @rfried /types/parallel-transform/ @djcsdy /types/paralleljs/ @jbaldwin +/types/parcel-bundler/ @pinage404 /types/parcel-env/ @fathyb /types/parent-package-json/ @sgmccli /types/parity-pmd/ @leovujanic @jewbre @@ -3261,6 +3382,8 @@ /types/parsimmon/ @Bartvds @mizunashi-mana @bcherny @bvanreeven @leonard-thieu @MrJohz /types/passport/ @horiuchi @enaeseth @theigor @tlaziuk @danielpa9708 /types/passport-anonymous/ @0x6368656174 +/types/passport-auth0/ @johnbendi @iamvishnusankar +/types/passport-azure-ad/ @ShekharNain /types/passport-beam/ @AtlasDev /types/passport-cognito/ @mbutsykin /types/passport-discord/ @kzay @@ -3277,7 +3400,7 @@ /types/passport-local/ @SomaticIT /types/passport-local-mongoose/ @linusbrolin /types/passport-naver/ @Park9eon @zerocho -/types/passport-oauth2/ @pasieronen @WangZishi +/types/passport-oauth2/ @pasieronen @WangZishi @EduardoAC /types/passport-oauth2-client-password/ @akaNightmare /types/passport-remember-me-extended/ @AylaJK /types/passport-saml/ @cjbarth @dassennato @@ -3285,6 +3408,8 @@ /types/passport-strategy/ @liorm /types/passport-twitter/ @staticfunction /types/passport-unique-token/ @briman0094 @SomaticIT +/types/passport-vkontakte/ @soulthreads +/types/passport-windowsauth/ @forivall /types/password-hash/ @mugeso /types/password-hash-and-salt/ @alitaheri /types/path-exists/v1/ @shiwano @@ -3302,7 +3427,7 @@ /types/pbkdf2/ @timonegk /types/pdfjs-dist/ @jbaldwin /types/pdfkit/ @erichillah -/types/pdfmake/ @m1llen1um @radziksh +/types/pdfmake/ @m1llen1um @radziksh @evolkmann /types/pdfobject/ @nielsboogaard /types/pebblekitjs/ @makotokw /types/peer-dial/ @RealTYPICAL @@ -3310,6 +3435,7 @@ /types/pegjs/ @vvakame @SrTobi @siegebell /types/pem/ @tony19 @DethAriel /types/pem-jwk/ @alessiopcc +/types/permit/ @jannikkeye /types/persona/ @Nycto /types/pet-finder-api/ @me /types/pg/v6/ @pspeter3 @@ -3342,11 +3468,13 @@ /types/pidusage/ @cyrilschumacher @mx601595686 /types/pify/ @samverschueren @mad-mike @c7hm4r /types/pigpio/ @manerfan -/types/pikaday/ @MidnightDesign @wake42 +/types/pigpio-dht/ @erikma +/types/pikaday/ @MidnightDesign @wake42 @mezoistvan /types/pikaday-time/ @Sayan751 /types/pinkyswear/ @chances /types/pino/v3/ @psnider -/types/pino/ @psnider @BendingBender @screendriver @paambaati +/types/pino/ @psnider @BendingBender @screendriver @paambaati @alferpal +/types/pino-http/ @screendriver /types/pino-multi-stream/ @JakeGinnivan /types/pinterest-sdk/ @adamburmister /types/pinyin/ @wanganjun @@ -3361,6 +3489,7 @@ /types/playerframework/ @ricardosabino /types/playmusic/ @nickp10 /types/pleasejs/ @nakakura +/types/plist/ @higuri /types/plotly.js/ @chrisgervang @martinduparc @frederikaalund @taoqf @Dadstart @szechyjs @MercifulCode @soorajpudiyadath @jonfreedman @meganrm /types/plugapi/ @BNedry /types/plugin-error/ @rogierschouten @@ -3382,6 +3511,9 @@ /types/popcorn/ @grapswiz /types/portscanner/ @douglasduteil /types/postal/ @lokeshpeta @myitcv +/types/postcss-calc/ @huan086 +/types/postcss-icss-values/ @huan086 +/types/postcss-modules-resolve-imports/ @huan086 /types/postman-collection/ @kbuzby /types/postmark/ @benbayard @jineshshah36 /types/pouch-redux-middleware/ @charrondev @@ -3395,7 +3527,7 @@ /types/pouchdb-adapter-node-websql/ @spaulg @geppy @fredgalvao /types/pouchdb-adapter-websql/ @spaulg @geppy @fredgalvao /types/pouchdb-browser/ @spaulg @geppy @fredgalvao -/types/pouchdb-core/ @spaulg @trubit @geppy @fredgalvao @TobiasBales @tiangolo +/types/pouchdb-core/ @spaulg @trubit @geppy @fredgalvao @TobiasBales @tiangolo @kmoe /types/pouchdb-find/ @trubit @tiangolo /types/pouchdb-http/ @spaulg @geppy @fredgalvao /types/pouchdb-mapreduce/ @spaulg @geppy @fredgalvao @@ -3445,6 +3577,7 @@ /types/prompt-sync/ @MugeSo /types/prompt-sync-history/ @MugeSo /types/promptly/ @danrspencer +/types/prompts/ @Berkays /types/prop-types/ @DovydasNavickas @ferdaber /types/proper-lockfile/ @qlonik /types/properties-reader/ @Goldsmith42 @@ -3464,7 +3597,7 @@ /types/prosemirror-tables/ @superchu @eshvedai @patsimm /types/prosemirror-transform/ @bradleyayers @davidka @timjb @patsimm /types/prosemirror-view/ @bradleyayers @davidka @timjb @patsimm -/types/proton-native/ @khanhas +/types/proton-native/ @khanhas @ltetzlaff /types/protractor-browser-logs/ @rokadias /types/protractor-helpers/ @johncant /types/protractor-http-mock/ @Crevil @@ -3485,7 +3618,8 @@ /types/pumpify/ @JustinBeckwith @aoberoi /types/pupa/ @nju33 /types/puppeteer/v0/ @marvinhagemeister @cdeutsch -/types/puppeteer/ @marvinhagemeister @cdeutsch @ksm2 +/types/puppeteer/ @marvinhagemeister @cdeutsch @ksm2 @SimonSchick +/types/puppeteer-core/ @mtsmfm /types/pure-render-decorator/ @seansfkelley /types/purl/ @danfma /types/pusher-js/ @tkqubo @cainlevy @@ -3498,7 +3632,7 @@ /types/qhistory/ @Kovensky /types/qiniu-js/ @taoqf /types/qlik/ @RubenSlabbert @AginicX -/types/qlik-engineapi/ @konne +/types/qlik-engineapi/ @konne @richardison /types/qlik-visualizationextensions/ @konne /types/qr-image/ @taoqf /types/qrcode/ @plantain-00 @@ -3519,7 +3653,7 @@ /types/rabbit.js/ @wokim /types/radium/ @alexgorbatchev @nupplaphil @asvetliakov /types/radius/ @codeanimal -/types/ramda/ @donnut @tycho01 @mdekrey @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @samsonkeung @angeloocana @raynerd @googol @moshensky @ethanresnick @leighman @CaptJakk @deftomat @deptno @blimusiek @biern @rayhaneh @rgm +/types/ramda/ @donnut @tycho01 @mdekrey @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @samsonkeung @angeloocana @raynerd @googol @moshensky @ethanresnick @leighman @CaptJakk @deftomat @deptno @blimusiek @biern @rayhaneh @rgm @drewwyatt /types/random-js/ @pistacchio /types/random-number/ @OpenByteDev /types/random-seed/ @endel @@ -3543,23 +3677,26 @@ /types/raty/ @terrawheat /types/raven/ @scttcper @1999 @shreyjain1994 /types/raven-for-redux/ @chiubaka -/types/raygun4js/ @xt0rted @BenjaminHarding +/types/raygun/ @UberMouse +/types/raygun4js/ @xt0rted @BenjaminHarding @UberMouse /types/rbac-a/ @tlaziuk /types/rc/ @DanielRosenwasser /types/rc-select/ @DenisTirilis /types/rc-slider/ @mantasmarcinkus @mattoni @paustint @j-fro @Deanna2 +/types/rc-time-picker/ @Hoff97 /types/rc-tree/ @johnnyreilly @Methuselah96 /types/rcloader/ @panuhorsmalahti /types/rdf-data-model/ @rubensworks -/types/rdf-js/ @rubensworks +/types/rdf-js/ @rubensworks @LaurensRietveld /types/rdflib/ @cenotelie /types/re-base/ @jordandrako /types/reach__router/ @kingdaro /types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz /types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei /types/react-adal/ @dkorolev1 -/types/react-albus/ @sseppola -/types/react-alert/ @ssyrell +/types/react-albus/ @sseppola @conradreuter @kuirak +/types/react-alert/v2/ @ssyrell +/types/react-alert/ @g1eny0ung /types/react-alice-carousel/ @endigo /types/react-amplitude/ @rayzor65 /types/react-animate-on-scroll/ @ralbuque @@ -3570,6 +3707,7 @@ /types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin /types/react-avatar-editor/ @diogocorrea @gabsprates /types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen +/types/react-better-password/ @mhuynh1 /types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly /types/react-body-classname/ @mhegazy /types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall @jrakotoharisoa @r3nya @t49tran @@ -3578,7 +3716,7 @@ /types/react-bootstrap-table/v2/ @flaub @alelode @UJosue10 /types/react-bootstrap-table/ @flaub @alelode @UJosue10 @dawnmist @Ogglas /types/react-bootstrap-typeahead/ @Guymestef @radziksh @PaitoAnderson -/types/react-breadcrumbs/ @KostyaEsmukov +/types/react-breadcrumbs/ @guoyunhe /types/react-breadcrumbs-dynamic/ @mitsuruog /types/react-broadcast/ @kandros /types/react-burger-menu/ @radziksh @@ -3587,6 +3725,7 @@ /types/react-cartographer/ @trevonmckay /types/react-circular-progressbar/ @lstanden /types/react-click-outside/ @screendriver +/types/react-close-on-escape/ @JamesAlias /types/react-codemirror/ @velveret @rudi-c /types/react-coinhive/ @sktbcbbs /types/react-collapse/ @Kimahriman @@ -3596,6 +3735,7 @@ /types/react-content-loader/ @alaatm @samwalshnz /types/react-copy-to-clipboard/ @mabels @BernabeFelix /types/react-copy-write/ @samhh @davej +/types/react-countup/ @danielbrodin /types/react-credit-cards/ @vstrimaitis @olefrank /types/react-cropper/ @stepancar /types/react-css-modules/ @KostyaEsmukov @skirsdeda @@ -3609,15 +3749,17 @@ /types/react-datagrid/ @stephenjelfs /types/react-date-range/ @Junbong /types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue @KoalaHuman @seansfkelley -/types/react-daterange-picker/ @uncovertruth @MartynasZilinskas @donaldtf +/types/react-daterange-picker/ @uncovertruth @MartynasZilinskas @donaldtf @vladflorescu94 /types/react-dates/ @ArturAmpilogov @NathanNZ /types/react-daum-postcode/ @Sa-ryong /types/react-dnd-multi-backend/ @dawnmist @beeequeue /types/react-dnd-touch-backend/ @mleko @dawnmist @beeequeue +/types/react-document-meta/ @ulrichb /types/react-document-title/ @cleverguy25 /types/react-dom/v15/ @MartynasZilinskas /types/react-dom/ @MartynasZilinskas @theruther4d /types/react-dom-factories/ @jgoz +/types/react-draft-wysiwyg/ @imechZhangLY /types/react-dragtastic/ @nscarcella /types/react-dropzone/v2/ @matdube @LynxEyes @goblindegook @benbayard /types/react-dropzone/v3/ @matdube @LynxEyes @goblindegook @benbayard @LKay @@ -3627,6 +3769,7 @@ /types/react-event-listener/ @asvetliakov /types/react-fa/ @flaub @patsissons @LKay /types/react-facebook-login/ @apare @jankarres +/types/react-facebook-login-component/ @koss-lebedev /types/react-faux-dom/ @alitaheri @cleverguy25 @deviousm @hanai /types/react-file-input/ @dmitryrogozhny /types/react-file-reader-input/ @dmitryrogozhny @alitaheri @@ -3642,6 +3785,7 @@ /types/react-gateway/ @jsonunger /types/react-geosuggest/ @brmenchl /types/react-global-configuration/ @ryokik +/types/react-google-login-component/ @koss-lebedev /types/react-google-maps-loader/ @vasilysn /types/react-google-places-suggest/ @vasilysn /types/react-google-recaptcha/ @KoalaHuman @@ -3654,38 +3798,43 @@ /types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit /types/react-helmet-async/ @forabi /types/react-highlight/ @joshuakgoldberg -/types/react-highlight-words/ @mhegazy @diogodca +/types/react-highlight-words/ @mhegazy @diogodca @kellyrmilligan /types/react-highlighter/ @oizie /types/react-holder/ @isman-usoh /types/react-hot-loader/ @jacekjagiello @MartynasZilinskas @DovydasNavickas /types/react-hyperscript/ @tock203 -/types/react-i18next/v1/ @KostyaEsmukov -/types/react-i18next/v4/ @GiedriusGrabauskas @netanelgilad -/types/react-i18next/ @GiedriusGrabauskas @chnoch @beheh @whtsky /types/react-icon-base/ @apare @LKay /types/react-icons/ @apare @johnnyreilly @LKay /types/react-image-crop/ @danielasy +/types/react-image-fallback/ @8enSmith /types/react-image-gallery/ @adamwpc /types/react-imageloader/ @stephenjelfs +/types/react-images/ @KonstantinLukaschenko +/types/react-imgpro/ @echoulen /types/react-infinite/ @rhysd /types/react-infinite-calendar/ @christianchown -/types/react-infinite-scroll-component/ @sroy3 @burtek @davidkevork -/types/react-infinite-scroller/ @Lapanti @psrebniak +/types/react-infinite-scroll-component/ @sroy3 @burtek @davidkevork @JoshuaScript +/types/react-infinite-scroller/ @Lapanti @psrebniak @WrathZA /types/react-input-autosize/ @jsonunger @franklixuefei /types/react-input-calendar/ @stepancar /types/react-input-mask/v1/ @apare /types/react-input-mask/ @apare @dima7a14 +/types/react-instantsearch/ @gburgett @jpowell +/types/react-instantsearch-core/ @gburgett @jpowell +/types/react-instantsearch-dom/ @gburgett @jpowell +/types/react-instantsearch-native/ @gburgett @jpowell /types/react-intl/v1/ @bgrieder /types/react-intl/ @bgrieder @cdroulers @gyzerok @tillwolff @LKay @bhouser @kristerkari @formatlos @lukyth /types/react-intl-redux/ @LKay -/types/react-is/ @AviVahl +/types/react-is/ @AviVahl @christianchown /types/react-is-deprecated/ @seansfkelley -/types/react-joyride/ @kdy1 +/types/react-joyride/ @kdy1 @kamranayub /types/react-js-pagination/ @netoisc /types/react-json/ @spielc /types/react-json-pretty/ @LKay /types/react-json-tree/ @gnestor -/types/react-jsonschema-form/ @iamdanfox @iplus26 @KurtPreston @phbou72 @LucianBuzzo +/types/react-jsonschema-form/ @iamdanfox @iplus26 @KurtPreston @phbou72 @LucianBuzzo @sthenault @sbusch +/types/react-jss/ @eps1lon /types/react-lazyload/ @m0a /types/react-lazylog/ @benjaminRomano /types/react-leaflet/ @danzel @davschne @yuit @@ -3693,24 +3842,26 @@ /types/react-list/ @buptyyf @tomshen /types/react-loadable/ @Kovensky @odensc @ianks @tlaziuk @iMobs /types/react-loader/ @artfuldev +/types/react-lottie/ @Kana00 @Ricki-BumbleDev /types/react-mailchimp-subscribe/ @osdiab /types/react-map-gl/ @rimig @fnberta /types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti /types/react-mce/ @morphologue /types/react-mdl/ @bradzacher /types/react-measure/ @asvetliakov @marcfallows +/types/react-mentions/ @activescott /types/react-mixin/ @tkqubo -/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz +/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz @jpowell /types/react-motion/ @stepancar @asvetliakov @dimitarnestorov /types/react-motion-slider/ @asvetliakov /types/react-motion-ui-pack/ @jsonunger -/types/react-native/ @alloy @huhuanming @iRoachie @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam +/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @esemesek @mrnickel /types/react-native-android-taskdescription/ @christianchown /types/react-native-auth0/ @ascariandrea /types/react-native-autocomplete-input/ @ifiokjr /types/react-native-background-timer/ @chillkroeteTTS /types/react-native-bluetooth-serial/ @RodrigoAWeber -/types/react-native-calendars/ @Tyler-Zhang @DavidNorena +/types/react-native-calendars/ @Tyler-Zhang @DavidNorena @FabianMeul /types/react-native-communications/ @huhuanming @PaitoAnderson /types/react-native-custom-tabs/ @philnova /types/react-native-datepicker/ @jacobbaskin @@ -3725,8 +3876,9 @@ /types/react-native-fbsdk/ @ifiokjr /types/react-native-fetch-blob/ @MNBuyskih /types/react-native-fs/ @pocesar @josephroque -/types/react-native-google-signin/ @j-fro +/types/react-native-google-signin/ @j-fro @bm-software @christianchown @echentw /types/react-native-htmlview/ @ifiokjr +/types/react-native-huawei-protected-apps/ @christianchown /types/react-native-i18n/ @VincentLanglet /types/react-native-indicators/ @ifiokjr /types/react-native-keep-awake/ @huhuanming @@ -3748,7 +3900,10 @@ /types/react-native-popup-dialog/ @PaitoAnderson @connectdotz @bm-software /types/react-native-push-notification/ @PaitoAnderson @tomSawkins /types/react-native-qrcode/ @plantain-00 +/types/react-native-referrer/ @christianchown +/types/react-native-restart/ @christianchown /types/react-native-safari-view/ @mrand01 +/types/react-native-scaled-image/ @Jaeger25 /types/react-native-scrollable-tab-view/ @CaiHuan @egorshulga /types/react-native-sensor-manager/ @SahinVardar /types/react-native-settings-list/ @MrLuje @@ -3758,6 +3913,7 @@ /types/react-native-sortable-list/ @sivolobov @RookY2K /types/react-native-sqlite-storage/ @dryganets @cavarzan /types/react-native-star-rating/ @iRoachie +/types/react-native-status-bar-height/ @fiznool /types/react-native-svg-charts/ @krzysztof-miemiec /types/react-native-svg-uri/ @iRoachie /types/react-native-swiper/ @CaiHuan @huhuanming @mhcgrq @@ -3766,11 +3922,12 @@ /types/react-native-text-input-mask/ @RodrigoAWeber /types/react-native-toast-native/ @bm-software /types/react-native-touch-id/ @huhuanming @gazaret @jinshin1013 +/types/react-native-uuid-generator/ @burtek /types/react-native-vector-icons/ @iRoachie @timwangdev /types/react-native-version-number/ @VincentLanglet /types/react-native-video/ @huhuanming /types/react-navigation/v1/ @huhuanming @mhcgrq @fangpenlin @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko @levito @YourGamesBeOver @ArmandoAssuncao @cliedeman @Slessi -/types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko @levito @YourGamesBeOver @ArmandoAssuncao @cliedeman @Slessi @magrinj @TizioFittizio @stigi @LinusU @jshosomichi @jakebooyah @brunoro @DenisFrezzato @mickaelw +/types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko @levito @YourGamesBeOver @ArmandoAssuncao @cliedeman @Slessi @magrinj @TizioFittizio @stigi @LinusU @jshosomichi @jakebooyah @brunoro @DenisFrezzato @mickaelw @maxdavidson @jkillian /types/react-navigation-material-bottom-tabs/ @iRoachie /types/react-no-ssr/ @rafalfilipek /types/react-notification-system/ @GiedriusGrabauskas @DeividasBakanas @LKay @sztobar @@ -3778,8 +3935,9 @@ /types/react-notify-toast/ @klaascuvelier /types/react-numeric-input/ @heatherbooker @akx /types/react-onclickoutside/v5/ @LKay -/types/react-onclickoutside/ @LKay -/types/react-onsenui/ @salim7 @jemmyw +/types/react-onclickoutside/ @LKay @surgeboris +/types/react-onsenui/ @salim7 @jemmyw @lirbank +/types/react-outside-click-handler/ @zubivan /types/react-overlays/ @aaronbeall @vitosamson /types/react-owl-carousel/ @tbounsiar @igorissen @KennethanCeyer /types/react-paginate/v4/ @deevus @wouterhardeman @pegel03 @archy-bold @@ -3795,6 +3953,7 @@ /types/react-qr-reader/ @davidkevork /types/react-radio-group/ @jsonunger /types/react-recaptcha/ @mhegazy @zzanol +/types/react-reconciler/ @Methuselah96 /types/react-redux/v5/ @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @pdeva /types/react-redux/ @tkqubo @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @pdeva @kallikrein @val1984 @jrakotoharisoa @apapirovski /types/react-redux-epic/ @forabi @@ -3808,8 +3967,8 @@ /types/react-responsive/ @asvetliakov @alechill @xaviergonz /types/react-rnd/ @Ragg- @fsubal @zyh825 /types/react-router/v2/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov -/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @ssorallen @gillchristian -/types/react-router/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga @neuoy @rraina @pret-a-porter @t49tran +/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @ssorallen @gillchristian @nulladdict +/types/react-router/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga @neuoy @rraina @pret-a-porter @t49tran @8enSmith /types/react-router-bootstrap/ @vlesierse @LKay @olmobrutall /types/react-router-config/ @lith-light-g @johnnyreilly /types/react-router-dom/ @tkrotoff @huy-nguyen @p-jackson @johnnyreilly @@ -3841,7 +4000,9 @@ /types/react-sparklines/ @henrinormak /types/react-spinkit/v1/ @tkqubo @mleko @pelotom /types/react-spinkit/ @tkqubo @mleko @pelotom @zzanol +/types/react-star-rating-component/ @marpstar /types/react-sticky/ @curtisw0 @ajhyndman +/types/react-sticky-box/ @koss-lebedev /types/react-sticky-el/ @jbraithwaite /types/react-stickynode/ @tstirrat /types/react-stripe-elements/ @dan-j @santiagodoldan @sonnysangha @9y5 @thchia @@ -3851,10 +4012,11 @@ /types/react-swipe/ @DeividasBakanas /types/react-swipeable/ @GiedriusGrabauskas @mctep @horiuchi /types/react-swipeable-views/ @mxl @DeividasBakanas -/types/react-syntax-highlighter/ @NoHomey -/types/react-table/ @royxue @psakalo @Havret +/types/react-syntax-highlighter/ @NoHomey @ajgamble-milner +/types/react-table/ @royxue @psakalo @Havret @andys8 /types/react-table-filter/ @gjsln -/types/react-tabs/ @danez +/types/react-tabs/ @danez @Equationist +/types/react-tag-autocomplete/ @jlismore /types/react-tag-input/ @Ogglas @jankarres @matthewberryman /types/react-tagcloud/ @wassname /types/react-tagsinput/ @mykter @@ -3864,6 +4026,7 @@ /types/react-tether/ @ryprice /types/react-text-mask/ @guilhermehubner @cavarzan @needpower /types/react-textarea-autosize/ @asvetliakov @zry656565 +/types/react-timeago/ @koss-lebedev /types/react-timeout/ @kerwynrg /types/react-toastify/ @icopp /types/react-toastr/ @shssoichiro @DanRegazzi @@ -3882,11 +4045,13 @@ /types/react-virtual-keyboard/ @bsurai /types/react-virtualized/ @kaoDev @guntherjh @wasd171 @szabolcsx @kraenhansen @Stevearzh @mgoszcz2 @brandonhall /types/react-virtualized-select/ @seansfkelley +/types/react-visibility-sensor/ @JRasmusBm /types/react-webcam/ @squat /types/react-weui/ @tairan -/types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 @r3nya @MBillemaz +/types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 @r3nya @MBillemaz @georg94 /types/react-widgets-moment/ @dawnmist /types/react-window/ @martynaskadisa +/types/react-window-size/ @jakejrichards /types/react-youtube/ @kgtkr /types/react-youtube-embed/ @charles-salmon /types/reactable/ @spielc @@ -3903,16 +4068,20 @@ /types/readline-sync/ @jonestristand /types/readline-transform/ @dex4er /types/reapop/ @Barrokgl +/types/rebass/ @ryee-dev +/types/rebass__grid/ @antonvasin @vittorio @lhache @lavoaster /types/recaptcha2/ @l-jonas /types/recase/ @18steps /types/recharts/ @mthmulders @rapmue @royxue @ZheyangSong @richbai90 @caspeco-dan @pkeuter @jrsaunde @paulmelnikow @crusectrl @apalugniok +/types/recharts-scale/ @johnnyreilly /types/recluster/ @dex4er -/types/recompose/ @iskandersierra @mrapogee @clayne11 @Pajn @lucasterra +/types/recompose/ @iskandersierra @mrapogee @clayne11 @Pajn @lucasterra @brian-lives-outdoors /types/reconnect-core/ @thw0rted /types/reconnectingwebsocket/ @nguarracino +/types/recorder-js/ @higuri /types/recursive-readdir/v1/ @elisee /types/recursive-readdir/ @elisee @MicahZoltu -/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski +/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski @1pete /types/redis-errors/ @43081j /types/redis-mock/ @BendingBender /types/redis-rate-limiter/ @westy92 @@ -3923,7 +4092,7 @@ /types/reduce-reducers/ @huy-nguyen /types/redux-action/ @newraina /types/redux-action-utils/ @tkqubo -/types/redux-actions/ @jaysoo @alexgorbatchev @alechill @alexey-pelykh +/types/redux-actions/ @jaysoo @alexgorbatchev @alechill @alexey-pelykh @7hi4g0 /types/redux-async-queue/ @andreiho /types/redux-auth-wrapper/v1/ @LKay /types/redux-auth-wrapper/ @LKay @@ -3933,14 +4102,15 @@ /types/redux-devtools-dock-monitor/ @mc-petry /types/redux-devtools-log-monitor/ @mc-petry /types/redux-doghouse/ @BendingBender -/types/redux-first-router/ @Valbrand @viggyfresh @janb87 @corydeppen @jscinoz +/types/redux-first-router/ @Valbrand @viggyfresh @janb87 @corydeppen @jscinoz @surgeboris /types/redux-first-router-link/ @janb87 /types/redux-first-router-restore-scroll/ @icopp /types/redux-first-routing/ @tlaziuk /types/redux-form/v4/ @aikoven /types/redux-form/v6/ @carsonf @aikoven @LKay @bancek -/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @reggino @maddijoyce -/types/redux-immutable/ @oizie @sebald @gavingregory +/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @reggino @maddijoyce @smifun +/types/redux-immutable/v3/ @oizie @sebald @gavingregory +/types/redux-immutable/ @oizie @sebald @gavingregory @lukyth /types/redux-immutable-state-invariant/ @remojansen @highflying /types/redux-infinite-scroll/ @silkyfray /types/redux-injectable-store/ @unindented @@ -3982,13 +4152,15 @@ /types/relateurl/ @tkrotoff /types/relaxed-json/ @18steps /types/relay-runtime/ @voxmatt @alloy +/types/rellax/ @shermendev /types/remarkable/ @makepost /types/remote-redux-devtools/ @ColinEberhardt @unindented @mamodom @colindekker /types/remove-markdown/ @RagibHasin /types/rename/ @Aankhen /types/replace-ext/ @DeividasBakanas +/types/replacestream/ @dex4er /types/req-cwd/ @Alorel -/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens @lookfirst @mastermatt @josecolella +/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens @lookfirst @mastermatt @josecolella @murbanowicz /types/request-as-curl/ @atd-schubert /types/request-ip/ @mrhen /types/request-promise/ @cglantschnig @joeskeen @AyaMorisawa @mastermatt @@ -4007,7 +4179,7 @@ /types/resolve/ @marionebl @ajafff /types/resolve-from/ @unional /types/resourcejs/ @shaunluttin -/types/response-time/ @urossmolnik @TonyPythoneer +/types/response-time/ @urossmolnik @TonyPythoneer @danmana /types/rest/ @Nemo157 /types/restangular/ @borisyankov /types/restful.js/ @tkqubo @@ -4045,6 +4217,7 @@ /types/rmfr/ @pluma /types/roads/ @dancespiele /types/roads-server/ @dancespiele +/types/rocksdb/ @MeirionHughes @danwbyrne /types/roll/ @icopp /types/rolling-rate-limiter/ @l-jonas /types/rollup-plugin-json/ @asmockler @hotell @@ -4055,7 +4228,7 @@ /types/round-to/ @seangenabe /types/route-parser/ @ianks @bobbuehler /types/routie/ @Adilson -/types/royalslider/ @csrakowski +/types/royalslider/ @csrakowski @sKopheK /types/rpio/ @DominikPalo @Pencl /types/rrc/ @DeividasBakanas /types/rsmq/ @MugeSo @@ -4111,11 +4284,13 @@ /types/satnav/ @DotNetNerd /types/saywhen/ @SeanSobey /types/scalike/ @ryoppy +/types/schedule/ @Methuselah96 +/types/scheduler/ @Methuselah96 /types/schema-registry/ @bonzzy /types/schwifty/ @ozum /types/scoped-http-client/ @mattvperry @rianadon /types/screenfull/ @icholy @lionelb @joelshepherd -/types/screeps/ @MarkoSulamagi @NhanHo @bryanbecker @resir014 @Arcath @apemanzilla +/types/screeps/ @MarkoSulamagi @NhanHo @bryanbecker @resir014 @Arcath @dmarcuse /types/screeps-profiler/ @ramblurr /types/scriptjs/ @ssttevee /types/scroll-into-view/ @zivni @@ -4128,7 +4303,8 @@ /types/scryptsy/ @micksatana /types/sdp-transform/ @loc /types/seamless/ @danmana -/types/seamless-immutable/ @alex3165 @xsburg @geirsagberg +/types/seamless-immutable/ @alex3165 @xsburg @geirsagberg @RMHonor +/types/season/ @dex4er /types/secp256k1/ @anler /types/seed-random/ @l-jonas /types/seededshuffle/ @urish @@ -4171,33 +4347,36 @@ /types/send/ @MikeJerred /types/seneca/ @psnider @kevynb /types/sequelize/v3/ @samuelneff @codeanimal @drinchev @morpheusxaut @torhal -/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut @TitaneBoy @zjy01 @nidzov @Raigen @todd @nrschultz @thomas-b +/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut @TitaneBoy @zjy01 @nidzov @Raigen @todd @nrschultz @thomas-b @Antoine38660 /types/sequelize-cursor-pagination/ @pilagod /types/sequelize-fixtures/ @cschwarz /types/sequencify/ @npenin /types/sequester/ @Strate /types/serialize-error/ @thomasthiebaud -/types/serialize-javascript/ @lith-light-g +/types/serialize-javascript/ @lith-light-g @Pochodaydayup /types/serialport/v4/ @codefoster +/types/serialport/v6/ @codefoster @apearson /types/serialport/ @codefoster @apearson /types/serve-favicon/ @urossmolnik /types/serve-index/ @tkrotoff /types/serve-static/ @urossmolnik @LinusU /types/server/ @sant123 @iddan /types/server-destroy/ @gyszalai +/types/serverless/ @hassankhan /types/servicenow/ @bryceg /types/session-file-store/ @blendsdk @rokt33r /types/set-cookie-parser/ @nickp10 /types/set-value/ @DanielRosenwasser /types/settings/ @shreyjain1994 /types/sha1/ @arcdev1 +/types/sha256/ @nhardy /types/shallow-equals/ @rsolomon /types/shallowequal/ @seansfkelley /types/shapefile/ @DenisCarriere @Thw0rted /types/sharedb/ @soney /types/sharedworker/ @nakakura /types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola @dennispg -/types/sharp/ @lith-light-g @wooseopkim +/types/sharp/ @lith-light-g @wooseopkim @BTOdell /types/sheetify/ @toddself /types/shell-escape/ @nenadalm /types/shell-quote/ @jason0x43 @@ -4208,10 +4387,12 @@ /types/shipit-utils/ @cyrilschumacher /types/shopify-buy/ @openminder @straiforos @totemika /types/shortid/ @stpettersens @despairblue -/types/shot/ @AJamesPhillips +/types/shot/v3/ @AJamesPhillips @SimonSchick +/types/shot/ @AJamesPhillips @SimonSchick /types/should-sinon/ @Arylo /types/showdown/ @cbowdon @tan9 @arielsaldana /types/shrink-ray/ @forabi +/types/shuffle-seed/ @LeartS /types/siema/ @Irmiz @0x6368656174 @samnau /types/siesta/ @bquarmby /types/sigmajs/ @qinfchen @@ -4236,9 +4417,10 @@ /types/simplemde/ @Scalesoft /types/simplesmtp/ @rogierschouten /types/simplestorage.js/ @axelcostaspena @mxl +/types/sindresorhus__df/ @whatknight /types/single-line-log/ @ffflorian /types/single-spa-react/ @Garrett-Smith-iq -/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j @joshuakgoldberg +/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j @joshuakgoldberg @gjednaszewski /types/sinon-as-promised/ @igrayson /types/sinon-chai/v2/ @kazimanzurrashid @jedmao /types/sinon-chai/ @kazimanzurrashid @jedmao @elpdpt @@ -4261,12 +4443,12 @@ /types/slack-winston/ @BlueHatbRit /types/slackdown/ @nju33 /types/slackify-html/ @hypexr -/types/slate/ @andykent @majelbstoat @JanLoebel @YangusKhan @kalley @Kornil @isubasti +/types/slate/ @andykent @majelbstoat @JanLoebel @YangusKhan @kalley @Kornil @isubasti @sgreav /types/slate-base64-serializer/ @YangusKhan /types/slate-html-serializer/ @YangusKhan /types/slate-irc/ @elisee -/types/slate-plain-serializer/ @YangusKhan -/types/slate-react/ @andykent @majelbstoat @JanLoebel @PatrickSachs @YangusKhan @isubasti +/types/slate-plain-serializer/ @YangusKhan @mkiefel +/types/slate-react/ @andykent @majelbstoat @JanLoebel @PatrickSachs @YangusKhan @isubasti @sgreav /types/sleep/ @rajarz /types/slickgrid/ @jbaldwin /types/slideout/ @ToastHawaii @@ -4283,7 +4465,9 @@ /types/snazzy-info-window/ @milosd92 /types/snekfetch/ @ANekoIsFineToo @ShayBox @Dev-Yukine /types/snoowrap/ @vitosamson @TheAppleFreak +/types/snowball-stemmers/ @ryanvolum /types/snowboy/ @dolanmiu +/types/socket.io/v1/ @progre @divillysausages @florentpoujol @KentarouTakeda @gigi @BrainMaestro /types/socket.io/ @progre @divillysausages @florentpoujol @KentarouTakeda @gigi @BrainMaestro /types/socket.io-client/ @progre @divillysausages @florentpoujol /types/socket.io-p2p/ @saenglert @@ -4299,8 +4483,9 @@ /types/solidity-parser-antlr/ @LogvinovLeon @albrow /types/solr-client/ @liul85 /types/solution-center-communicator/ @dami-gg +/types/sonic-boom/ @alferpal /types/sort-array/ @mrmlnc -/types/sortablejs/ @Maw-Fox +/types/sortablejs/ @Maw-Fox @maartenstaa /types/soundmanager2/ @elton2048 /types/soupbintcp/ @jewbre /types/source-list-map/ @e-cloud @@ -4327,7 +4512,7 @@ /types/spotify-api/ @skovmand /types/spotify-web-playback-sdk/ @Festify @mraerino @NeoLegends /types/sprintf/ @soywiz @BendingBender -/types/sprintf-js/ @jasonswearingen @BendingBender +/types/sprintf-js/ @jasonswearingen @BendingBender @cdagli /types/sql-bricks/ @adn05 @paleo /types/sql.js/ @Hozuki /types/sqlanywhere/ @pkeuter @@ -4336,7 +4521,7 @@ /types/squirejs/ @bradleyayers /types/srp/ @Patman64 /types/ssh-key-decrypt/ @BendingBender -/types/ssh2/ @tkQubo @rbuckton +/types/ssh2/ @tkQubo @rbuckton @wrboyce /types/ssh2-sftp-client/ @igrayson @ascariandrea @kartik2406 /types/ssh2-streams/ @rbuckton /types/sshpk/ @mabels @@ -4348,6 +4533,8 @@ /types/stampit/v2/ @koresar /types/stampit/ @koresar @lummish /types/stamplay-js-sdk/ @ridermansb +/types/standard-error/ @roblabat +/types/standard-http-error/ @roblabat /types/starwars-names/ @claasahl /types/stat-mode/ @BendingBender /types/stats.js/ @gregolai @hberntsen @danvk @@ -4360,13 +4547,16 @@ /types/steam-totp/ @phenomax /types/steamid/ @Slessi /types/steed/ @Paul-Isache -/types/stellar-sdk/ @carl-foster @tristonj @pselden @maxbause +/types/stellar-sdk/ @carl-foster @tristonj @pselden @maxbause @charlie-wasp /types/stemmer/ @will-ockmore /types/sticky-cluster/ @paustint +/types/stompit/ @DanielRose /types/stompjs/ @jimic @Dr4k4n /types/stoppable/ @EricByers +/types/storage-helper/ @ajafff /types/store/ @vbortone @harry0000 @Ky6uk /types/storybook-addon-jsx/ @jameslnewell +/types/storybook-readme/ @lonyele /types/storybook__addon-a11y/ @hyunseob /types/storybook__addon-actions/ @joscha @jicjjang /types/storybook__addon-backgrounds/ @hyunseob @@ -4381,6 +4571,7 @@ /types/storybook__react/ @joscha @wapgear /types/storybook__react-native/ @joscha @wapgear @alechill @iRoachie /types/storybook__vue/ @pntgupta +/types/stream-array/ @Tyler-Murphy /types/stream-buffers/ @Jason3S /types/stream-chain/ @uhop /types/stream-csv-as-json/ @uhop @@ -4399,8 +4590,10 @@ /types/strftime/ @cyrilschumacher /types/strict-uri-encode/ @hoishin /types/string/ @basp +/types/string-argv/ @vladimir-tikhonov /types/string-format/ @lal12 /types/string-hash/ @ethanrubio +/types/string-replace-webpack-plugin/ @pd4d10 /types/string-similarity/ @ragtime /types/string-template/ @TonyPythoneer /types/string-width/ @jacobbubu @@ -4409,7 +4602,7 @@ /types/strip-ansi/ @mhegazy /types/strip-bom/ @mhegazy /types/strip-json-comments/ @dmoonfire -/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @bruun @galtalmor @htunnicliff @squirly @tzarger +/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @bruun @galtalmor @htunnicliff @squirly @tzarger @ifiokjr /types/stripe-checkout/ @cgwrench /types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak /types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @@ -4418,16 +4611,22 @@ /types/strong-error-handler/ @blankstar85 /types/strong-log-transformer/ @azasypkin /types/strophe/ @DavidKDeutsch +/types/strophe.js/ @DavidKDeutsch /types/structured-source/ @azu -/types/styled-components/ @Igorbek @Igmat +/types/styled-components/v3/ @Igorbek @Igmat +/types/styled-components/ @Igorbek @Igmat @lavoaster /types/styled-jsx/ @R1ZZU -/types/styled-system/ @maxdeviant @phobon @zephraph @damassi @alloy @maoueh @lavoaster +/types/styled-react-modal/ @Lavoaster +/types/styled-system/ @maxdeviant @phobon @zephraph @damassi @alloy @maoueh @lavoaster @jschuler +/types/styled-theming/ @ArjanJ /types/stylelint/v7/ @alan-agius4 -/types/stylelint/ @alan-agius4 +/types/stylelint/ @alan-agius4 @filipsalpe /types/stylelint-webpack-plugin/ @bahlo +/types/stylenames/ @bengry /types/stylus/ @SomaticIT /types/subscribe-ui-event/ @wangcheng678 /types/subsume/ @BendingBender +/types/subtitle/ @jenglamlow /types/succinct/ @EnableSoftware /types/sudo-block/ @BendingBender /types/suitescript/ @darrenhillconsulting @@ -4468,7 +4667,7 @@ /types/swagger-parser/ @Tobias4872 @EricHenry /types/swagger-restify-mw/ @micmro /types/swagger-sails-hook/ @micmro -/types/swagger-schema-official/ @mohsen1 @bsouthga @nimerritt +/types/swagger-schema-official/ @mohsen1 @bsouthga @nimerritt @mauriedo /types/swagger-tools/ @bricka /types/swagger-ui-dist/ @haowen737 /types/swagger-ui-express/ @dmitryrogozhny @@ -4480,7 +4679,7 @@ /types/swig-email-templates/ @mrhen @micksatana /types/swipe/ @kant2002 /types/swiper/v3/ @sgaliano @lucax88x -/types/swiper/ @sgaliano @lucax88x @ematseruk @odahcam +/types/swiper/ @sgaliano @lucax88x @ematseruk @odahcam @jmca /types/swipeview/ @borisyankov /types/switchery/ @bgrieder @claylaut /types/swiz/ @jedigo @@ -4488,6 +4687,7 @@ /types/synaptic/ @ToastHawaii @austincummings /types/systeminformation/ @PixelcrabAT /types/systemjs/ @ludohenin @NathanWalker @GiedriusGrabauskas @aluanhaddad +/types/tabbable/ @mokkan /types/table/ @evanshortiss @mrmlnc /types/tableau/ @protip /types/tabris-plugin-firebase/ @eclipsesource @@ -4502,6 +4702,7 @@ /types/tar-stream/ @glicht /types/task-graph-runner/ @mgroenhoff /types/tcp-ping/ @stegano +/types/tcp-port-used/ @gautejohan /types/teddy/ @lannonbr /types/tedious/ @rogierschouten @cjthompson @v-suhame /types/tedious-connection-pool/ @sandorfr @@ -4509,24 +4710,29 @@ /types/temp/ @DanielRosenwasser /types/temp-write/ @BendingBender /types/tempfile/ @SamVerschueren @BendingBender -/types/tempy/ @douglasduteil +/types/tempy/ @douglasduteil @maistho /types/terminal-menu/ @aravindarun +/types/tern/ @nkappler +/types/terser/ @JordiAnderl +/types/test-console/ @roberto @guidoux @gbmoretti /types/test-listen/ @stephenmathieson /types/testingbot-api/ @timbru31 /types/tether/ @adidahiya /types/tether-drop/ @adidahiya /types/tether-shepherd/ @mtgibbs /types/text-buffer/ @GlenCFL -/types/text-encoding/ @pine613 @mohsen1 +/types/text-encoding/ @pine613 @mohsen1 @nwmqpa /types/text-encoding-utf-8/ @trxcllnt /types/text-table/ @saadq /types/textarea-caret/ @shiftkey /types/textract/ @lal12 /types/textversionjs/ @aaronosher +/types/texzilla/ @m93a /types/tgfancy/ @Dabolus /types/theming/ @eps1lon +/types/theo/ @petekp /types/thepiratebay/ @jsorrell -/types/three/ @gyohk @florentpoujol @SereznoKot @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @s093294 @Pro @efokschaner @PsychoSTS @dhritzkiv @apurvaojas @NotWoods @sethk @elk941 @Methuselah96 @Dukuo +/types/three/ @gyohk @florentpoujol @SereznoKot @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @s093294 @Pro @efokschaner @PsychoSTS @dhritzkiv @apurvaojas @NotWoods @sethk @elk941 @Methuselah96 @Dukuo @JulianSSS @devilsparta /types/thrift/ @kamek-pf @kevin-greene-ck @jessezhang91 /types/throng/ @cyrilschumacher @tatethurston /types/throttle/ @BendingBender @@ -4547,6 +4753,7 @@ /types/tinajs__tina-redux/ @Jimexist /types/tinder/ @pingec /types/tingle.js/ @ajafff +/types/tiny-async-pool/ @krlwlfrt /types/tiny-secp256k1/ @eduhenke /types/tiny-slider-react/ @screendriver /types/tinycolor2/ @M-Zuber @geertjansen @nvh @Ailrun @@ -4573,6 +4780,7 @@ /types/topojson-simplify/ @denisname @ricardo-mello /types/topojson-specification/ @denisname /types/toposort/ @danwbyrne +/types/torrent-search-api/ @ngirardin /types/torrent-stream/ @xstoudi /types/touch/ @mizunashi-mana @BendingBender /types/touch-events/ @kevinb7 @@ -4589,6 +4797,7 @@ /types/travis-fold/ @andy-ms /types/trayballoon/ @korve /types/tress/ @sindilevich +/types/trianglify/ @unindented /types/trim/ @skysteve /types/triple-beam/ @danwbyrne /types/triplesec/ @threesquared @@ -4659,9 +4868,9 @@ /types/unzip/ @coding2012 /types/unzipper/ @s73obrien @natemara @bartje321 /types/update-notifier/v1/ @vvakame @nchen63 -/types/update-notifier/ @vvakame @nchen63 @bitjson +/types/update-notifier/ @vvakame @nchen63 @bitjson @grinich /types/uploadcare/ @jineshshah36 -/types/upng-js/ @plantain-00 +/types/upng-js/ @plantain-00 @pineapplemachine /types/uppercamelcase/ @plantain-00 /types/urbanairship-cordova/ @Justin-Credible /types/uri-templates/ @Bartvds @barnski @@ -4695,6 +4904,7 @@ /types/uuid-parse/ @screendriver /types/uuid-validate/ @HiromiShikata /types/uws/ @plantain-00 @orblazer +/types/v-chart-plugin/ @natemara /types/valdr/ @ilbertz /types/valdr-message/ @ilbertz /types/valerie/ @conficient @@ -4762,6 +4972,7 @@ /types/w3c-web-usb/ @larsgk /types/waitme/ @totpero /types/wake_on_lan/ @SrTobi +/types/walk/ @poppa /types/wallabyjs/ @andrewconnell /types/wallpaper/ @BendingBender /types/wampy/ @KSDaemon @@ -4771,6 +4982,7 @@ /types/watchpack/ @e-cloud /types/waterline/ @arvitaly /types/watson-developer-cloud/ @waldo000000 @Naktibalda +/types/wavesurfer.js/ @higuri /types/waypoints/ @dominikbulaj @Koloto @evil-shrike /types/wcwidth/ @rokt33r /types/weak/ @int0h @@ -4778,7 +4990,7 @@ /types/web-animations-js/ @kritollm /types/web-bluetooth/ @urish /types/web-push/ @paullessing -/types/web3/ @simon-jentzsch @nitzantomer @zurbo @yxliang01 @phra @naddison36 @icaroharry @linusnorton @jpeletier @anneau @matrushka @andrevmatos @levino @zlumer @archangel-irk +/types/web3/ @simon-jentzsch @nitzantomer @zurbo @yxliang01 @phra @naddison36 @icaroharry @linusnorton @jpeletier @anneau @matrushka @andrevmatos @levino @zlumer @archangel-irk @sogasg @donamk @dkent600 @nerddan /types/web3-eth-abi/ @LogvinovLeon /types/web3-provider-engine/ @LogvinovLeon /types/webappsec-credential-management/ @iainmcgin @@ -4787,14 +4999,14 @@ /types/webcl/ @NCARalph /types/webcomponents.js/ @adidahiya /types/webcrypto/ @iislucas -/types/webdriverio/ @nmalaguti @timbru31 @fsmedberg-tc @tanvirislam06 @phil-lgr +/types/webdriverio/ @nmalaguti @timbru31 @fsmedberg-tc @tanvirislam06 @daveparslow @phil-lgr /types/webfontloader/ @doskallemaskin /types/webgl-ext/ @zenmumbler /types/webgl2/ @nkemnitz @karhu /types/webidl2/ @saschanaz /types/webmidi/ @lostfictions -/types/webpack/v3/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @christophehurpeau -/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly +/types/webpack/v3/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @christophehurpeau @rwaskiewicz @kuehlein +/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein /types/webpack-assets-manifest/ @FranklinWhale /types/webpack-bundle-analyzer/ @kryops /types/webpack-chain/ @eirikurn @psachs21 @@ -4818,9 +5030,11 @@ /types/webpack-serve/ @rynclark @Jokcy @ZSkycat /types/webpack-sources/ @e-cloud @chriseppstein /types/webpack-stream/ @iclanton @bumbleblym +/types/webpack-subresource-integrity/ @huan086 /types/webpack-validator/ @deevus /types/webpackbar/ @rynclark /types/webpagetest/ @ksm2 +/types/webprogbase-console-view/ @veetaha /types/webrtc/ @nakakura /types/webscopeio__react-textarea-autocomplete/ @michauzo /types/websequencediagrams/ @ffflorian @@ -4866,6 +5080,7 @@ /types/wnumb/ @acoreyj /types/wonder.js/ @yyc-git /types/word-list-json/ @dovidm +/types/word2vector/ @renekeijzer /types/wordcloud/ @joeskeen /types/words-to-numbers/ @James-Frowen /types/workbox-sw/ @wessberg @@ -4907,18 +5122,20 @@ /types/xsockets/ @pushplay /types/xxhashjs/ @mDibyo /types/yallist/ @BendingBender +/types/yaml/ @ikatyang @ColinBradley /types/yandex-maps/ @Delagen /types/yandex-money-sdk/ @chrootsu /types/yar/ @SimonSchick /types/yargs/v8/ @poelstra @mizunashi-mana @pushplay @jeffkenney /types/yargs/v10/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC /types/yargs/v11/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC -/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC +/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @tkazec /types/yargs-interactive/ @szeck87 +/types/yargs-parser/ @milesj /types/yauzl/ @ffflorian /types/yauzl-promise/ @dlee-nvisia /types/yayson/ @Codesleuth -/types/yazl/ @taoqf +/types/yazl/ @taoqf @seangenabe /types/ydn-db/ @yathit @gabrielmaldi /types/yeoman-generator/ @armorik83 @janslow @ikatyang /types/yeoman-test/ @ikatyang @@ -4932,7 +5149,7 @@ /types/youtube/ @DazWilkin @JoshuaKGoldberg @eliotfallon213 @terrymun /types/youtube-dl/ @bsurai /types/yui/ @giabao -/types/yup/ @dhardtke @vtserman @MoretonBayRC @sseppola +/types/yup/ @dhardtke @vtserman @MoretonBayRC @sseppola @YashdalfTheGray /types/z-schema/ @pgonzal /types/zapier-platform-core/ @bradleyayers /types/zeit__next-typescript/ @icopp @@ -4945,6 +5162,7 @@ /types/zeromq/ @davemckeown @erikma @TitaneBoy /types/zip-webpack-plugin/ @blaise-io /types/zip.js/ @lgrignon +/types/zipcelx/ @aleburato /types/zipcodes/ @headdetect @dobesv /types/zipkin-context-cls/ @plantain-00 /types/zipkin-instrumentation-express/ @plantain-00 From 9376c1ee6593165d1e35d79b07e7747d302c104d Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Tue, 6 Nov 2018 06:49:04 +0800 Subject: [PATCH 155/213] Update three-fbxloader.d.ts change loadedMoel name and fix animations for eternal life as soon as FbxLoader loaded --- types/three/three-fbxloader.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/three/three-fbxloader.d.ts b/types/three/three-fbxloader.d.ts index 7ba088cbf7..699f12f8cd 100644 --- a/types/three/three-fbxloader.d.ts +++ b/types/three/three-fbxloader.d.ts @@ -3,15 +3,15 @@ import { LoadingManager } from "./three-core"; import { AnimationClip, Group } from "./three-core"; -interface ILoadedModel extends Group { - animations?: AnimationClip[]; +interface IFbxSceneGraph extends Group { + animations: AnimationClip[]; } export class FBXLoader { constructor(manager?: LoadingManager); manager: LoadingManager; - load(url: string, onLoad: (group: ILoadedModel) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; + load(url: string, onLoad: (group: IFbxSceneGraph) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; parse(FBXText: string, resourceDirectory: string) : Group; } From 09f04efcb358c907bfe3c708a3c44e9405536c39 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 5 Nov 2018 16:35:20 -0800 Subject: [PATCH 156/213] puppeteer/v0: Add no-unnecessary-type-assertion disables (#30298) --- types/puppeteer/v0/puppeteer-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/puppeteer/v0/puppeteer-tests.ts b/types/puppeteer/v0/puppeteer-tests.ts index 963fb1c8c1..76717da98f 100644 --- a/types/puppeteer/v0/puppeteer-tests.ts +++ b/types/puppeteer/v0/puppeteer-tests.ts @@ -27,8 +27,8 @@ import * as puppeteer from "puppeteer"; // Get the "viewport" of the page, as reported by the page. const dimensions = await page.evaluate(() => { return { - width: document.documentElement!.clientWidth, - height: document.documentElement!.clientHeight, + width: document.documentElement!.clientWidth, // tslint:disable-line no-unnecessary-type-assertion + height: document.documentElement!.clientHeight, // tslint:disable-line no-unnecessary-type-assertion deviceScaleFactor: window.devicePixelRatio }; }); From 22404698d15ba1e2324e7fbc21f0d733456b515e Mon Sep 17 00:00:00 2001 From: Mitchell Grice Date: Tue, 6 Nov 2018 11:25:56 +1000 Subject: [PATCH 157/213] is: add edge --- types/is/index.d.ts | 5 +++++ types/is/is-tests.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/types/is/index.d.ts b/types/is/index.d.ts index 37b485e0a0..adb4f7d43a 100644 --- a/types/is/index.d.ts +++ b/types/is/index.d.ts @@ -371,6 +371,11 @@ interface IsStatic { */ ie(value?: number): boolean; + /** + * Checks if current browser is edge. + */ + edge(): boolean; + /** * Checks if current browser is chrome. */ diff --git a/types/is/is-tests.ts b/types/is/is-tests.ts index 77a88a81b3..b710bd0db0 100644 --- a/types/is/is-tests.ts +++ b/types/is/is-tests.ts @@ -449,6 +449,9 @@ is.ie(); is.ie(6); is.not.ie(); +is.edge(); +is.not.edge(); + is.chrome(); is.not.chrome(); @@ -664,4 +667,4 @@ is.url('quack'); var customName = is.setNamespace(); customName.odd(3); -//#endregion \ No newline at end of file +//#endregion From 011e4f8209b6b88363c8e4158ed81ce277a23632 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 5 Nov 2018 17:44:29 -0800 Subject: [PATCH 158/213] Undo formatting change to notNeededPackages.json (#30301) --- notNeededPackages.json | 3520 ++++++++++++++++++++-------------------- 1 file changed, 1760 insertions(+), 1760 deletions(-) diff --git a/notNeededPackages.json b/notNeededPackages.json index f65078a775..c247e09d92 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1,1762 +1,1762 @@ { - "packages": [ - { - "libraryName": "3d-bin-packing", - "typingsPackageName": "3d-bin-packing", - "sourceRepoURL": "https://github.com/betterwaysystems/packer", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "Ably Realtime and Rest client library", - "typingsPackageName": "ably", - "sourceRepoURL": "https://www.ably.io/", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "ag-grid", - "typingsPackageName": "ag-grid", - "sourceRepoURL": "https://github.com/ceolter/ag-grid", - "asOfVersion": "3.2.0" - }, - { - "libraryName": "ajv", - "typingsPackageName": "ajv", - "sourceRepoURL": "https://github.com/epoberezkin/ajv", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "angular-touchspin", - "typingsPackageName": "angular-touchspin", - "sourceRepoURL": "https://github.com/nkovacic/angular-touchspin", - "asOfVersion": "1.8.2" - }, - { - "libraryName": "angular-ui-router-default", - "typingsPackageName": "angular-ui-router-default", - "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-default", - "asOfVersion": "0.0.5" - }, - { - "libraryName": "angular-ui-router-uib-modal", - "typingsPackageName": "angular-ui-router-uib-modal", - "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", - "asOfVersion": "0.0.11" - }, - { - "libraryName": "antd", - "typingsPackageName": "antd", - "sourceRepoURL": "https://github.com/ant-design/ant-design", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "anydb-sql", - "typingsPackageName": "anydb-sql", - "sourceRepoURL": "https://github.com/doxout/anydb-sql", - "asOfVersion": "0.6.46" - }, - { - "libraryName": "anydb-sql-migrations", - "typingsPackageName": "anydb-sql-migrations", - "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", - "asOfVersion": "2.1.1" - }, - { - "libraryName": "apn", - "typingsPackageName": "apn", - "sourceRepoURL": "https://github.com/node-apn/node-apn", - "asOfVersion": "2.1.2" - }, - { - "libraryName": "Application Insights", - "typingsPackageName": "applicationinsights", - "sourceRepoURL": "https://github.com/Microsoft/ApplicationInsights-node.js", - "asOfVersion": "0.20.0" - }, - { - "libraryName": "Argon2", - "typingsPackageName": "argon2", - "sourceRepoURL": "https://github.com/ranisalt/node-argon2", - "asOfVersion": "0.15.0" - }, - { - "libraryName": "artyom.js", - "typingsPackageName": "artyom.js", - "sourceRepoURL": "https://github.com/sdkcarlos/artyom.js", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "askmethat-rating", - "typingsPackageName": "askmethat-rating", - "sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating", - "asOfVersion": "0.4.0" - }, - { - "libraryName": "assertion-error", - "typingsPackageName": "assertion-error", - "sourceRepoURL": "https://github.com/chaijs/assertion-error", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "asyncblock", - "typingsPackageName": "asyncblock", - "sourceRepoURL": "https://github.com/scriby/asyncblock", - "asOfVersion": "2.2.11" - }, - { - "libraryName": "aurelia-knockout", - "typingsPackageName": "aurelia-knockout", - "sourceRepoURL": "https://github.com/code-chris/aurelia-knockout", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "autobind-decorator", - "typingsPackageName": "autobind-decorator", - "sourceRepoURL": "https://github.com/andreypopp/autobind-decorator", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "aws-sdk", - "typingsPackageName": "aws-sdk", - "sourceRepoURL": "https://github.com/aws/aws-sdk-js", - "asOfVersion": "2.7.0" - }, - { - "libraryName": "axe-core", - "typingsPackageName": "axe-core", - "sourceRepoURL": "https://github.com/dequelabs/axe-core", - "asOfVersion": "3.0.3" - }, - { - "libraryName": "axios", - "typingsPackageName": "axios", - "sourceRepoURL": "https://github.com/mzabriskie/axios", - "asOfVersion": "0.14.0" - }, - { - "libraryName": "axios-mock-adapter", - "typingsPackageName": "axios-mock-adapter", - "sourceRepoURL": "https://github.com/ctimmerm/axios-mock-adapter", - "asOfVersion": "1.10.0" - }, - { - "libraryName": "azure-mobile-apps", - "typingsPackageName": "azure-mobile-apps", - "sourceRepoURL": "https://github.com/Azure/azure-mobile-apps-node/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "BabylonJS", - "typingsPackageName": "babylonjs", - "sourceRepoURL": "http://www.babylonjs.com/", - "asOfVersion": "2.4.1" - }, - { - "libraryName": "base64url", - "typingsPackageName": "base64url", - "sourceRepoURL": "https://github.com/brianloveswords/base64url", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "BigInteger.js", - "typingsPackageName": "big-integer", - "sourceRepoURL": "https://github.com/peterolson/BigInteger.js", - "asOfVersion": "0.0.31" - }, - { - "libraryName": "bignumber.js", - "typingsPackageName": "bignumber.js", - "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "bingmaps", - "typingsPackageName": "bingmaps", - "sourceRepoURL": "https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions", - "asOfVersion": "2.0.15" - }, - { - "libraryName": "bitwise", - "typingsPackageName": "bitwise", - "sourceRepoURL": "https://github.com/dodekeract/bitwise", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "botvs", - "typingsPackageName": "botvs", - "sourceRepoURL": "https://www.botvs.com/", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "Bowser", - "typingsPackageName": "bowser", - "sourceRepoURL": "https://github.com/ded/bowser", - "asOfVersion": "1.1.1" - }, - { - "libraryName": "Bugsnag Browser", - "typingsPackageName": "bugsnag-js", - "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "CacheFactory", - "typingsPackageName": "cachefactory", - "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "camel-case", - "typingsPackageName": "camel-case", - "sourceRepoURL": "https://github.com/blakeembrey/camel-case", - "asOfVersion": "1.2.1" - }, - { - "libraryName": "catalog", - "typingsPackageName": "catalog", - "sourceRepoURL": "https://github.com/interactivethings/catalog", - "asOfVersion": "3.5.0" - }, - { - "libraryName": "chalk", - "typingsPackageName": "chalk", - "sourceRepoURL": "https://github.com/chalk/chalk", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "change-case", - "typingsPackageName": "change-case", - "sourceRepoURL": "https://github.com/blakeembrey/change-case", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "cheap-ruler", - "typingsPackageName": "cheap-ruler", - "sourceRepoURL": "https://github.com/mapbox/cheap-ruler", - "asOfVersion": "2.5.0" - }, - { - "libraryName": "chunked-dc", - "typingsPackageName": "chunked-dc", - "sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js", - "asOfVersion": "0.2.2" - }, - { - "libraryName": "colors.js (colors)", - "typingsPackageName": "colors", - "sourceRepoURL": "https://github.com/Marak/colors.js", - "asOfVersion": "1.2.1" - }, - { - "libraryName": "commander", - "typingsPackageName": "commander", - "sourceRepoURL": "https://github.com/tj/commander.js", - "asOfVersion": "2.12.2" - }, - { - "libraryName": "confirmdialog", - "typingsPackageName": "confirmdialog", - "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "constant-case", - "typingsPackageName": "constant-case", - "sourceRepoURL": "https://github.com/blakeembrey/constant-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "cordova-plugin-battery-status", - "typingsPackageName": "cordova-plugin-battery-status", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-battery-status", - "asOfVersion": "1.2.3" - }, - { - "libraryName": "cordova-plugin-camera", - "typingsPackageName": "cordova-plugin-camera", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-camera", - "asOfVersion": "2.4.0" - }, - { - "libraryName": "cordova-plugin-contacts", - "typingsPackageName": "cordova-plugin-contacts", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-contacts", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "cordova-plugin-device", - "typingsPackageName": "cordova-plugin-device", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device", - "asOfVersion": "1.1.5" - }, - { - "libraryName": "cordova-plugin-device-motion", - "typingsPackageName": "cordova-plugin-device-motion", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-motion", - "asOfVersion": "1.2.4" - }, - { - "libraryName": "Apache Cordova Device Orientation plugin", - "typingsPackageName": "cordova-plugin-device-orientation", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-orientation", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "cordova-plugin-dialogs", - "typingsPackageName": "cordova-plugin-dialogs", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-dialogs", - "asOfVersion": "1.3.2" - }, - { - "libraryName": "Apache Cordova File System plugin", - "typingsPackageName": "cordova-plugin-file", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-file", - "asOfVersion": "4.3.2" - }, - { - "libraryName": "cordova-plugin-file-transfer", - "typingsPackageName": "cordova-plugin-file-transfer", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-file-transfer", - "asOfVersion": "1.6.2" - }, - { - "libraryName": "cordova-plugin-globalization", - "typingsPackageName": "cordova-plugin-globalization", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-globalization", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "cordova-plugin-inappbrowser", - "typingsPackageName": "cordova-plugin-inappbrowser", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-inappbrowser", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "cordova-plugin-media", - "typingsPackageName": "cordova-plugin-media", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-media", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "cordova-plugin-media-capture", - "typingsPackageName": "cordova-plugin-media-capture", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-media-capture", - "asOfVersion": "1.4.2" - }, - { - "libraryName": "cordova-plugin-network-information", - "typingsPackageName": "cordova-plugin-network-information", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-network-information", - "asOfVersion": "1.3.2" - }, - { - "libraryName": "cordova-plugin-splashscreen", - "typingsPackageName": "cordova-plugin-splashscreen", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-splashscreen", - "asOfVersion": "4.0.2" - }, - { - "libraryName": "Apache Cordova StatusBar plugin", - "typingsPackageName": "cordova-plugin-statusbar", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-statusbar", - "asOfVersion": "2.2.2" - }, - { - "libraryName": "Apache Cordova Vibration plugin", - "typingsPackageName": "cordova-plugin-vibration", - "sourceRepoURL": "https://github.com/apache/cordova-plugin-vibration", - "asOfVersion": "2.1.4" - }, - { - "libraryName": "cordova.plugins.diagnostic", - "typingsPackageName": "cordova.plugins.diagnostic", - "sourceRepoURL": "https://github.com/dpa99c/cordova-diagnostic-plugin", - "asOfVersion": "3.7.0" - }, - { - "libraryName": "core-decorators.js", - "typingsPackageName": "core-decorators", - "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", - "asOfVersion": "0.20.0" - }, - { - "libraryName": "cypress", - "typingsPackageName": "cypress", - "sourceRepoURL": "https://cypress.io", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "date-fns", - "typingsPackageName": "date-fns", - "sourceRepoURL": "https://github.com/date-fns/date-fns", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "decimal.js", - "typingsPackageName": "decimal.js", - "sourceRepoURL": "https://github.com/MikeMcl/decimal.js", - "asOfVersion": "7.4.0" - }, - { - "libraryName": "deepmerge", - "typingsPackageName": "deepmerge", - "sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "delay", - "typingsPackageName": "delay", - "sourceRepoURL": "https://github.com/sindresorhus/delay", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "DevExtreme", - "typingsPackageName": "devextreme", - "sourceRepoURL": "http://js.devexpress.com/", - "asOfVersion": "16.2.1" - }, - { - "libraryName": "Dexie.js", - "typingsPackageName": "dexie", - "sourceRepoURL": "https://github.com/dfahlander/Dexie.js", - "asOfVersion": "1.3.1" - }, - { - "libraryName": "docker-file-parser", - "typingsPackageName": "docker-file-parser", - "sourceRepoURL": "https://github.com/joyent/docker-file-parser", - "asOfVersion": "1.0.3" - }, - { - "libraryName": "dot-case", - "typingsPackageName": "dot-case", - "sourceRepoURL": "https://github.com/blakeembrey/dot-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "dva", - "typingsPackageName": "dva", - "sourceRepoURL": "https://github.com/dvajs/dva", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "easy-x-headers", - "typingsPackageName": "easy-x-headers", - "sourceRepoURL": "https://github.com/DeadAlready/easy-x-headers", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "easy-xapi-supertest", - "typingsPackageName": "easy-xapi-supertest", - "sourceRepoURL": "https://github.com/DeadAlready/easy-xapi-supertest", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "EasyStar.js", - "typingsPackageName": "easystarjs", - "sourceRepoURL": "http://easystarjs.com/", - "asOfVersion": "0.3.1" - }, - { - "libraryName": "ecmarkup", - "typingsPackageName": "ecmarkup", - "sourceRepoURL": "https://github.com/bterlson/ecmarkup", - "asOfVersion": "3.4.0" - }, - { - "libraryName": "Egg", - "typingsPackageName": "egg", - "sourceRepoURL": "https://github.com/eggjs/egg", - "asOfVersion": "1.5.0" - }, - { - "libraryName": "electron", - "typingsPackageName": "electron", - "sourceRepoURL": "https://github.com/electron/electron", - "asOfVersion": "1.6.10" - }, - { - "libraryName": "electron-builder", - "typingsPackageName": "electron-builder", - "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", - "asOfVersion": "2.8.0" - }, - { - "libraryName": "email-addresses", - "typingsPackageName": "email-addresses", - "sourceRepoURL": "https://github.com/jackbowman/email-addresses", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "email-validator", - "typingsPackageName": "email-validator", - "sourceRepoURL": "https://github.com/Sembiance/email-validator", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "error-stack-parser", - "typingsPackageName": "error-stack-parser", - "sourceRepoURL": "https://github.com/stacktracejs/error-stack-parser", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "es6-error", - "typingsPackageName": "es6-error", - "sourceRepoURL": "https://github.com/bjyoungblood/es6-error", - "asOfVersion": "4.0.2" - }, - { - "libraryName": "es6-promise", - "typingsPackageName": "es6-promise", - "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", - "asOfVersion": "3.3.0" - }, - { - "libraryName": "eventemitter2", - "typingsPackageName": "eventemitter2", - "sourceRepoURL": "https://github.com/asyncly/EventEmitter2", - "asOfVersion": "4.1.0" - }, - { - "libraryName": "EventEmitter3", - "typingsPackageName": "eventemitter3", - "sourceRepoURL": "https://github.com/primus/eventemitter3", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "expr-eval", - "typingsPackageName": "expr-eval", - "sourceRepoURL": "https://github.com/silentmatt/expr-eval", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "express-validator", - "typingsPackageName": "express-validator", - "sourceRepoURL": "https://github.com/ctavan/express-validator", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "extended-listbox", - "typingsPackageName": "extended-listbox", - "sourceRepoURL": "https://github.com/code-chris/extended-listbox", - "asOfVersion": "4.0.1" - }, - { - "libraryName": "JSON-Patch", - "typingsPackageName": "fast-json-patch", - "sourceRepoURL": "https://github.com/Starcounter-Jack/JSON-Patch", - "asOfVersion": "1.1.5" - }, - { - "libraryName": "FastSimplexNoise", - "typingsPackageName": "fast-simplex-noise", - "sourceRepoURL": "https://www.npmjs.com/package/fast-simplex-noise", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "fecha", - "typingsPackageName": "fecha", - "sourceRepoURL": "https://github.com/taylorhakes/fecha", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "FineUploader", - "typingsPackageName": "fine-uploader", - "sourceRepoURL": "http://fineuploader.com/", - "asOfVersion": "5.14.0" - }, - { - "libraryName": "Firebase API", - "typingsPackageName": "firebase", - "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", - "asOfVersion": "3.2.1" - }, - { - "libraryName": "flatpickr", - "typingsPackageName": "flatpickr", - "sourceRepoURL": "https://github.com/chmln/flatpickr", - "asOfVersion": "3.1.2" - }, - { - "libraryName": "flux-standard-action", - "typingsPackageName": "flux-standard-action", - "sourceRepoURL": "https://github.com/acdlite/flux-standard-action", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "fork-ts-checker-webpack-plugin", - "typingsPackageName": "fork-ts-checker-webpack-plugin", - "sourceRepoURL": "https://github.com/Realytics/fork-ts-checker-webpack-plugin", - "asOfVersion": "0.4.5" - }, - { - "libraryName": "Foundation Sites", - "typingsPackageName": "foundation-sites", - "sourceRepoURL": "http://foundation.zurb.com/", - "asOfVersion": "6.4.3" - }, - { - "libraryName": "FullCalendar", - "typingsPackageName": "fullcalendar", - "sourceRepoURL": "http://arshaw.com/fullcalendar/", - "asOfVersion": "3.8.0" - }, - { - "libraryName": "fuse", - "typingsPackageName": "fuse", - "sourceRepoURL": "https://github.com/krisk/Fuse", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "gaea-model", - "typingsPackageName": "gaea-model", - "sourceRepoURL": "https://github.com/ascoders/gaea-model", - "asOfVersion": "0.0.0" - }, - { - "libraryName": "geolib", - "typingsPackageName": "geolib", - "sourceRepoURL": "https://github.com/manuelbieh/Geolib", - "asOfVersion": "2.0.23" - }, - { - "libraryName": "github", - "typingsPackageName": "github", - "sourceRepoURL": "https://github.com/mikedeboer/node-github", - "asOfVersion": "7.1.0" - }, - { - "libraryName": "graphene-pk11", - "typingsPackageName": "graphene-pk11", - "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", - "asOfVersion": "2.0.31" - }, - { - "libraryName": "griddle-react", - "typingsPackageName": "griddle-react", - "sourceRepoURL": "https://github.com/griddlegriddle/griddle", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "gulp-tslint", - "typingsPackageName": "gulp-tslint", - "sourceRepoURL": "https://github.com/panuhorsmalahti/gulp-tslint", - "asOfVersion": "4.2.0" - }, - { - "libraryName": "gulp-typedoc", - "typingsPackageName": "gulp-typedoc", - "sourceRepoURL": "https://github.com/rogierschouten/gulp-typedoc", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "gulp-typescript", - "typingsPackageName": "gulp-typescript", - "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", - "asOfVersion": "2.13.0" - }, - { - "libraryName": "handsontable", - "typingsPackageName": "handsontable", - "sourceRepoURL": "https://handsontable.com/", - "asOfVersion": "0.35.0" - }, - { - "libraryName": "homeworks", - "typingsPackageName": "homeworks", - "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", - "asOfVersion": "1.0.19" - }, - { - "libraryName": "http-status-codes", - "typingsPackageName": "http-status-codes", - "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "iconv-lite", - "typingsPackageName": "iconv-lite", - "sourceRepoURL": "https://github.com/ashtuchkin/iconv-lite", - "asOfVersion": "0.4.14" - }, - { - "libraryName": "ids", - "typingsPackageName": "ids", - "sourceRepoURL": "https://github.com/bpmn-io/ids", - "asOfVersion": "0.2.2" - }, - { - "libraryName": "immutability-helper", - "typingsPackageName": "immutability-helper", - "sourceRepoURL": "https://github.com/kolodny/immutability-helper", - "asOfVersion": "2.6.3" - }, - { - "libraryName": "Facebook's Immutable", - "typingsPackageName": "immutable", - "sourceRepoURL": "https://github.com/facebook/immutable-js", - "asOfVersion": "3.8.7" - }, - { - "libraryName": "interactjs", - "typingsPackageName": "interact.js", - "sourceRepoURL": "https://github.com/taye/interact.js", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "inversify", - "typingsPackageName": "inversify", - "sourceRepoURL": "http://inversify.io", - "asOfVersion": "2.0.33" - }, - { - "libraryName": "inversify-binding-decorators", - "typingsPackageName": "inversify-binding-decorators", - "sourceRepoURL": "https://github.com/inversify/inversify-binding-decorators", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-express-utils", - "typingsPackageName": "inversify-express-utils", - "sourceRepoURL": "https://github.com/inversify/inversify-express-utils", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-inject-decorators", - "typingsPackageName": "inversify-inject-decorators", - "sourceRepoURL": "https://github.com/inversify/inversify-inject-decorators", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-logger-middleware", - "typingsPackageName": "inversify-logger-middleware", - "sourceRepoURL": "https://github.com/inversify/inversify-logger-middleware", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "inversify-restify-utils", - "typingsPackageName": "inversify-restify-utils", - "sourceRepoURL": "https://github.com/inversify/inversify-restify-utils", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "Ionic", - "typingsPackageName": "ionic", - "sourceRepoURL": "http://ionicframework.com", - "asOfVersion": "3.19.0" - }, - { - "libraryName": "is-lower-case", - "typingsPackageName": "is-lower-case", - "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "is-plain-object", - "typingsPackageName": "is-plain-object", - "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", - "asOfVersion": "2.0.4" - }, - { - "libraryName": "is-upper-case", - "typingsPackageName": "is-upper-case", - "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "jasmine-expect", - "typingsPackageName": "jasmine-expect", - "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", - "asOfVersion": "3.8.1" - }, - { - "libraryName": "jimp", - "typingsPackageName": "jimp", - "sourceRepoURL": "https://github.com/oliver-moran/jimp#readme", - "asOfVersion": "0.2.28" - }, - { - "libraryName": "joData", - "typingsPackageName": "jodata", - "sourceRepoURL": "https://github.com/mccow002/joData", - "asOfVersion": "1.0.13" - }, - { - "libraryName": "JointJS", - "typingsPackageName": "jointjs", - "sourceRepoURL": "http://www.jointjs.com/", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "jpush-react-native", - "typingsPackageName": "jpush-react-native", - "sourceRepoURL": "https://github.com/jpush/jpush-react-native", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "jquery.ajaxfile", - "typingsPackageName": "jquery.ajaxfile", - "sourceRepoURL": "https://github.com/fpellet/jquery.ajaxFile", - "asOfVersion": "0.2.29" - }, - { - "libraryName": "js-data", - "typingsPackageName": "js-data", - "sourceRepoURL": "https://github.com/js-data/js-data", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "JSData Http Adapter", - "typingsPackageName": "js-data-http", - "sourceRepoURL": "https://github.com/js-data/js-data-http", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "JSNLog", - "typingsPackageName": "jsnlog", - "sourceRepoURL": "https://github.com/mperdeck/jsnlog.js", - "asOfVersion": "2.17.2" - }, - { - "libraryName": "jsonschema", - "typingsPackageName": "jsonschema", - "sourceRepoURL": "https://github.com/tdegrunt/jsonschema", - "asOfVersion": "1.1.1" - }, - { - "libraryName": "jsplumb", - "typingsPackageName": "jsplumb", - "sourceRepoURL": "https://github.com/jsplumb/jsPlumb", - "asOfVersion": "2.5.7" - }, - { - "libraryName": "keycloak-js", - "typingsPackageName": "keycloak-js", - "sourceRepoURL": "https://github.com/keycloak/keycloak", - "asOfVersion": "3.4.1" - }, - { - "libraryName": "knockout-paging", - "typingsPackageName": "knockout-paging", - "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-paging", - "asOfVersion": "0.3.1" - }, - { - "libraryName": "knockout-pre-rendered", - "typingsPackageName": "knockout-pre-rendered", - "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", - "asOfVersion": "0.7.1" - }, - { - "libraryName": "koa-jwt", - "typingsPackageName": "koa-jwt", - "sourceRepoURL": "https://github.com/koajs/jwt", - "asOfVersion": "3.3.0" - }, - { - "libraryName": "lambda-phi", - "typingsPackageName": "lambda-phi", - "sourceRepoURL": "https://github.com/elitechance/lambda-phi", - "asOfVersion": "1.0.1" - }, - { - "libraryName": "ldclient-js", - "typingsPackageName": "ldclient-js", - "sourceRepoURL": "https://github.com/launchdarkly/js-client", - "asOfVersion": "1.1.11" - }, - { - "libraryName": "left-pad", - "typingsPackageName": "left-pad", - "sourceRepoURL": "https://github.com/stevemao/left-pad", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "Linq.JS", - "typingsPackageName": "linq", - "sourceRepoURL": "https://linqjs.codeplex.com/", - "asOfVersion": "2.2.33" - }, - { - "libraryName": "Linq4JS", - "typingsPackageName": "linq4js", - "sourceRepoURL": "https://github.com/morrisjdev/Linq4JS", - "asOfVersion": "2.1.8" - }, - { - "libraryName": "LinqSharp", - "typingsPackageName": "linqsharp", - "sourceRepoURL": "https://github.com/brunolm/LinqSharp", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "localforage", - "typingsPackageName": "localforage", - "sourceRepoURL": "https://github.com/localForage/localForage", - "asOfVersion": "0.0.34" - }, - { - "libraryName": "localforage-cordovasqlitedriver", - "typingsPackageName": "localforage-cordovasqlitedriver", - "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", - "asOfVersion": "1.5.0" - }, - { - "libraryName": "lodash-decorators", - "typingsPackageName": "lodash-decorators", - "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "log4javascript", - "typingsPackageName": "log4javascript", - "sourceRepoURL": "http://log4javascript.org/", - "asOfVersion": "1.4.15" - }, - { - "libraryName": "log4js", - "typingsPackageName": "log4js", - "sourceRepoURL": "https://github.com/nomiddlename/log4js-node", - "asOfVersion": "2.3.5" - }, - { - "libraryName": "lower-case", - "typingsPackageName": "lower-case", - "sourceRepoURL": "https://github.com/blakeembrey/lower-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "lower-case-first", - "typingsPackageName": "lower-case-first", - "sourceRepoURL": "https://github.com/blakeembrey/lower-case-first", - "asOfVersion": "1.0.1" - }, - { - "libraryName": "mali", - "typingsPackageName": "mali", - "sourceRepoURL": "https://github.com/malijs/mali", - "asOfVersion": "0.9.2" - }, - { - "libraryName": "maquette", - "typingsPackageName": "maquette", - "sourceRepoURL": "http://maquettejs.org/", - "asOfVersion": "2.1.6" - }, - { - "libraryName": "mendixmodelsdk", - "typingsPackageName": "mendixmodelsdk", - "sourceRepoURL": "http://www.mendix.com", - "asOfVersion": "0.8.1" - }, - { - "libraryName": "metisMenu", - "typingsPackageName": "metismenu", - "sourceRepoURL": "https://github.com/onokumus/metisMenu", - "asOfVersion": "2.7.1" - }, - { - "libraryName": "microgears", - "typingsPackageName": "microgears", - "sourceRepoURL": "https://github.com/marcusdb/microgears", - "asOfVersion": "4.0.5" - }, - { - "libraryName": "mobile-detect", - "typingsPackageName": "mobile-detect", - "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", - "asOfVersion": "1.3.4" - }, - { - "libraryName": "mobservable", - "typingsPackageName": "mobservable", - "sourceRepoURL": "github.com/mweststrate/mobservable", - "asOfVersion": "1.2.5" - }, - { - "libraryName": "mobservable-react", - "typingsPackageName": "mobservable-react", - "sourceRepoURL": "https://github.com/mweststrate/mobservable-react", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "Mobx Cookie", - "typingsPackageName": "mobx-cookie", - "sourceRepoURL": "https://github.com/will-stone/mobx-cookie", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "Moment", - "typingsPackageName": "moment", - "sourceRepoURL": "https://github.com/moment/moment", - "asOfVersion": "2.13.0" - }, - { - "libraryName": "Monk", - "typingsPackageName": "monk", - "sourceRepoURL": "https://github.com/LearnBoost/monk.git", - "asOfVersion": "6.0.0" - }, - { - "libraryName": "MQTT", - "typingsPackageName": "mqtt", - "sourceRepoURL": "https://github.com/mqttjs/MQTT.js", - "asOfVersion": "2.5.0" - }, - { - "libraryName": "nano", - "typingsPackageName": "nano", - "sourceRepoURL": "https://github.com/apache/couchdb-nano", - "asOfVersion": "7.0.0" - }, - { - "libraryName": "ng-table", - "typingsPackageName": "ng-table", - "sourceRepoURL": "https://github.com/esvit/ng-table", - "asOfVersion": "2.0.1" - }, - { - "libraryName": "node-pg-migrate", - "typingsPackageName": "node-pg-migrate", - "sourceRepoURL": "https://github.com/theoephraim/node-pg-migrate#readme", - "asOfVersion": "2.15.0" - }, - { - "libraryName": "node-waves", - "typingsPackageName": "node-waves", - "sourceRepoURL": "http://fian.my.id/Waves", - "asOfVersion": "0.7.6" - }, - { - "libraryName": "Normalizr", - "typingsPackageName": "normalizr", - "sourceRepoURL": "https://github.com/paularmstrong/normalizr", - "asOfVersion": "2.0.18" - }, - { - "libraryName": "Numbro", - "typingsPackageName": "numbro", - "sourceRepoURL": "https://github.com/foretagsplatsen/numbro/", - "asOfVersion": "1.9.3" - }, - { - "libraryName": "Onsen UI", - "typingsPackageName": "onsenui", - "sourceRepoURL": "http://onsen.io", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "param-case", - "typingsPackageName": "param-case", - "sourceRepoURL": "https://github.com/blakeembrey/param-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "pascal-case", - "typingsPackageName": "pascal-case", - "sourceRepoURL": "https://github.com/blakeembrey/pascal-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "passport-client-cert", - "typingsPackageName": "passport-client-cert", - "sourceRepoURL": "https://github.com/ripjar/passport-client-cert", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "path-case", - "typingsPackageName": "path-case", - "sourceRepoURL": "https://github.com/blakeembrey/path-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "path-to-regexp", - "typingsPackageName": "path-to-regexp", - "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", - "asOfVersion": "1.7.0" - }, - { - "libraryName": "perfect-scrollbar", - "typingsPackageName": "perfect-scrollbar", - "sourceRepoURL": "https://github.com/noraesae/perfect-scrollbar", - "asOfVersion": "1.3.0" - }, - { - "libraryName": "pg-connection-string", - "typingsPackageName": "pg-connection-string", - "sourceRepoURL": "https://github.com/iceddev/pg-connection-string", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "pg-promise", - "typingsPackageName": "pg-promise", - "sourceRepoURL": "https://github.com/vitaly-t/pg-promise", - "asOfVersion": "5.4.3" - }, - { - "libraryName": "phonegap-plugin-push", - "typingsPackageName": "phonegap-plugin-push", - "sourceRepoURL": "https://github.com/phonegap/phonegap-plugin-push", - "asOfVersion": "2.1.2" - }, - { - "libraryName": "pixi-spine", - "typingsPackageName": "pixi-spine", - "sourceRepoURL": "https://github.com/pixijs/pixi-spine", - "asOfVersion": "1.4.2" - }, - { - "libraryName": "pkcs11js", - "typingsPackageName": "pkcs11js", - "sourceRepoURL": "https://github.com/PeculiarVentures/pkcs11js", - "asOfVersion": "1.0.4" - }, - { - "libraryName": "plottable", - "typingsPackageName": "plottable", - "sourceRepoURL": "http://plottablejs.org/", - "asOfVersion": "3.7.0" - }, - { - "libraryName": "poly2tri.js", - "typingsPackageName": "poly2tri", - "sourceRepoURL": "https://github.com/r3mi/poly2tri.js", - "asOfVersion": "1.4.0" - }, - { - "libraryName": "popper.js", - "typingsPackageName": "popper.js", - "sourceRepoURL": "https://github.com/FezVrasta/popper.js/", - "asOfVersion": "1.11.0" - }, - { - "libraryName": "Prando", - "typingsPackageName": "prando", - "sourceRepoURL": "https://github.com/zeh/prando", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "ProtoBuf.js", - "typingsPackageName": "protobufjs", - "sourceRepoURL": "https://github.com/dcodeIO/ProtoBuf.js", - "asOfVersion": "6.0.0" - }, - { - "libraryName": "Protractor", - "typingsPackageName": "protractor", - "sourceRepoURL": "https://github.com/angular/protractor", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "qiniu", - "typingsPackageName": "qiniu", - "sourceRepoURL": "https://github.com/qiniu/nodejs-sdk", - "asOfVersion": "7.0.1" - }, - { - "libraryName": "qrcode-generator", - "typingsPackageName": "qrcode-generator", - "sourceRepoURL": "https://github.com/kazuhikoarase/qrcode-generator", - "asOfVersion": "1.0.6" - }, - { - "libraryName": "Raven JS", - "typingsPackageName": "raven-js", - "sourceRepoURL": "https://github.com/getsentry/raven-js", - "asOfVersion": "3.10.0" - }, - { - "libraryName": "raw-body", - "typingsPackageName": "raw-body", - "sourceRepoURL": "https://github.com/stream-utils/raw-body", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "react-chartjs-2", - "typingsPackageName": "react-chartjs-2", - "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", - "asOfVersion": "2.5.7" - }, - { - "libraryName": "react-day-picker", - "typingsPackageName": "react-day-picker", - "sourceRepoURL": "https://github.com/gpbl/react-day-picker", - "asOfVersion": "5.3.0" - }, - { - "libraryName": "react-dnd", - "typingsPackageName": "react-dnd", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-dnd-html5-backend", - "typingsPackageName": "react-dnd-html5-backend", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-dnd-test-backend", - "typingsPackageName": "react-dnd-test-backend", - "sourceRepoURL": "https://github.com/react-dnd/react-dnd", - "asOfVersion": "3.0.2" - }, - { - "libraryName": "react-flip-move", - "typingsPackageName": "react-flip-move", - "sourceRepoURL": "https://github.com/joshwcomeau/react-flip-move", - "asOfVersion": "2.9.12" - }, - { - "libraryName": "react-ga", - "typingsPackageName": "react-ga", - "sourceRepoURL": "https://github.com/react-ga/react-ga", - "asOfVersion": "2.3.0" - }, - { - "libraryName": "react-i18next", - "typingsPackageName": "react-i18next", - "sourceRepoURL": "https://github.com/i18next/react-i18next", - "asOfVersion": "8.1.0" - }, - { - "libraryName": "react-monaco-editor", - "typingsPackageName": "react-monaco-editor", - "sourceRepoURL": "https://github.com/superRaytin/react-monaco-editor", - "asOfVersion": "0.16.0" - }, - { - "libraryName": "react-native-collapsible", - "typingsPackageName": "react-native-collapsible", - "sourceRepoURL": "https://github.com/oblador/react-native-collapsible", - "asOfVersion": "0.11.0" - }, - { - "libraryName": "react-native-elements", - "typingsPackageName": "react-native-elements", - "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", - "asOfVersion": "0.18.0" - }, - { - "libraryName": "react-native-goby", - "typingsPackageName": "react-native-goby", - "sourceRepoURL": "https://gitlab.com/MessageDream/react-native-goby", - "asOfVersion": "0.0.5" - }, - { - "libraryName": "react-native-google-analytics-bridge", - "typingsPackageName": "react-native-google-analytics-bridge", - "sourceRepoURL": "https://github.com/idehub/react-native-google-analytics-bridge", - "asOfVersion": "5.3.3" - }, - { - "libraryName": "react-native-linear-gradient", - "typingsPackageName": "react-native-linear-gradient", - "sourceRepoURL": "https://github.com/react-native-community/react-native-linear-gradient", - "asOfVersion": "2.4.0" - }, - { - "libraryName": "react-native-modal", - "typingsPackageName": "react-native-modal", - "sourceRepoURL": "https://github.com/react-native-community/react-native-modal", - "asOfVersion": "4.1.1" - }, - { - "libraryName": "react-native-navigation", - "typingsPackageName": "react-native-navigation", - "sourceRepoURL": "https://github.com/wix/react-native-navigation", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "react-split-pane", - "typingsPackageName": "react-split-pane", - "sourceRepoURL": "https://github.com/tomkp/react-split-pane", - "asOfVersion": "0.1.67" - }, - { - "libraryName": "react-svg", - "typingsPackageName": "react-svg", - "sourceRepoURL": "https://github.com/tanem/react-svg", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "realm", - "typingsPackageName": "realm", - "sourceRepoURL": "https://github.com/realm/realm-js", - "asOfVersion": "1.13.0" - }, - { - "libraryName": "Redux", - "typingsPackageName": "redux", - "sourceRepoURL": "https://github.com/reactjs/redux", - "asOfVersion": "3.6.0" - }, - { - "libraryName": "redux-batched-actions", - "typingsPackageName": "redux-batched-actions", - "sourceRepoURL": "https://github.com/tshelburne/redux-batched-actions", - "asOfVersion": "0.1.5" - }, - { - "libraryName": "redux-bootstrap", - "typingsPackageName": "redux-bootstrap", - "sourceRepoURL": "https://github.com/remojansen/redux-bootstrap", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "redux-devtools-extension", - "typingsPackageName": "redux-devtools-extension", - "sourceRepoURL": "https://github.com/zalmoxisus/redux-devtools-extension", - "asOfVersion": "2.13.2" - }, - { - "libraryName": "redux-little-router", - "typingsPackageName": "redux-little-router", - "sourceRepoURL": "https://github.com/FormidableLabs/redux-little-router", - "asOfVersion": "15.1.0" - }, - { - "libraryName": "redux-persist", - "typingsPackageName": "redux-persist", - "sourceRepoURL": "https://github.com/rt2zz/redux-persist", - "asOfVersion": "4.3.1" - }, - { - "libraryName": "redux-persist-transform-compress", - "typingsPackageName": "redux-persist-transform-compress", - "sourceRepoURL": "https://github.com/rt2zz/redux-persist-transform-compress", - "asOfVersion": "4.2.0" - }, - { - "libraryName": "redux-saga", - "typingsPackageName": "redux-saga", - "sourceRepoURL": "https://github.com/redux-saga/redux-saga", - "asOfVersion": "0.10.5" - }, - { - "libraryName": "redux-saga-routines", - "typingsPackageName": "redux-saga-routines", - "sourceRepoURL": "https://github.com/afitiskin/redux-saga-routines#readme", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "Redux Thunk", - "typingsPackageName": "redux-thunk", - "sourceRepoURL": "https://github.com/gaearon/redux-thunk", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "reflect-metadata", - "typingsPackageName": "reflect-metadata", - "sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators", - "asOfVersion": "0.1.0" - }, - { - "libraryName": "reselect", - "typingsPackageName": "reselect", - "sourceRepoURL": "https://github.com/rackt/reselect", - "asOfVersion": "2.2.0" - }, - { - "libraryName": "rest-io", - "typingsPackageName": "rest-io", - "sourceRepoURL": "https://github.com/EnoF/rest-io", - "asOfVersion": "4.1.0" - }, - { - "libraryName": "rollup", - "typingsPackageName": "rollup", - "sourceRepoURL": "https://github.com/rollup/rollup", - "asOfVersion": "0.54.0" - }, - { - "libraryName": "route-recognizer", - "typingsPackageName": "route-recognizer", - "sourceRepoURL": "https://github.com/tildeio/route-recognizer", - "asOfVersion": "0.3.0" - }, - { - "libraryName": "router5", - "typingsPackageName": "router5", - "sourceRepoURL": "https://github.com/router5/router5", - "asOfVersion": "5.0.0" - }, - { - "libraryName": "rrule", - "typingsPackageName": "rrule", - "sourceRepoURL": "https://github.com/jakubroztocil/rrule", - "asOfVersion": "2.2.9" - }, - { - "libraryName": "rvo2", - "typingsPackageName": "rvo2", - "sourceRepoURL": "https://github.com/TNOCS/rvo2", - "asOfVersion": "1.1.0" - }, - { - "libraryName": "samchon", - "typingsPackageName": "samchon", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "2.0.22" - }, - { - "libraryName": "samchon-framework", - "typingsPackageName": "samchon-framework", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "2.0.21" - }, - { - "libraryName": "samchon-library", - "typingsPackageName": "samchon-library", - "sourceRepoURL": "https://github.com/samchon/framework", - "asOfVersion": "0.1.0" - }, - { - "libraryName": "node-scanf", - "typingsPackageName": "scanf", - "sourceRepoURL": "https://github.com/Lellansin/node-scanf", - "asOfVersion": "0.7.3" - }, - { - "libraryName": "sendgrid", - "typingsPackageName": "sendgrid", - "sourceRepoURL": "https://github.com/sendgrid/sendgrid-nodejs", - "asOfVersion": "4.3.0" - }, - { - "libraryName": "sentence-case", - "typingsPackageName": "sentence-case", - "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "sharp-timer", - "typingsPackageName": "sharp-timer", - "sourceRepoURL": "https://github.com/afractal/SharpTimer", - "asOfVersion": "0.1.3" - }, - { - "libraryName": "Shopify Prime", - "typingsPackageName": "shopify-prime", - "sourceRepoURL": "https://github.com/nozzlegear/shopify-prime", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "should.js", - "typingsPackageName": "should", - "sourceRepoURL": "https://github.com/shouldjs/should.js", - "asOfVersion": "13.0.0" - }, - { - "libraryName": "SimpleSignal", - "typingsPackageName": "simplesignal", - "sourceRepoURL": "https://github.com/zeh/simplesignal", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "smooth-scrollbar", - "typingsPackageName": "smooth-scrollbar", - "sourceRepoURL": "https://github.com/idiotWu/smooth-scrollbar", - "asOfVersion": "8.2.5" - }, - { - "libraryName": "Smoothie Charts", - "typingsPackageName": "smoothie", - "sourceRepoURL": "https://github.com/joewalnes/smoothie", - "asOfVersion": "1.29.1" - }, - { - "libraryName": "snake-case", - "typingsPackageName": "snake-case", - "sourceRepoURL": "https://github.com/blakeembrey/snake-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "soap", - "typingsPackageName": "soap", - "sourceRepoURL": "https://www.npmjs.com/package/soap", - "asOfVersion": "0.21.0" - }, - { - "libraryName": "source-map", - "typingsPackageName": "source-map", - "sourceRepoURL": "https://github.com/mozilla/source-map", - "asOfVersion": "0.5.7" - }, - { - "libraryName": "Spin.js", - "typingsPackageName": "spin.js", - "sourceRepoURL": "http://fgnass.github.com/spin.js/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "spotify-web-api-js", - "typingsPackageName": "spotify-web-api-js", - "sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js", - "asOfVersion": "0.21.0" - }, - { - "libraryName": "ServiceStack Utils", - "typingsPackageName": "ss-utils", - "sourceRepoURL": "https://servicestack.net/", - "asOfVersion": "0.1.5" - }, - { - "libraryName": "striptags", - "typingsPackageName": "striptags", - "sourceRepoURL": "https://github.com/ericnorris/striptags", - "asOfVersion": "3.1.1" - }, - { - "libraryName": "Sugar", - "typingsPackageName": "sugar", - "sourceRepoURL": "https://github.com/andrewplummer/Sugar", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "survey-knockout", - "typingsPackageName": "survey-knockout", - "sourceRepoURL": "http://surveyjs.org/", - "asOfVersion": "0.10.0" - }, - { - "libraryName": "svg-pan-zoom", - "typingsPackageName": "svg-pan-zoom", - "sourceRepoURL": "https://github.com/ariutta/svg-pan-zoom", - "asOfVersion": "3.4.0" - }, - { - "libraryName": "svg.js", - "typingsPackageName": "svg.js", - "sourceRepoURL": "http://www.svgjs.com/", - "asOfVersion": "2.3.1" - }, - { - "libraryName": "swap-case", - "typingsPackageName": "swap-case", - "sourceRepoURL": "https://github.com/blakeembrey/swap-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "SweetAlert", - "typingsPackageName": "sweetalert", - "sourceRepoURL": "https://github.com/t4t5/sweetalert/", - "asOfVersion": "2.0.4" - }, - { - "libraryName": "Tabris.js", - "typingsPackageName": "tabris", - "sourceRepoURL": "http://tabrisjs.com", - "asOfVersion": "1.8.0" - }, - { - "libraryName": "tcomb", - "typingsPackageName": "tcomb", - "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", - "asOfVersion": "2.6.0" - }, - { - "libraryName": "timezonecomplete", - "typingsPackageName": "timezonecomplete", - "sourceRepoURL": "https://github.com/SpiritIT/timezonecomplete", - "asOfVersion": "5.5.0" - }, - { - "libraryName": "title-case", - "typingsPackageName": "title-case", - "sourceRepoURL": "https://github.com/blakeembrey/title-case", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "TsMonad", - "typingsPackageName": "tsmonad", - "sourceRepoURL": "https://github.com/cbowdon/TsMonad", - "asOfVersion": "0.5.0" - }, - { - "libraryName": "tstl", - "typingsPackageName": "tstl", - "sourceRepoURL": "https://github.com/samchon/tstl", - "asOfVersion": "1.5.7" - }, - { - "libraryName": "typed.js", - "typingsPackageName": "typed.js", - "sourceRepoURL": "https://github.com/mattboldt/typed.js", - "asOfVersion": "2.0.9" - }, - { - "libraryName": "TypeScript", - "typingsPackageName": "typescript", - "sourceRepoURL": "https://github.com/Microsoft/TypeScript", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "TypeScript", - "typingsPackageName": "typescript-services", - "sourceRepoURL": "https://github.com/Microsoft/TypeScript", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "uk.co.workingedge.phonegap.plugin.istablet", - "typingsPackageName": "uk.co.workingedge.phonegap.plugin.istablet", - "sourceRepoURL": "https://github.com/dpa99c/phonegap-istablet", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "uk.co.workingedge.phonegap.plugin.launchnavigator", - "typingsPackageName": "uk.co.workingedge.phonegap.plugin.launchnavigator", - "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "upper-case", - "typingsPackageName": "upper-case", - "sourceRepoURL": "https://github.com/blakeembrey/upper-case", - "asOfVersion": "1.1.3" - }, - { - "libraryName": "upper-case-first", - "typingsPackageName": "upper-case-first", - "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", - "asOfVersion": "1.1.2" - }, - { - "libraryName": "UUID.js", - "typingsPackageName": "uuidjs", - "sourceRepoURL": "https://github.com/LiosK/UUID.js", - "asOfVersion": "3.6.0" - }, - { - "libraryName": "Validate.js", - "typingsPackageName": "validate.js", - "sourceRepoURL": "https://github.com/ansman/validate.js", - "asOfVersion": "0.11.0" - }, - { - "libraryName": "vso-node-api", - "typingsPackageName": "vso-node-api", - "sourceRepoURL": "https://github.com/Microsoft/vso-node-api", - "asOfVersion": "4.0.0" - }, - { - "libraryName": "vuejs", - "typingsPackageName": "vue", - "sourceRepoURL": "https://github.com/vuejs/vue", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "vue-i18n", - "typingsPackageName": "vue-i18n", - "sourceRepoURL": "https://github.com/kazupon/vue-i18n", - "asOfVersion": "7.0.0" - }, - { - "libraryName": "vue-router", - "typingsPackageName": "vue-router", - "sourceRepoURL": "https://github.com/vuejs/vue-router", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "webcola", - "typingsPackageName": "webcola", - "sourceRepoURL": "https://github.com/tgdwyer/WebCola", - "asOfVersion": "3.2.0" - }, - { - "libraryName": "webgme", - "typingsPackageName": "webgme", - "sourceRepoURL": "https://webgme.org", - "asOfVersion": "2.11.0" - }, - { - "libraryName": "Webix UI", - "typingsPackageName": "webix", - "sourceRepoURL": "http://webix.com", - "asOfVersion": "5.1.1" - }, - { - "libraryName": "winston", - "typingsPackageName": "winston", - "sourceRepoURL": "https://github.com/winstonjs/winston.git", - "asOfVersion": "2.4.4" - }, - { - "libraryName": "wolfy87-eventemitter", - "typingsPackageName": "wolfy87-eventemitter", - "sourceRepoURL": "https://github.com/Wolfy87/EventEmitter", - "asOfVersion": "5.2.0" - }, - { - "libraryName": "wonder-commonlib", - "typingsPackageName": "wonder-commonlib", - "sourceRepoURL": "https://github.com/yyc-git/Wonder-CommonLib", - "asOfVersion": "0.1.12" - }, - { - "libraryName": "wonder-frp", - "typingsPackageName": "wonder-frp", - "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", - "asOfVersion": "0.1.25" - }, - { - "libraryName": "x2js", - "typingsPackageName": "x2js", - "sourceRepoURL": "https://code.google.com/p/x2js/", - "asOfVersion": "3.1.0" - }, - { - "libraryName": "xadesjs", - "typingsPackageName": "xadesjs", - "sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs", - "asOfVersion": "2.0.2" - }, - { - "libraryName": "xhr-mock", - "typingsPackageName": "xhr-mock", - "sourceRepoURL": "https://github.com/jameslnewell/xhr-mock#readme", - "asOfVersion": "2.0.0" - }, - { - "libraryName": "xlsx", - "typingsPackageName": "xlsx", - "sourceRepoURL": "https://github.com/sheetjs/js-xlsx", - "asOfVersion": "0.0.36" - }, - { - "libraryName": "xml-js", - "typingsPackageName": "xml-js", - "sourceRepoURL": "https://github.com/nashwaan/xml-js", - "asOfVersion": "1.0.0" - }, - { - "libraryName": "@xmpp/jid", - "typingsPackageName": "xmpp-jid", - "sourceRepoURL": "github.com/node-xmpp/node-xmpp/", - "asOfVersion": "1.2.0" - }, - { - "libraryName": "xterm.js", - "typingsPackageName": "xterm", - "sourceRepoURL": "https://github.com/sourcelair/xterm.js/", - "asOfVersion": "3.0.0" - }, - { - "libraryName": "yFiles for HTML", - "typingsPackageName": "yfiles", - "sourceRepoURL": "none", - "asOfVersion": "2.1.0" - }, - { - "libraryName": "zetapush-js", - "typingsPackageName": "zetapush-js", - "sourceRepoURL": "https://github.com/zetapush/zetapush-js", - "asOfVersion": "3.1.2" - }, - { - "libraryName": "Zone.js", - "typingsPackageName": "zone.js", - "sourceRepoURL": "https://github.com/angular/zone.js", - "asOfVersion": "0.5.12" - } - ] + "packages": [ + { + "libraryName": "3d-bin-packing", + "typingsPackageName": "3d-bin-packing", + "sourceRepoURL": "https://github.com/betterwaysystems/packer", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "Ably Realtime and Rest client library", + "typingsPackageName": "ably", + "sourceRepoURL": "https://www.ably.io/", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "ag-grid", + "typingsPackageName": "ag-grid", + "sourceRepoURL": "https://github.com/ceolter/ag-grid", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "ajv", + "typingsPackageName": "ajv", + "sourceRepoURL": "https://github.com/epoberezkin/ajv", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "angular-touchspin", + "typingsPackageName": "angular-touchspin", + "sourceRepoURL": "https://github.com/nkovacic/angular-touchspin", + "asOfVersion": "1.8.2" + }, + { + "libraryName": "angular-ui-router-default", + "typingsPackageName": "angular-ui-router-default", + "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-default", + "asOfVersion": "0.0.5" + }, + { + "libraryName": "angular-ui-router-uib-modal", + "typingsPackageName": "angular-ui-router-uib-modal", + "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", + "asOfVersion": "0.0.11" + }, + { + "libraryName": "antd", + "typingsPackageName": "antd", + "sourceRepoURL": "https://github.com/ant-design/ant-design", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "anydb-sql", + "typingsPackageName": "anydb-sql", + "sourceRepoURL": "https://github.com/doxout/anydb-sql", + "asOfVersion": "0.6.46" + }, + { + "libraryName": "anydb-sql-migrations", + "typingsPackageName": "anydb-sql-migrations", + "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", + "asOfVersion": "2.1.1" + }, + { + "libraryName": "apn", + "typingsPackageName": "apn", + "sourceRepoURL": "https://github.com/node-apn/node-apn", + "asOfVersion": "2.1.2" + }, + { + "libraryName": "Application Insights", + "typingsPackageName": "applicationinsights", + "sourceRepoURL": "https://github.com/Microsoft/ApplicationInsights-node.js", + "asOfVersion": "0.20.0" + }, + { + "libraryName": "Argon2", + "typingsPackageName": "argon2", + "sourceRepoURL": "https://github.com/ranisalt/node-argon2", + "asOfVersion": "0.15.0" + }, + { + "libraryName": "artyom.js", + "typingsPackageName": "artyom.js", + "sourceRepoURL": "https://github.com/sdkcarlos/artyom.js", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "askmethat-rating", + "typingsPackageName": "askmethat-rating", + "sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating", + "asOfVersion": "0.4.0" + }, + { + "libraryName": "assertion-error", + "typingsPackageName": "assertion-error", + "sourceRepoURL": "https://github.com/chaijs/assertion-error", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "asyncblock", + "typingsPackageName": "asyncblock", + "sourceRepoURL": "https://github.com/scriby/asyncblock", + "asOfVersion": "2.2.11" + }, + { + "libraryName": "aurelia-knockout", + "typingsPackageName": "aurelia-knockout", + "sourceRepoURL": "https://github.com/code-chris/aurelia-knockout", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "autobind-decorator", + "typingsPackageName": "autobind-decorator", + "sourceRepoURL": "https://github.com/andreypopp/autobind-decorator", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "aws-sdk", + "typingsPackageName": "aws-sdk", + "sourceRepoURL": "https://github.com/aws/aws-sdk-js", + "asOfVersion": "2.7.0" + }, + { + "libraryName": "axe-core", + "typingsPackageName": "axe-core", + "sourceRepoURL": "https://github.com/dequelabs/axe-core", + "asOfVersion": "3.0.3" + }, + { + "libraryName": "axios", + "typingsPackageName": "axios", + "sourceRepoURL": "https://github.com/mzabriskie/axios", + "asOfVersion": "0.14.0" + }, + { + "libraryName": "axios-mock-adapter", + "typingsPackageName": "axios-mock-adapter", + "sourceRepoURL": "https://github.com/ctimmerm/axios-mock-adapter", + "asOfVersion": "1.10.0" + }, + { + "libraryName": "azure-mobile-apps", + "typingsPackageName": "azure-mobile-apps", + "sourceRepoURL": "https://github.com/Azure/azure-mobile-apps-node/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "BabylonJS", + "typingsPackageName": "babylonjs", + "sourceRepoURL": "http://www.babylonjs.com/", + "asOfVersion": "2.4.1" + }, + { + "libraryName": "base64url", + "typingsPackageName": "base64url", + "sourceRepoURL": "https://github.com/brianloveswords/base64url", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "BigInteger.js", + "typingsPackageName": "big-integer", + "sourceRepoURL": "https://github.com/peterolson/BigInteger.js", + "asOfVersion": "0.0.31" + }, + { + "libraryName": "bignumber.js", + "typingsPackageName": "bignumber.js", + "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "bingmaps", + "typingsPackageName": "bingmaps", + "sourceRepoURL": "https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions", + "asOfVersion": "2.0.15" + }, + { + "libraryName": "bitwise", + "typingsPackageName": "bitwise", + "sourceRepoURL": "https://github.com/dodekeract/bitwise", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "botvs", + "typingsPackageName": "botvs", + "sourceRepoURL": "https://www.botvs.com/", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "Bowser", + "typingsPackageName": "bowser", + "sourceRepoURL": "https://github.com/ded/bowser", + "asOfVersion": "1.1.1" + }, + { + "libraryName": "Bugsnag Browser", + "typingsPackageName": "bugsnag-js", + "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "CacheFactory", + "typingsPackageName": "cachefactory", + "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "camel-case", + "typingsPackageName": "camel-case", + "sourceRepoURL": "https://github.com/blakeembrey/camel-case", + "asOfVersion": "1.2.1" + }, + { + "libraryName": "catalog", + "typingsPackageName": "catalog", + "sourceRepoURL": "https://github.com/interactivethings/catalog", + "asOfVersion": "3.5.0" + }, + { + "libraryName": "chalk", + "typingsPackageName": "chalk", + "sourceRepoURL": "https://github.com/chalk/chalk", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "change-case", + "typingsPackageName": "change-case", + "sourceRepoURL": "https://github.com/blakeembrey/change-case", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "cheap-ruler", + "typingsPackageName": "cheap-ruler", + "sourceRepoURL": "https://github.com/mapbox/cheap-ruler", + "asOfVersion": "2.5.0" + }, + { + "libraryName": "chunked-dc", + "typingsPackageName": "chunked-dc", + "sourceRepoURL": "https://github.com/saltyrtc/chunked-dc-js", + "asOfVersion": "0.2.2" + }, + { + "libraryName": "colors.js (colors)", + "typingsPackageName": "colors", + "sourceRepoURL": "https://github.com/Marak/colors.js", + "asOfVersion": "1.2.1" + }, + { + "libraryName": "commander", + "typingsPackageName": "commander", + "sourceRepoURL": "https://github.com/tj/commander.js", + "asOfVersion": "2.12.2" + }, + { + "libraryName": "confirmdialog", + "typingsPackageName": "confirmdialog", + "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "constant-case", + "typingsPackageName": "constant-case", + "sourceRepoURL": "https://github.com/blakeembrey/constant-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "cordova-plugin-battery-status", + "typingsPackageName": "cordova-plugin-battery-status", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-battery-status", + "asOfVersion": "1.2.3" + }, + { + "libraryName": "cordova-plugin-camera", + "typingsPackageName": "cordova-plugin-camera", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-camera", + "asOfVersion": "2.4.0" + }, + { + "libraryName": "cordova-plugin-contacts", + "typingsPackageName": "cordova-plugin-contacts", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-contacts", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "cordova-plugin-device", + "typingsPackageName": "cordova-plugin-device", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device", + "asOfVersion": "1.1.5" + }, + { + "libraryName": "cordova-plugin-device-motion", + "typingsPackageName": "cordova-plugin-device-motion", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-motion", + "asOfVersion": "1.2.4" + }, + { + "libraryName": "Apache Cordova Device Orientation plugin", + "typingsPackageName": "cordova-plugin-device-orientation", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-orientation", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-dialogs", + "typingsPackageName": "cordova-plugin-dialogs", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-dialogs", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "Apache Cordova File System plugin", + "typingsPackageName": "cordova-plugin-file", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file", + "asOfVersion": "4.3.2" + }, + { + "libraryName": "cordova-plugin-file-transfer", + "typingsPackageName": "cordova-plugin-file-transfer", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file-transfer", + "asOfVersion": "1.6.2" + }, + { + "libraryName": "cordova-plugin-globalization", + "typingsPackageName": "cordova-plugin-globalization", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-globalization", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-inappbrowser", + "typingsPackageName": "cordova-plugin-inappbrowser", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-inappbrowser", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "cordova-plugin-media", + "typingsPackageName": "cordova-plugin-media", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "cordova-plugin-media-capture", + "typingsPackageName": "cordova-plugin-media-capture", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media-capture", + "asOfVersion": "1.4.2" + }, + { + "libraryName": "cordova-plugin-network-information", + "typingsPackageName": "cordova-plugin-network-information", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-network-information", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "cordova-plugin-splashscreen", + "typingsPackageName": "cordova-plugin-splashscreen", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-splashscreen", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "Apache Cordova StatusBar plugin", + "typingsPackageName": "cordova-plugin-statusbar", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-statusbar", + "asOfVersion": "2.2.2" + }, + { + "libraryName": "Apache Cordova Vibration plugin", + "typingsPackageName": "cordova-plugin-vibration", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-vibration", + "asOfVersion": "2.1.4" + }, + { + "libraryName": "cordova.plugins.diagnostic", + "typingsPackageName": "cordova.plugins.diagnostic", + "sourceRepoURL": "https://github.com/dpa99c/cordova-diagnostic-plugin", + "asOfVersion": "3.7.0" + }, + { + "libraryName": "core-decorators.js", + "typingsPackageName": "core-decorators", + "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", + "asOfVersion": "0.20.0" + }, + { + "libraryName": "cypress", + "typingsPackageName": "cypress", + "sourceRepoURL": "https://cypress.io", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "date-fns", + "typingsPackageName": "date-fns", + "sourceRepoURL": "https://github.com/date-fns/date-fns", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "decimal.js", + "typingsPackageName": "decimal.js", + "sourceRepoURL": "https://github.com/MikeMcl/decimal.js", + "asOfVersion": "7.4.0" + }, + { + "libraryName": "deepmerge", + "typingsPackageName": "deepmerge", + "sourceRepoURL": "git@github.com:KyleAMathews/deepmerge.git", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "delay", + "typingsPackageName": "delay", + "sourceRepoURL": "https://github.com/sindresorhus/delay", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "DevExtreme", + "typingsPackageName": "devextreme", + "sourceRepoURL": "http://js.devexpress.com/", + "asOfVersion": "16.2.1" + }, + { + "libraryName": "Dexie.js", + "typingsPackageName": "dexie", + "sourceRepoURL": "https://github.com/dfahlander/Dexie.js", + "asOfVersion": "1.3.1" + }, + { + "libraryName": "docker-file-parser", + "typingsPackageName": "docker-file-parser", + "sourceRepoURL": "https://github.com/joyent/docker-file-parser", + "asOfVersion": "1.0.3" + }, + { + "libraryName": "dot-case", + "typingsPackageName": "dot-case", + "sourceRepoURL": "https://github.com/blakeembrey/dot-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "dva", + "typingsPackageName": "dva", + "sourceRepoURL": "https://github.com/dvajs/dva", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "easy-x-headers", + "typingsPackageName": "easy-x-headers", + "sourceRepoURL": "https://github.com/DeadAlready/easy-x-headers", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "easy-xapi-supertest", + "typingsPackageName": "easy-xapi-supertest", + "sourceRepoURL": "https://github.com/DeadAlready/easy-xapi-supertest", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "EasyStar.js", + "typingsPackageName": "easystarjs", + "sourceRepoURL": "http://easystarjs.com/", + "asOfVersion": "0.3.1" + }, + { + "libraryName": "ecmarkup", + "typingsPackageName": "ecmarkup", + "sourceRepoURL": "https://github.com/bterlson/ecmarkup", + "asOfVersion": "3.4.0" + }, + { + "libraryName": "Egg", + "typingsPackageName": "egg", + "sourceRepoURL": "https://github.com/eggjs/egg", + "asOfVersion": "1.5.0" + }, + { + "libraryName": "electron", + "typingsPackageName": "electron", + "sourceRepoURL": "https://github.com/electron/electron", + "asOfVersion": "1.6.10" + }, + { + "libraryName": "electron-builder", + "typingsPackageName": "electron-builder", + "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", + "asOfVersion": "2.8.0" + }, + { + "libraryName": "email-addresses", + "typingsPackageName": "email-addresses", + "sourceRepoURL": "https://github.com/jackbowman/email-addresses", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "email-validator", + "typingsPackageName": "email-validator", + "sourceRepoURL": "https://github.com/Sembiance/email-validator", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "error-stack-parser", + "typingsPackageName": "error-stack-parser", + "sourceRepoURL": "https://github.com/stacktracejs/error-stack-parser", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "es6-error", + "typingsPackageName": "es6-error", + "sourceRepoURL": "https://github.com/bjyoungblood/es6-error", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "es6-promise", + "typingsPackageName": "es6-promise", + "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", + "asOfVersion": "3.3.0" + }, + { + "libraryName": "eventemitter2", + "typingsPackageName": "eventemitter2", + "sourceRepoURL": "https://github.com/asyncly/EventEmitter2", + "asOfVersion": "4.1.0" + }, + { + "libraryName": "EventEmitter3", + "typingsPackageName": "eventemitter3", + "sourceRepoURL": "https://github.com/primus/eventemitter3", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "expr-eval", + "typingsPackageName": "expr-eval", + "sourceRepoURL": "https://github.com/silentmatt/expr-eval", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "express-validator", + "typingsPackageName": "express-validator", + "sourceRepoURL": "https://github.com/ctavan/express-validator", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "extended-listbox", + "typingsPackageName": "extended-listbox", + "sourceRepoURL": "https://github.com/code-chris/extended-listbox", + "asOfVersion": "4.0.1" + }, + { + "libraryName": "JSON-Patch", + "typingsPackageName": "fast-json-patch", + "sourceRepoURL": "https://github.com/Starcounter-Jack/JSON-Patch", + "asOfVersion": "1.1.5" + }, + { + "libraryName": "FastSimplexNoise", + "typingsPackageName": "fast-simplex-noise", + "sourceRepoURL": "https://www.npmjs.com/package/fast-simplex-noise", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "fecha", + "typingsPackageName": "fecha", + "sourceRepoURL": "https://github.com/taylorhakes/fecha", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "FineUploader", + "typingsPackageName": "fine-uploader", + "sourceRepoURL": "http://fineuploader.com/", + "asOfVersion": "5.14.0" + }, + { + "libraryName": "Firebase API", + "typingsPackageName": "firebase", + "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", + "asOfVersion": "3.2.1" + }, + { + "libraryName": "flatpickr", + "typingsPackageName": "flatpickr", + "sourceRepoURL": "https://github.com/chmln/flatpickr", + "asOfVersion": "3.1.2" + }, + { + "libraryName": "flux-standard-action", + "typingsPackageName": "flux-standard-action", + "sourceRepoURL": "https://github.com/acdlite/flux-standard-action", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "fork-ts-checker-webpack-plugin", + "typingsPackageName": "fork-ts-checker-webpack-plugin", + "sourceRepoURL": "https://github.com/Realytics/fork-ts-checker-webpack-plugin", + "asOfVersion": "0.4.5" + }, + { + "libraryName": "Foundation Sites", + "typingsPackageName": "foundation-sites", + "sourceRepoURL": "http://foundation.zurb.com/", + "asOfVersion": "6.4.3" + }, + { + "libraryName": "FullCalendar", + "typingsPackageName": "fullcalendar", + "sourceRepoURL": "http://arshaw.com/fullcalendar/", + "asOfVersion": "3.8.0" + }, + { + "libraryName": "fuse", + "typingsPackageName": "fuse", + "sourceRepoURL": "https://github.com/krisk/Fuse", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "gaea-model", + "typingsPackageName": "gaea-model", + "sourceRepoURL": "https://github.com/ascoders/gaea-model", + "asOfVersion": "0.0.0" + }, + { + "libraryName": "geolib", + "typingsPackageName": "geolib", + "sourceRepoURL": "https://github.com/manuelbieh/Geolib", + "asOfVersion": "2.0.23" + }, + { + "libraryName": "github", + "typingsPackageName": "github", + "sourceRepoURL": "https://github.com/mikedeboer/node-github", + "asOfVersion": "7.1.0" + }, + { + "libraryName": "graphene-pk11", + "typingsPackageName": "graphene-pk11", + "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", + "asOfVersion": "2.0.31" + }, + { + "libraryName": "griddle-react", + "typingsPackageName": "griddle-react", + "sourceRepoURL": "https://github.com/griddlegriddle/griddle", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "gulp-tslint", + "typingsPackageName": "gulp-tslint", + "sourceRepoURL": "https://github.com/panuhorsmalahti/gulp-tslint", + "asOfVersion": "4.2.0" + }, + { + "libraryName": "gulp-typedoc", + "typingsPackageName": "gulp-typedoc", + "sourceRepoURL": "https://github.com/rogierschouten/gulp-typedoc", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "gulp-typescript", + "typingsPackageName": "gulp-typescript", + "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", + "asOfVersion": "2.13.0" + }, + { + "libraryName": "handsontable", + "typingsPackageName": "handsontable", + "sourceRepoURL": "https://handsontable.com/", + "asOfVersion": "0.35.0" + }, + { + "libraryName": "homeworks", + "typingsPackageName": "homeworks", + "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", + "asOfVersion": "1.0.19" + }, + { + "libraryName": "http-status-codes", + "typingsPackageName": "http-status-codes", + "sourceRepoURL": "https://github.com/prettymuchbryce/node-http-status", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "iconv-lite", + "typingsPackageName": "iconv-lite", + "sourceRepoURL": "https://github.com/ashtuchkin/iconv-lite", + "asOfVersion": "0.4.14" + }, + { + "libraryName": "ids", + "typingsPackageName": "ids", + "sourceRepoURL": "https://github.com/bpmn-io/ids", + "asOfVersion": "0.2.2" + }, + { + "libraryName": "immutability-helper", + "typingsPackageName": "immutability-helper", + "sourceRepoURL": "https://github.com/kolodny/immutability-helper", + "asOfVersion": "2.6.3" + }, + { + "libraryName": "Facebook's Immutable", + "typingsPackageName": "immutable", + "sourceRepoURL": "https://github.com/facebook/immutable-js", + "asOfVersion": "3.8.7" + }, + { + "libraryName": "interactjs", + "typingsPackageName": "interact.js", + "sourceRepoURL": "https://github.com/taye/interact.js", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "inversify", + "typingsPackageName": "inversify", + "sourceRepoURL": "http://inversify.io", + "asOfVersion": "2.0.33" + }, + { + "libraryName": "inversify-binding-decorators", + "typingsPackageName": "inversify-binding-decorators", + "sourceRepoURL": "https://github.com/inversify/inversify-binding-decorators", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-express-utils", + "typingsPackageName": "inversify-express-utils", + "sourceRepoURL": "https://github.com/inversify/inversify-express-utils", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-inject-decorators", + "typingsPackageName": "inversify-inject-decorators", + "sourceRepoURL": "https://github.com/inversify/inversify-inject-decorators", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-logger-middleware", + "typingsPackageName": "inversify-logger-middleware", + "sourceRepoURL": "https://github.com/inversify/inversify-logger-middleware", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "inversify-restify-utils", + "typingsPackageName": "inversify-restify-utils", + "sourceRepoURL": "https://github.com/inversify/inversify-restify-utils", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "Ionic", + "typingsPackageName": "ionic", + "sourceRepoURL": "http://ionicframework.com", + "asOfVersion": "3.19.0" + }, + { + "libraryName": "is-lower-case", + "typingsPackageName": "is-lower-case", + "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "is-plain-object", + "typingsPackageName": "is-plain-object", + "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", + "asOfVersion": "2.0.4" + }, + { + "libraryName": "is-upper-case", + "typingsPackageName": "is-upper-case", + "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "jasmine-expect", + "typingsPackageName": "jasmine-expect", + "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", + "asOfVersion": "3.8.1" + }, + { + "libraryName": "jimp", + "typingsPackageName": "jimp", + "sourceRepoURL": "https://github.com/oliver-moran/jimp#readme", + "asOfVersion": "0.2.28" + }, + { + "libraryName": "joData", + "typingsPackageName": "jodata", + "sourceRepoURL": "https://github.com/mccow002/joData", + "asOfVersion": "1.0.13" + }, + { + "libraryName": "JointJS", + "typingsPackageName": "jointjs", + "sourceRepoURL": "http://www.jointjs.com/", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "jpush-react-native", + "typingsPackageName": "jpush-react-native", + "sourceRepoURL": "https://github.com/jpush/jpush-react-native", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "jquery.ajaxfile", + "typingsPackageName": "jquery.ajaxfile", + "sourceRepoURL": "https://github.com/fpellet/jquery.ajaxFile", + "asOfVersion": "0.2.29" + }, + { + "libraryName": "js-data", + "typingsPackageName": "js-data", + "sourceRepoURL": "https://github.com/js-data/js-data", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "JSData Http Adapter", + "typingsPackageName": "js-data-http", + "sourceRepoURL": "https://github.com/js-data/js-data-http", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "JSNLog", + "typingsPackageName": "jsnlog", + "sourceRepoURL": "https://github.com/mperdeck/jsnlog.js", + "asOfVersion": "2.17.2" + }, + { + "libraryName": "jsonschema", + "typingsPackageName": "jsonschema", + "sourceRepoURL": "https://github.com/tdegrunt/jsonschema", + "asOfVersion": "1.1.1" + }, + { + "libraryName": "jsplumb", + "typingsPackageName": "jsplumb", + "sourceRepoURL": "https://github.com/jsplumb/jsPlumb", + "asOfVersion": "2.5.7" + }, + { + "libraryName": "keycloak-js", + "typingsPackageName": "keycloak-js", + "sourceRepoURL": "https://github.com/keycloak/keycloak", + "asOfVersion": "3.4.1" + }, + { + "libraryName": "knockout-paging", + "typingsPackageName": "knockout-paging", + "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-paging", + "asOfVersion": "0.3.1" + }, + { + "libraryName": "knockout-pre-rendered", + "typingsPackageName": "knockout-pre-rendered", + "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", + "asOfVersion": "0.7.1" + }, + { + "libraryName": "koa-jwt", + "typingsPackageName": "koa-jwt", + "sourceRepoURL": "https://github.com/koajs/jwt", + "asOfVersion": "3.3.0" + }, + { + "libraryName": "lambda-phi", + "typingsPackageName": "lambda-phi", + "sourceRepoURL": "https://github.com/elitechance/lambda-phi", + "asOfVersion": "1.0.1" + }, + { + "libraryName": "ldclient-js", + "typingsPackageName": "ldclient-js", + "sourceRepoURL": "https://github.com/launchdarkly/js-client", + "asOfVersion": "1.1.11" + }, + { + "libraryName": "left-pad", + "typingsPackageName": "left-pad", + "sourceRepoURL": "https://github.com/stevemao/left-pad", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "Linq.JS", + "typingsPackageName": "linq", + "sourceRepoURL": "https://linqjs.codeplex.com/", + "asOfVersion": "2.2.33" + }, + { + "libraryName": "Linq4JS", + "typingsPackageName": "linq4js", + "sourceRepoURL": "https://github.com/morrisjdev/Linq4JS", + "asOfVersion": "2.1.8" + }, + { + "libraryName": "LinqSharp", + "typingsPackageName": "linqsharp", + "sourceRepoURL": "https://github.com/brunolm/LinqSharp", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "localforage", + "typingsPackageName": "localforage", + "sourceRepoURL": "https://github.com/localForage/localForage", + "asOfVersion": "0.0.34" + }, + { + "libraryName": "localforage-cordovasqlitedriver", + "typingsPackageName": "localforage-cordovasqlitedriver", + "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", + "asOfVersion": "1.5.0" + }, + { + "libraryName": "lodash-decorators", + "typingsPackageName": "lodash-decorators", + "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "log4javascript", + "typingsPackageName": "log4javascript", + "sourceRepoURL": "http://log4javascript.org/", + "asOfVersion": "1.4.15" + }, + { + "libraryName": "log4js", + "typingsPackageName": "log4js", + "sourceRepoURL": "https://github.com/nomiddlename/log4js-node", + "asOfVersion": "2.3.5" + }, + { + "libraryName": "lower-case", + "typingsPackageName": "lower-case", + "sourceRepoURL": "https://github.com/blakeembrey/lower-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "lower-case-first", + "typingsPackageName": "lower-case-first", + "sourceRepoURL": "https://github.com/blakeembrey/lower-case-first", + "asOfVersion": "1.0.1" + }, + { + "libraryName": "mali", + "typingsPackageName": "mali", + "sourceRepoURL": "https://github.com/malijs/mali", + "asOfVersion": "0.9.2" + }, + { + "libraryName": "maquette", + "typingsPackageName": "maquette", + "sourceRepoURL": "http://maquettejs.org/", + "asOfVersion": "2.1.6" + }, + { + "libraryName": "mendixmodelsdk", + "typingsPackageName": "mendixmodelsdk", + "sourceRepoURL": "http://www.mendix.com", + "asOfVersion": "0.8.1" + }, + { + "libraryName": "metisMenu", + "typingsPackageName": "metismenu", + "sourceRepoURL": "https://github.com/onokumus/metisMenu", + "asOfVersion": "2.7.1" + }, + { + "libraryName": "microgears", + "typingsPackageName": "microgears", + "sourceRepoURL": "https://github.com/marcusdb/microgears", + "asOfVersion": "4.0.5" + }, + { + "libraryName": "mobile-detect", + "typingsPackageName": "mobile-detect", + "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", + "asOfVersion": "1.3.4" + }, + { + "libraryName": "mobservable", + "typingsPackageName": "mobservable", + "sourceRepoURL": "github.com/mweststrate/mobservable", + "asOfVersion": "1.2.5" + }, + { + "libraryName": "mobservable-react", + "typingsPackageName": "mobservable-react", + "sourceRepoURL": "https://github.com/mweststrate/mobservable-react", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "Mobx Cookie", + "typingsPackageName": "mobx-cookie", + "sourceRepoURL": "https://github.com/will-stone/mobx-cookie", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "Moment", + "typingsPackageName": "moment", + "sourceRepoURL": "https://github.com/moment/moment", + "asOfVersion": "2.13.0" + }, + { + "libraryName": "Monk", + "typingsPackageName": "monk", + "sourceRepoURL": "https://github.com/LearnBoost/monk.git", + "asOfVersion": "6.0.0" + }, + { + "libraryName": "MQTT", + "typingsPackageName": "mqtt", + "sourceRepoURL": "https://github.com/mqttjs/MQTT.js", + "asOfVersion": "2.5.0" + }, + { + "libraryName": "nano", + "typingsPackageName": "nano", + "sourceRepoURL": "https://github.com/apache/couchdb-nano", + "asOfVersion": "7.0.0" + }, + { + "libraryName": "ng-table", + "typingsPackageName": "ng-table", + "sourceRepoURL": "https://github.com/esvit/ng-table", + "asOfVersion": "2.0.1" + }, + { + "libraryName": "node-pg-migrate", + "typingsPackageName": "node-pg-migrate", + "sourceRepoURL": "https://github.com/theoephraim/node-pg-migrate#readme", + "asOfVersion": "2.15.0" + }, + { + "libraryName": "node-waves", + "typingsPackageName": "node-waves", + "sourceRepoURL": "http://fian.my.id/Waves", + "asOfVersion": "0.7.6" + }, + { + "libraryName": "Normalizr", + "typingsPackageName": "normalizr", + "sourceRepoURL": "https://github.com/paularmstrong/normalizr", + "asOfVersion": "2.0.18" + }, + { + "libraryName": "Numbro", + "typingsPackageName": "numbro", + "sourceRepoURL": "https://github.com/foretagsplatsen/numbro/", + "asOfVersion": "1.9.3" + }, + { + "libraryName": "Onsen UI", + "typingsPackageName": "onsenui", + "sourceRepoURL": "http://onsen.io", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "param-case", + "typingsPackageName": "param-case", + "sourceRepoURL": "https://github.com/blakeembrey/param-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "pascal-case", + "typingsPackageName": "pascal-case", + "sourceRepoURL": "https://github.com/blakeembrey/pascal-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "passport-client-cert", + "typingsPackageName": "passport-client-cert", + "sourceRepoURL": "https://github.com/ripjar/passport-client-cert", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "path-case", + "typingsPackageName": "path-case", + "sourceRepoURL": "https://github.com/blakeembrey/path-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "path-to-regexp", + "typingsPackageName": "path-to-regexp", + "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", + "asOfVersion": "1.7.0" + }, + { + "libraryName": "perfect-scrollbar", + "typingsPackageName": "perfect-scrollbar", + "sourceRepoURL": "https://github.com/noraesae/perfect-scrollbar", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "pg-connection-string", + "typingsPackageName": "pg-connection-string", + "sourceRepoURL": "https://github.com/iceddev/pg-connection-string", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "pg-promise", + "typingsPackageName": "pg-promise", + "sourceRepoURL": "https://github.com/vitaly-t/pg-promise", + "asOfVersion": "5.4.3" + }, + { + "libraryName": "phonegap-plugin-push", + "typingsPackageName": "phonegap-plugin-push", + "sourceRepoURL": "https://github.com/phonegap/phonegap-plugin-push", + "asOfVersion": "2.1.2" + }, + { + "libraryName": "pixi-spine", + "typingsPackageName": "pixi-spine", + "sourceRepoURL": "https://github.com/pixijs/pixi-spine", + "asOfVersion": "1.4.2" + }, + { + "libraryName": "pkcs11js", + "typingsPackageName": "pkcs11js", + "sourceRepoURL": "https://github.com/PeculiarVentures/pkcs11js", + "asOfVersion": "1.0.4" + }, + { + "libraryName": "plottable", + "typingsPackageName": "plottable", + "sourceRepoURL": "http://plottablejs.org/", + "asOfVersion": "3.7.0" + }, + { + "libraryName": "poly2tri.js", + "typingsPackageName": "poly2tri", + "sourceRepoURL": "https://github.com/r3mi/poly2tri.js", + "asOfVersion": "1.4.0" + }, + { + "libraryName": "popper.js", + "typingsPackageName": "popper.js", + "sourceRepoURL": "https://github.com/FezVrasta/popper.js/", + "asOfVersion": "1.11.0" + }, + { + "libraryName": "Prando", + "typingsPackageName": "prando", + "sourceRepoURL": "https://github.com/zeh/prando", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "ProtoBuf.js", + "typingsPackageName": "protobufjs", + "sourceRepoURL": "https://github.com/dcodeIO/ProtoBuf.js", + "asOfVersion": "6.0.0" + }, + { + "libraryName": "Protractor", + "typingsPackageName": "protractor", + "sourceRepoURL": "https://github.com/angular/protractor", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "qiniu", + "typingsPackageName": "qiniu", + "sourceRepoURL": "https://github.com/qiniu/nodejs-sdk", + "asOfVersion": "7.0.1" + }, + { + "libraryName": "qrcode-generator", + "typingsPackageName": "qrcode-generator", + "sourceRepoURL": "https://github.com/kazuhikoarase/qrcode-generator", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "Raven JS", + "typingsPackageName": "raven-js", + "sourceRepoURL": "https://github.com/getsentry/raven-js", + "asOfVersion": "3.10.0" + }, + { + "libraryName": "raw-body", + "typingsPackageName": "raw-body", + "sourceRepoURL": "https://github.com/stream-utils/raw-body", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "react-chartjs-2", + "typingsPackageName": "react-chartjs-2", + "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", + "asOfVersion": "2.5.7" + }, + { + "libraryName": "react-day-picker", + "typingsPackageName": "react-day-picker", + "sourceRepoURL": "https://github.com/gpbl/react-day-picker", + "asOfVersion": "5.3.0" + }, + { + "libraryName": "react-dnd", + "typingsPackageName": "react-dnd", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-dnd-html5-backend", + "typingsPackageName": "react-dnd-html5-backend", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-dnd-test-backend", + "typingsPackageName": "react-dnd-test-backend", + "sourceRepoURL": "https://github.com/react-dnd/react-dnd", + "asOfVersion": "3.0.2" + }, + { + "libraryName": "react-flip-move", + "typingsPackageName": "react-flip-move", + "sourceRepoURL": "https://github.com/joshwcomeau/react-flip-move", + "asOfVersion": "2.9.12" + }, + { + "libraryName": "react-ga", + "typingsPackageName": "react-ga", + "sourceRepoURL": "https://github.com/react-ga/react-ga", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "react-i18next", + "typingsPackageName": "react-i18next", + "sourceRepoURL": "https://github.com/i18next/react-i18next", + "asOfVersion": "8.1.0" + }, + { + "libraryName": "react-monaco-editor", + "typingsPackageName": "react-monaco-editor", + "sourceRepoURL": "https://github.com/superRaytin/react-monaco-editor", + "asOfVersion": "0.16.0" + }, + { + "libraryName": "react-native-collapsible", + "typingsPackageName": "react-native-collapsible", + "sourceRepoURL": "https://github.com/oblador/react-native-collapsible", + "asOfVersion": "0.11.0" + }, + { + "libraryName": "react-native-elements", + "typingsPackageName": "react-native-elements", + "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", + "asOfVersion": "0.18.0" + }, + { + "libraryName": "react-native-goby", + "typingsPackageName": "react-native-goby", + "sourceRepoURL": "https://gitlab.com/MessageDream/react-native-goby", + "asOfVersion": "0.0.5" + }, + { + "libraryName": "react-native-google-analytics-bridge", + "typingsPackageName": "react-native-google-analytics-bridge", + "sourceRepoURL": "https://github.com/idehub/react-native-google-analytics-bridge", + "asOfVersion": "5.3.3" + }, + { + "libraryName": "react-native-linear-gradient", + "typingsPackageName": "react-native-linear-gradient", + "sourceRepoURL": "https://github.com/react-native-community/react-native-linear-gradient", + "asOfVersion": "2.4.0" + }, + { + "libraryName": "react-native-modal", + "typingsPackageName": "react-native-modal", + "sourceRepoURL": "https://github.com/react-native-community/react-native-modal", + "asOfVersion": "4.1.1" + }, + { + "libraryName": "react-native-navigation", + "typingsPackageName": "react-native-navigation", + "sourceRepoURL": "https://github.com/wix/react-native-navigation", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "react-split-pane", + "typingsPackageName": "react-split-pane", + "sourceRepoURL": "https://github.com/tomkp/react-split-pane", + "asOfVersion": "0.1.67" + }, + { + "libraryName": "react-svg", + "typingsPackageName": "react-svg", + "sourceRepoURL": "https://github.com/tanem/react-svg", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "realm", + "typingsPackageName": "realm", + "sourceRepoURL": "https://github.com/realm/realm-js", + "asOfVersion": "1.13.0" + }, + { + "libraryName": "Redux", + "typingsPackageName": "redux", + "sourceRepoURL": "https://github.com/reactjs/redux", + "asOfVersion": "3.6.0" + }, + { + "libraryName": "redux-batched-actions", + "typingsPackageName": "redux-batched-actions", + "sourceRepoURL": "https://github.com/tshelburne/redux-batched-actions", + "asOfVersion": "0.1.5" + }, + { + "libraryName": "redux-bootstrap", + "typingsPackageName": "redux-bootstrap", + "sourceRepoURL": "https://github.com/remojansen/redux-bootstrap", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "redux-devtools-extension", + "typingsPackageName": "redux-devtools-extension", + "sourceRepoURL": "https://github.com/zalmoxisus/redux-devtools-extension", + "asOfVersion": "2.13.2" + }, + { + "libraryName": "redux-little-router", + "typingsPackageName": "redux-little-router", + "sourceRepoURL": "https://github.com/FormidableLabs/redux-little-router", + "asOfVersion": "15.1.0" + }, + { + "libraryName": "redux-persist", + "typingsPackageName": "redux-persist", + "sourceRepoURL": "https://github.com/rt2zz/redux-persist", + "asOfVersion": "4.3.1" + }, + { + "libraryName": "redux-persist-transform-compress", + "typingsPackageName": "redux-persist-transform-compress", + "sourceRepoURL": "https://github.com/rt2zz/redux-persist-transform-compress", + "asOfVersion": "4.2.0" + }, + { + "libraryName": "redux-saga", + "typingsPackageName": "redux-saga", + "sourceRepoURL": "https://github.com/redux-saga/redux-saga", + "asOfVersion": "0.10.5" + }, + { + "libraryName": "redux-saga-routines", + "typingsPackageName": "redux-saga-routines", + "sourceRepoURL": "https://github.com/afitiskin/redux-saga-routines#readme", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "Redux Thunk", + "typingsPackageName": "redux-thunk", + "sourceRepoURL": "https://github.com/gaearon/redux-thunk", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "reflect-metadata", + "typingsPackageName": "reflect-metadata", + "sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators", + "asOfVersion": "0.1.0" + }, + { + "libraryName": "reselect", + "typingsPackageName": "reselect", + "sourceRepoURL": "https://github.com/rackt/reselect", + "asOfVersion": "2.2.0" + }, + { + "libraryName": "rest-io", + "typingsPackageName": "rest-io", + "sourceRepoURL": "https://github.com/EnoF/rest-io", + "asOfVersion": "4.1.0" + }, + { + "libraryName": "rollup", + "typingsPackageName": "rollup", + "sourceRepoURL": "https://github.com/rollup/rollup", + "asOfVersion": "0.54.0" + }, + { + "libraryName": "route-recognizer", + "typingsPackageName": "route-recognizer", + "sourceRepoURL": "https://github.com/tildeio/route-recognizer", + "asOfVersion": "0.3.0" + }, + { + "libraryName": "router5", + "typingsPackageName": "router5", + "sourceRepoURL": "https://github.com/router5/router5", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "rrule", + "typingsPackageName": "rrule", + "sourceRepoURL": "https://github.com/jakubroztocil/rrule", + "asOfVersion": "2.2.9" + }, + { + "libraryName": "rvo2", + "typingsPackageName": "rvo2", + "sourceRepoURL": "https://github.com/TNOCS/rvo2", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "samchon", + "typingsPackageName": "samchon", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "2.0.22" + }, + { + "libraryName": "samchon-framework", + "typingsPackageName": "samchon-framework", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "2.0.21" + }, + { + "libraryName": "samchon-library", + "typingsPackageName": "samchon-library", + "sourceRepoURL": "https://github.com/samchon/framework", + "asOfVersion": "0.1.0" + }, + { + "libraryName": "node-scanf", + "typingsPackageName": "scanf", + "sourceRepoURL": "https://github.com/Lellansin/node-scanf", + "asOfVersion": "0.7.3" + }, + { + "libraryName": "sendgrid", + "typingsPackageName": "sendgrid", + "sourceRepoURL": "https://github.com/sendgrid/sendgrid-nodejs", + "asOfVersion": "4.3.0" + }, + { + "libraryName": "sentence-case", + "typingsPackageName": "sentence-case", + "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "sharp-timer", + "typingsPackageName": "sharp-timer", + "sourceRepoURL": "https://github.com/afractal/SharpTimer", + "asOfVersion": "0.1.3" + }, + { + "libraryName": "Shopify Prime", + "typingsPackageName": "shopify-prime", + "sourceRepoURL": "https://github.com/nozzlegear/shopify-prime", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "should.js", + "typingsPackageName": "should", + "sourceRepoURL": "https://github.com/shouldjs/should.js", + "asOfVersion": "13.0.0" + }, + { + "libraryName": "SimpleSignal", + "typingsPackageName": "simplesignal", + "sourceRepoURL": "https://github.com/zeh/simplesignal", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "smooth-scrollbar", + "typingsPackageName": "smooth-scrollbar", + "sourceRepoURL": "https://github.com/idiotWu/smooth-scrollbar", + "asOfVersion": "8.2.5" + }, + { + "libraryName": "Smoothie Charts", + "typingsPackageName": "smoothie", + "sourceRepoURL": "https://github.com/joewalnes/smoothie", + "asOfVersion": "1.29.1" + }, + { + "libraryName": "snake-case", + "typingsPackageName": "snake-case", + "sourceRepoURL": "https://github.com/blakeembrey/snake-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "soap", + "typingsPackageName": "soap", + "sourceRepoURL": "https://www.npmjs.com/package/soap", + "asOfVersion": "0.21.0" + }, + { + "libraryName": "source-map", + "typingsPackageName": "source-map", + "sourceRepoURL": "https://github.com/mozilla/source-map", + "asOfVersion": "0.5.7" + }, + { + "libraryName": "Spin.js", + "typingsPackageName": "spin.js", + "sourceRepoURL": "http://fgnass.github.com/spin.js/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "spotify-web-api-js", + "typingsPackageName": "spotify-web-api-js", + "sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js", + "asOfVersion": "0.21.0" + }, + { + "libraryName": "ServiceStack Utils", + "typingsPackageName": "ss-utils", + "sourceRepoURL": "https://servicestack.net/", + "asOfVersion": "0.1.5" + }, + { + "libraryName": "striptags", + "typingsPackageName": "striptags", + "sourceRepoURL": "https://github.com/ericnorris/striptags", + "asOfVersion": "3.1.1" + }, + { + "libraryName": "Sugar", + "typingsPackageName": "sugar", + "sourceRepoURL": "https://github.com/andrewplummer/Sugar", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "survey-knockout", + "typingsPackageName": "survey-knockout", + "sourceRepoURL": "http://surveyjs.org/", + "asOfVersion": "0.10.0" + }, + { + "libraryName": "svg-pan-zoom", + "typingsPackageName": "svg-pan-zoom", + "sourceRepoURL": "https://github.com/ariutta/svg-pan-zoom", + "asOfVersion": "3.4.0" + }, + { + "libraryName": "svg.js", + "typingsPackageName": "svg.js", + "sourceRepoURL": "http://www.svgjs.com/", + "asOfVersion": "2.3.1" + }, + { + "libraryName": "swap-case", + "typingsPackageName": "swap-case", + "sourceRepoURL": "https://github.com/blakeembrey/swap-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "SweetAlert", + "typingsPackageName": "sweetalert", + "sourceRepoURL": "https://github.com/t4t5/sweetalert/", + "asOfVersion": "2.0.4" + }, + { + "libraryName": "Tabris.js", + "typingsPackageName": "tabris", + "sourceRepoURL": "http://tabrisjs.com", + "asOfVersion": "1.8.0" + }, + { + "libraryName": "tcomb", + "typingsPackageName": "tcomb", + "sourceRepoURL": "http://gcanti.github.io/tcomb/guide/index.html", + "asOfVersion": "2.6.0" + }, + { + "libraryName": "timezonecomplete", + "typingsPackageName": "timezonecomplete", + "sourceRepoURL": "https://github.com/SpiritIT/timezonecomplete", + "asOfVersion": "5.5.0" + }, + { + "libraryName": "title-case", + "typingsPackageName": "title-case", + "sourceRepoURL": "https://github.com/blakeembrey/title-case", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "TsMonad", + "typingsPackageName": "tsmonad", + "sourceRepoURL": "https://github.com/cbowdon/TsMonad", + "asOfVersion": "0.5.0" + }, + { + "libraryName": "tstl", + "typingsPackageName": "tstl", + "sourceRepoURL": "https://github.com/samchon/tstl", + "asOfVersion": "1.5.7" + }, + { + "libraryName": "typed.js", + "typingsPackageName": "typed.js", + "sourceRepoURL": "https://github.com/mattboldt/typed.js", + "asOfVersion": "2.0.9" + }, + { + "libraryName": "TypeScript", + "typingsPackageName": "typescript", + "sourceRepoURL": "https://github.com/Microsoft/TypeScript", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "TypeScript", + "typingsPackageName": "typescript-services", + "sourceRepoURL": "https://github.com/Microsoft/TypeScript", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "uk.co.workingedge.phonegap.plugin.istablet", + "typingsPackageName": "uk.co.workingedge.phonegap.plugin.istablet", + "sourceRepoURL": "https://github.com/dpa99c/phonegap-istablet", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "typingsPackageName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "upper-case", + "typingsPackageName": "upper-case", + "sourceRepoURL": "https://github.com/blakeembrey/upper-case", + "asOfVersion": "1.1.3" + }, + { + "libraryName": "upper-case-first", + "typingsPackageName": "upper-case-first", + "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", + "asOfVersion": "1.1.2" + }, + { + "libraryName": "UUID.js", + "typingsPackageName": "uuidjs", + "sourceRepoURL": "https://github.com/LiosK/UUID.js", + "asOfVersion": "3.6.0" + }, + { + "libraryName": "Validate.js", + "typingsPackageName": "validate.js", + "sourceRepoURL": "https://github.com/ansman/validate.js", + "asOfVersion": "0.11.0" + }, + { + "libraryName": "vso-node-api", + "typingsPackageName": "vso-node-api", + "sourceRepoURL": "https://github.com/Microsoft/vso-node-api", + "asOfVersion": "4.0.0" + }, + { + "libraryName": "vuejs", + "typingsPackageName": "vue", + "sourceRepoURL": "https://github.com/vuejs/vue", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "vue-i18n", + "typingsPackageName": "vue-i18n", + "sourceRepoURL": "https://github.com/kazupon/vue-i18n", + "asOfVersion": "7.0.0" + }, + { + "libraryName": "vue-router", + "typingsPackageName": "vue-router", + "sourceRepoURL": "https://github.com/vuejs/vue-router", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "webcola", + "typingsPackageName": "webcola", + "sourceRepoURL": "https://github.com/tgdwyer/WebCola", + "asOfVersion": "3.2.0" + }, + { + "libraryName": "webgme", + "typingsPackageName": "webgme", + "sourceRepoURL": "https://webgme.org", + "asOfVersion": "2.11.0" + }, + { + "libraryName": "Webix UI", + "typingsPackageName": "webix", + "sourceRepoURL": "http://webix.com", + "asOfVersion": "5.1.1" + }, + { + "libraryName": "winston", + "typingsPackageName": "winston", + "sourceRepoURL": "https://github.com/winstonjs/winston.git", + "asOfVersion": "2.4.4" + }, + { + "libraryName": "wolfy87-eventemitter", + "typingsPackageName": "wolfy87-eventemitter", + "sourceRepoURL": "https://github.com/Wolfy87/EventEmitter", + "asOfVersion": "5.2.0" + }, + { + "libraryName": "wonder-commonlib", + "typingsPackageName": "wonder-commonlib", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-CommonLib", + "asOfVersion": "0.1.12" + }, + { + "libraryName": "wonder-frp", + "typingsPackageName": "wonder-frp", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", + "asOfVersion": "0.1.25" + }, + { + "libraryName": "x2js", + "typingsPackageName": "x2js", + "sourceRepoURL": "https://code.google.com/p/x2js/", + "asOfVersion": "3.1.0" + }, + { + "libraryName": "xadesjs", + "typingsPackageName": "xadesjs", + "sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "xhr-mock", + "typingsPackageName": "xhr-mock", + "sourceRepoURL": "https://github.com/jameslnewell/xhr-mock#readme", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "xlsx", + "typingsPackageName": "xlsx", + "sourceRepoURL": "https://github.com/sheetjs/js-xlsx", + "asOfVersion": "0.0.36" + }, + { + "libraryName": "xml-js", + "typingsPackageName": "xml-js", + "sourceRepoURL": "https://github.com/nashwaan/xml-js", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "@xmpp/jid", + "typingsPackageName": "xmpp-jid", + "sourceRepoURL": "github.com/node-xmpp/node-xmpp/", + "asOfVersion": "1.2.0" + }, + { + "libraryName": "xterm.js", + "typingsPackageName": "xterm", + "sourceRepoURL": "https://github.com/sourcelair/xterm.js/", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "yFiles for HTML", + "typingsPackageName": "yfiles", + "sourceRepoURL": "none", + "asOfVersion": "2.1.0" + }, + { + "libraryName": "zetapush-js", + "typingsPackageName": "zetapush-js", + "sourceRepoURL": "https://github.com/zetapush/zetapush-js", + "asOfVersion": "3.1.2" + }, + { + "libraryName": "Zone.js", + "typingsPackageName": "zone.js", + "sourceRepoURL": "https://github.com/angular/zone.js", + "asOfVersion": "0.5.12" + } + ] } From daf7c7127195739f4a88024aae44835163e60096 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 5 Nov 2018 17:45:26 -0800 Subject: [PATCH 159/213] fast-diff: Provides its own types (#30297) --- notNeededPackages.json | 6 ++++++ types/fast-diff/fast-diff-tests.ts | 16 ---------------- types/fast-diff/index.d.ts | 16 ---------------- types/fast-diff/tsconfig.json | 23 ----------------------- types/fast-diff/tslint.json | 1 - 5 files changed, 6 insertions(+), 56 deletions(-) delete mode 100644 types/fast-diff/fast-diff-tests.ts delete mode 100644 types/fast-diff/index.d.ts delete mode 100644 types/fast-diff/tsconfig.json delete mode 100644 types/fast-diff/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index c247e09d92..4c0eb6d98a 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -540,6 +540,12 @@ "sourceRepoURL": "https://github.com/code-chris/extended-listbox", "asOfVersion": "4.0.1" }, + { + "libraryName": "fast-diff", + "typingsPackageName": "fast-diff", + "sourceRepoURL": "https://github.com/jhchen/fast-diff", + "asOfVersion": "1.2.0" + }, { "libraryName": "JSON-Patch", "typingsPackageName": "fast-json-patch", diff --git a/types/fast-diff/fast-diff-tests.ts b/types/fast-diff/fast-diff-tests.ts deleted file mode 100644 index 3177bfa7fc..0000000000 --- a/types/fast-diff/fast-diff-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -import fastDiff = require('fast-diff'); - -let diffs: fastDiff.Diff[]; -diffs = fastDiff("hi there", "hi"); -diffs = fastDiff("hi there", "hi", 1); - -diffs.forEach((diff: fastDiff.Diff) => { - const operation: number = diff[0]; - const text: string = diff[1]; - - switch (diff[0]) { - case fastDiff.EQUAL: break; - case fastDiff.DELETE: break; - case fastDiff.INSERT: break; - } -}); diff --git a/types/fast-diff/index.d.ts b/types/fast-diff/index.d.ts deleted file mode 100644 index 1f306a6e9d..0000000000 --- a/types/fast-diff/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Type definitions for fast-diff 1.1 -// Project: https://github.com/jhchen/fast-diff#readme -// Definitions by: John Renner -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare function diff(text1: string, text2: string, cursorPos?: number): diff.Diff[]; - -declare namespace diff { - type Diff = [-1 | 0 | 1, string]; - - const DELETE: -1; - const INSERT: 1; - const EQUAL: 0; -} - -export = diff; diff --git a/types/fast-diff/tsconfig.json b/types/fast-diff/tsconfig.json deleted file mode 100644 index 0c6f0c4ae2..0000000000 --- a/types/fast-diff/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "fast-diff-tests.ts" - ] -} \ No newline at end of file diff --git a/types/fast-diff/tslint.json b/types/fast-diff/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/fast-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } From 7500ae46094b60251362bc33c1c9658698e68d9c Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 5 Nov 2018 17:46:30 -0800 Subject: [PATCH 160/213] react-native-vector-iconts: Fix "lib" (#30294) --- types/react-native-vector-icons/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-vector-icons/tsconfig.json b/types/react-native-vector-icons/tsconfig.json index 31ca0d3dce..9d3b080960 100644 --- a/types/react-native-vector-icons/tsconfig.json +++ b/types/react-native-vector-icons/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, From 2d34898d1749d758b636e2f3745585dcd43611e8 Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Tue, 6 Nov 2018 04:19:35 +0100 Subject: [PATCH 161/213] fix(hapi): server does not extend podium --- types/hapi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index e0bd88186d..9bd9a14f41 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -3280,7 +3280,7 @@ export type DecorateName = string | symbol; * the facilities provided by the framework. Each server supports a single connection (e.g. listen to port 80). * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#server) */ -export class Server extends Podium { +export class Server { /** * Creates a new server object * @param options server configuration object. From b718393cf7694f323a3747f915fd6d3a1197e861 Mon Sep 17 00:00:00 2001 From: Dan Dean Date: Mon, 5 Nov 2018 21:53:20 -0800 Subject: [PATCH 162/213] Flesh out more of the parameter API Bumped the version of the associated module to 4.0 and fleshed out more of the API according to that version's source code. --- types/storybook__react/index.d.ts | 10 ++++++++-- types/storybook__react/storybook__react-tests.tsx | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index 92b173d746..41ce7b45bb 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for @storybook/react 3.4 +// Type definitions for @storybook/react 4.0 // Project: https://github.com/storybooks/storybook // Definitions by: Joscha Feth // Anton Izmailov @@ -13,15 +13,21 @@ import * as React from 'react'; export type Renderable = React.ComponentType | JSX.Element; export type RenderFunction = () => Renderable | Renderable[]; +export interface DecoratorParameters { + [key: string]: any; +} export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; export interface Story { readonly kind: string; - add(storyName: string, callback: RenderFunction, parameters?: { [key: string]: any }): this; + add(storyName: string, callback: RenderFunction, parameters?: DecoratorParameters): this; addDecorator(decorator: StoryDecorator): this; + addParameters(parameters: DecoratorParameters): this; } export function addDecorator(decorator: StoryDecorator): void; +export function addParameters(parameters: DecoratorParameters): void; +export function clearDecorators(): void; export function configure(fn: () => void, module: NodeModule): void; export function setAddon(addon: object): void; export function storiesOf(name: string, module: NodeModule): Story; diff --git a/types/storybook__react/storybook__react-tests.tsx b/types/storybook__react/storybook__react-tests.tsx index ba19df798e..7b0df4f145 100644 --- a/types/storybook__react/storybook__react-tests.tsx +++ b/types/storybook__react/storybook__react-tests.tsx @@ -1,7 +1,8 @@ import * as React from 'react'; -import { storiesOf, setAddon, addDecorator, configure, getStorybook, RenderFunction, Story, forceReRender } from '@storybook/react'; +import { storiesOf, setAddon, addDecorator, addParameters, configure, getStorybook, RenderFunction, Story, forceReRender, DecoratorParameters, clearDecorators } from '@storybook/react'; const Decorator = (story: RenderFunction) =>
{story()}
; +const Parameters: DecoratorParameters = { parameter: 'foo' }; forceReRender(); @@ -9,10 +10,13 @@ storiesOf('Welcome', module) // local addDecorator .addDecorator(Decorator) .add('to Storybook', () =>
) - .add('to Storybook as Array', () => [
,
]); + .add('to Storybook as Array', () => [
,
]) + .add('and a story with additional parameters', () =>
, Parameters); // global addDecorator addDecorator(Decorator); +addParameters(Parameters); +clearDecorators(); // setAddon interface AnyAddon { @@ -30,7 +34,7 @@ storiesOf('withAnyAddon', module) .addWithSideEffect('more', () =>
) .add('another story', () =>
) .add('to Storybook as Array', () => [
,
]) - .add('and a story with additional parameters', () =>
, { parameter: 'foo' }) + .add('and a story with additional parameters', () =>
, Parameters) .addWithSideEffect('even more', () =>
); // configure From da8e9bc1b4e30969b83ae9aeeded8cdefcea9af2 Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Tue, 6 Nov 2018 02:00:35 -0400 Subject: [PATCH 163/213] fix(react-native-modal-box): Fix tests Fixes #30296 --- types/react-native-modalbox/react-native-modalbox-tests.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/react-native-modalbox/react-native-modalbox-tests.tsx b/types/react-native-modalbox/react-native-modalbox-tests.tsx index a2e54a7653..31f104161f 100644 --- a/types/react-native-modalbox/react-native-modalbox-tests.tsx +++ b/types/react-native-modalbox/react-native-modalbox-tests.tsx @@ -16,6 +16,8 @@ interface State { sliderValue: number; } +const screen = Dimensions.get('window'); + class Example extends React.Component<{}, State> { modal1: Modal; modal2: Modal; From e89f6be0ead578126eef530631c734ed5f4c7b95 Mon Sep 17 00:00:00 2001 From: Tereza Tomcova Date: Mon, 5 Nov 2018 12:09:15 +0100 Subject: [PATCH 164/213] angular-promise-tracker: Add tracker property to IRequestShortcutConfig --- .../angular-promise-tracker-tests.ts | 8 ++++++-- types/angular-promise-tracker/index.d.ts | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/types/angular-promise-tracker/angular-promise-tracker-tests.ts b/types/angular-promise-tracker/angular-promise-tracker-tests.ts index 0365709cf5..6b8b8abd31 100644 --- a/types/angular-promise-tracker/angular-promise-tracker-tests.ts +++ b/types/angular-promise-tracker/angular-promise-tracker-tests.ts @@ -1,5 +1,5 @@ -angular.module('promise-tracker-tests', []).run(['$q', 'promiseTracker', - ($q: angular.IQService, promiseTracker: angular.promisetracker.PromiseTrackerService) => { +angular.module('promise-tracker-tests', []).run(['$q', '$http', 'promiseTracker', + ($q: angular.IQService, $http: angular.IHttpService, promiseTracker: angular.promisetracker.PromiseTrackerService) => { const trackerWithoutOptions = promiseTracker(); const options = { @@ -19,4 +19,8 @@ angular.module('promise-tracker-tests', []).run(['$q', 'promiseTracker', const addedPromise: angular.IDeferred = trackerWithOptions.addPromise(promiseToAdd); const trackerWithSomeOptions = promiseTracker({activationDelay: 500}); + + $http.post('/foo', {}, { }); + $http.post('/foo', {}, { tracker: trackerWithOptions }); + $http.post('/foo', {}, { tracker: [trackerWithoutOptions, trackerWithOptions] }); }]); diff --git a/types/angular-promise-tracker/index.d.ts b/types/angular-promise-tracker/index.d.ts index 85a87bad63..78849fa3e1 100644 --- a/types/angular-promise-tracker/index.d.ts +++ b/types/angular-promise-tracker/index.d.ts @@ -28,4 +28,8 @@ declare module 'angular' { (options?: PromiseTrackerOptions): PromiseTracker; } } + + interface IRequestShortcutConfig { + tracker?: angular.promisetracker.PromiseTracker | angular.promisetracker.PromiseTracker[]; + } } From 45869d63aefe8ca99e390e443afb7292f6be5b69 Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Tue, 6 Nov 2018 09:21:55 +0100 Subject: [PATCH 165/213] Update import --- types/smooth-scroll/test/smooth-scroll.test.ts | 2 +- types/smooth-scroll/tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/smooth-scroll/test/smooth-scroll.test.ts b/types/smooth-scroll/test/smooth-scroll.test.ts index 894790f744..cb29191943 100644 --- a/types/smooth-scroll/test/smooth-scroll.test.ts +++ b/types/smooth-scroll/test/smooth-scroll.test.ts @@ -1,4 +1,4 @@ -import * as SmoothScroll from "smooth-scroll"; +import SmoothScroll from "smooth-scroll"; // Initialize and destroy SmoothScroll const example1 = new SmoothScroll('a[href*="#"]', { diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index 8d1fa8372b..a6ebdde30b 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -10,7 +10,8 @@ "typeRoots": ["../"], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", From 07b4178ef150963f996c06a601dbbfaeb33d7827 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Tue, 6 Nov 2018 16:30:16 +0800 Subject: [PATCH 166/213] Update three-fbxloader.d.ts --- types/three/three-fbxloader.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/three/three-fbxloader.d.ts b/types/three/three-fbxloader.d.ts index 699f12f8cd..4ecd1e70a7 100644 --- a/types/three/three-fbxloader.d.ts +++ b/types/three/three-fbxloader.d.ts @@ -4,7 +4,7 @@ import { LoadingManager } from "./three-core"; import { AnimationClip, Group } from "./three-core"; interface IFbxSceneGraph extends Group { - animations: AnimationClip[]; + animations: AnimationClip[]; } export class FBXLoader { From e034387d69edb9f20b6413ecd10b5ec214773d0b Mon Sep 17 00:00:00 2001 From: Andrei Horodinca Date: Tue, 6 Nov 2018 09:33:38 +0100 Subject: [PATCH 167/213] Update import --- types/smooth-scroll/test/smooth-scroll.test.ts | 2 +- types/smooth-scroll/tsconfig.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/smooth-scroll/test/smooth-scroll.test.ts b/types/smooth-scroll/test/smooth-scroll.test.ts index cb29191943..a64b8bd2d0 100644 --- a/types/smooth-scroll/test/smooth-scroll.test.ts +++ b/types/smooth-scroll/test/smooth-scroll.test.ts @@ -1,4 +1,4 @@ -import SmoothScroll from "smooth-scroll"; +import SmoothScroll = require("smooth-scroll"); // Initialize and destroy SmoothScroll const example1 = new SmoothScroll('a[href*="#"]', { diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index a6ebdde30b..8d1fa8372b 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -10,8 +10,7 @@ "typeRoots": ["../"], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", From 2d2409cf47b72760289c8a5756bc61c83f0bb85a Mon Sep 17 00:00:00 2001 From: barahliush Date: Tue, 6 Nov 2018 10:39:51 +0200 Subject: [PATCH 168/213] Parameter 'mode' in method 'key Exists' has been renamed to 'scope' --- types/vuex-i18n/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vuex-i18n/index.d.ts b/types/vuex-i18n/index.d.ts index 8282b99c05..f6b75afa1a 100644 --- a/types/vuex-i18n/index.d.ts +++ b/types/vuex-i18n/index.d.ts @@ -97,7 +97,7 @@ export interface Ii18n { * fallback: current locale, parent language locale and fallback locale * the default is fallback */ - keyExists(key: string, mode?: string): boolean; + keyExists(key: string, scope?: string): boolean; } declare const _default: { From 7235611c65bdc5bc9cf6e24d3e6bf6d03d4b9a4b Mon Sep 17 00:00:00 2001 From: Laurens Rietveld Date: Tue, 6 Nov 2018 11:33:06 +0100 Subject: [PATCH 169/213] Removed unnecessary linting Constraint --- types/rdf-js/tslint.json | 1 - 1 file changed, 1 deletion(-) diff --git a/types/rdf-js/tslint.json b/types/rdf-js/tslint.json index e27ad90359..724f3870ca 100644 --- a/types/rdf-js/tslint.json +++ b/types/rdf-js/tslint.json @@ -1,6 +1,5 @@ { "extends": "dtslint/dt.json", "rules": { - "no-unnecessary-generics": false } } From 227247c5be1e6c3b4fdf08b6bcc3c34f59239d4f Mon Sep 17 00:00:00 2001 From: Jaap Taal Date: Sun, 4 Nov 2018 15:31:51 +0100 Subject: [PATCH 170/213] Adds type definitions for sql-template npm package --- types/sql-template/index.d.ts | 28 ++++++++++++++++++++++++ types/sql-template/sql-template-tests.ts | 21 ++++++++++++++++++ types/sql-template/tsconfig.json | 23 +++++++++++++++++++ types/sql-template/tslint.json | 1 + 4 files changed, 73 insertions(+) create mode 100644 types/sql-template/index.d.ts create mode 100644 types/sql-template/sql-template-tests.ts create mode 100644 types/sql-template/tsconfig.json create mode 100644 types/sql-template/tslint.json diff --git a/types/sql-template/index.d.ts b/types/sql-template/index.d.ts new file mode 100644 index 0000000000..c05ae75516 --- /dev/null +++ b/types/sql-template/index.d.ts @@ -0,0 +1,28 @@ +// Type definitions for sql-template 1.2 +// Project: https://github.com/131/sql-template +// Definitions by: Jaap Taal +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +export = SQL; +declare function SQL(parts: TemplateStringsArray, ...values: any[]): SQL.Fragment; + +declare namespace SQL { + interface Fragment { + raw: string; + text: string; + values?: any[]; + } + + type ChainFn = (values: any[], part: string) => string; + + type Transformer = (values: any[], str: string, chain: ChainFn) => void; + + function insert(table: string, values: object): Fragment; + function insert_bulk(table: string, keys: string[], values: any[][]): Fragment; + function update(table: string, values: object, where?: any): Fragment; + function select(table: string, where?: any, cols?: string, extra?: string): Fragment; + function search_blob(search_field: string, qs: string, main_field?: string, LIKE?: string): Fragment | false; + + const transformers: {[key: string]: Transformer}; +} diff --git a/types/sql-template/sql-template-tests.ts b/types/sql-template/sql-template-tests.ts new file mode 100644 index 0000000000..4b44f1d3a7 --- /dev/null +++ b/types/sql-template/sql-template-tests.ts @@ -0,0 +1,21 @@ +import SQL = require("sql-template"); + +const query = SQL`INSERT INTO table (column) VALUES (${"value"})`; +SQL.transformers["in"]([], "", () => ""); + +SQL.insert("table", {column: "value"}); +SQL.insert_bulk("table", ["column"], [["value"]]); + +SQL.update("table", {column: "value"}); +SQL.update("table", {column: "value"}, true); +SQL.update("table", {column: "value2"}, {column: "value1"}); +SQL.update("table", {column: "value2"}, SQL`column = ${"value1"}`); + +SQL.select("table"); +SQL.select("table", {column: "value"}); +SQL.select("table", {column: "value"}, "a, b"); +SQL.select("table", {column: "value"}, "a, b", "GROUP BY x"); + +SQL.search_blob("column", "value"); +SQL.search_blob("column", "value #1", "user_id"); +SQL.search_blob("column", "value #1", "user_id", "LIKE"); diff --git a/types/sql-template/tsconfig.json b/types/sql-template/tsconfig.json new file mode 100644 index 0000000000..27ac3eba34 --- /dev/null +++ b/types/sql-template/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "sql-template-tests.ts" + ] +} diff --git a/types/sql-template/tslint.json b/types/sql-template/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/sql-template/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 4e88afacba70546abd6a41e15da010d059f4a815 Mon Sep 17 00:00:00 2001 From: Bartosz Dotryw Date: Tue, 6 Nov 2018 12:21:18 +0100 Subject: [PATCH 171/213] Typings for expo-localization --- .../expo-localization-tests.ts | 6 ++ types/expo-localization/index.d.ts | 73 +++++++++++++++++++ types/expo-localization/tsconfig.json | 22 ++++++ types/expo-localization/tslint.json | 1 + .../index.d.ts | 2 +- 5 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 types/expo-localization/expo-localization-tests.ts create mode 100644 types/expo-localization/index.d.ts create mode 100644 types/expo-localization/tsconfig.json create mode 100644 types/expo-localization/tslint.json diff --git a/types/expo-localization/expo-localization-tests.ts b/types/expo-localization/expo-localization-tests.ts new file mode 100644 index 0000000000..0bf0756855 --- /dev/null +++ b/types/expo-localization/expo-localization-tests.ts @@ -0,0 +1,6 @@ +import { Localization } from "expo-localization"; + +Localization.getLocalizationAsync().then(localization => { + localization.locale +}); +Localization.locale; \ No newline at end of file diff --git a/types/expo-localization/index.d.ts b/types/expo-localization/index.d.ts new file mode 100644 index 0000000000..453be2b388 --- /dev/null +++ b/types/expo-localization/index.d.ts @@ -0,0 +1,73 @@ +// Type definitions for expo-localization 1.0 +// Project: https://docs.expo.io/ +// Definitions by: burtek +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export interface LocalizationProps { + /** + * Native device language, returned in standard format. ex: `en-US`, `es-US` + */ + locale: string; + + /** + * List of all the native languages provided by the user settings. These are returned in the order the user defines in their native settings + */ + locales: string[]; + + /** + * Country code for your device + */ + country: string | undefined; + + /** + * A list of all the supported ISO codes + */ + isoCurrencyCodes: string[] | undefined; + + /** + * The current time zone in display format. ex: `America/Los_Angeles` + */ + timezone: string; + + /** + * This will return `true` if the current language is Right-to-Left + */ + isRTL: boolean; +} + +export class Localization { + /** + * Native device language, returned in standard format. ex: `en-US`, `es-US` + */ + static locale: string; + + /** + * List of all the native languages provided by the user settings. These are returned in the order the user defines in their native settings + */ + static locales: string[]; + + /** + * Country code for your device + */ + static country: string | undefined; + + /** + * A list of all the supported ISO codes + */ + static isoCurrencyCodes: string[] | undefined; + + /** + * The current time zone in display format. ex: `America/Los_Angeles` + */ + static timezone: string; + + /** + * This will return `true` if the current language is Right-to-Left + */ + static isRTL: boolean; + + /** + * Android only, on iOS changing the locale settings will cause all the apps to reset + */ + static getLocalizationAsync(): Promise; +} diff --git a/types/expo-localization/tsconfig.json b/types/expo-localization/tsconfig.json new file mode 100644 index 0000000000..76ed37a779 --- /dev/null +++ b/types/expo-localization/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "expo-localization-tests.ts" + ] +} diff --git a/types/expo-localization/tslint.json b/types/expo-localization/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/expo-localization/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-infinite-scroll-component/index.d.ts b/types/react-infinite-scroll-component/index.d.ts index 4380c2f11a..d7fdc11ddc 100644 --- a/types/react-infinite-scroll-component/index.d.ts +++ b/types/react-infinite-scroll-component/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for react-infinite-scroll-component 4.2 // Project: https://github.com/ankeetmaini/react-infinite-scroll-component#readme // Definitions by: Stephanie Roy -// Bartosz Dotryw +// burtek // David Kevork // Joshua R. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 09d6c1153b2f2d3c1671ff72eb817c81ddf8666e Mon Sep 17 00:00:00 2001 From: Bartosz Dotryw Date: Tue, 6 Nov 2018 12:31:56 +0100 Subject: [PATCH 172/213] Lint fixes --- .../expo-localization/expo-localization-tests.ts | 6 ++---- types/expo-localization/index.d.ts | 16 ++++++++-------- types/expo-localization/tsconfig.json | 1 + 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/types/expo-localization/expo-localization-tests.ts b/types/expo-localization/expo-localization-tests.ts index 0bf0756855..053c4bfe71 100644 --- a/types/expo-localization/expo-localization-tests.ts +++ b/types/expo-localization/expo-localization-tests.ts @@ -1,6 +1,4 @@ import { Localization } from "expo-localization"; -Localization.getLocalizationAsync().then(localization => { - localization.locale -}); -Localization.locale; \ No newline at end of file +Localization.getLocalizationAsync().then(localization => localization.locale); +Localization.locale; diff --git a/types/expo-localization/index.d.ts b/types/expo-localization/index.d.ts index 453be2b388..7db0a9355a 100644 --- a/types/expo-localization/index.d.ts +++ b/types/expo-localization/index.d.ts @@ -35,39 +35,39 @@ export interface LocalizationProps { isRTL: boolean; } -export class Localization { +export namespace Localization { /** * Native device language, returned in standard format. ex: `en-US`, `es-US` */ - static locale: string; + const locale: string; /** * List of all the native languages provided by the user settings. These are returned in the order the user defines in their native settings */ - static locales: string[]; + const locales: string[]; /** * Country code for your device */ - static country: string | undefined; + const country: string | undefined; /** * A list of all the supported ISO codes */ - static isoCurrencyCodes: string[] | undefined; + const isoCurrencyCodes: string[] | undefined; /** * The current time zone in display format. ex: `America/Los_Angeles` */ - static timezone: string; + const timezone: string; /** * This will return `true` if the current language is Right-to-Left */ - static isRTL: boolean; + const isRTL: boolean; /** * Android only, on iOS changing the locale settings will cause all the apps to reset */ - static getLocalizationAsync(): Promise; + function getLocalizationAsync(): Promise; } diff --git a/types/expo-localization/tsconfig.json b/types/expo-localization/tsconfig.json index 76ed37a779..d024122421 100644 --- a/types/expo-localization/tsconfig.json +++ b/types/expo-localization/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 38319c9163cf632a6fa12d3f1675b9ac0779c1db Mon Sep 17 00:00:00 2001 From: Henri Normak Date: Tue, 6 Nov 2018 16:38:09 +0200 Subject: [PATCH 173/213] Use correct version of typescript --- types/mjml-react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mjml-react/index.d.ts b/types/mjml-react/index.d.ts index 6367d1d1ec..decb895010 100644 --- a/types/mjml-react/index.d.ts +++ b/types/mjml-react/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/wix-incubator/mjml-react // Definitions by: Henri Normak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 import * as React from 'react'; From ba0774bfdebe2e49e967a411920a3d8c6e4a4150 Mon Sep 17 00:00:00 2001 From: Jussi Kinnula Date: Thu, 1 Nov 2018 15:40:40 +0200 Subject: [PATCH 174/213] Add gl-react package type definitions --- types/gl-react-dom/index.d.ts | 17 ++ types/gl-react-dom/tsconfig.json | 24 +++ types/gl-react-dom/tslint.json | 3 + types/gl-react-expo/index.d.ts | 8 + types/gl-react-expo/tsconfig.json | 24 +++ types/gl-react-expo/tslint.json | 3 + types/gl-react-headless/index.d.ts | 17 ++ types/gl-react-headless/tsconfig.json | 24 +++ types/gl-react-headless/tslint.json | 3 + types/gl-react-native/index.d.ts | 8 + types/gl-react-native/tsconfig.json | 24 +++ types/gl-react-native/tslint.json | 3 + types/gl-react/index.d.ts | 218 ++++++++++++++++++++++++++ types/gl-react/package.json | 6 + types/gl-react/tsconfig.json | 24 +++ types/gl-react/tslint.json | 3 + 16 files changed, 409 insertions(+) create mode 100644 types/gl-react-dom/index.d.ts create mode 100644 types/gl-react-dom/tsconfig.json create mode 100644 types/gl-react-dom/tslint.json create mode 100644 types/gl-react-expo/index.d.ts create mode 100644 types/gl-react-expo/tsconfig.json create mode 100644 types/gl-react-expo/tslint.json create mode 100644 types/gl-react-headless/index.d.ts create mode 100644 types/gl-react-headless/tsconfig.json create mode 100644 types/gl-react-headless/tslint.json create mode 100644 types/gl-react-native/index.d.ts create mode 100644 types/gl-react-native/tsconfig.json create mode 100644 types/gl-react-native/tslint.json create mode 100644 types/gl-react/index.d.ts create mode 100644 types/gl-react/package.json create mode 100644 types/gl-react/tsconfig.json create mode 100644 types/gl-react/tslint.json diff --git a/types/gl-react-dom/index.d.ts b/types/gl-react-dom/index.d.ts new file mode 100644 index 0000000000..8d25b244ee --- /dev/null +++ b/types/gl-react-dom/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for gl-react-dom 3.15 +// Project: https://github.com/gre/gl-react +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import * as React from 'react'; +import * as glReact from 'gl-react'; + +export interface SurfaceProps extends glReact.SurfaceProps { + width: number; + height: number; +} + +export class Surface extends glReact.Surface { + props: SurfaceProps; +} diff --git a/types/gl-react-dom/tsconfig.json b/types/gl-react-dom/tsconfig.json new file mode 100644 index 0000000000..9c4d38ca44 --- /dev/null +++ b/types/gl-react-dom/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + } +} diff --git a/types/gl-react-dom/tslint.json b/types/gl-react-dom/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/gl-react-dom/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/gl-react-expo/index.d.ts b/types/gl-react-expo/index.d.ts new file mode 100644 index 0000000000..20a1e19928 --- /dev/null +++ b/types/gl-react-expo/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for gl-react-expo 3.16 +// Project: https://github.com/gre/gl-react +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import { Surface } from 'gl-react'; +export { Surface }; diff --git a/types/gl-react-expo/tsconfig.json b/types/gl-react-expo/tsconfig.json new file mode 100644 index 0000000000..9c4d38ca44 --- /dev/null +++ b/types/gl-react-expo/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + } +} diff --git a/types/gl-react-expo/tslint.json b/types/gl-react-expo/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/gl-react-expo/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/gl-react-headless/index.d.ts b/types/gl-react-headless/index.d.ts new file mode 100644 index 0000000000..a8b0ec5212 --- /dev/null +++ b/types/gl-react-headless/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for gl-react-headless 3.15 +// Project: https://github.com/gre/gl-react +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import * as React from 'react'; +import * as glReact from 'gl-react'; + +export interface SurfaceProps extends glReact.SurfaceProps { + width: number; + height: number; +} + +export class Surface extends glReact.Surface { + props: SurfaceProps; +} diff --git a/types/gl-react-headless/tsconfig.json b/types/gl-react-headless/tsconfig.json new file mode 100644 index 0000000000..9c4d38ca44 --- /dev/null +++ b/types/gl-react-headless/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + } +} diff --git a/types/gl-react-headless/tslint.json b/types/gl-react-headless/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/gl-react-headless/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/gl-react-native/index.d.ts b/types/gl-react-native/index.d.ts new file mode 100644 index 0000000000..b9bce2a806 --- /dev/null +++ b/types/gl-react-native/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for gl-react-native 3.15 +// Project: https://github.com/gre/gl-react +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import { Surface } from 'gl-react'; +export { Surface }; diff --git a/types/gl-react-native/tsconfig.json b/types/gl-react-native/tsconfig.json new file mode 100644 index 0000000000..9c4d38ca44 --- /dev/null +++ b/types/gl-react-native/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + } +} diff --git a/types/gl-react-native/tslint.json b/types/gl-react-native/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/gl-react-native/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/gl-react/index.d.ts b/types/gl-react/index.d.ts new file mode 100644 index 0000000000..e16b0d887c --- /dev/null +++ b/types/gl-react/index.d.ts @@ -0,0 +1,218 @@ +// Type definitions for gl-react 3.15 +// Project: https://github.com/gre/gl-react +// Definitions by: Jussi Kinnula +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import * as React from 'react'; + +export type Vec2 = [number, number]; +export type Vec4 = [number, number, number, number]; + +export interface BusProps { + children?: any; + uniform?: string; + index: number; +} + +export class Bus extends React.Component { + id: number; + context: { glParent: Surface | Node, glSurface: Surface }; + dependents: Array; + glNode?: Node; + glBusRootNode: any; + + static defaultProps: BusProps; + static contextTypes: { glParent: any, glSurface: any }; + static childContextTypes: { glParent: any }; + + getChildContext(): { glParent: Bus }; + getGLRenderableNode(): Node; + getGLRenderableContent(): any; + getGLName(): string; + getGLShortName(): string; + capture(x?: number, y?: number, w?: number, h?: number): any[]; + onRef: (ref: any) => void; + redraw: () => void; +} + +export type connectSize = (GLComponent: any) => any; + +export interface SurfaceProps { + children?: any; + style?: any; + preload?: any[]; + visitor?: Visitor; + + onLoad?: () => void; + onLoadError?: (e: Error) => void; + onContextLost?: () => void; + onContextRestored?: () => void; +} + +export interface SurfaceState { + ready: boolean; + rebootId: number; + debug: boolean; +} + +export class Surface extends React.Component { + props: SurfaceProps; + state: SurfaceState; + id: number; + gl: WebGLRenderingContext; + RenderLessElement: any; + root: Node; + + mapRenderableContent(inst: any): any; + getVisitors(): Visitor[]; + getGLSize(): [number, number]; + getGLName(): string; + getGLShortName(): string; + captureAsDataURL(...args: any[]): string; + captureAsBlob(...args: any[]): Promise; + capture(x?: number, y?: number, w?: number, h?: number): any[]; + redraw(): void; + flush(): void; + getEmptyTexture(): WebGLTexture; + glIsAvailable(): boolean; + rebootForDebug(): void; +} + +export type createSurface = ( + GLView: any, + RenderLessElement: any, + mapRenderableContent: any, + requestFrame: (callback: (time: number) => void) => number, + cancelFrame: (id: number) => void +) => Surface; + +export type listSurfaces = () => Surface[]; + +export function GLSL(strings: TemplateStringsArray, ...values: any[]): string; + +export interface LinearCopyProps { + children?: any; +} + +export class LinearCopy extends React.Component { + getNodeRef(): Node; +} + +export interface NearestCopyProps { + children?: any; +} + +export class NearestCopy extends React.Component { + getNodeRef(): Node; +} + +export interface SurfaceContext { + glParent: Node | Surface | Bus; + glSurface: Surface; + glSizable: { + getGLSize: () => [number, number]; + }; +} + +export interface Framebuffer { + handle: WebGLFramebuffer; + color: WebGLTexture; + bind: () => void; + dispose: () => void; + syncSize: (w: number, h: number) => void; +} + +export interface NodeProps { + shader: ShaderIdentifier | ShaderDefinition; + uniformsOptions?: any; + uniforms: { [key: string]: any }; + ignoreUnusedUniforms?: string[] | boolean; + sync?: boolean; + width?: number; + height?: number; + children?: any; + backbuffering?: boolean; + blendFunc?: { + src: () => void; + dst: () => void; + }; + clear?: { + color: Vec4; + }; + + onDraw?: () => void; +} + +export class Node extends React.Component { + drawProps: NodeProps; + context: SurfaceContext; + framebuffer?: Framebuffer; + backbuffer?: Framebuffer; + capturePixelsArray?: Uint8Array; + id: number; + uniformsBus: { + [key: string]: Array; + }; + dependencies: Array; + dependents: Array; +} + +export interface ShaderIdentifier { + type: string; + id: string; +} + +export interface ShaderDefinition { + frag: string; + vert?: string; +} + +export interface ShaderInfo { + frag: string; + vert: string; +} + +export interface ShadersSheet { + [key: string]: ShaderIdentifier; +} + +export namespace Shaders { + function create(shaders: { [key: string]: ShaderDefinition }): ShadersSheet; + function getName(shaderIdentifier: ShaderIdentifier): string; + function getShortName(shaderIdentifier: ShaderIdentifier): string; + function get(shaderIdentifier: ShaderIdentifier): ShaderInfo; +} + +export namespace Uniform { + const Backbuffer: string; + function backbufferFrom(node: Node | Bus): { type: string, node: Node | Bus }; + const Resolution: string; + function textureSize(obj: any): { type: string, obj: any }; + function textureSizeRatio(obj: any): { type: string, obj: any, ratio: boolean }; +} + +export class Visitor { + onSurfaceMount(surface: Surface): void; + onSurfaceUnmount(surface: Surface): void; + onSurfaceGLContextChange(surface: Surface, gl?: WebGLRenderingContext): void; + onSurfaceDrawSkipped(surface: Surface): void; + onSurfaceDrawStart(surface: Surface): void; + onSurfaceDrawError(e: Error): boolean; + onSurfaceDrawEnd(surface: Surface): void; + onNodeDrawSkipped(node: Node): void; + onNodeDrawStart(node: Node): void; + onNodeSyncDeps(node: Node, additions: Array, deletions: Array): void; + onNodeDraw(node: Node, preparedUniforms: any[]): void; + onNodeDrawEnd(node: Node): void; +} + +export class VisitorLogger extends Visitor { + groupNestedLvl: number; +} + +export namespace Visitors { + function add(visitor: Visitor): void; + function remove(visitor: Visitor): void; + function get(): Visitor[]; +} diff --git a/types/gl-react/package.json b/types/gl-react/package.json new file mode 100644 index 0000000000..e6696d08e7 --- /dev/null +++ b/types/gl-react/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "csstype": "^2.2.0" + } +} diff --git a/types/gl-react/tsconfig.json b/types/gl-react/tsconfig.json new file mode 100644 index 0000000000..9c4d38ca44 --- /dev/null +++ b/types/gl-react/tsconfig.json @@ -0,0 +1,24 @@ +{ + "files": [ + "index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + } +} diff --git a/types/gl-react/tslint.json b/types/gl-react/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/gl-react/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 5a4977867de129c68784579b7797e9e7386df2e4 Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 6 Nov 2018 15:47:43 +0100 Subject: [PATCH 175/213] Revert name change in another package --- types/react-infinite-scroll-component/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-infinite-scroll-component/index.d.ts b/types/react-infinite-scroll-component/index.d.ts index d7fdc11ddc..4380c2f11a 100644 --- a/types/react-infinite-scroll-component/index.d.ts +++ b/types/react-infinite-scroll-component/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for react-infinite-scroll-component 4.2 // Project: https://github.com/ankeetmaini/react-infinite-scroll-component#readme // Definitions by: Stephanie Roy -// burtek +// Bartosz Dotryw // David Kevork // Joshua R. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 6b022e5baa615180f1772ab3fc48b2a329bed12e Mon Sep 17 00:00:00 2001 From: Bartosz Date: Tue, 6 Nov 2018 15:47:56 +0100 Subject: [PATCH 176/213] Update index.d.ts --- types/expo-localization/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/expo-localization/index.d.ts b/types/expo-localization/index.d.ts index 7db0a9355a..c0b97c9e68 100644 --- a/types/expo-localization/index.d.ts +++ b/types/expo-localization/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for expo-localization 1.0 // Project: https://docs.expo.io/ -// Definitions by: burtek +// Definitions by: Bartosz Dotryw // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface LocalizationProps { From 3fa073fafb8da9461a5863db199082f643e792f6 Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Tue, 6 Nov 2018 23:03:28 +0800 Subject: [PATCH 177/213] add react-blessed typing file --- types/react-blessed/index.d.ts | 29 +++ types/react-blessed/react-blessed-tests.tsx | 192 ++++++++++++++++++++ types/react-blessed/tsconfig.json | 26 +++ types/react-blessed/tslint.json | 7 + 4 files changed, 254 insertions(+) create mode 100644 types/react-blessed/index.d.ts create mode 100644 types/react-blessed/react-blessed-tests.tsx create mode 100644 types/react-blessed/tsconfig.json create mode 100644 types/react-blessed/tslint.json diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts new file mode 100644 index 0000000000..d16016ecef --- /dev/null +++ b/types/react-blessed/index.d.ts @@ -0,0 +1,29 @@ +// Type definitions for react-blessed 0.3.0 +// Project: https://github.com/Yomguithereal/react-blessed +// Definitions by: Century Guo +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare module 'react-blessed' { + import * as React from 'react'; + import * as Blessd from 'blessed'; + import { Widgets, screen } from 'blessed'; + export type Callback = () => void | null | undefined; + export type renderer = ( + c: JSX.Element, s: Widgets.Screen, callback?: Callback, + ) => React.Component | null; + export function render( + c: JSX.Element, s: Widgets.Screen, callback?: Callback + ): React.Component | null; + export function createBlessedRenderer(b: typeof Blessd): renderer; +} + +declare namespace JSX { + interface IntrinsicElements { + 'blessed-progressbar': any, + 'blessed-box': any, + 'blessed-listtable': any, + 'blessed-button': any, + 'blessed-form': any + } +} diff --git a/types/react-blessed/react-blessed-tests.tsx b/types/react-blessed/react-blessed-tests.tsx new file mode 100644 index 0000000000..3c0d6e4ec1 --- /dev/null +++ b/types/react-blessed/react-blessed-tests.tsx @@ -0,0 +1,192 @@ +import * as React from 'react'; +import * as blessed from 'blessed'; +import { render } from 'react-blessed'; + +const { Component } = React; + +/** + * Stylesheet + */ +const stylesheet = { + bordered: { + border: { + type: 'line' + }, + style: { + border: { + fg: 'blue' + } + } + } +}; + +/** + * Top level component. + */ +class Dashboard extends Component { + render() { + return ( + <> + + + + + + + + ); + } +} + +/** + * Log component. + */ +class Log extends Component { + render() { + return ( + + {'Hello'}, {0}, {'World'} + + ); + } +} + +/** + * Request component. + */ +class Request extends Component { + render() { + return ( + + {0} + + ); + } +} + +/** + * Response component. + */ +class Response extends Component { + render() { + return ( + + ); + } +} + +/** + * Jobs component. + */ +class Jobs extends Component { + render() { + return ( + + ); + } +} + +/** + * Progress component. + */ +class Progress extends Component { + state: { + progress: number, + color: string, + } = { + progress: 0, + color: 'blue' + }; + + constructor(props: any) { + super(props); + const interval: NodeJS.Timer = setInterval(() => { + const { progress } = this.state; + if (this.state.progress >= 100) + return clearInterval(interval); + this.setState({ + progress: progress + 1, + }); + }, 50); + } + + render() { + const { progress, color } = this.state; + const label = `Progress - ${progress}%`; + + return ( + this.setState({ + color: 'green' + })} + class={stylesheet.bordered} + filled={progress} + top='60%' + left='60%' + width='40%' + height='10%' + style={{ + bar: { + bg: color + } + }} + /> + ); + } +} + +/** + * Stats component. + */ +class Stats extends Component { + render() { + return ( + + Some stats + + ); + } +} + +/** + * Rendering the screen. + */ +const screen = blessed.screen({ + autoPadding: true, + smartCSR: true, + title: 'react-blessed dashboard' +}); + +screen.key(['escape', 'q', 'C-c'], () => { + return process.exit(0); +}); + +render(, screen); diff --git a/types/react-blessed/tsconfig.json b/types/react-blessed/tsconfig.json new file mode 100644 index 0000000000..4c74e5205e --- /dev/null +++ b/types/react-blessed/tsconfig.json @@ -0,0 +1,26 @@ +{ + "files": [ + "index.d.ts", + "react-blessed-tests.tsx" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "jsx": "react", + "experimentalDecorators": true, + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} \ No newline at end of file diff --git a/types/react-blessed/tslint.json b/types/react-blessed/tslint.json new file mode 100644 index 0000000000..946c3b6691 --- /dev/null +++ b/types/react-blessed/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} From 4ca1d661b9b96978962c366f81ece6c6f1fd2add Mon Sep 17 00:00:00 2001 From: Kapil Sachdeva Date: Tue, 6 Nov 2018 10:22:37 -0600 Subject: [PATCH 178/213] dockerode - remove the formatting (done by vscode) to ease the review --- types/dockerode/index.d.ts | 1980 +++++++++++++++++------------------- 1 file changed, 951 insertions(+), 1029 deletions(-) diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index c0114bbfec..3cea2177c6 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -11,1136 +11,1058 @@ /// -import * as events from "events"; -import * as stream from "stream"; +import * as stream from 'stream'; +import * as events from 'events'; declare namespace Dockerode { - interface Container { - inspect(options: {}, callback: Callback): void; - inspect(callback: Callback): void; - inspect(options?: {}): Promise; - - rename(options: {}, callback: Callback): void; - rename(options: {}): Promise; - - update(options: {}, callback: Callback): void; - update(options: {}): Promise; - - top(options: {}, callback: Callback): void; - top(callback: Callback): void; - top(options?: {}): Promise; - - changes(callback: Callback): void; - changes(): Promise; - - export(callback: Callback): void; - export(): Promise; - - start(options: {}, callback: Callback): void; - start(callback: Callback): void; - start(options?: {}): Promise; - - pause(options: {}, callback: Callback): void; - pause(callback: Callback): void; - pause(options?: {}): Promise; - - unpause(options: {}, callback: Callback): void; - unpause(callback: Callback): void; - unpause(options?: {}): Promise; - - exec(options: {}, callback: Callback): void; - exec(options: {}): Promise; - - commit(options: {}, callback: Callback): void; - commit(callback: Callback): void; - commit(options?: {}): Promise; - - stop(options: {}, callback: Callback): void; - stop(callback: Callback): void; - stop(options?: {}): Promise; - - restart(options: {}, callback: Callback): void; - restart(callback: Callback): void; - restart(options?: {}): Promise; - - kill(options: {}, callback: Callback): void; - kill(callback: Callback): void; - kill(options?: {}): Promise; - - resize(options: {}, callback: Callback): void; - resize(callback: Callback): void; - resize(options?: {}): Promise; - - wait(callback: Callback): void; - wait(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - /** Deprecated since RAPI v1.20 */ - copy(options: {}, callback: Callback): void; - /** Deprecated since RAPI v1.20 */ - copy(callback: Callback): void; - /** Deprecated since RAPI v1.20 */ - copy(options?: {}): Promise; - - getArchive( - options: {}, - callback: Callback - ): void; - getArchive(options: {}): Promise; - - infoArchive(options: {}, callback: Callback): void; - infoArchive(options: {}): Promise; - - /** @param file Filename (will read synchronously), Buffer or stream */ - putArchive( - file: string | Buffer | NodeJS.ReadableStream, - options: {}, - callback: Callback - ): void; - putArchive( - file: string | Buffer | NodeJS.ReadableStream, - options: {} - ): Promise; - - logs( - options: ContainerLogsOptions, - callback: Callback - ): void; - logs(callback: Callback): void; - logs(options?: ContainerLogsOptions): Promise; - - stats(options: {}, callback: Callback): void; - stats(callback: Callback): void; - stats(options?: {}): Promise; - - attach(options: {}, callback: Callback): void; - attach(options: {}): Promise; + interface Container { + inspect(options: {}, callback: Callback): void; + inspect(callback: Callback): void; + inspect(options?: {}): Promise; - modem: any; - id?: string; - } + rename(options: {}, callback: Callback): void; + rename(options: {}): Promise; - interface Image { - inspect(callback: Callback): void; - inspect(): Promise; - - history(callback: Callback): void; - history(): Promise; + update(options: {}, callback: Callback): void; + update(options: {}): Promise; - get(callback: Callback): void; - get(): Promise; - - push(options: {}, callback: Callback): void; - push(callback: Callback): void; - push(options?: {}): Promise; - - tag(options: {}, callback: Callback): void; - tag(callback: Callback): void; - tag(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Volume { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - name?: string; - } - - interface Service { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - update(options: {}, callback: Callback): void; - update(options: {}): Promise; - - modem: any; - id?: string; - } - - interface Task { - inspect(callback: Callback): void; - inspect(): Promise; - - modem: any; - id?: string; - } - - interface Node { - inspect(callback: Callback): void; - inspect(): Promise; - - update(options: {}, callback: Callback): void; - update(callback: Callback): void; - update(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Plugin { - modem: any; - name: string; - remote: any; - - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - privileges(callback: Callback): void; - privileges(): Promise; - - pull(options: {}, callback: Callback): void; - pull(options: {}): Promise; - - enable(options: {}, callback: Callback): void; - enable(callback: Callback): void; - enable(options?: {}): Promise; - - disable(options: {}, callback: Callback): void; - disable(callback: Callback): void; - disable(options?: {}): Promise; - - push(options: {}, callback: Callback): void; - push(callback: Callback): void; - push(options?: {}): Promise; - - configure(options: {}, callback: Callback): void; - configure(callback: Callback): void; - configure(options?: {}): Promise; - - upgrade(auth: any, options: {}, callback: Callback): void; - upgrade(auth: any, callback: Callback): void; - upgrade(auth: any, options?: {}): Promise; - } - - interface Secret { - inspect(callback: Callback): void; - inspect(): Promise; - - update(options: {}, callback: Callback): void; - update(callback: Callback): void; - update(options?: {}): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Network { - inspect(callback: Callback): void; - inspect(): Promise; - - remove(options: {}, callback: Callback): void; - remove(callback: Callback): void; - remove(options?: {}): Promise; - - connect(options: {}, callback: Callback): void; - connect(callback: Callback): void; - connect(options?: {}): Promise; - - disconnect(options: {}, callback: Callback): void; - disconnect(callback: Callback): void; - disconnect(options?: {}): Promise; - - modem: any; - id?: string; - } - - interface Exec { - inspect(callback: Callback): void; - inspect(): Promise; - - start(options: {}, callback: Callback): void; - start(options: {}): Promise; - - resize(options: {}, callback: Callback): void; - resize(options: {}): Promise; - - modem: any; - id?: string; - } - - interface ImageInfo { - Id: string; - ParentId: string; - RepoTags: string[]; - RepoDigests?: string[]; - Created: number; - Size: number; - VirtualSize: number; - Labels: { [label: string]: string }; - } - - interface ContainerInfo { - Id: string; - Names: string[]; - Image: string; - ImageID: string; - Command: string; - Created: number; - Ports: Port[]; - Labels: { [label: string]: string }; - State: string; - Status: string; - HostConfig: { NetworkMode: string }; - NetworkSettings: { Networks: { [networkType: string]: NetworkInfo } }; - } - - interface Port { - IP: string; - PrivatePort: number; - PublicPort: number; - Type: string; - } - - interface NetworkInfo { - IPAMConfig?: any; - Links?: any; - Aliases?: any; - NetworkID: string; - EndpointID: string; - Gateway: string; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - MacAddress: string; - } - - // not complete definition of network inspection - // info which is returned by list / inspect - interface NetworkInspectInfo { - Id: string; - Name: string; - Driver: string; - Created: string; - Scope: string; - EnableIPv6: boolean; - Internal: boolean; - Attachable: boolean; - Ingress: boolean; - } - - interface ContainerInspectInfo { - Id: string; - Created: string; - Path: string; - Args: string[]; - State: { - Status: string; - Running: boolean; - Paused: boolean; - Restarting: boolean; - OOMKilled: boolean; - Dead: boolean; - Pid: number; - ExitCode: number; - Error: string; - StartedAt: string; - FinishedAt: string; - }; - Image: string; - ResolvConfPath: string; - HostnamePath: string; - HostsPath: string; - LogPath: string; - Name: string; - RestartCount: number; - Driver: string; - MountLabel: string; - ProcessLabel: string; - AppArmorProfile: string; - ExecIDs?: any; - HostConfig: HostConfig; - GraphDriver: { - Name: string; - Data: { DeviceId: string; DeviceName: string; DeviceSize: string }; - }; - Mounts: Array<{ - Source: string; - Destination: string; - Mode: string; - RW: boolean; - Propagation: string; + top(options: {}, callback: Callback): void; + top(callback: Callback): void; + top(options?: {}): Promise; + + changes(callback: Callback): void; + changes(): Promise; + + export(callback: Callback): void; + export(): Promise; + + start(options: {}, callback: Callback): void; + start(callback: Callback): void; + start(options?: {}): Promise; + + pause(options: {}, callback: Callback): void; + pause(callback: Callback): void; + pause(options?: {}): Promise; + + unpause(options: {}, callback: Callback): void; + unpause(callback: Callback): void; + unpause(options?: {}): Promise; + + exec(options: {}, callback: Callback): void; + exec(options: {}): Promise; + + commit(options: {}, callback: Callback): void; + commit(callback: Callback): void; + commit(options?: {}): Promise; + + stop(options: {}, callback: Callback): void; + stop(callback: Callback): void; + stop(options?: {}): Promise; + + restart(options: {}, callback: Callback): void; + restart(callback: Callback): void; + restart(options?: {}): Promise; + + kill(options: {}, callback: Callback): void; + kill(callback: Callback): void; + kill(options?: {}): Promise; + + resize(options: {}, callback: Callback): void; + resize(callback: Callback): void; + resize(options?: {}): Promise; + + wait(callback: Callback): void; + wait(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + /** Deprecated since RAPI v1.20 */ + copy(options: {}, callback: Callback): void; + /** Deprecated since RAPI v1.20 */ + copy(callback: Callback): void; + /** Deprecated since RAPI v1.20 */ + copy(options?: {}): Promise; + + getArchive(options: {}, callback: Callback): void; + getArchive(options: {}): Promise; + + infoArchive(options: {}, callback: Callback): void; + infoArchive(options: {}): Promise; + + /** @param file Filename (will read synchronously), Buffer or stream */ + putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}, callback: Callback): void; + putArchive(file: string | Buffer | NodeJS.ReadableStream, options: {}): Promise; + + logs(options: ContainerLogsOptions, callback: Callback): void; + logs(callback: Callback): void; + logs(options?: ContainerLogsOptions): Promise; + + stats(options: {}, callback: Callback): void; + stats(callback: Callback): void; + stats(options?: {}): Promise; + + attach(options: {}, callback: Callback): void; + attach(options: {}): Promise; + + modem: any; + id?: string; + } + + interface Image { + inspect(callback: Callback): void; + inspect(): Promise; + + history(callback: Callback): void; + history(): Promise; + + get(callback: Callback): void; + get(): Promise; + + push(options: {}, callback: Callback): void; + push(callback: Callback): void; + push(options?: {}): Promise; + + tag(options: {}, callback: Callback): void; + tag(callback: Callback): void; + tag(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Volume { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + name?: string; + } + + interface Service { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + update(options: {}, callback: Callback): void; + update(options: {}): Promise; + + modem: any; + id?: string; + } + + interface Task { + inspect(callback: Callback): void; + inspect(): Promise; + + modem: any; + id?: string; + } + + interface Node { + inspect(callback: Callback): void; + inspect(): Promise; + + update(options: {}, callback: Callback): void; + update(callback: Callback): void; + update(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Plugin { + modem: any; + name: string; + remote: any; + + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + privileges(callback: Callback): void; + privileges(): Promise; + + pull(options: {}, callback: Callback): void; + pull(options: {}): Promise; + + enable(options: {}, callback: Callback): void; + enable(callback: Callback): void; + enable(options?: {}): Promise; + + disable(options: {}, callback: Callback): void; + disable(callback: Callback): void; + disable(options?: {}): Promise; + + push(options: {}, callback: Callback): void; + push(callback: Callback): void; + push(options?: {}): Promise; + + configure(options: {}, callback: Callback): void; + configure(callback: Callback): void; + configure(options?: {}): Promise; + + upgrade(auth: any, options: {}, callback: Callback): void; + upgrade(auth: any, callback: Callback): void; + upgrade(auth: any, options?: {}): Promise; + } + + interface Secret { + inspect(callback: Callback): void; + inspect(): Promise; + + update(options: {}, callback: Callback): void; + update(callback: Callback): void; + update(options?: {}): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Network { + inspect(callback: Callback): void; + inspect(): Promise; + + remove(options: {}, callback: Callback): void; + remove(callback: Callback): void; + remove(options?: {}): Promise; + + connect(options: {}, callback: Callback): void; + connect(callback: Callback): void; + connect(options?: {}): Promise; + + disconnect(options: {}, callback: Callback): void; + disconnect(callback: Callback): void; + disconnect(options?: {}): Promise; + + modem: any; + id?: string; + } + + interface Exec { + inspect(callback: Callback): void; + inspect(): Promise; + + start(options: {}, callback: Callback): void; + start(options: {}): Promise; + + resize(options: {}, callback: Callback): void; + resize(options: {}): Promise; + + modem: any; + id?: string; + } + + interface ImageInfo { + Id: string; + ParentId: string; + RepoTags: string[]; + RepoDigests?: string[]; + Created: number; + Size: number; + VirtualSize: number; + Labels: { [label: string]: string }; + } + + interface ContainerInfo { + Id: string; + Names: string[]; + Image: string; + ImageID: string; + Command: string; + Created: number; + Ports: Port[]; + Labels: { [label: string]: string }; + State: string; + Status: string; + HostConfig: { + NetworkMode: string; + }; + NetworkSettings: { + Networks: { [networkType: string]: NetworkInfo } + }; + } + + interface Port { + IP: string; + PrivatePort: number; + PublicPort: number; + Type: string; + } + + interface NetworkInfo { + IPAMConfig?: any; + Links?: any; + Aliases?: any; + NetworkID: string; + EndpointID: string; + Gateway: string; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + MacAddress: string; + } + + // not complete definition of network inspection + // info which is returned by list / inspect + interface NetworkInspectInfo { + Id: string; + Name: string; + Driver: string; + Created: string; + Scope: string; + EnableIPv6: boolean; + Internal: boolean; + Attachable: boolean; + Ingress: boolean; + } + + interface ContainerInspectInfo { + Id: string; + Created: string; + Path: string; + Args: string[]; + State: { + Status: string; + Running: boolean; + Paused: boolean; + Restarting: boolean; + OOMKilled: boolean; + Dead: boolean; + Pid: number; + ExitCode: number; + Error: string; + StartedAt: string; + FinishedAt: string; + }; + Image: string; + ResolvConfPath: string; + HostnamePath: string; + HostsPath: string; + LogPath: string; + Name: string; + RestartCount: number; + Driver: string; + MountLabel: string; + ProcessLabel: string; + AppArmorProfile: string; + ExecIDs?: any; + HostConfig: HostConfig; + GraphDriver: { + Name: string; + Data: { + DeviceId: string; + DeviceName: string; + DeviceSize: string; + } + }; + Mounts: Array<{ + Source: string; + Destination: string; + Mode: string; + RW: boolean; + Propagation: string; + }>; + Config: { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} }; + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + Image: string; + Volumes: { [volume: string]: {} }; + WorkingDir: string; + Entrypoint?: any; + OnBuild?: any; + Labels: { [label: string]: string } + }; + NetworkSettings: { + Bridge: string; + SandboxID: string; + HairpinMode: boolean; + LinkLocalIPv6Address: string; + LinkLocalIPv6PrefixLen: number; + Ports: { + [portAndProtocol: string]: Array<{ + HostIp: string; + HostPort: string; }>; - Config: { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} }; - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - Image: string; - Volumes: { [volume: string]: {} }; - WorkingDir: string; - Entrypoint?: any; - OnBuild?: any; - Labels: { [label: string]: string }; - }; - NetworkSettings: { - Bridge: string; - SandboxID: string; - HairpinMode: boolean; - LinkLocalIPv6Address: string; - LinkLocalIPv6PrefixLen: number; - Ports: { - [portAndProtocol: string]: Array<{ - HostIp: string; - HostPort: string; - }>; - }; - SandboxKey: string; - SecondaryIPAddresses?: any; - SecondaryIPv6Addresses?: any; - EndpointID: string; - Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - MacAddress: string; - Networks: { - [type: string]: { - IPAMConfig?: any; - Links?: any; - Aliases?: any; - NetworkID: string; - EndpointID: string; - Gateway: string; - IPAddress: string; - IPPrefixLen: number; - IPv6Gateway: string; - GlobalIPv6Address: string; - GlobalIPv6PrefixLen: number; - MacAddress: string; - }; - }; - Node?: { - ID: string; - IP: string; - Addr: string; - Name: string; - Cpus: number; - Memory: number; - Labels: any; - }; - }; - } + }; + SandboxKey: string; + SecondaryIPAddresses?: any; + SecondaryIPv6Addresses?: any; + EndpointID: string; + Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + MacAddress: string; + Networks: { + [type: string]: { + IPAMConfig?: any; + Links?: any; + Aliases?: any; + NetworkID: string; + EndpointID: string; + Gateway: string; + IPAddress: string; + IPPrefixLen: number; + IPv6Gateway: string; + GlobalIPv6Address: string; + GlobalIPv6PrefixLen: number; + MacAddress: string; + } + }; + Node?: { + ID: string; + IP: string; + Addr: string; + Name: string; + Cpus: number; + Memory: number; + Labels: any; + } + }; + } - interface HostConfig { - AutoRemove: boolean; - Binds: string[]; - ContainerIDFile: string; - LogConfig: { Type: string; Config: any }; - NetworkMode: string; - PortBindings?: any; - RestartPolicy: { Name: string; MaximumRetryCount: number }; - VolumeDriver: string; - VolumesFrom?: any; - CapAdd?: any; - CapDrop?: any; - Dns: any[]; - DnsOptions: any[]; - DnsSearch: any[]; - ExtraHosts?: any; - IpcMode: string; - Links?: any; - OomScoreAdj: number; - PidMode: string; - Privileged: boolean; - PublishAllPorts: boolean; - ReadonlyRootfs: boolean; - SecurityOpt?: any; - UTSMode: string; - ShmSize: number; - ConsoleSize: number[]; - Isolation: string; - CpuShares: number; - CgroupParent: string; - BlkioWeight: number; - BlkioWeightDevice?: any; - BlkioDeviceReadBps?: any; - BlkioDeviceWriteBps?: any; - BlkioDeviceReadIOps?: any; - BlkioDeviceWriteIOps?: any; - CpuPeriod: number; - CpuQuota: number; - CpusetCpus: string; - CpusetMems: string; - Devices?: any; - DiskQuota: number; - KernelMemory: number; - Memory: number; - MemoryReservation: number; - MemorySwap: number; - MemorySwappiness: number; - OomKillDisable: boolean; - PidsLimit: number; - Ulimits?: any; - } + interface HostConfig { + AutoRemove: boolean; + Binds: string[]; + ContainerIDFile: string; + LogConfig: { + Type: string; + Config: any; + }; + NetworkMode: string; + PortBindings?: any; + RestartPolicy: { + Name: string; + MaximumRetryCount: number; + }; + VolumeDriver: string; + VolumesFrom?: any; + CapAdd?: any; + CapDrop?: any; + Dns: any[]; + DnsOptions: any[]; + DnsSearch: any[]; + ExtraHosts?: any; + IpcMode: string; + Links?: any; + OomScoreAdj: number; + PidMode: string; + Privileged: boolean; + PublishAllPorts: boolean; + ReadonlyRootfs: boolean; + SecurityOpt?: any; + UTSMode: string; + ShmSize: number; + ConsoleSize: number[]; + Isolation: string; + CpuShares: number; + CgroupParent: string; + BlkioWeight: number; + BlkioWeightDevice?: any; + BlkioDeviceReadBps?: any; + BlkioDeviceWriteBps?: any; + BlkioDeviceReadIOps?: any; + BlkioDeviceWriteIOps?: any; + CpuPeriod: number; + CpuQuota: number; + CpusetCpus: string; + CpusetMems: string; + Devices?: any; + DiskQuota: number; + KernelMemory: number; + Memory: number; + MemoryReservation: number; + MemorySwap: number; + MemorySwappiness: number; + OomKillDisable: boolean; + PidsLimit: number; + Ulimits?: any; + } - interface ImageInspectInfo { - Id: string; - RepoTags: string[]; - RepoDigests: string[]; - Parent: string; - Comment: string; - Created: string; - Container: string; - ContainerConfig: { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} }; - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - ArgsEscaped: boolean; - Image: string; - Volumes: { [path: string]: {} }; - WorkingDir: string; - Entrypoint?: any; - OnBuild?: any[]; - Labels: { [label: string]: string }; - }; - DockerVersion: string; - Author: string; - Config: { - Hostname: string; - Domainname: string; - User: string; - AttachStdin: boolean; - AttachStdout: boolean; - AttachStderr: boolean; - ExposedPorts: { [portAndProtocol: string]: {} }; - Tty: boolean; - OpenStdin: boolean; - StdinOnce: boolean; - Env: string[]; - Cmd: string[]; - ArgsEscaped: boolean; - Image: string; - Volumes: { [path: string]: {} }; - WorkingDir: string; - Entrypoint?: any; - OnBuild: any[]; - Labels: { [label: string]: string }; - }; - Architecture: string; - Os: string; - Size: number; - VirtualSize: number; - GraphDriver: { - Name: string; - Data: { DeviceId: string; DeviceName: string; DeviceSize: string }; - }; - } + interface ImageInspectInfo { + Id: string; + RepoTags: string[]; + RepoDigests: string[]; + Parent: string; + Comment: string; + Created: string; + Container: string; + ContainerConfig: + { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} }; + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + ArgsEscaped: boolean; + Image: string; + Volumes: { [path: string]: {} }, + WorkingDir: string; + Entrypoint?: any; + OnBuild?: any[]; + Labels: { [label: string]: string } + }; + DockerVersion: string; + Author: string; + Config: + { + Hostname: string; + Domainname: string; + User: string; + AttachStdin: boolean; + AttachStdout: boolean; + AttachStderr: boolean; + ExposedPorts: { [portAndProtocol: string]: {} } + Tty: boolean; + OpenStdin: boolean; + StdinOnce: boolean; + Env: string[]; + Cmd: string[]; + ArgsEscaped: boolean; + Image: string; + Volumes: { [path: string]: {} }, + WorkingDir: string; + Entrypoint?: any; + OnBuild: any[]; + Labels: { [label: string]: string } + }; + Architecture: string; + Os: string; + Size: number; + VirtualSize: number; + GraphDriver: + { + Name: string; + Data: + { + DeviceId: string; + DeviceName: string; + DeviceSize: string; + } + }; + } - interface PortBinding { - HostIp?: string; - HostPort?: string; - } + interface PortBinding { + HostIp?: string; + HostPort?: string; + } - interface PortMap { - [key: string]: PortBinding[]; - } + interface PortMap { + [key: string]: PortBinding[]; + } - interface RestartPolicy { - Name: string; - MaximumRetryCount?: number; - } + interface RestartPolicy { + Name: string; + MaximumRetryCount?: number; + } type LoggingDriverType = - | "json-file" - | "syslog" - | "journald" - | "gelf" - | "fluentd" - | "awslogs" - | "splunk" - | "etwlogs" - | "none"; + | "json-file" + | "syslog" + | "journald" + | "gelf" + | "fluentd" + | "awslogs" + | "splunk" + | "etwlogs" + | "none"; - interface LogConfig { - Type: LoggingDriverType; - Config?: { [key: string]: string }; - } + interface LogConfig { + Type: LoggingDriverType; + Config?: { [key: string]: string }; + } - interface DeviceMapping { - PathOnHost: string; - PathinContainer: string; - CgroupPermissions: string; - } + interface DeviceMapping { + PathOnHost: string; + PathinContainer: string; + CgroupPermissions: string; + } - interface ContainerCreateOptions { - name?: string; - Hostname?: string; - Domainname?: string; - User?: string; - AttachStdin?: boolean; - AttachStdout?: boolean; - AttachStderr?: boolean; - Tty?: boolean; - OpenStdin?: boolean; - StdinOnce?: boolean; - Env?: string[]; - Cmd?: string[]; - Entrypoint?: string; - Image?: string; - Labels?: { [label: string]: string }; - Volumes?: { [volume: string]: {} }; - WorkingDir?: string; - NetworkDisabled?: boolean; - MacAddress?: boolean; - ExposedPorts?: { [port: string]: {} }; - StopSignal?: string; - HostConfig?: { - AutoRemove?: boolean; - Binds?: string[]; - Links?: string[]; - Memory?: number; - MemorySwap?: number; - MemoryReservation?: number; - KernelMemory?: number; - CpuPercent?: number; - CpuShares?: number; - CpuPeriod?: number; - CpuQuota?: number; - CpusetMems?: string; - MaximumIOps?: number; - MaxmimumIOBps?: number; - BlkioWeightDevice?: Array<{}>; - BlkioDeviceReadBps?: Array<{}>; - BlkioDeviceReadIOps?: Array<{}>; - BlkioDeviceWriteBps?: Array<{}>; - BlkioDeviceWriteIOps?: Array<{}>; - MemorySwappiness?: number; - OomKillDisable?: boolean; - OomScoreAdj?: number; - PidMode?: string; - PidsLimit?: number; - PortBindings?: PortMap; - PublishAllPorts?: boolean; - Privileged?: boolean; - ReadonlyRootfs?: boolean; - Dns?: string[]; - DnsOptions?: string[]; - DnsSearch?: string[]; - ExtraHosts?: any; - VolumesFrom?: string[]; - CapAdd?: string[]; - CapDrop?: string[]; - GroupAdd?: string[]; - RestartPolicy?: RestartPolicy; - NetworkMode?: string; - Devices?: DeviceMapping[]; - Sysctls?: { [index: string]: string }; - Ulimits?: Array<{}>; - LogConfig?: LogConfig; - SecurityOpt?: { [index: string]: any }; - CgroupParent?: string; - VolumeDriver?: string; - ShmSize?: number; - }; - NetworkingConfig?: { - EndpointsConfig?: { - [index: string]: any; - isolated_nw?: { - [index: string]: any; - IPAMConfig?: { - IPv4Address?: string; - IPv6Adress?: string; - LinkLocalIPs?: string[]; - }; - Links?: string[]; - Aliases?: string[]; - }; - }; - }; - } + interface ContainerCreateOptions { + name?: string; + Hostname?: string; + Domainname?: string; + User?: string; + AttachStdin?: boolean; + AttachStdout?: boolean; + AttachStderr?: boolean; + Tty?: boolean; + OpenStdin?: boolean; + StdinOnce?: boolean; + Env?: string[]; + Cmd?: string[]; + Entrypoint?: string; + Image?: string; + Labels?: { [label: string]: string }; + Volumes?: { [volume: string]: {} }; + WorkingDir?: string; + NetworkDisabled?: boolean; + MacAddress?: boolean; + ExposedPorts?: { [port: string]: {} }; + StopSignal?: string; + HostConfig?: { + AutoRemove?: boolean; + Binds?: string[]; + Links?: string[]; + Memory?: number; + MemorySwap?: number; + MemoryReservation?: number; + KernelMemory?: number; + CpuPercent?: number; + CpuShares?: number; + CpuPeriod?: number; + CpuQuota?: number; + CpusetMems?: string; + MaximumIOps?: number; + MaxmimumIOBps?: number; + BlkioWeightDevice?: Array<{}>; + BlkioDeviceReadBps?: Array<{}>; + BlkioDeviceReadIOps?: Array<{}>; + BlkioDeviceWriteBps?: Array<{}>; + BlkioDeviceWriteIOps?: Array<{}>; + MemorySwappiness?: number; + OomKillDisable?: boolean; + OomScoreAdj?: number; + PidMode?: string; + PidsLimit?: number; + PortBindings?: PortMap; + PublishAllPorts?: boolean; + Privileged?: boolean; + ReadonlyRootfs?: boolean; + Dns?: string[]; + DnsOptions?: string[]; + DnsSearch?: string[]; + ExtraHosts?: any; + VolumesFrom?: string[]; + CapAdd?: string[]; + CapDrop?: string[]; + GroupAdd?: string[]; + RestartPolicy?: RestartPolicy; + NetworkMode?: string; + Devices?: DeviceMapping[]; + Sysctls?: { [index: string]: string }; + Ulimits?: Array<{}>; + LogConfig?: LogConfig; + SecurityOpt?: { [index: string]: any }; + CgroupParent?: string; + VolumeDriver?: string; + ShmSize?: number; + }; + NetworkingConfig?: { + EndpointsConfig?: { + [index: string]: any; + isolated_nw?: { + [index: string]: any; + IPAMConfig?: { + IPv4Address?: string; + IPv6Adress?: string; + LinkLocalIPs?: string[]; + } + Links?: string[]; + Aliases?: string[]; + } + } + }; + } - interface KeyObject { - pem: string | Buffer; - passphrase?: string; - } + interface KeyObject { + pem: string | Buffer; + passphrase?: string; + } - interface DockerOptions { - socketPath?: string; - host?: string; - port?: number | string; - ca?: string | string[] | Buffer | Buffer[]; - cert?: string | string[] | Buffer | Buffer[]; - key?: string | string[] | Buffer | Buffer[] | KeyObject[]; - protocol?: "https" | "http"; - timeout?: number; - version?: string; - Promise?: typeof Promise; - } + interface DockerOptions { + socketPath?: string; + host?: string; + port?: number | string; + ca?: string | string[] | Buffer | Buffer[]; + cert?: string | string[] | Buffer | Buffer[]; + key?: string | string[] | Buffer | Buffer[] | KeyObject[]; + protocol?: "https" | "http"; + timeout?: number; + version?: string; + Promise?: typeof Promise; + } - interface SecretVersion { - Index: number; - } + interface SecretVersion { + Index: number; + } - interface ServiceSpec { - Name: string; - } + interface ServiceSpec { + Name: string; + } - interface SecretInfo { - ID: string; - Version: SecretVersion; - CreatedAt: string; - UpdatedAt?: string; - Spec?: ServiceSpec; - } + interface SecretInfo { + ID: string; + Version: SecretVersion; + CreatedAt: string; + UpdatedAt?: string; + Spec?: ServiceSpec; + } - interface PluginInfo { - Id?: string; - Name: string; - Enabled: boolean; - Settings: PluginSettings; - PluginReference?: string; - Config: PluginConfig; - } + interface PluginInfo { + Id?: string; + Name: string; + Enabled: boolean; + Settings: PluginSettings; + PluginReference?: string; + Config: PluginConfig; + } - type PluginInspectInfo = PluginInfo; + type PluginInspectInfo = PluginInfo; - interface PluginSettings { - Mounts: PluginMount[]; - Env: string[]; - Args: string[]; - Devices: PluginDevice[]; - } + interface PluginSettings { + Mounts: PluginMount[]; + Env: string[]; + Args: string[]; + Devices: PluginDevice[]; + } - interface PluginConfig { - Description: string; - Documentation: string; - Interface: any; - Entrypoint: string[]; - WorkDir: string; - User?: User; - Network: Network; - Linux: Linux; - PropagatedMount: string; - Mounts: PluginMount[]; - Env: PluginEnv[]; - Args: Args; - rootfs: any; - } + interface PluginConfig { + Description: string; + Documentation: string; + Interface: any; + Entrypoint: string[]; + WorkDir: string; + User?: User; + Network: Network; + Linux: Linux; + PropagatedMount: string; + Mounts: PluginMount[]; + Env: PluginEnv[]; + Args: Args; + rootfs: any; + } - interface Interface { - Types: PluginInterfaceType[]; - Socket: string; - } + interface Interface { + Types: PluginInterfaceType[]; + Socket: string; + } - interface PluginInterfaceType { - Prefix: string; - Capability: string; - Version: string; - } + interface PluginInterfaceType { + Prefix: string; + Capability: string; + Version: string; + } - interface PluginMount { - Name: string; - Description: string; - Settable: string[]; - Source: string; - Destination: string; - Type: string; - Options: string[]; - } + interface PluginMount { + Name: string; + Description: string; + Settable: string[]; + Source: string; + Destination: string; + Type: string; + Options: string[]; + } - interface Linux { - Capabilities: string[]; - AllowAllDevices: boolean; - Devices: PluginDevice[]; - } + interface Linux { + Capabilities: string[]; + AllowAllDevices: boolean; + Devices: PluginDevice[]; + } - interface PluginDevice { - Name: string; - Description: string; - Settable: string[]; - Path: string; - } + interface PluginDevice { + Name: string; + Description: string; + Settable: string[]; + Path: string; + } - interface Network { - Type: string; - } + interface Network { + Type: string; + } - interface PluginEnv { - Name: string; - Description: string; - Settable: string[]; - Value: string; - } + interface PluginEnv { + Name: string; + Description: string; + Settable: string[]; + Value: string; + } - interface Args { - Name: string; - Description: string; - Settable: string[]; - Value: string; - } + interface Args { + Name: string; + Description: string; + Settable: string[]; + Value: string; + } - interface User { - UID: number; - GID: number; - } + interface User { + UID: number; + GID: number; + } - interface ImageRemoveInfo { - Untagged: string; - Deleted: string; - } + interface ImageRemoveInfo { + Untagged: string; + Deleted: string; + } - interface PruneImagesInfo { - ImagesDeleted: ImageRemoveInfo[]; - SpaceReclaimed: number; - } + interface PruneImagesInfo { + ImagesDeleted: ImageRemoveInfo[]; + SpaceReclaimed: number; + } - interface PruneVolumesInfo { - VolumesDeleted: string[]; - SpaceReclaimed: number; - } + interface PruneVolumesInfo { + VolumesDeleted: string[]; + SpaceReclaimed: number; + } - interface PruneContainersInfo { - ContainersDeleted: string[]; - SpaceReclaimed: number; - } + interface PruneContainersInfo { + ContainersDeleted: string[]; + SpaceReclaimed: number; + } - interface PruneNetworksInfo { - NetworksDeleted: string[]; - } + interface PruneNetworksInfo { + NetworksDeleted: string[]; + } - interface ContainerLogsOptions { - stdout?: boolean; - stderr?: boolean; - follow?: boolean; - since?: number; - details?: boolean; - tail?: number; - timestamps?: boolean; - } + interface ContainerLogsOptions { + stdout?: boolean; + stderr?: boolean; + follow?: boolean; + since?: number; + details?: boolean; + tail?: number; + timestamps?: boolean; + } - interface ImageBuildContext { - context: string; - src: string[]; - } + interface ImageBuildContext { + context: string; + src: string[]; + } - interface DockerVersion { + interface DockerVersion { + ApiVersion: string; + Arch: string; + BuildTime: Date; + Components: Array<{ + Details: { ApiVersion: string; Arch: string; - BuildTime: Date; - Components: Array<{ - Details: { - ApiVersion: string; - Arch: string; - BuilTime: Date; - Experimental: string; - GitCommit: string; - GoVersion: string; - KernelVersion: string; - Os: string; - }; - Name: string; - Version: string; - }>; + BuilTime: Date; + Experimental: string; GitCommit: string; GoVersion: string; KernelVersion: string; - MinAPIVersion: string; Os: string; - Platform: { Name: string }; - Version: string; - } + }; + Name: string; + Version: string; + }>; + GitCommit: string; + GoVersion: string; + KernelVersion: string; + MinAPIVersion: string; + Os: string; + Platform: { + Name: string; + }; + Version: string; + } } type Callback = (error?: any, result?: T) => void; declare class Dockerode { - constructor(options?: Dockerode.DockerOptions); + constructor(options?: Dockerode.DockerOptions); - createContainer( - options: Dockerode.ContainerCreateOptions, - callback: Callback - ): void; - createContainer( - options: Dockerode.ContainerCreateOptions - ): Promise; + createContainer(options: Dockerode.ContainerCreateOptions, callback: Callback): void; + createContainer(options: Dockerode.ContainerCreateOptions): Promise; - createImage(options: {}, callback: Callback): void; - createImage( - auth: any, - options: {}, - callback: Callback - ): void; - createImage(options: {}): Promise; - createImage(auth: any, options: {}): Promise; + createImage(options: {}, callback: Callback): void; + createImage(auth: any, options: {}, callback: Callback): void; + createImage(options: {}): Promise; + createImage(auth: any, options: {}): Promise; - loadImage( - file: string | NodeJS.ReadableStream, - options: {}, - callback: Callback - ): void; - loadImage( - file: string | NodeJS.ReadableStream, - callback: Callback - ): void; - loadImage( - file: string | NodeJS.ReadableStream, - options?: {} - ): Promise; + loadImage(file: string | NodeJS.ReadableStream, options: {}, callback: Callback): void; + loadImage(file: string | NodeJS.ReadableStream, callback: Callback): void; + loadImage(file: string | NodeJS.ReadableStream, options?: {}): Promise; - importImage( - file: string | NodeJS.ReadableStream, - options: {}, - callback: Callback - ): void; - importImage( - file: string | NodeJS.ReadableStream, - callback: Callback - ): void; - importImage( - file: string | NodeJS.ReadableStream, - options?: {} - ): Promise; + importImage(file: string | NodeJS.ReadableStream, options: {}, callback: Callback): void; + importImage(file: string | NodeJS.ReadableStream, callback: Callback): void; + importImage(file: string | NodeJS.ReadableStream, options?: {}): Promise; - checkAuth(options: any, callback: Callback): void; - checkAuth(options: any): Promise; + checkAuth(options: any, callback: Callback): void; + checkAuth(options: any): Promise; - buildImage( - file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, - options: {}, - callback: Callback - ): void; - buildImage( - file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, - callback: Callback - ): void; - buildImage( - file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, - options?: {} - ): Promise; + buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options: {}, callback: Callback): void; + buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, callback: Callback): void; + buildImage(file: string | NodeJS.ReadableStream | Dockerode.ImageBuildContext, options?: {}): Promise; - getContainer(id: string): Dockerode.Container; + getContainer(id: string): Dockerode.Container; - getImage(name: string): Dockerode.Image; + getImage(name: string): Dockerode.Image; - getVolume(name: string): Dockerode.Volume; + getVolume(name: string): Dockerode.Volume; - getPlugin(name: string, remote: any): Dockerode.Plugin; + getPlugin(name: string, remote: any): Dockerode.Plugin; - getService(id: string): Dockerode.Service; + getService(id: string): Dockerode.Service; - getTask(id: string): Dockerode.Task; + getTask(id: string): Dockerode.Task; - getNode(id: string): Dockerode.Node; + getNode(id: string): Dockerode.Node; - getNetwork(id: string): Dockerode.Network; + getNetwork(id: string): Dockerode.Network; - getSecret(id: string): Dockerode.Secret; + getSecret(id: string): Dockerode.Secret; - getExec(id: string): Dockerode.Exec; + getExec(id: string): Dockerode.Exec; - listContainers( - options: {}, - callback: Callback - ): void; - listContainers(callback: Callback): void; - listContainers(options?: {}): Promise; + listContainers(options: {}, callback: Callback): void; + listContainers(callback: Callback): void; + listContainers(options?: {}): Promise; - listImages(options: {}, callback: Callback): void; - listImages(callback: Callback): void; - listImages(options?: {}): Promise; + listImages(options: {}, callback: Callback): void; + listImages(callback: Callback): void; + listImages(options?: {}): Promise; - listServices(options: {}, callback: Callback): void; - listServices(callback: Callback): void; - listServices(options?: {}): Promise; + listServices(options: {}, callback: Callback): void; + listServices(callback: Callback): void; + listServices(options?: {}): Promise; - listNodes(options: {}, callback: Callback): void; - listNodes(callback: Callback): void; - listNodes(options?: {}): Promise; + listNodes(options: {}, callback: Callback): void; + listNodes(callback: Callback): void; + listNodes(options?: {}): Promise; - listTasks(options: {}, callback: Callback): void; - listTasks(callback: Callback): void; - listTasks(options?: {}): Promise; + listTasks(options: {}, callback: Callback): void; + listTasks(callback: Callback): void; + listTasks(options?: {}): Promise; - listSecrets(options: {}, callback: Callback): void; - listSecrets(callback: Callback): void; - listSecrets(options?: {}): Promise; + listSecrets(options: {}, callback: Callback): void; + listSecrets(callback: Callback): void; + listSecrets(options?: {}): Promise; - listPlugins(options: {}, callback: Callback): void; - listPlugins(callback: Callback): void; - listPlugins(options?: {}): Promise; + listPlugins(options: {}, callback: Callback): void; + listPlugins(callback: Callback): void; + listPlugins(options?: {}): Promise; - listVolumes(options: {}, callback: Callback): void; - listVolumes(callback: Callback): void; - listVolumes(options?: {}): Promise; + listVolumes(options: {}, callback: Callback): void; + listVolumes(callback: Callback): void; + listVolumes(options?: {}): Promise; - listNetworks(options: {}, callback: Callback): void; - listNetworks(callback: Callback): void; - listNetworks(options?: {}): Promise; + listNetworks(options: {}, callback: Callback): void; + listNetworks(callback: Callback): void; + listNetworks(options?: {}): Promise; - createSecret(options: {}, callback: Callback): void; - createSecret(options: {}): Promise; + createSecret(options: {}, callback: Callback): void; + createSecret(options: {}): Promise; - createPlugin(options: {}, callback: Callback): void; - createPlugin(options: {}): Promise; + createPlugin(options: {}, callback: Callback): void; + createPlugin(options: {}): Promise; - createVolume(options: {}, callback: Callback): void; - createVolume(options: {}): Promise; + createVolume(options: {}, callback: Callback): void; + createVolume(options: {}): Promise; - createService(options: {}, callback: Callback): void; - createService(options: {}): Promise; + createService(options: {}, callback: Callback): void; + createService(options: {}): Promise; - createNetwork(options: {}, callback: Callback): void; - createNetwork(options: {}): Promise; + createNetwork(options: {}, callback: Callback): void; + createNetwork(options: {}): Promise; - searchImages(options: {}, callback: Callback): void; - searchImages(options: {}): Promise; + searchImages(options: {}, callback: Callback): void; + searchImages(options: {}): Promise; - pruneImages( - options: {}, - callback: Callback - ): void; - pruneImages(callback: Callback): void; - pruneImages(options?: {}): Promise; + pruneImages(options: {}, callback: Callback): void; + pruneImages(callback: Callback): void; + pruneImages(options?: {}): Promise; - pruneContainers( - options: {}, - callback: Callback - ): void; - pruneContainers(callback: Callback): void; - pruneContainers(options?: {}): Promise; + pruneContainers(options: {}, callback: Callback): void; + pruneContainers(callback: Callback): void; + pruneContainers(options?: {}): Promise; - pruneVolumes( - options: {}, - callback: Callback - ): void; - pruneVolumes(callback: Callback): void; - pruneVolumes(options?: {}): Promise; + pruneVolumes(options: {}, callback: Callback): void; + pruneVolumes(callback: Callback): void; + pruneVolumes(options?: {}): Promise; - pruneNetworks( - options: {}, - callback: Callback - ): void; - pruneNetworks(callback: Callback): void; - pruneNetworks(options?: {}): Promise; + pruneNetworks(options: {}, callback: Callback): void; + pruneNetworks(callback: Callback): void; + pruneNetworks(options?: {}): Promise; - info(callback: Callback): void; - info(): Promise; + info(callback: Callback): void; + info(): Promise; - df(callback: Callback): void; - df(): Promise; + df(callback: Callback): void; + df(): Promise; - version(callback: Callback): void; - version(): Promise; + version(callback: Callback): void; + version(): Promise; - ping(callback: Callback): void; - ping(): Promise; + ping(callback: Callback): void; + ping(): Promise; - getEvents(options: {}, callback: Callback): void; - getEvents(callback: Callback): void; - getEvents(options?: {}): Promise; + getEvents(options: {}, callback: Callback): void; + getEvents(callback: Callback): void; + getEvents(options?: {}): Promise; - pull( - repoTag: string, - options: {}, - callback: Callback, - auth?: {} - ): Dockerode.Image; - pull(repoTag: string, options: {}, auth?: {}): Promise; + pull(repoTag: string, options: {}, callback: Callback, auth?: {}): Dockerode.Image; + pull(repoTag: string, options: {}, auth?: {}): Promise; - run( - image: string, - cmd: string[], - outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], - createOptions: {}, - startOptions: {}, - callback: Callback - ): events.EventEmitter; - run( - image: string, - cmd: string[], - outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], - startOptions: {}, - callback: Callback - ): events.EventEmitter; - run( - image: string, - cmd: string[], - outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], - callback: Callback - ): events.EventEmitter; - run( - image: string, - cmd: string[], - outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], - createOptions: {}, - callback: Callback - ): events.EventEmitter; - run( - image: string, - cmd: string[], - outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], - createOptions?: {}, - startOptions?: {} - ): Promise; + run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions: {}, startOptions: {}, callback: Callback): events.EventEmitter; + run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], startOptions: {}, callback: Callback): events.EventEmitter; + run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], callback: Callback): events.EventEmitter; + run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions: {}, callback: Callback): events.EventEmitter; + run(image: string, cmd: string[], outputStream: NodeJS.WritableStream | NodeJS.WritableStream[], createOptions?: {}, startOptions?: {}): Promise; - swarmInit(options: {}, callback: Callback): void; - swarmInit(options: {}): Promise; + swarmInit(options: {}, callback: Callback): void; + swarmInit(options: {}): Promise; - swarmJoin(options: {}, callback: Callback): void; - swarmJoin(options: {}): Promise; + swarmJoin(options: {}, callback: Callback): void; + swarmJoin(options: {}): Promise; - swarmLeave(options: {}, callback: Callback): void; - swarmLeave(options: {}): Promise; + swarmLeave(options: {}, callback: Callback): void; + swarmLeave(options: {}): Promise; - swarmUpdate(options: {}, callback: Callback): void; - swarmUpdate(options: {}): Promise; + swarmUpdate(options: {}, callback: Callback): void; + swarmUpdate(options: {}): Promise; - swarmInspect(callback: Callback): void; - swarmInspect(): Promise; + swarmInspect(callback: Callback): void; + swarmInspect(): Promise; - modem: any; + modem: any; } export = Dockerode; From 2ecb8765a0568c88c044e237d0350160a5d02a7d Mon Sep 17 00:00:00 2001 From: Kapil Sachdeva Date: Tue, 6 Nov 2018 10:29:16 -0600 Subject: [PATCH 179/213] dockerode - add definition for AuthConfig --- types/dockerode/index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index 3cea2177c6..41707948ca 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -587,6 +587,13 @@ declare namespace Dockerode { }; } + interface AuthConfig { + username: string; + password: string; + serveraddress: string; + email?: string; + } + interface PortBinding { HostIp?: string; HostPort?: string; @@ -601,7 +608,7 @@ declare namespace Dockerode { MaximumRetryCount?: number; } - type LoggingDriverType = + type LoggingDriverType = | "json-file" | "syslog" | "journald" From 0030aa60a98442f10306a34da9057acb61fb3ef9 Mon Sep 17 00:00:00 2001 From: Ben Watkins Date: Tue, 6 Nov 2018 11:14:53 -0600 Subject: [PATCH 180/213] Add 'error' event to minio-js types' BucketStream You can find the creation of this event here: https://github.com/minio/minio-js/blob/d18a76ac44c65ed06ca606c91745fa81e20ac3f7/src/main/minio.js#L1342 --- types/minio/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/minio/index.d.ts b/types/minio/index.d.ts index 1bb407529d..e81661c506 100644 --- a/types/minio/index.d.ts +++ b/types/minio/index.d.ts @@ -61,6 +61,7 @@ export interface IncompleteUploadedBucketItem { export interface BucketStream extends Stream { on(event: 'data', listener: (item: T) => void): this; + on(event: 'error', listener: (error: Error) => void): this; } export interface PostPolicyResult { From e721da7ad42e81da39b4ff37e6189be37813a273 Mon Sep 17 00:00:00 2001 From: Dan Dean Date: Tue, 6 Nov 2018 09:36:57 -0800 Subject: [PATCH 181/213] Use correct casing for pojo variable name --- types/storybook__react/storybook__react-tests.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/storybook__react/storybook__react-tests.tsx b/types/storybook__react/storybook__react-tests.tsx index 7b0df4f145..bf7094c580 100644 --- a/types/storybook__react/storybook__react-tests.tsx +++ b/types/storybook__react/storybook__react-tests.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { storiesOf, setAddon, addDecorator, addParameters, configure, getStorybook, RenderFunction, Story, forceReRender, DecoratorParameters, clearDecorators } from '@storybook/react'; const Decorator = (story: RenderFunction) =>
{story()}
; -const Parameters: DecoratorParameters = { parameter: 'foo' }; +const parameters: DecoratorParameters = { parameter: 'foo' }; forceReRender(); @@ -11,11 +11,11 @@ storiesOf('Welcome', module) .addDecorator(Decorator) .add('to Storybook', () =>
) .add('to Storybook as Array', () => [
,
]) - .add('and a story with additional parameters', () =>
, Parameters); + .add('and a story with additional parameters', () =>
, parameters); // global addDecorator addDecorator(Decorator); -addParameters(Parameters); +addParameters(parameters); clearDecorators(); // setAddon @@ -34,7 +34,7 @@ storiesOf('withAnyAddon', module) .addWithSideEffect('more', () =>
) .add('another story', () =>
) .add('to Storybook as Array', () => [
,
]) - .add('and a story with additional parameters', () =>
, Parameters) + .add('and a story with additional parameters', () =>
, parameters) .addWithSideEffect('even more', () =>
); // configure From 19e189194f8d25bf276c4fe4bc0b3c72d2ebca03 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 10:32:20 -0800 Subject: [PATCH 182/213] paho-mqtt: Remove unnecessary module.d.ts (#29898) --- types/paho-mqtt/index.d.ts | 6 +++--- types/paho-mqtt/module.d.ts | 10 ---------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 types/paho-mqtt/module.d.ts diff --git a/types/paho-mqtt/index.d.ts b/types/paho-mqtt/index.d.ts index fed67ff262..b1fac43793 100644 --- a/types/paho-mqtt/index.d.ts +++ b/types/paho-mqtt/index.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 -/// +export = Paho.MQTT; -declare namespace Paho { +declare global { /** * Send and receive messages using web browsers. *

@@ -40,7 +40,7 @@ declare namespace Paho { * an error with any parameter. *

*/ - namespace MQTT { + namespace Paho.MQTT { /** * The Quality of Service used to deliver a message. *

diff --git a/types/paho-mqtt/module.d.ts b/types/paho-mqtt/module.d.ts deleted file mode 100644 index 8ab421779f..0000000000 --- a/types/paho-mqtt/module.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for paho-mqtt 1.0 -// Project: https://github.com/eclipse/paho.mqtt.javascript#readme -// Definitions by: Alex Mikhalev -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare module 'paho-mqtt' { - export = Paho.MQTT; -} From a306dd5df63909fe81d22445a013152fa757b6f6 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 10:53:32 -0800 Subject: [PATCH 183/213] winston-syslog: Requires ts2.2 (#30292) --- types/winston-syslog/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/winston-syslog/index.d.ts b/types/winston-syslog/index.d.ts index b0409ad4c4..c868ef5abc 100644 --- a/types/winston-syslog/index.d.ts +++ b/types/winston-syslog/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/winstonjs/winston-syslog // Definitions by: Chris Barth , Felix Hochgruber // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 import * as Transport from 'winston-transport'; import * as dgram from 'dgram'; From 46a147c34879f4242fd1d48a772349e914859e05 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 10:53:41 -0800 Subject: [PATCH 184/213] tiny-secp256k1: Depends on --lib es6 (#30293) --- types/tiny-secp256k1/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/tiny-secp256k1/tsconfig.json b/types/tiny-secp256k1/tsconfig.json index 377e6d639c..db31e22d15 100644 --- a/types/tiny-secp256k1/tsconfig.json +++ b/types/tiny-secp256k1/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es5" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, From 1e9455261662f6b501d02a4f657eb389551b3abc Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 11:01:27 -0800 Subject: [PATCH 185/213] jsdom: Add no-unnecessary-type-assertion disables (#30318) --- types/jsdom/jsdom-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/jsdom/jsdom-tests.ts b/types/jsdom/jsdom-tests.ts index 75ff0605bc..d20232e36f 100644 --- a/types/jsdom/jsdom-tests.ts +++ b/types/jsdom/jsdom-tests.ts @@ -82,6 +82,7 @@ function test_serialize() { dom.serialize() === 'hello'; // Contrast with: + // tslint:disable-next-line no-unnecessary-type-assertion dom.window.document.documentElement!.outerHTML === 'hello'; } From a3766f8dbe722d49f57180a7e027e64faf3ef3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Jeancolas?= Date: Tue, 6 Nov 2018 14:23:19 -0500 Subject: [PATCH 186/213] koa-qs: Add types definitions --- types/koa-qs/index.d.ts | 15 +++++++++++++++ types/koa-qs/koa-qs-tests.ts | 6 ++++++ types/koa-qs/tsconfig.json | 23 +++++++++++++++++++++++ types/koa-qs/tslint.json | 1 + 4 files changed, 45 insertions(+) create mode 100644 types/koa-qs/index.d.ts create mode 100644 types/koa-qs/koa-qs-tests.ts create mode 100644 types/koa-qs/tsconfig.json create mode 100644 types/koa-qs/tslint.json diff --git a/types/koa-qs/index.d.ts b/types/koa-qs/index.d.ts new file mode 100644 index 0000000000..e69c131408 --- /dev/null +++ b/types/koa-qs/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for koa-qs 2.0 +// Project: https://github.com/koajs/qs#readme +// Definitions by: Rémy Jeancolas +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as koa from 'koa'; + +declare namespace koaQs { + type ParseMode = 'extended'|'strict'|'first'; +} + +declare function koaQs(app: koa, mode?: koaQs.ParseMode): koa; + +export = koaQs; diff --git a/types/koa-qs/koa-qs-tests.ts b/types/koa-qs/koa-qs-tests.ts new file mode 100644 index 0000000000..c0063b757b --- /dev/null +++ b/types/koa-qs/koa-qs-tests.ts @@ -0,0 +1,6 @@ +import koaQs = require('koa-qs'); +import Koa = require('koa'); + +const app = koaQs(new Koa()); + +app.listen(80); diff --git a/types/koa-qs/tsconfig.json b/types/koa-qs/tsconfig.json new file mode 100644 index 0000000000..b5a52f4ccd --- /dev/null +++ b/types/koa-qs/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "koa-qs-tests.ts" + ] +} diff --git a/types/koa-qs/tslint.json b/types/koa-qs/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/koa-qs/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 307a9a01811b20a1e703640928f1db8ddb4d2d25 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 11:26:42 -0800 Subject: [PATCH 187/213] jquery: Add no-unnecessary-type-assertion disables (#30319) --- types/jquery/test/example-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/jquery/test/example-tests.ts b/types/jquery/test/example-tests.ts index 60fbd431bb..7ecb1733a7 100644 --- a/types/jquery/test/example-tests.ts +++ b/types/jquery/test/example-tests.ts @@ -2334,7 +2334,9 @@ function examples() { } function jQuery_contains_0() { + // tslint:disable-next-line no-unnecessary-type-assertion $.contains(document.documentElement!, document.body); // true + // tslint:disable-next-line no-unnecessary-type-assertion $.contains(document.body, document.documentElement!); // false } From 7b7d150cc79be62a3e576a37a56023e020db05ca Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 11:27:11 -0800 Subject: [PATCH 188/213] i18next-browser-language-detector: Remove unnecessary non-null assertion (#30320) --- .../i18next-browser-languagedetector-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts b/types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts index 174a871b9f..eadfcea369 100644 --- a/types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts +++ b/types/i18next-browser-languagedetector/i18next-browser-languagedetector-tests.ts @@ -19,7 +19,7 @@ const options: LngDetector.DetectorOptions = { cookieDomain: "myDomain", // optional htmlTag with lang attribute, the default is: - htmlTag: document.documentElement! + htmlTag: document.documentElement }; i18next.use(LngDetector).init({ From aa8aa4d664390fd67d877884b3c81fccb3108991 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 11:27:26 -0800 Subject: [PATCH 189/213] downloadjs: Add no-unnecessary-type-assertion disable (#30321) --- types/downloadjs/downloadjs-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/downloadjs/downloadjs-tests.ts b/types/downloadjs/downloadjs-tests.ts index da110af46d..c33159d4ec 100644 --- a/types/downloadjs/downloadjs-tests.ts +++ b/types/downloadjs/downloadjs-tests.ts @@ -7,6 +7,7 @@ download(new Blob(['hello world']), 'dlTextBlob.txt', 'text/plain'); download('/robots.txt'); +// tslint:disable-next-line no-unnecessary-type-assertion download(document.documentElement!.outerHTML, 'dlHTML.html', 'text/html'); download(new Blob(['hello world'.bold()]), 'dlHtmlBlob.html', 'text/html'); download('/diff6.png'); From 9c1a9e6b462c7dfc530b40af430061b4989956ef Mon Sep 17 00:00:00 2001 From: Mitchell Grice Date: Wed, 7 Nov 2018 09:10:03 +1000 Subject: [PATCH 190/213] is: update all environment functions --- types/is/index.d.ts | 51 +++++++++++++++++++++++++++++++------------- types/is/is-tests.ts | 44 +++++++++++++++++++++++++++++++++----- 2 files changed, 75 insertions(+), 20 deletions(-) diff --git a/types/is/index.d.ts b/types/is/index.d.ts index adb4f7d43a..9129f7d664 100644 --- a/types/is/index.d.ts +++ b/types/is/index.d.ts @@ -1,8 +1,10 @@ // Type definitions for is.js // Project: http://arasatasaygin.github.io/is.js/ -// Definitions by: Rodrigo Cabral +// Definitions by: Rodrigo Cabral , Mitchell Grice // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +type EnvironmentVersionRange = number | string; + interface IsStatic { //#region Type checks @@ -367,34 +369,45 @@ interface IsStatic { /** * Checks if current browser is ie - * @parm value Optional version number of browser + * @parm value Optional version range of browser */ - ie(value?: number): boolean; - - /** - * Checks if current browser is edge. - */ - edge(): boolean; + ie(range?: EnvironmentVersionRange): boolean; /** * Checks if current browser is chrome. + * @parm value Optional version range of browser */ - chrome(): boolean; + chrome(range?: EnvironmentVersionRange): boolean; /** * Checks if current browser is firefox. + * @parm value Optional version range of browser */ - firefox(): boolean; + firefox(range?: EnvironmentVersionRange): boolean; + + /** + * Checks if current browser is edge. + * @parm value Optional version range of browser + */ + edge(range?: EnvironmentVersionRange): boolean; /** * Checks if current browser is opera. + * @parm value Optional version range of browser */ - opera(): boolean; + opera(range?: EnvironmentVersionRange): boolean; /** * Checks if current browser is safari. + * @parm value Optional version range of browser */ - safari(): boolean; + safari(range?: EnvironmentVersionRange): boolean; + + /** + * Checks if current browser is phantom. + * @parm value Optional version range of browser + */ + phantom(range?: EnvironmentVersionRange): boolean; /** * Checks if current device has ios. @@ -403,18 +416,21 @@ interface IsStatic { /** * Checks if current device is iPhone. + * @parm value Optional version range of device */ - iphone(): boolean; + iphone(range?: EnvironmentVersionRange): boolean; /** * Checks if current device is iPad. + * @parm value Optional version range of device */ - ipad(): boolean; + ipad(range?: EnvironmentVersionRange): boolean; /** * Checks if current device is iPod. + * @parm value Optional version range of device */ - ipod(): boolean; + ipod(range?: EnvironmentVersionRange): boolean; /** * Checks if current device has Android. @@ -486,6 +502,11 @@ interface IsStatic { */ offline(): boolean; + /** + * Checks if current device supports touch. + */ + touchDevice(): boolean; + //#endregion //#region Time checks diff --git a/types/is/is-tests.ts b/types/is/is-tests.ts index b710bd0db0..6f27fd4b7b 100644 --- a/types/is/is-tests.ts +++ b/types/is/is-tests.ts @@ -446,35 +446,67 @@ is.all.sorted([[1, 2], [5, 4]]); //#region Environment checks is.ie(); -is.ie(6); is.not.ie(); - -is.edge(); -is.not.edge(); +is.ie(10); +is.ie('>=10'); +is.not.ie('<9'); is.chrome(); is.not.chrome(); +is.chrome(50); +is.chrome('>=40'); +is.not.chrome('<30'); is.firefox(); is.not.firefox(); +is.firefox(41); +is.firefox('>=40'); +is.not.firefox('<30'); + +is.edge(); +is.not.edge(); +is.edge(13); +is.edge('>=12'); +is.not.edge('<13'); is.opera(); is.not.opera(); +is.opera(36); +is.opera('>=35'); +is.not.opera('<20'); is.safari(); is.not.safari(); +is.safari(9); +is.safari('>=8'); +is.not.safari('<7'); + +is.phantom(); +is.not.phantom(); +is.phantom(2); +is.phantom('>=1'); +is.not.phantom('<2'); is.ios(); is.not.ios(); is.iphone(); is.not.iphone(); +is.iphone(9); +is.iphone('>=7'); +is.not.iphone('<8'); is.ipad(); is.not.ipad(); +is.ipad(9); +is.ipad('>=7'); +is.not.ipad('<8'); is.ipod(); is.not.ipod(); +is.ipod(7); +is.ipod('>=5'); +is.not.ipod('<5'); is.android(); is.not.android(); @@ -486,7 +518,6 @@ is.androidTablet(); is.not.androidTablet(); is.blackberry(); - is.not.blackberry(); is.windowsPhone(); @@ -519,6 +550,9 @@ is.not.online(); is.offline(); is.not.offline(); +is.touchDevice(); +is.not.touchDevice(); + //#endregion //#region Time checks From 92148516474074a8a3cc5001cd213fcc2d15a23a Mon Sep 17 00:00:00 2001 From: William Lohan Date: Tue, 6 Nov 2018 16:34:11 -0800 Subject: [PATCH 191/213] add twilio-common --- types/twilio-common/index.d.ts | 24 ++++++++++++++++++++++ types/twilio-common/tsconfig.json | 23 +++++++++++++++++++++ types/twilio-common/tslint.json | 6 ++++++ types/twilio-common/twilio-common-tests.ts | 22 ++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 types/twilio-common/index.d.ts create mode 100644 types/twilio-common/tsconfig.json create mode 100644 types/twilio-common/tslint.json create mode 100644 types/twilio-common/twilio-common-tests.ts diff --git a/types/twilio-common/index.d.ts b/types/twilio-common/index.d.ts new file mode 100644 index 0000000000..2ad8b73ea4 --- /dev/null +++ b/types/twilio-common/index.d.ts @@ -0,0 +1,24 @@ +// Type definitions for twilio-common 0.1 +// Project: https://github.com/twilio/twilio-common.js +// Definitions by: William Lohan +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { EventEmitter } from 'events'; + +export class AccessManager extends EventEmitter { + readonly expires?: Date; + + readonly identity?: string; + + readonly isExpired: boolean; + + readonly token: string; + + constructor(initialToken: string); + + updateToken(newToken: string): Promise; + + on(type: 'error', listener: (error: Error) => void): this; + + on(type: 'tokenExpired' | 'tokenWillExpire' | 'tokenUpdated', listener: (manager: AccessManager) => void): this; +} diff --git a/types/twilio-common/tsconfig.json b/types/twilio-common/tsconfig.json new file mode 100644 index 0000000000..3653f40f71 --- /dev/null +++ b/types/twilio-common/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "twilio-common-tests.ts" + ] +} diff --git a/types/twilio-common/tslint.json b/types/twilio-common/tslint.json new file mode 100644 index 0000000000..c2e987daf6 --- /dev/null +++ b/types/twilio-common/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "only-arrow-functions": false + } +} diff --git a/types/twilio-common/twilio-common-tests.ts b/types/twilio-common/twilio-common-tests.ts new file mode 100644 index 0000000000..688be12c9a --- /dev/null +++ b/types/twilio-common/twilio-common-tests.ts @@ -0,0 +1,22 @@ +// https://www.twilio.com/docs/chat/access-token-lifecycle#javascript +import { AccessManager } from 'twilio-common'; + +function generateToken(): string { + return 'SOME_TOKEN'; +} + +const token = generateToken(); + +const accessManager = new AccessManager(token); +const chatClient = { updateToken: (token: string) => {} }; // mock for test + +accessManager.on('tokenUpdated', function(am) { + // get new token from AccessManager and pass it to the library instance + chatClient.updateToken(am.token); +}); + +accessManager.on('tokenExpired', function() { + // generate new token here and set it to the accessManager + const updatedToken = generateToken(); + accessManager.updateToken(updatedToken); +}); From 595dede3c3de4bb79f0513b9cd6d4544991096cd Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 6 Nov 2018 16:42:40 -0800 Subject: [PATCH 192/213] autoprefixer: Requires ts2.2 (#30325) --- types/autoprefixer/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/autoprefixer/index.d.ts b/types/autoprefixer/index.d.ts index 4650f1d407..faf11371db 100644 --- a/types/autoprefixer/index.d.ts +++ b/types/autoprefixer/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/postcss/autoprefixer // Definitions by: Armando Meziat , murt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 import { Plugin } from "postcss"; From 297bda8c68037fe915cc1c8a8609fb3d3589e9ab Mon Sep 17 00:00:00 2001 From: Bartosz Date: Wed, 7 Nov 2018 01:51:51 +0100 Subject: [PATCH 193/213] Fix Flow's maybe-type conversion --- types/expo-localization/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/expo-localization/index.d.ts b/types/expo-localization/index.d.ts index c0b97c9e68..21c6ca8756 100644 --- a/types/expo-localization/index.d.ts +++ b/types/expo-localization/index.d.ts @@ -17,12 +17,12 @@ export interface LocalizationProps { /** * Country code for your device */ - country: string | undefined; + country: string | undefined | null; /** * A list of all the supported ISO codes */ - isoCurrencyCodes: string[] | undefined; + isoCurrencyCodes: string[] | undefined | null; /** * The current time zone in display format. ex: `America/Los_Angeles` @@ -49,12 +49,12 @@ export namespace Localization { /** * Country code for your device */ - const country: string | undefined; + const country: string | undefined | null; /** * A list of all the supported ISO codes */ - const isoCurrencyCodes: string[] | undefined; + const isoCurrencyCodes: string[] | undefined | null; /** * The current time zone in display format. ex: `America/Los_Angeles` From 7a1023f4ca7057d210bcffdb1b9a2b8b668ba3cc Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Wed, 7 Nov 2018 09:48:53 +0800 Subject: [PATCH 194/213] add blessed widget type --- types/react-blessed/index.d.ts | 29 +++++++++++++++++++-- types/react-blessed/react-blessed-tests.tsx | 3 +++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index d16016ecef..2fb3486781 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -18,12 +18,37 @@ declare module 'react-blessed' { export function createBlessedRenderer(b: typeof Blessd): renderer; } +// relation to blessed export widgets declare namespace JSX { interface IntrinsicElements { - 'blessed-progressbar': any, 'blessed-box': any, + 'blessed-text': any, + 'blessed-line': any, + 'blessed-scrollablebox': any, + 'blessed-scrollabletext': any, + 'blessed-bigtext': any, + 'blessed-list': any, + 'blessed-filemanager': any, 'blessed-listtable': any, + 'blessed-listbar': any, + 'blessed-form': any, + 'blessed-input': any, + 'blessed-textarea': any, + 'blessed-textbox': any, 'blessed-button': any, - 'blessed-form': any + 'blessed-checkbox': any, + 'blessed-radioset': any, + 'blessed-radiobutton': any, + 'blessed-table': any, + 'blessed-prompt': any, + 'blessed-question': any, + 'blessed-message': any, + 'blessed-loading': any, + 'blessed-log': any, + 'blessed-progressbar': any, + 'blessed-program': any, + 'blessed-terminal': any, + 'blessed-layout': any, + 'blessed-escape': any, } } diff --git a/types/react-blessed/react-blessed-tests.tsx b/types/react-blessed/react-blessed-tests.tsx index 3c0d6e4ec1..90cabcc765 100644 --- a/types/react-blessed/react-blessed-tests.tsx +++ b/types/react-blessed/react-blessed-tests.tsx @@ -2,6 +2,9 @@ import * as React from 'react'; import * as blessed from 'blessed'; import { render } from 'react-blessed'; +// Testing example from demos page +// https://github.com/Yomguithereal/react-blessed/blob/master/examples/dashboard.jsx + const { Component } = React; /** From 16a8dca700583db6ef35d85ddac742b904ced356 Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Wed, 7 Nov 2018 09:52:28 +0800 Subject: [PATCH 195/213] add comment for next version of react-blessed --- types/react-blessed/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index 2fb3486781..1d86badd2a 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -18,7 +18,7 @@ declare module 'react-blessed' { export function createBlessedRenderer(b: typeof Blessd): renderer; } -// relation to blessed export widgets +// relation to blessed export widgets, prepare for next version of react-blessed declare namespace JSX { interface IntrinsicElements { 'blessed-box': any, From 53649a923c736d1168a461052969644f85d55fa8 Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Wed, 7 Nov 2018 10:03:50 +0800 Subject: [PATCH 196/213] change ts version to follow react --- types/react-blessed/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index 1d86badd2a..0951ad5a2f 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/Yomguithereal/react-blessed // Definitions by: Century Guo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 declare module 'react-blessed' { import * as React from 'react'; From cfa477710a45bc1aca5c031f8bb0355453b614bb Mon Sep 17 00:00:00 2001 From: Lachlan Date: Wed, 7 Nov 2018 12:22:51 +1000 Subject: [PATCH 197/213] React Navigation: headerLayoutPreset && headerBackTitleVisible (#29833) * Update types for stack navigator https://reactnavigation.org/docs/en/stack-navigator.html * unecessary ` * add tests? * What type is this Ref * commit a log * define Ref Types in tests * does not have any construct or call signatures | the methods causing this error arent even used * All tests passing * WIP * add to test * why do I need graphql-tools * diff * wip * cleanup * lol * remove console.log * remove ref Types --- types/react-navigation/index.d.ts | 3 +++ types/react-navigation/react-navigation-tests.tsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 1572c94e25..846ea56a9e 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -25,6 +25,7 @@ // Denis Frezzato // Mickael Wegerich // Max Davidson +// Lachlan Young // Jason Killian // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -374,7 +375,9 @@ export interface NavigationToggleDrawerAction { export interface NavigationStackViewConfig { mode?: 'card' | 'modal'; headerMode?: HeaderMode; + headerBackTitleVisible?: boolean; headerTransitionPreset?: 'fade-in-place' | 'uikit'; + headerLayoutPreset?: 'left' | 'center'; cardStyle?: StyleProp; transitionConfig?: ( transitionProps: NavigationTransitionProps, diff --git a/types/react-navigation/react-navigation-tests.tsx b/types/react-navigation/react-navigation-tests.tsx index 1b6bff2586..e568fbed27 100644 --- a/types/react-navigation/react-navigation-tests.tsx +++ b/types/react-navigation/react-navigation-tests.tsx @@ -125,6 +125,7 @@ const initialRouteParams: StartScreenNavigationParams = { id: 1, s: "Start", }; + const routeConfigMap: NavigationRouteConfigMap = { [ROUTE_NAME_START_SCREEN]: { path: "start", @@ -140,6 +141,7 @@ export const AppNavigator = createStackNavigator( { initialRouteName: ROUTE_NAME_START_SCREEN, initialRouteKey: ROUTE_KEY_START_SCREEN, + headerLayoutPreset: 'center', initialRouteParams, navigationOptions, }, @@ -614,7 +616,6 @@ createStackNavigator( ); // Test NavigationEvents component - const ViewWithNavigationEvents = ( Date: Wed, 7 Nov 2018 10:25:45 +0800 Subject: [PATCH 198/213] use dt-gen to re generate the file --- types/react-blessed/index.d.ts | 99 +++++++++++++++---------------- types/react-blessed/tsconfig.json | 21 +++---- types/react-blessed/tslint.json | 8 +-- 3 files changed, 59 insertions(+), 69 deletions(-) diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index 0951ad5a2f..5abf0e39bc 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -1,54 +1,53 @@ -// Type definitions for react-blessed 0.3.0 -// Project: https://github.com/Yomguithereal/react-blessed -// Definitions by: Century Guo +// Type definitions for react-blessed 0.3 +// Project: https://github.com/yomguithereal/react-blessed#readme +// Definitions by: My Self // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 declare module 'react-blessed' { - import * as React from 'react'; - import * as Blessd from 'blessed'; - import { Widgets, screen } from 'blessed'; - export type Callback = () => void | null | undefined; - export type renderer = ( - c: JSX.Element, s: Widgets.Screen, callback?: Callback, - ) => React.Component | null; - export function render( - c: JSX.Element, s: Widgets.Screen, callback?: Callback - ): React.Component | null; - export function createBlessedRenderer(b: typeof Blessd): renderer; -} - -// relation to blessed export widgets, prepare for next version of react-blessed -declare namespace JSX { - interface IntrinsicElements { - 'blessed-box': any, - 'blessed-text': any, - 'blessed-line': any, - 'blessed-scrollablebox': any, - 'blessed-scrollabletext': any, - 'blessed-bigtext': any, - 'blessed-list': any, - 'blessed-filemanager': any, - 'blessed-listtable': any, - 'blessed-listbar': any, - 'blessed-form': any, - 'blessed-input': any, - 'blessed-textarea': any, - 'blessed-textbox': any, - 'blessed-button': any, - 'blessed-checkbox': any, - 'blessed-radioset': any, - 'blessed-radiobutton': any, - 'blessed-table': any, - 'blessed-prompt': any, - 'blessed-question': any, - 'blessed-message': any, - 'blessed-loading': any, - 'blessed-log': any, - 'blessed-progressbar': any, - 'blessed-program': any, - 'blessed-terminal': any, - 'blessed-layout': any, - 'blessed-escape': any, + import * as React from 'react'; + import * as Blessd from 'blessed'; + import { Widgets, screen } from 'blessed'; + export type Callback = () => void | null | undefined; + export type renderer = ( + c: JSX.Element, s: Widgets.Screen, callback?: Callback, + ) => React.Component | null; + export function render( + c: JSX.Element, s: Widgets.Screen, callback?: Callback + ): React.Component | null; + export function createBlessedRenderer(b: typeof Blessd): renderer; + } + + // relation to blessed export widgets, prepare for next version of react-blessed + declare namespace JSX { + interface IntrinsicElements { + 'blessed-box': any, + 'blessed-text': any, + 'blessed-line': any, + 'blessed-scrollablebox': any, + 'blessed-scrollabletext': any, + 'blessed-bigtext': any, + 'blessed-list': any, + 'blessed-filemanager': any, + 'blessed-listtable': any, + 'blessed-listbar': any, + 'blessed-form': any, + 'blessed-input': any, + 'blessed-textarea': any, + 'blessed-textbox': any, + 'blessed-button': any, + 'blessed-checkbox': any, + 'blessed-radioset': any, + 'blessed-radiobutton': any, + 'blessed-table': any, + 'blessed-prompt': any, + 'blessed-question': any, + 'blessed-message': any, + 'blessed-loading': any, + 'blessed-log': any, + 'blessed-progressbar': any, + 'blessed-program': any, + 'blessed-terminal': any, + 'blessed-layout': any, + 'blessed-escape': any, + } } -} diff --git a/types/react-blessed/tsconfig.json b/types/react-blessed/tsconfig.json index 4c74e5205e..ea7dcee1d9 100644 --- a/types/react-blessed/tsconfig.json +++ b/types/react-blessed/tsconfig.json @@ -1,26 +1,23 @@ { - "files": [ - "index.d.ts", - "react-blessed-tests.tsx" - ], "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "strictFunctionTypes": true, "baseUrl": "../", - "jsx": "react", - "experimentalDecorators": true, "typeRoots": [ "../" ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true - } -} \ No newline at end of file + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "react-blessed-tests.tsx" + ] +} diff --git a/types/react-blessed/tslint.json b/types/react-blessed/tslint.json index 946c3b6691..3db14f85ea 100644 --- a/types/react-blessed/tslint.json +++ b/types/react-blessed/tslint.json @@ -1,7 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODO - "dt-header": false - } -} +{ "extends": "dtslint/dt.json" } From b120dc36c9a4a10522a67025be9474dead058547 Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Wed, 7 Nov 2018 10:27:13 +0800 Subject: [PATCH 199/213] add typescript version --- types/react-blessed/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index 5abf0e39bc..2a1c02bd6e 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/yomguithereal/react-blessed#readme // Definitions by: My Self // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 declare module 'react-blessed' { import * as React from 'react'; From b885669fe68d990e9e970216721b3be603fce37f Mon Sep 17 00:00:00 2001 From: guoshencheng <648772021@qq.com> Date: Wed, 7 Nov 2018 10:34:09 +0800 Subject: [PATCH 200/213] add strictFunctionTypes --- types/react-blessed/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react-blessed/tsconfig.json b/types/react-blessed/tsconfig.json index ea7dcee1d9..46c89eec29 100644 --- a/types/react-blessed/tsconfig.json +++ b/types/react-blessed/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From bc9057bf1dbe7df6d9eec924d1e09530221a2329 Mon Sep 17 00:00:00 2001 From: Aaron Ross Date: Wed, 7 Nov 2018 02:30:55 -0500 Subject: [PATCH 201/213] accept string as second argument for matchPath (#30334) --- types/react-router/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index 2e1cfb902b..f62fc44b18 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -117,7 +117,7 @@ export interface match { // Omit taken from https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html export type Omit = Pick>; -export function matchPath(pathname: string, props: RouteProps, parent?: match | null): match | null; +export function matchPath(pathname: string, props: string | RouteProps, parent?: match | null): match | null; export function generatePath(pattern: string, params?: { [paramName: string]: string | number | boolean }): string; From 7f9bef1fb99aa28639c7b4e34a2c0635facf5009 Mon Sep 17 00:00:00 2001 From: Ting-Wai To Date: Tue, 6 Nov 2018 23:23:31 -0800 Subject: [PATCH 202/213] [ioredis] Add types for Redis Streams commands --- types/ioredis/index.d.ts | 53 ++++++++++++++++++++++++++++++++++ types/ioredis/ioredis-tests.ts | 19 ++++++++++++ 2 files changed, 72 insertions(+) diff --git a/types/ioredis/index.d.ts b/types/ioredis/index.d.ts index 6f50ab0ee6..acd380e7db 100644 --- a/types/ioredis/index.d.ts +++ b/types/ioredis/index.d.ts @@ -9,6 +9,7 @@ // Francis Gulotta // Dmitry Motovilov // Oleg Repin +// Ting-Wai To // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -482,6 +483,32 @@ declare namespace IORedis { sscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; hscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; zscanStream(key: KeyType, options?: ScanStreamOption): NodeJS.EventEmitter; + + xack(key: KeyType, group: string, ...ids: string[]): any; + + xadd(key: KeyType, id: string, ...args: string[]): any; + + xclaim(key: KeyType, group: string, consumer: string, minIdleTime: number, ...args: any[]): any; + + xdel(key: KeyType, ...ids: string[]): any; + + xgroup(...args: any[]): any; + + xinfo(...args: any[]): any; + + xlen(key: KeyType): any; + + xpending(key: KeyType, group: string, ...args: any[]): any; + + xrange(key: KeyType, start: string, end: string, ...args: any[]): any; + + xread(...args: any[]): any; + + xreadgroup(groupOption: 'GROUP' | 'group', group: string, consumer: string, ...args: any[]): any; + + xrevrange(key: KeyType, end: string, start: string, ...args: any[]): any; + + xtrim(key: KeyType, maxLenOption: 'MAXLEN' | 'maxlen', ...args: any[]): any; } interface Pipeline { @@ -801,6 +828,32 @@ declare namespace IORedis { pfadd(key: KeyType, ...elements: string[]): Pipeline; pfcount(...keys: KeyType[]): Pipeline; + + xack(key: KeyType, group: string, ...ids: string[]): Pipeline; + + xadd(key: KeyType, id: string, ...args: string[]): Pipeline; + + xclaim(key: KeyType, group: string, consumer: string, minIdleTime: number, id: string, ...args: any[]): Pipeline; + + xdel(key: KeyType, ...ids: string[]): Pipeline; + + xgroup(...args: any[]): Pipeline; + + xinfo(...args: any[]): Pipeline; + + xlen(key: KeyType): Pipeline; + + xpending(key: KeyType, group: string, ...args: any[]): Pipeline; + + xrange(key: KeyType, start: string, end: string, ...args: any[]): Pipeline; + + xread(...args: any[]): Pipeline; + + xreadgroup(command: 'GROUP' | 'group', group: string, consumer: string, ...args: any[]): Pipeline; + + xrevrange(key: KeyType, end: string, start: string, ...args: any[]): Pipeline; + + xtrim(key: KeyType, strategy: 'MAXLEN' | 'maxlen', ...args: any[]): Pipeline; } interface NodeConfiguration { diff --git a/types/ioredis/ioredis-tests.ts b/types/ioredis/ioredis-tests.ts index 82b5ec4d12..df8e37aca8 100644 --- a/types/ioredis/ioredis-tests.ts +++ b/types/ioredis/ioredis-tests.ts @@ -173,3 +173,22 @@ new Redis.Cluster([{ host: 'localhost', port: 6379 }]); + +redis.xack('streamName', 'groupName', 'id'); +redis.xadd('streamName', '*', 'field', 'name'); +redis.xclaim('streamName', 'groupName', 'consumerName', 3600000, 'id'); +redis.xdel('streamName', 'id'); +redis.xgroup('CREATE', 'streamName', 'groupName', '$'); +redis.xgroup('SETUP', 'streamName', 'groupName', '$'); +redis.xgroup('DESTROY', 'streamName', 'groupName'); +redis.xgroup('DELCONSUMER', 'streamName', 'groupName', 'consumerName'); +redis.xinfo('CONSUMERS', 'streamName', 'groupName'); +redis.xinfo('GROUPS', 'streamName'); +redis.xinfo('STREAM', 'streamName'); +redis.xlen('streamName'); +redis.xpending('streamName', 'groupName', '-', '+', '10', 'consumerName'); +redis.xrange('streamName', '-', '+', 'COUNT', 1); +redis.xread('STREAMS', 'streamName', '0-0'); +redis.xreadgroup('GROUP', 'groupName', 'consumerName', 'STREAMS', 'streamName', '>'); +redis.xrevrange('streamName', '+', '-', 'COUNT', 1); +redis.xtrim('streamName', 'MAXLEN', '~', 1000); From adc9c3f22047fcfa11ee04d243a8c1519c04771c Mon Sep 17 00:00:00 2001 From: Yann-Wang Date: Wed, 7 Nov 2018 16:31:41 +0800 Subject: [PATCH 203/213] [@types/recharts@1.1.0] add capHeight and lineHeight field type to TextProps interface (#29634) * fix: add capHeight and lineHeight field type to TextProps interface * feat: add some test for capHeight and lineHeight field type defined --- types/recharts/index.d.ts | 2 ++ types/recharts/recharts-tests.tsx | 27 ++++++++++++++++++--------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index da2f11f267..a9301374f1 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -761,6 +761,8 @@ export interface TextProps extends Partial { textAnchor?: 'start' | 'middle' | 'end' | 'inherit'; verticalAnchor?: 'start' | 'middle' | 'end'; style?: object; + capHeight?: string; + lineHeight?: string; } export class Text extends React.Component { } diff --git a/types/recharts/recharts-tests.tsx b/types/recharts/recharts-tests.tsx index 6388a94d65..ec86acf21d 100644 --- a/types/recharts/recharts-tests.tsx +++ b/types/recharts/recharts-tests.tsx @@ -5,7 +5,7 @@ import { CartesianGrid, Line, LineChart, PieChart, Pie, Sector, XAxis, YAxis, Tooltip, ReferenceLine, ReferenceArea, ResponsiveContainer, Label, LabelList, Brush, - ScatterChart, ZAxis, Legend, Scatter, Bar, BarChart + ScatterChart, ZAxis, Legend, Scatter, Bar, BarChart, Text } from 'recharts'; interface ComponentState { @@ -21,6 +21,14 @@ class Component extends React.Component<{}, ComponentState> { console.log(`Handling a click on a chart: ${JSON.stringify(args)}`); } + renderYAxisTitle = () => { + return ( + + pv of page + + ); + } + render() { const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400 }, @@ -85,7 +93,7 @@ class Component extends React.Component<{}, ComponentState> { }; return (
- + @@ -108,7 +116,7 @@ class Component extends React.Component<{}, ComponentState> { /> - + @@ -131,7 +139,7 @@ class Component extends React.Component<{}, ComponentState> { /> - + @@ -150,14 +158,14 @@ class Component extends React.Component<{}, ComponentState> { /> - + } dataKey="value" activeIndex={this.state.activeIndex} activeShape={renderActiveShape} - data={data} + data={data2} cx={300} cy={200} innerRadius={60} @@ -168,7 +176,7 @@ class Component extends React.Component<{}, ComponentState> { - + @@ -178,7 +186,7 @@ class Component extends React.Component<{}, ComponentState> { - + {