+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.8
+
+import * as enzyme from 'enzyme';
+
+declare module 'enzyme' {
+ interface UntilOptions {
+ maxDepth: number;
+ }
+ interface ShallowWrapper {
+ renderProp(propName: string, ...args: any[]): ShallowWrapper
;
+ drill(expander: (props: any) => ShallowWrapper): ShallowWrapper
;
+ until(selector: EnzymeSelector, options?: UntilOptions): ShallowWrapper
;
+ }
+}
+
+declare function monkeyPatchShallowWrapper(s: typeof enzyme.ShallowWrapper): void;
+
+export = monkeyPatchShallowWrapper;
diff --git a/types/react-i18next/tsconfig.json b/types/commercetools__enzyme-extensions/tsconfig.json
similarity index 58%
rename from types/react-i18next/tsconfig.json
rename to types/commercetools__enzyme-extensions/tsconfig.json
index f90b5c3ff0..9e6d70239e 100644
--- a/types/react-i18next/tsconfig.json
+++ b/types/commercetools__enzyme-extensions/tsconfig.json
@@ -2,8 +2,7 @@
"compilerOptions": {
"module": "commonjs",
"lib": [
- "es6",
- "dom"
+ "es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
@@ -17,17 +16,12 @@
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
- "experimentalDecorators": true
+ "paths": {
+ "@commercetools/enzyme-extensions": ["commercetools__enzyme-extensions"]
+ }
},
"files": [
"index.d.ts",
- "test/react-i18next-tests.tsx",
- "src/context.d.ts",
- "src/I18n.d.ts",
- "src/I18nextProvider.d.ts",
- "src/interpolate.d.ts",
- "src/loadNamespaces.d.ts",
- "src/trans.d.ts",
- "src/translate.d.ts"
+ "commercetools__enzyme-extensions-tests.tsx"
]
-}
\ No newline at end of file
+}
diff --git a/types/commercetools__enzyme-extensions/tslint.json b/types/commercetools__enzyme-extensions/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/types/commercetools__enzyme-extensions/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }
diff --git a/types/consul/index.d.ts b/types/consul/index.d.ts
index 3d344ae983..096a906c8b 100644
--- a/types/consul/index.d.ts
+++ b/types/consul/index.d.ts
@@ -625,6 +625,7 @@ declare namespace Consul {
dc?: string;
tag?: string;
passing?: boolean;
+ near?: string;
}
interface StateOptions extends CommonOptions {
diff --git a/types/cordova-plugin-bluetoothclassic-serial/cordova-plugin-bluetoothclassic-serial-tests.ts b/types/cordova-plugin-bluetoothclassic-serial/cordova-plugin-bluetoothclassic-serial-tests.ts
new file mode 100644
index 0000000000..72925fe5ba
--- /dev/null
+++ b/types/cordova-plugin-bluetoothclassic-serial/cordova-plugin-bluetoothclassic-serial-tests.ts
@@ -0,0 +1,63 @@
+let BluetoothClassicSerial: BluetoothClassicSerial =
+ window.BluetoothClassicSerial;
+
+BluetoothClassicSerial.connect(
+ "",
+ [""]
+);
+BluetoothClassicSerial.connect(
+ "",
+ [""],
+ results => {}
+);
+BluetoothClassicSerial.connect(
+ "",
+ [""],
+ results => {},
+ error => {}
+);
+BluetoothClassicSerial.connectInsecure("", [""]);
+BluetoothClassicSerial.connectInsecure("", [""], results => {});
+BluetoothClassicSerial.connectInsecure("", [""], results => {}, error => {});
+BluetoothClassicSerial.register(() => {});
+BluetoothClassicSerial.disconnect(results => {});
+BluetoothClassicSerial.disconnect(results => {}, error => {});
+BluetoothClassicSerial.write("", "");
+BluetoothClassicSerial.write("", "", results => {});
+BluetoothClassicSerial.write("", "", results => {}, error => {});
+BluetoothClassicSerial.available("");
+BluetoothClassicSerial.available("", results => {});
+BluetoothClassicSerial.available("", results => {}, error => {});
+BluetoothClassicSerial.read("");
+BluetoothClassicSerial.read("", results => {});
+BluetoothClassicSerial.read("", results => {}, error => {});
+BluetoothClassicSerial.readUntil("", "");
+BluetoothClassicSerial.readUntil("", "", results => {});
+BluetoothClassicSerial.readUntil("", "", results => {}, error => {});
+BluetoothClassicSerial.subscribe("", "");
+BluetoothClassicSerial.subscribe("", "", results => {});
+BluetoothClassicSerial.subscribe("", "", results => {}, error => {});
+BluetoothClassicSerial.unsubscribe("");
+BluetoothClassicSerial.unsubscribe("", results => {});
+BluetoothClassicSerial.unsubscribe("", results => {}, error => {});
+BluetoothClassicSerial.subscribeRawData("");
+BluetoothClassicSerial.subscribeRawData("", results => {});
+BluetoothClassicSerial.subscribeRawData("", results => {}, error => {});
+BluetoothClassicSerial.unsubscribeRawData("");
+BluetoothClassicSerial.unsubscribeRawData("", results => {});
+BluetoothClassicSerial.unsubscribeRawData("", results => {}, error => {});
+BluetoothClassicSerial.clear("");
+BluetoothClassicSerial.clear("", results => {});
+BluetoothClassicSerial.clear("", results => {}, error => {});
+BluetoothClassicSerial.list(results => {});
+BluetoothClassicSerial.list(results => {}, error => {});
+BluetoothClassicSerial.isConnected(results => {});
+BluetoothClassicSerial.isConnected(results => {}, error => {});
+BluetoothClassicSerial.isEnabled(results => {});
+BluetoothClassicSerial.isEnabled(results => {}, error => {});
+BluetoothClassicSerial.showBluetoothSettings(results => {});
+BluetoothClassicSerial.showBluetoothSettings(results => {}, error => {});
+BluetoothClassicSerial.enable(results => {});
+BluetoothClassicSerial.enable(results => {}, error => {});
+BluetoothClassicSerial.discoverUnpaired(results => {});
+BluetoothClassicSerial.discoverUnpaired(results => {}, error => {});
diff --git a/types/cordova-plugin-bluetoothclassic-serial/index.d.ts b/types/cordova-plugin-bluetoothclassic-serial/index.d.ts
new file mode 100644
index 0000000000..2dfe8c94ae
--- /dev/null
+++ b/types/cordova-plugin-bluetoothclassic-serial/index.d.ts
@@ -0,0 +1,105 @@
+// Type definitions for cordova-plugin-bluetoothClassic-serial 0.9
+// Project: https://github.com/soltius/BluetoothClassicSerial
+// Definitions by: Wouter Roosendaal
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+/**
+ * Global object bluetoothClassicSerial.
+ */
+interface Window {
+ BluetoothClassicSerial: BluetoothClassicSerial;
+}
+
+interface BluetoothClassicSerial {
+ connect: (
+ deviceId: string,
+ interfaceArray: [any],
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ connectInsecure: (
+ deviceId: string,
+ interfaceArray: [any],
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ register: (data_cb?: () => any) => void;
+ disconnect: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ write: (
+ interfaceId: string,
+ data: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ available: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ read: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ readUntil: (
+ interfaceId: string,
+ delimiter: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ subscribe: (
+ interfaceId: string,
+ delimiter: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ unsubscribe: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ subscribeRawData: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ unsubscribeRawData: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ clear: (
+ interfaceId: string,
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ list: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ isConnected: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ isEnabled: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ showBluetoothSettings: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ enable: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+ discoverUnpaired: (
+ success_cb?: (results: any) => any,
+ fail_cb?: (error: any) => any
+ ) => void;
+}
+
+declare var bluetoothClassicSerial: BluetoothClassicSerial;
diff --git a/types/cordova-plugin-bluetoothclassic-serial/tsconfig.json b/types/cordova-plugin-bluetoothclassic-serial/tsconfig.json
new file mode 100644
index 0000000000..5cd12b710a
--- /dev/null
+++ b/types/cordova-plugin-bluetoothclassic-serial/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",
+ "cordova-plugin-bluetoothclassic-serial-tests.ts"
+ ]
+}
diff --git a/types/cordova-plugin-bluetoothclassic-serial/tslint.json b/types/cordova-plugin-bluetoothclassic-serial/tslint.json
new file mode 100644
index 0000000000..f93cf8562a
--- /dev/null
+++ b/types/cordova-plugin-bluetoothclassic-serial/tslint.json
@@ -0,0 +1,3 @@
+{
+ "extends": "dtslint/dt.json"
+}
diff --git a/types/crpc/crpc-tests.ts b/types/crpc/crpc-tests.ts
new file mode 100644
index 0000000000..ade069cbba
--- /dev/null
+++ b/types/crpc/crpc-tests.ts
@@ -0,0 +1,3 @@
+import crpc from 'crpc';
+
+const client = crpc('https://example.com/');
diff --git a/types/crpc/index.d.ts b/types/crpc/index.d.ts
new file mode 100644
index 0000000000..8947443c42
--- /dev/null
+++ b/types/crpc/index.d.ts
@@ -0,0 +1,9 @@
+// Type definitions for crpc 0.2
+// Project: https://github.com/billinghamj/crpc
+// Definitions by: Alexander Forbes-Reed
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.9
+
+export type Client = (path: string, body: any, options?: {} | null) => Promise;
+
+export default function crpc(baseUrl: string, options?: {}): Client;
diff --git a/types/crpc/tsconfig.json b/types/crpc/tsconfig.json
new file mode 100644
index 0000000000..657ccc0d04
--- /dev/null
+++ b/types/crpc/tsconfig.json
@@ -0,0 +1,24 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "lib": [
+ "es6"
+ ],
+ "esModuleInterop": true,
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "strictFunctionTypes": true,
+ "strictNullChecks": true,
+ "baseUrl": "../",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "crpc-tests.ts"
+ ]
+}
diff --git a/types/crpc/tslint.json b/types/crpc/tslint.json
new file mode 100644
index 0000000000..8f3d5d7eec
--- /dev/null
+++ b/types/crpc/tslint.json
@@ -0,0 +1,6 @@
+{
+ "extends": "dtslint/dt.json",
+ "rules": {
+ "no-unnecessary-generics": false
+ }
+}
diff --git a/types/cytoscape/cytoscape-tests.ts b/types/cytoscape/cytoscape-tests.ts
index 0cffa42b31..dc0607a3c3 100644
--- a/types/cytoscape/cytoscape-tests.ts
+++ b/types/cytoscape/cytoscape-tests.ts
@@ -36,7 +36,8 @@ const showAllStyle: cytoscape.Stylesheet[] = [
'text-halign': 'center',
shape: 'rectangle',
'min-zoomed-font-size': 20,
- opacity: 1
+ opacity: 1,
+ width: 'mapData(weight, 40, 80, 20, 60)'
}
},
{
@@ -125,7 +126,7 @@ cy.on('zoom', (event) => {
cy.off('zoom');
// events(cy); - TODO
-cy.add({ data: { id: 'g' }, position: {x: 200, y: 150} });
+cy.add({ data: { id: 'g', someOtherKey: 'value' }, position: {x: 200, y: 150} });
cy.add([
{ data: { id: 'h' }, position: {x: 250, y: 100} }
]);
diff --git a/types/cytoscape/index.d.ts b/types/cytoscape/index.d.ts
index 59482ad507..7ea05577be 100644
--- a/types/cytoscape/index.d.ts
+++ b/types/cytoscape/index.d.ts
@@ -133,6 +133,8 @@ declare namespace cytoscape {
}
interface EdgeDataDefinition extends ElementDataDefinition {
+ id?: string;
+
/**
* the source node id (edge comes from this node)
*/
@@ -141,6 +143,8 @@ declare namespace cytoscape {
* the target node id (edge goes to this node)
*/
target: string;
+
+ [key: string]: any;
}
interface NodeDefinition extends ElementDefinition {
@@ -148,7 +152,9 @@ declare namespace cytoscape {
}
interface NodeDataDefinition extends ElementDataDefinition {
+ id?: string;
parent?: string;
+ [key: string]: any;
}
interface CytoscapeOptions {
@@ -3445,13 +3451,13 @@ declare namespace cytoscape {
* This property can take on the special value label
* so the width is automatically based on the node’s label.
*/
- "width"?: number | "label";
+ "width"?: number | string;
/**
* The height of the node’s body.
* This property can take on the special value label
* so the height is automatically based on the node’s label.
*/
- "height"?: number | "label";
+ "height"?: number | string;
/**
* The shape of the node’s body.
*/
@@ -3624,7 +3630,7 @@ declare namespace cytoscape {
/**
* The width of an edge’s line.
*/
- "width"?: number | "label";
+ "width"?: number | string;
/**
* The curving method used to separate two or more edges between two nodes;
* may be
diff --git a/types/dd-trace/dd-trace-tests.ts b/types/dd-trace/dd-trace-tests.ts
index 8169358155..9d6936875a 100644
--- a/types/dd-trace/dd-trace-tests.ts
+++ b/types/dd-trace/dd-trace-tests.ts
@@ -9,6 +9,7 @@ tracer.init({
debug: msg => {},
error: err => {},
},
+ tags: { tracerEnv: 'dev'}
});
function useWebFrameworkPlugin(plugin: "express" | "hapi" | "koa" | "restify") {
diff --git a/types/dd-trace/index.d.ts b/types/dd-trace/index.d.ts
index 90aa9afc66..311fa7675e 100644
--- a/types/dd-trace/index.d.ts
+++ b/types/dd-trace/index.d.ts
@@ -110,6 +110,11 @@ interface TracerOptions {
debug: (message: string) => void;
error: (err: Error) => void;
};
+
+ /**
+ * Global tags that should be assigned to every span.
+ */
+ tags?: { [key: string]: any };
}
interface ExperimentalOptions {}
diff --git a/types/deep-diff/deep-diff-tests.ts b/types/deep-diff/deep-diff-tests.ts
index 42abf98ee1..6192dad9e5 100644
--- a/types/deep-diff/deep-diff-tests.ts
+++ b/types/deep-diff/deep-diff-tests.ts
@@ -1,9 +1,6 @@
+import { diff, observableDiff, applyChange, Diff } from 'deep-diff';
-
-import _deepDiff = require('deep-diff');
-var diff = _deepDiff.diff;
-
-var lhs = {
+let lhs = {
name: 'my object',
description: 'it\'s an object!',
details: {
@@ -13,7 +10,7 @@ var lhs = {
}
};
-var rhs = {
+let rhs = {
name: 'updated object',
description: 'it\'s an object!',
details: {
@@ -23,17 +20,13 @@ var rhs = {
}
};
-var differences: deepDiff.IDiff[] = diff(lhs, rhs);
+const differences: Array> = diff(lhs, rhs);
console.log(differences);
-
// --------------------------
-var observableDiff = _deepDiff.observableDiff;
-var applyChange = _deepDiff.applyChange;
-
-var lhs = {
+lhs = {
name: 'my object',
description: 'it\'s an object!',
details: {
@@ -43,7 +36,7 @@ var lhs = {
}
};
-var rhs = {
+rhs = {
name: 'updated object',
description: 'it\'s an object!',
details: {
@@ -53,7 +46,7 @@ var rhs = {
}
};
-observableDiff(lhs, rhs, function (d: deepDiff.IDiff) {
+observableDiff(lhs, rhs, d => {
// Apply all changes except those to the 'name' property...
if (d.path.length !== 1 || d.path.join('.') !== 'name') {
applyChange(lhs, rhs, d);
diff --git a/types/deep-diff/index.d.ts b/types/deep-diff/index.d.ts
index de17a03bc8..ac4d50b44a 100644
--- a/types/deep-diff/index.d.ts
+++ b/types/deep-diff/index.d.ts
@@ -1,42 +1,60 @@
-// Type definitions for deep-diff
+// Type definitions for deep-diff 1.0
// Project: https://github.com/flitbit/diff/
// Definitions by: ZauberNerd
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.3
-declare namespace deepDiff {
- interface IDiff {
- kind: string;
- path: string[];
- lhs: any;
- rhs: any;
- index?: number;
- item?: IDiff;
- }
-
- interface IAccumulator {
- push(diff: IDiff): void;
- length: number;
- }
-
- interface IPrefilter {
- (path: string[], key: string): boolean;
- }
-
- interface IDeepDiff {
- diff(lhs: Object, rhs: Object, prefilter?: IPrefilter, acc?: IAccumulator): IDiff[];
- diff(): IDiff;
- observableDiff(lhs: Object, rhs: Object, changes: Function, prefilter?: IPrefilter, path?: string[], key?: string, stack?: Object[]): void;
- applyDiff(target: Object, source: Object, filter: Function): void;
- applyChange(target: Object, source: Object, change: IDiff): void;
- revertChange(target: Object, source: Object, change: IDiff): void;
- isConflict(): boolean;
- noConflict(): IDeepDiff;
- }
+export interface DiffNew {
+ kind: 'N';
+ path?: any[];
+ rhs: RHS;
}
-declare var DeepDiff: deepDiff.IDeepDiff;
-
-declare module "deep-diff" {
- var diff: deepDiff.IDeepDiff;
- export = diff;
+export interface DiffDeleted {
+ kind: 'D';
+ path?: any[];
+ lhs: LHS;
}
+
+export interface DiffEdit {
+ kind: 'E';
+ path?: any[];
+ lhs: LHS;
+ rhs: RHS;
+}
+
+export interface DiffArray {
+ kind: 'A';
+ path?: any[];
+ index: number;
+ item: Diff;
+}
+
+export type Diff = DiffNew | DiffDeleted | DiffEdit | DiffArray;
+
+export type PreFilterFunction = (path: any[], key: any) => boolean;
+export interface PreFilterObject {
+ prefilter?(path: any[], key: any): boolean;
+ normalize?(currentPath: any, key: any, lhs: LHS, rhs: RHS): [ LHS, RHS ] | undefined;
+}
+export type PreFilter = PreFilterFunction | PreFilterObject;
+
+export interface Accumulator {
+ push(diff: Diff): void;
+ length: number;
+}
+
+export type Observer = (diff: Diff) => void;
+
+export type Filter = (target: LHS, source: RHS, change: Diff) => boolean;
+
+export function diff(lhs: LHS, rhs: RHS, prefilter?: PreFilter): Array> | undefined;
+export function diff(lhs: LHS, rhs: RHS, prefilter?: PreFilter, acc?: Accumulator): Accumulator;
+export function orderIndependentDiff(lhs: LHS, rhs: RHS, prefilter?: PreFilter): Array> | undefined;
+export function orderIndependentDiff(lhs: LHS, rhs: RHS, prefilter?: PreFilter, acc?: Accumulator): Accumulator;
+export function observableDiff(lhs: LHS, rhs: RHS, observer?: Observer, prefilter?: PreFilter, orderIndependent?: boolean): Array>;
+export function orderIndependentDeepDiff(lhs: LHS, rhs: RHS, changes: Array>, prefilter: PreFilter, path: any[], key: any, stack: any[]): void;
+export function orderIndepHash(object: any): number;
+export function applyDiff(target: LHS, source: RHS, filter?: Filter): void;
+export function applyChange(target: LHS, source: any, change: Diff): void;
+export function revertChange(target: LHS, source: any, change: Diff): void;
diff --git a/types/deep-diff/tslint.json b/types/deep-diff/tslint.json
index a41bf5d19a..3db14f85ea 100644
--- a/types/deep-diff/tslint.json
+++ b/types/deep-diff/tslint.json
@@ -1,79 +1 @@
-{
- "extends": "dtslint/dt.json",
- "rules": {
- "adjacent-overload-signatures": false,
- "array-type": false,
- "arrow-return-shorthand": false,
- "ban-types": false,
- "callable-types": false,
- "comment-format": false,
- "dt-header": false,
- "eofline": false,
- "export-just-namespace": false,
- "import-spacing": false,
- "interface-name": false,
- "interface-over-type-literal": false,
- "jsdoc-format": false,
- "max-line-length": false,
- "member-access": false,
- "new-parens": false,
- "no-any-union": false,
- "no-boolean-literal-compare": false,
- "no-conditional-assignment": false,
- "no-consecutive-blank-lines": false,
- "no-construct": false,
- "no-declare-current-package": false,
- "no-duplicate-imports": false,
- "no-duplicate-variable": false,
- "no-empty-interface": false,
- "no-for-in-array": false,
- "no-inferrable-types": false,
- "no-internal-module": false,
- "no-irregular-whitespace": false,
- "no-mergeable-namespace": false,
- "no-misused-new": false,
- "no-namespace": false,
- "no-object-literal-type-assertion": false,
- "no-padding": false,
- "no-redundant-jsdoc": false,
- "no-redundant-jsdoc-2": false,
- "no-redundant-undefined": false,
- "no-reference-import": false,
- "no-relative-import-in-test": false,
- "no-self-import": false,
- "no-single-declare-module": false,
- "no-string-throw": false,
- "no-unnecessary-callback-wrapper": false,
- "no-unnecessary-class": false,
- "no-unnecessary-generics": false,
- "no-unnecessary-qualifier": false,
- "no-unnecessary-type-assertion": false,
- "no-useless-files": false,
- "no-var-keyword": false,
- "no-var-requires": false,
- "no-void-expression": false,
- "no-trailing-whitespace": false,
- "object-literal-key-quotes": false,
- "object-literal-shorthand": false,
- "one-line": false,
- "one-variable-per-declaration": false,
- "only-arrow-functions": false,
- "prefer-conditional-expression": false,
- "prefer-const": false,
- "prefer-declare-function": false,
- "prefer-for-of": false,
- "prefer-method-signature": false,
- "prefer-template": false,
- "radix": false,
- "semicolon": false,
- "space-before-function-paren": false,
- "space-within-parens": false,
- "strict-export-declare-modifiers": false,
- "trim-file": false,
- "triple-equals": false,
- "typedef-whitespace": false,
- "unified-signatures": false,
- "void-return": false,
- "whitespace": false
- }
-}
+{ "extends": "dtslint/dt.json" }
diff --git a/types/detective/detective-tests.ts b/types/detective/detective-tests.ts
new file mode 100644
index 0000000000..b0c176af03
--- /dev/null
+++ b/types/detective/detective-tests.ts
@@ -0,0 +1,16 @@
+import detective = require("detective");
+
+const opts: detective.Options = {
+ parse: {
+ sourceType: "module",
+ allowImportExportEverywhere: true
+ }
+};
+
+detective("content", opts).filter((x) => x && x.length > 0);
+
+const detectiveFunc: detective.Detective = detective;
+
+detectiveFunc.find("str").strings.forEach((dep) => {
+ const b: boolean = dep[0] === '.';
+});
diff --git a/types/detective/index.d.ts b/types/detective/index.d.ts
new file mode 100644
index 0000000000..771d88f40c
--- /dev/null
+++ b/types/detective/index.d.ts
@@ -0,0 +1,106 @@
+// Type definitions for detective 5.1
+// Project: https://github.com/browserify/detective
+// Definitions by: TeamworkGuy2
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+import * as acorn from "acorn";
+
+/**
+ * Find all calls to require() by walking the AST
+ */
+declare namespace detective {
+ interface Detective {
+ /**
+ * Give some source body src, return an array of all the require() calls with string arguments.
+ * The options parameter opts is passed along to detective.find().
+ */
+ (src: string, opts?: Options): string[];
+ /**
+ * Give some source body 'src', return 'found' DetectiveResults
+ */
+ find(src: string, opts?: Options): DetectiveResults;
+ }
+
+ interface Options {
+ /**
+ * specify a different function name instead of "require"
+ */
+ word?: string;
+ /**
+ * when true, populate found.nodes
+ */
+ nodes?: string;
+ /**
+ * a function returning whether an AST CallExpression node is a require call
+ */
+ isRequire?: (node: any) => boolean;
+ /**
+ * supply options directly to acorn with some support for esprima-style options range and loc
+ */
+ parse?: acorn.Options;
+ /**
+ * Indicates the ECMAScript version to parse. Must be either 3, 5, 6 (2015),
+ * 7 (2016), 8 (2017), 9 (2018) or 10 (2019, partial support). This influences
+ * support for strict mode, the set of reserved words, and support for new syntax features.
+ * Default is 9.
+ */
+ ecmaVersion?: string | number;
+
+ /**
+ * If false, using a reserved word will generate an error. Defaults to true for ecmaVersion 3,
+ * false for higher versions. When given the value "never", reserved words and keywords can
+ * also not be used as property names (as in Internet Explorer's old parser).
+ */
+ allowReserved?: boolean | "never";
+ /**
+ * By default, a return statement at the top level raises an error. Set this to true to accept such code.
+ */
+ allowReturnOutsideFunction?: boolean;
+ /**
+ * By default, import and export declarations can only appear at a program's top level.
+ * Setting this option to true allows them anywhere where a statement is allowed.
+ */
+ allowImportExportEverywhere?: boolean;
+ /**
+ * When this is enabled (off by default), if the code starts with the
+ * characters #! (as in a shellscript), the first line will be treated as a comment.
+ */
+ allowHashBang?: boolean;
+ /**
+ * When true, each node has a loc object attached with start and end subobjects, each of which
+ * contains the one-based line and zero-based column numbers in {line, column} form. Default is false.
+ */
+ locations?: boolean;
+ /**
+ * Nodes have their start and end characters offsets recorded in start and end properties
+ * (directly on the node, rather than the loc object, which holds line/column data.
+ * To also add a semi-standardized range property holding a [start, end] array with
+ * the same numbers, set the ranges option to true.
+ */
+ ranges?: string;
+ /**
+ * Indicate the mode the code should be parsed in. Can be either "script" or "module".
+ * This influences global strict mode and parsing of import and export declarations.
+ */
+ sourceType?: ("script" | "module");
+ }
+
+ interface DetectiveResults {
+ /**
+ * an array of each string found in a require()
+ */
+ strings: string[];
+ /**
+ * an array of each stringified expression found in a require() call
+ */
+ expressions: string[];
+ /**
+ * (when opts.nodes === true) - an array of AST nodes for each argument found in a require() call
+ */
+ nodes?: any[];
+ }
+}
+
+declare var detective: detective.Detective;
+
+export = detective;
diff --git a/types/detective/tsconfig.json b/types/detective/tsconfig.json
new file mode 100644
index 0000000000..49cdedb7fd
--- /dev/null
+++ b/types/detective/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",
+ "detective-tests.ts"
+ ]
+}
\ No newline at end of file
diff --git a/types/detective/tslint.json b/types/detective/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/types/detective/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }
diff --git a/types/diff/diff-tests.ts b/types/diff/diff-tests.ts
index 0dea2a305e..2f640da490 100644
--- a/types/diff/diff-tests.ts
+++ b/types/diff/diff-tests.ts
@@ -16,6 +16,29 @@ diffArraysResult.forEach(result => {
}
});
+interface DiffObj {
+ value: number;
+}
+const a: DiffObj = {value: 0};
+const b: DiffObj = {value: 1};
+const c: DiffObj = {value: 2};
+const d: DiffObj = {value: 3};
+const arrayOptions: jsdiff.IArrayOptions = {
+ comparator: (left: DiffObj, right: DiffObj) => {
+ return left.value === right.value;
+ }
+};
+const diffResult = jsdiff.diffArrays([a, b, c], [a, b, d], arrayOptions);
+diffResult.forEach(result => {
+ if (result.added) {
+ console.log(`added ${result.value.length} line(s):`, ...result.value);
+ } else if (result.removed) {
+ console.log(`removed ${result.value.length} line(s):`, ...result.value);
+ } else {
+ console.log(`no changes`);
+ }
+});
+
// --------------------------
class LineDiffWithoutWhitespace extends jsdiff.Diff {
diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts
index 33d337d1b7..760aee4e61 100644
--- a/types/diff/index.d.ts
+++ b/types/diff/index.d.ts
@@ -2,6 +2,7 @@
// Project: https://github.com/kpdecker/jsdiff
// Definitions by: vvakame
// szdc
+// moc-yuto
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -18,8 +19,8 @@ declare namespace JsDiff {
newlineIsToken?: boolean;
}
- interface IArrayOptions extends IOptions {
- comparator?: (left: any, right: any) => number;
+ interface IArrayOptions {
+ comparator?: (left: any, right: any) => boolean;
}
interface IDiffResult {
diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts
index 5c1c1bfae6..aa5d93858b 100644
--- a/types/dockerode/index.d.ts
+++ b/types/dockerode/index.d.ts
@@ -823,6 +823,35 @@ declare namespace Dockerode {
context: string;
src: string[];
}
+
+ interface DockerVersion {
+ 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;
+ }>;
+ GitCommit: string;
+ GoVersion: string;
+ KernelVersion: string;
+ MinAPIVersion: string;
+ Os: string;
+ Platform: {
+ Name: string;
+ };
+ Version: string;
+ }
}
type Callback = (error?: any, result?: T) => void;
@@ -949,8 +978,8 @@ declare class Dockerode {
df(callback: Callback): void;
df(): Promise;
- version(callback: Callback): void;
- version(): Promise;
+ version(callback: Callback): void;
+ version(): Promise;
ping(callback: Callback): void;
ping(): Promise;
diff --git a/types/dojo/dijit.d.ts b/types/dojo/dijit.d.ts
index b22742b85d..4b75746aed 100644
--- a/types/dojo/dijit.d.ts
+++ b/types/dojo/dijit.d.ts
@@ -2855,7 +2855,7 @@ declare module dijit {
get(property:"ownerDocument"): Object;
watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -6801,7 +6801,7 @@ declare module dijit {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -104923,7 +104923,7 @@ declare module dijit {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
diff --git a/types/dojo/dojox.widget.d.ts b/types/dojo/dojox.widget.d.ts
index 9e8ce6563e..36a58aab0d 100644
--- a/types/dojo/dojox.widget.d.ts
+++ b/types/dojo/dojox.widget.d.ts
@@ -17225,7 +17225,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -18171,7 +18171,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -23352,7 +23352,7 @@ declare namespace dojox {
get(property:"refreshOnShow"): boolean;
watch(property: "refreshOnShow", callback: { (property?: string, oldValue?: boolean, newValue?: boolean): void }): { unwatch(): void }
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -24411,7 +24411,7 @@ declare namespace dojox {
get(property:"ownerDocument"): Object;
watch(property:"ownerDocument", callback:{(property?:string, oldValue?:Object, newValue?: Object):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
@@ -25307,7 +25307,7 @@ declare namespace dojox {
get(property:"searchContainerNode"): boolean;
watch(property:"searchContainerNode", callback:{(property?:string, oldValue?:boolean, newValue?: boolean):void}) :{unwatch():void}
/**
- * A parameter needed by RadioGroupSlide only. An optional paramter to force
+ * A parameter needed by RadioGroupSlide only. An optional parameter to force
* the ContentPane to slide in from a set direction. Defaults
* to "random", or specify one of "top", "left", "right", "bottom"
* to slideFrom top, left, right, or bottom.
diff --git a/types/dom-loaded/dom-loaded-tests.ts b/types/dom-loaded/dom-loaded-tests.ts
new file mode 100644
index 0000000000..f8a3e5486d
--- /dev/null
+++ b/types/dom-loaded/dom-loaded-tests.ts
@@ -0,0 +1,3 @@
+import domLoaded = require("dom-loaded");
+
+domLoaded.then(() => console.log("DOM is loaded"));
diff --git a/types/dom-loaded/index.d.ts b/types/dom-loaded/index.d.ts
new file mode 100644
index 0000000000..5d4d5154c4
--- /dev/null
+++ b/types/dom-loaded/index.d.ts
@@ -0,0 +1,7 @@
+// Type definitions for dom-loaded 1.0
+// Project: https://github.com/sindresorhus/dom-loaded#readme
+// Definitions by: Lukas Tetzlaf
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare const domLoaded: Promise;
+export = domLoaded;
diff --git a/types/dom-loaded/tsconfig.json b/types/dom-loaded/tsconfig.json
new file mode 100644
index 0000000000..7d17914d86
--- /dev/null
+++ b/types/dom-loaded/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",
+ "dom-loaded-tests.ts"
+ ]
+}
diff --git a/types/dom-loaded/tslint.json b/types/dom-loaded/tslint.json
new file mode 100644
index 0000000000..3db14f85ea
--- /dev/null
+++ b/types/dom-loaded/tslint.json
@@ -0,0 +1 @@
+{ "extends": "dtslint/dt.json" }
diff --git a/types/dompurify/index.d.ts b/types/dompurify/index.d.ts
index b72cc9e5e9..4c3a38d8f5 100644
--- a/types/dompurify/index.d.ts
+++ b/types/dompurify/index.d.ts
@@ -1,10 +1,14 @@
// Type definitions for DOM Purify
// Project: https://github.com/cure53/DOMPurify
-// Definitions by: Dave Taylor , Samira Bazuzi
+// Definitions by: Dave Taylor , Samira Bazuzi , FlowCrypt
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace DOMPurify;
+export declare let version: string;
+export declare let removed: any[];
+export declare let isSupported: boolean;
+
export declare function sanitize(source: string | Node): string;
export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM_FRAGMENT?: false; RETURN_DOM?: false; }): string;
export declare function sanitize(source: string | Node, config: Config & { RETURN_DOM_FRAGMENT: true; }): DocumentFragment;
@@ -13,6 +17,12 @@ export declare function sanitize(source: string | Node, config: Config): string
export declare function addHook(hook: 'uponSanitizeElement', cb: (currentNode: Element, data: SanitizeElementHookEvent, config: Config) => void): void;
export declare function addHook(hook: 'uponSanitizeAttribute', cb: (currentNode: Element, data: SanitizeAttributeHookEvent, config: Config) => void): void;
export declare function addHook(hook: HookName, cb: (currentNode: Element, data: HookEvent, config: Config) => void): void;
+export declare function setConfig(cfg: Config): void;
+export declare function clearConfig(): void;
+export declare function isValidAttribute(tag: string, attr: string, value: string): boolean;
+export declare function removeHook(entryPoint: HookName): void;
+export declare function removeHooks(entryPoint: HookName): void;
+export declare function removeAllHooks(): void;
interface Config {
ADD_ATTR?: string[];
@@ -30,6 +40,11 @@ interface Config {
SAFE_FOR_JQUERY?: boolean;
SANITIZE_DOM?: boolean;
WHOLE_DOCUMENT?: boolean;
+ ALLOWED_URI_REGEXP?: RegExp;
+ SAFE_FOR_TEMPLATES?: boolean;
+ ALLOW_UNKNOWN_PROTOCOLS?: boolean;
+ USE_PROFILES?: false | {mathMl?: boolean, svg?: boolean, svgFilters?: boolean, html?: boolean};
+ IN_PLACE?: boolean;
}
type HookName
diff --git a/types/doubleclick-gpt/doubleclick-gpt-tests.ts b/types/doubleclick-gpt/doubleclick-gpt-tests.ts
index 9218408268..4d29a46d91 100644
--- a/types/doubleclick-gpt/doubleclick-gpt-tests.ts
+++ b/types/doubleclick-gpt/doubleclick-gpt-tests.ts
@@ -41,7 +41,7 @@ googletag.openConsole();
googletag.setAdIframeTitle("title");
-googletag.cmd.push(function() {
+googletag.cmd.push(() => {
googletag.defineSlot("/1234567/sports", [160, 600]).
addService(googletag.pubads());
});
@@ -79,8 +79,8 @@ googletag.pubads().definePassback("/1234567/sports", [468, 60]).
display();
googletag.pubads().definePassback("/1234567/sports", [160, 600]).
- updateTargetingFromMap({"color": "red",
- "interests": ["sports", "music", "movies"]}).
+ updateTargetingFromMap({color: "red",
+ interests: ["sports", "music", "movies"]}).
display();
googletag.pubads().enableLazyLoad();
@@ -262,7 +262,7 @@ googletag.pubads().updateCorrelator();
// The listener will be called only when the pubads service renders a slot.
// To listen to companion ads, add a similar listener to
// googletag.companionAds().
-googletag.pubads().addEventListener("slotRenderEnded", function(event: googletag.events.SlotRenderEndedEvent) {
+googletag.pubads().addEventListener("slotRenderEnded", (event: googletag.events.SlotRenderEndedEvent) => {
console.log("Slot has been rendered:");
console.log(event);
});
@@ -273,7 +273,7 @@ googletag.pubads().addEventListener("slotRenderEnded", function(event: googletag
// however, programmatically filter a listener to respond only to a certain
// ad slot, using this pattern:
let targetSlot = slot1;
-googletag.pubads().addEventListener("slotRenderEnded", function(event: googletag.events.SlotRenderEndedEvent) {
+googletag.pubads().addEventListener("slotRenderEnded", (event: googletag.events.SlotRenderEndedEvent) => {
if (event.slot === targetSlot) {
// Slot specific logic.
}
@@ -283,7 +283,7 @@ googletag.pubads().addEventListener("slotRenderEnded", function(event: googletag
// The listener will be called when the impression is considered viewable.
// This event also operates at service level, but, as above, you can filter
// to respond only to a certain ad slot by using this pattern:
-googletag.pubads().addEventListener("impressionViewable", function(event: googletag.events.ImpressionViewableEvent) {
+googletag.pubads().addEventListener("impressionViewable", (event: googletag.events.ImpressionViewableEvent) => {
if (event.slot === targetSlot) {
// Slot specific logic.
}
@@ -317,7 +317,6 @@ slot.clearCategoryExclusions();
// Make an ad request. Any ad can be returned for the slot.
-
slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1").
setTargeting("allow_expandable", "true").
setTargeting("interests", ["sports", "music", "movies"]).
diff --git a/types/doubleclick-gpt/index.d.ts b/types/doubleclick-gpt/index.d.ts
index ab71cdc99a..374f410c36 100644
--- a/types/doubleclick-gpt/index.d.ts
+++ b/types/doubleclick-gpt/index.d.ts
@@ -1,29 +1,30 @@
-// Type definitions for Google Publisher Tag v238
+// Type definitions for Google Publisher Tag 238.0
// Project: https://developers.google.com/doubleclick-gpt/reference
// Definitions by: John Wright
// Steven Joyce
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
declare namespace googletag {
- export type SingleSizeArray = number[];
+ type SingleSizeArray = number[];
- export type NamedSize = string | string[];
+ type NamedSize = string | string[];
- export type SingleSize = SingleSizeArray | NamedSize;
+ type SingleSize = SingleSizeArray | NamedSize;
- export type MultiSize = SingleSize[];
+ type MultiSize = SingleSize[];
- export type GeneralSize = SingleSize | MultiSize;
+ type GeneralSize = SingleSize | MultiSize;
- export type SizeMapping = GeneralSize[];
+ type SizeMapping = GeneralSize[];
- export type SizeMappingArray = SizeMapping[];
+ type SizeMappingArray = SizeMapping[];
- export interface CommandArray {
- push(f: Function): number;
+ interface CommandArray {
+ push(f: () => void): number;
}
- export interface Service {
+ interface Service {
addEventListener(
eventType: string,
listener: (event: events.ImpressionViewableEvent | events.SlotOnloadEvent | events.SlotRenderEndedEvent | events.slotVisibilityChangedEvent) => void
@@ -31,29 +32,29 @@ declare namespace googletag {
getSlots(): Slot[];
}
- export interface CompanionAdsService extends Service {
+ interface CompanionAdsService extends Service {
enableSyncLoading(): void;
setRefreshUnfilledSlots(value: boolean): void;
}
- export interface ContentService extends Service {
- setContent(slot: Slot, content: String): void;
+ interface ContentService extends Service {
+ setContent(slot: Slot, content: string): void;
}
- export interface LazyLoadOptionsConfig {
- fetchMarginPercent?: number,
- renderMarginPercent?: number,
- mobileScaling?: number
+ interface LazyLoadOptionsConfig {
+ fetchMarginPercent?: number;
+ renderMarginPercent?: number;
+ mobileScaling?: number;
}
- export interface ResponseInformation {
+ interface ResponseInformation {
advertiserId: string;
campaignId: string;
creativeId?: number;
lineItemId?: number;
}
- export interface SafeFrameConfig {
+ interface SafeFrameConfig {
allowOverlayExpansion?: boolean;
allowPushExpansion?: boolean;
sandbox?: boolean;
@@ -78,7 +79,7 @@ declare namespace googletag {
sizeMapping(): SizeMappingBuilder;
}
- export interface Slot {
+ interface Slot {
addService(service: Service): Slot;
clearCategoryExclusions(): Slot;
clearTargeting(opt_key?: string): Slot;
@@ -100,7 +101,7 @@ declare namespace googletag {
setTargeting(key: string, value: string | string[]): Slot;
}
- export interface PassbackSlot {
+ interface PassbackSlot {
display(): void;
get(key: string): string;
set(key: string, value: string): PassbackSlot;
@@ -109,10 +110,10 @@ declare namespace googletag {
setTagForChildDirectedTreatment(value: number): PassbackSlot;
setTagForUnderAgeOfConsent(value: number): PassbackSlot;
setTargeting(key: string, value: string | string[]): PassbackSlot;
- updateTargetingFromMap(map: Object): PassbackSlot;
+ updateTargetingFromMap(map: object): PassbackSlot;
}
- export interface PubAdsService extends Service {
+ interface PubAdsService extends Service {
clear(opt_slots?: Slot[]): boolean;
clearCategoryExclusions(): PubAdsService;
clearTagForChildDirectedTreatment(): PubAdsService;
@@ -148,23 +149,23 @@ declare namespace googletag {
updateCorrelator(): PubAdsService;
}
- export interface SizeMappingBuilder {
+ interface SizeMappingBuilder {
addSize(viewportSize: SingleSizeArray, slotSize: GeneralSize): SizeMappingBuilder;
build(): SizeMappingArray;
}
- export namespace events {
- export interface ImpressionViewableEvent {
+ namespace events {
+ interface ImpressionViewableEvent {
serviceName: string;
slot: Slot;
}
- export interface SlotOnloadEvent {
+ interface SlotOnloadEvent {
serviceName: string;
slot: Slot;
}
- export interface SlotRenderEndedEvent {
+ interface SlotRenderEndedEvent {
advertiserId?: number;
creativeId?: number;
isEmpty: boolean;
@@ -176,7 +177,7 @@ declare namespace googletag {
sourceAgnosticLineItemId?: number;
}
- export interface slotVisibilityChangedEvent {
+ interface slotVisibilityChangedEvent {
inViewPercentage: number;
serviceName: string;
slot: Slot;
diff --git a/types/doubleclick-gpt/tsconfig.json b/types/doubleclick-gpt/tsconfig.json
index d240d560ce..7fff409f80 100644
--- a/types/doubleclick-gpt/tsconfig.json
+++ b/types/doubleclick-gpt/tsconfig.json
@@ -1,5 +1,4 @@
{
- "compileOnSave": false,
"compilerOptions": {
"module": "commonjs",
"lib": [
@@ -22,4 +21,4 @@
"index.d.ts",
"doubleclick-gpt-tests.ts"
]
-}
\ No newline at end of file
+}
diff --git a/types/doubleclick-gpt/tslint.json b/types/doubleclick-gpt/tslint.json
index a41bf5d19a..f93cf8562a 100644
--- a/types/doubleclick-gpt/tslint.json
+++ b/types/doubleclick-gpt/tslint.json
@@ -1,79 +1,3 @@
{
- "extends": "dtslint/dt.json",
- "rules": {
- "adjacent-overload-signatures": false,
- "array-type": false,
- "arrow-return-shorthand": false,
- "ban-types": false,
- "callable-types": false,
- "comment-format": false,
- "dt-header": false,
- "eofline": false,
- "export-just-namespace": false,
- "import-spacing": false,
- "interface-name": false,
- "interface-over-type-literal": false,
- "jsdoc-format": false,
- "max-line-length": false,
- "member-access": false,
- "new-parens": false,
- "no-any-union": false,
- "no-boolean-literal-compare": false,
- "no-conditional-assignment": false,
- "no-consecutive-blank-lines": false,
- "no-construct": false,
- "no-declare-current-package": false,
- "no-duplicate-imports": false,
- "no-duplicate-variable": false,
- "no-empty-interface": false,
- "no-for-in-array": false,
- "no-inferrable-types": false,
- "no-internal-module": false,
- "no-irregular-whitespace": false,
- "no-mergeable-namespace": false,
- "no-misused-new": false,
- "no-namespace": false,
- "no-object-literal-type-assertion": false,
- "no-padding": false,
- "no-redundant-jsdoc": false,
- "no-redundant-jsdoc-2": false,
- "no-redundant-undefined": false,
- "no-reference-import": false,
- "no-relative-import-in-test": false,
- "no-self-import": false,
- "no-single-declare-module": false,
- "no-string-throw": false,
- "no-unnecessary-callback-wrapper": false,
- "no-unnecessary-class": false,
- "no-unnecessary-generics": false,
- "no-unnecessary-qualifier": false,
- "no-unnecessary-type-assertion": false,
- "no-useless-files": false,
- "no-var-keyword": false,
- "no-var-requires": false,
- "no-void-expression": false,
- "no-trailing-whitespace": false,
- "object-literal-key-quotes": false,
- "object-literal-shorthand": false,
- "one-line": false,
- "one-variable-per-declaration": false,
- "only-arrow-functions": false,
- "prefer-conditional-expression": false,
- "prefer-const": false,
- "prefer-declare-function": false,
- "prefer-for-of": false,
- "prefer-method-signature": false,
- "prefer-template": false,
- "radix": false,
- "semicolon": false,
- "space-before-function-paren": false,
- "space-within-parens": false,
- "strict-export-declare-modifiers": false,
- "trim-file": false,
- "triple-equals": false,
- "typedef-whitespace": false,
- "unified-signatures": false,
- "void-return": false,
- "whitespace": false
- }
+ "extends": "dtslint/dt.json"
}
diff --git a/types/download/tsconfig.json b/types/download/tsconfig.json
index edb8b7f471..809bed13d2 100644
--- a/types/download/tsconfig.json
+++ b/types/download/tsconfig.json
@@ -14,10 +14,15 @@
],
"types": [],
"noEmit": true,
- "forceConsistentCasingInFileNames": true
+ "forceConsistentCasingInFileNames": true,
+ "paths": {
+ "got": [
+ "got/v8"
+ ]
+ }
},
"files": [
"index.d.ts",
"download-tests.ts"
]
-}
\ No newline at end of file
+}
diff --git a/types/draft-js/index.d.ts b/types/draft-js/index.d.ts
index aea132cb3d..4f2c34dd3a 100644
--- a/types/draft-js/index.d.ts
+++ b/types/draft-js/index.d.ts
@@ -989,6 +989,8 @@ import getVisibleSelectionRect = Draft.Component.Selection.getVisibleSelectionRe
import DraftEditorCommand = Draft.Model.Constants.DraftEditorCommand;
import DraftDragType = Draft.Model.Constants.DraftDragType;
import DraftBlockType = Draft.Model.Constants.DraftBlockType;
+import DraftBlockRenderConfig = Draft.Model.ImmutableData.DraftBlockRenderConfig;
+import DraftBlockRenderMap = Draft.Component.Base.DraftBlockRenderMap;
import DraftInlineStyleType = Draft.Model.Constants.DraftInlineStyleType;
import DraftEntityMutability = Draft.Model.Constants.DraftEntityMutability;
import DraftEntityType = Draft.Model.Constants.DraftEntityType;
@@ -1039,6 +1041,8 @@ export {
DraftEditorCommand,
DraftDragType,
DraftBlockType,
+ DraftBlockRenderConfig,
+ DraftBlockRenderMap,
DraftInlineStyleType,
DraftEntityType,
DraftEntityMutability,
diff --git a/types/dragula/dragula-tests.ts b/types/dragula/dragula-tests.ts
index 5f143406c3..0e6280ae61 100644
--- a/types/dragula/dragula-tests.ts
+++ b/types/dragula/dragula-tests.ts
@@ -30,3 +30,14 @@ var drake = dragula({
copy: true
});
drake.containers.push(document.querySelector('#container'));
+
+dragula([document.getElementById('left'), document.getElementById('right')])
+ .on('drag', function (el: Element) {
+ el.className = el.className.replace('ex-moved', '');
+ }).on('drop', function (el: Element) {
+ el.className += ' ex-moved';
+ }).on('over', function (el: Element, container: Element) {
+ container.className += ' ex-over';
+ }).on('out', function (el: Element, container: Element) {
+ container.className = container.className.replace('ex-over', '');
+ });
diff --git a/types/dragula/index.d.ts b/types/dragula/index.d.ts
index 51998fb583..925a586971 100644
--- a/types/dragula/index.d.ts
+++ b/types/dragula/index.d.ts
@@ -33,7 +33,7 @@ declare namespace dragula {
cancel(revert:boolean): void;
cancel(): void;
remove(): void;
- on(events: string, callback: Function): void;
+ on(events: string, callback: Function): Drake;
destroy(): void;
}
diff --git a/types/duplexify/duplexify-tests.ts b/types/duplexify/duplexify-tests.ts
index 11d33d7303..aeed21e8dc 100644
--- a/types/duplexify/duplexify-tests.ts
+++ b/types/duplexify/duplexify-tests.ts
@@ -8,9 +8,17 @@ duplexify(writable, readable);
duplexify(writable);
duplexify(undefined, readable);
+duplexify.obj();
+duplexify.obj(writable);
+duplexify.obj(writable, readable);
+duplexify.obj(writable, readable, {});
+
const d: duplexify.Duplexify = duplexify();
d.setReadable(readable);
d.setReadable(); // $ExpectError
d.setWritable(writable);
d.setWritable(); // $ExpectError
+d.cork();
+d.uncork();
+
const f: Duplex = d;
diff --git a/types/duplexify/index.d.ts b/types/duplexify/index.d.ts
index 791a000f8b..7df693e93b 100644
--- a/types/duplexify/index.d.ts
+++ b/types/duplexify/index.d.ts
@@ -1,6 +1,7 @@
-// Type definitions for duplexify 3.5
+// Type definitions for duplexify 3.6
// Project: https://github.com/mafintosh/duplexify
// Definitions by: Sami Kukkonen
+// Jonathan Lui
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
@@ -11,10 +12,14 @@ export = duplexify;
interface DuplexifyConstructor {
(writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
new (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
+
+ obj(writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify;
}
declare var duplexify: DuplexifyConstructor;
declare namespace duplexify {
interface Duplexify extends stream.Duplex {
+ cork(): void;
+ uncork(): void;
setWritable(writable: stream.Writable): void;
setReadable(readable: stream.Readable): void;
}
diff --git a/types/durandal/index.d.ts b/types/durandal/index.d.ts
index 85dbb86e93..77e73f2501 100644
--- a/types/durandal/index.d.ts
+++ b/types/durandal/index.d.ts
@@ -101,7 +101,7 @@ interface DurandalSystemModule {
/**
* Creates a deferred object which can be used to create a promise. Optionally pass a function action to perform which will be passed an object used in resolving the promise.
- * @param {function} [action] The action to defer. You will be passed the deferred object as a paramter.
+ * @param {function} [action] The action to defer. You will be passed the deferred object as a parameter.
* @returns {Deferred} The deferred object.
*/
defer(action?: (dfd: DurandalDeferred) => void): DurandalDeferred;
diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts
index 12813a9b40..12e4ac0521 100644
--- a/types/dwt/index.d.ts
+++ b/types/dwt/index.d.ts
@@ -1372,7 +1372,7 @@ declare enum EnumDWT_UploadDataFormat {
Base64 = 1
}
-/**
+/**
* interface for a DWT container which basically defines a DIV on the page
*/
interface Container {
@@ -1381,7 +1381,7 @@ interface Container {
Height: string | number;
}
-/**
+/**
* interface for a base64 result
*/
interface Base64Result {
@@ -2294,7 +2294,7 @@ interface WebTwain {
*/
Zoom: number;
- /* ignored
+ /* ignored
style
_AutoCropMethod
*/
@@ -2490,7 +2490,7 @@ interface WebTwain {
* @param {Array} indices indices specifies which images are to be converted to base64.
* @param {EnumDWT_ImageType} enumImageType the image format in which the images are to be converted to base64.
* @return {Base64Result}
-
+
ConvertToBase64(indices: number[], enumImageType: EnumDWT_ImageType): Base64Result;
*/
@@ -3289,7 +3289,7 @@ interface WebTwain {
*/
MoveImage(sSourceImageIndex: number, sTargetImageIndex: number): boolean;
- /*ignored
+ /*ignored
OnRefreshUI
*/
@@ -3727,7 +3727,7 @@ interface WebTwain {
* @param {string} InitialDir The initial directory. The algorithm for selecting the initial directory varies on different platforms.
* @param {boolean} AllowMultiSelect True -- allows users to select more than one file, False -- only allows to select one file.
* @param {boolean} OverwritePrompt True -- If a file already exists with the same name, the old file will be simply overwritten, False -- not allows to save and overwrite a same name file.
- * @param {number} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and paramters "AllowMultiSelect" and "OverwritePrompt" will be useless.
+ * @param {number} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and parameters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @return {boolean}
*/
ShowFileDialog(SaveDialog: boolean, Filter: string, FilterIndex: number, DefExtension: string, InitialDir: string, AllowMultiSelect: boolean, OverwritePrompt: boolean, Flags: number): boolean;
@@ -3751,7 +3751,7 @@ interface WebTwain {
*/
ShowImageEditorEx(x: number, y: number, cx: number, cy: number, nCmdShow: number): boolean;
- /*ingored
+ /*ingored
SourceNameItems
*/
diff --git a/types/dwt/v12/index.d.ts b/types/dwt/v12/index.d.ts
index 423dab8824..cc0d1f8079 100644
--- a/types/dwt/v12/index.d.ts
+++ b/types/dwt/v12/index.d.ts
@@ -2768,7 +2768,7 @@ interface WebTwain {
* @param {string} InitialDir The initial directory. The algorithm for selecting the initial directory varies on different platforms.
* @param {bool} AllowMultiSelect True -- allows users to select more than one file, False -- only allows to select one file.
* @param {bool} OverwritePrompt True -- If a file already exists with the same name, the old file will be simply overwritten, False -- not allows to save and overwrite a same name file.
- * @param {int} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and paramters "AllowMultiSelect" and "OverwritePrompt" will be useless.
+ * @param {int} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and parameters "AllowMultiSelect" and "OverwritePrompt" will be useless.
* @return {bool}
*/
ShowFileDialog(SaveDialog: boolean, Filter: string, FilterIndex: number, DefExtension: string, InitialDir: string, AllowMultiSelect: boolean, OverwritePrompt: boolean, Flags: number): boolean;
diff --git a/types/ember-data/index.d.ts b/types/ember-data/index.d.ts
index dc8edec397..601a45faf3 100644
--- a/types/ember-data/index.d.ts
+++ b/types/ember-data/index.d.ts
@@ -1132,7 +1132,7 @@ export namespace DS {
* This method unloads all records in the store.
* It schedules unloading to happen during the next run loop.
*/
- unloadAll(modelName: K): void;
+ unloadAll(modelName?: K): void;
/**
* DEPRECATED:
* This method has been deprecated and is an alias for store.hasRecordForId, which should
diff --git a/types/ember-data/test/store.ts b/types/ember-data/test/store.ts
index d3641a6c68..9c1194c711 100644
--- a/types/ember-data/test/store.ts
+++ b/types/ember-data/test/store.ts
@@ -205,3 +205,6 @@ declare module 'ember-data/types/registries/serializer' {
assertType(store.adapterFor('user'));
assertType(store.serializerFor('user'));
+
+store.unloadAll();
+store.unloadAll('user');
diff --git a/types/ember-data/v2/index.d.ts b/types/ember-data/v2/index.d.ts
index dccf63e890..3afd091ffe 100644
--- a/types/ember-data/v2/index.d.ts
+++ b/types/ember-data/v2/index.d.ts
@@ -1094,7 +1094,7 @@ export namespace DS {
* This method unloads all records in the store.
* It schedules unloading to happen during the next run loop.
*/
- unloadAll(modelName: K): void;
+ unloadAll(modelName?: K): void;
/**
* DEPRECATED:
* This method has been deprecated and is an alias for store.hasRecordForId, which should
diff --git a/types/ember-data/v2/test/store.ts b/types/ember-data/v2/test/store.ts
index f512afd8a7..2584e7bdf3 100644
--- a/types/ember-data/v2/test/store.ts
+++ b/types/ember-data/v2/test/store.ts
@@ -203,3 +203,6 @@ declare module 'ember-data' {
assertType(store.adapterFor('user'));
assertType(store.serializerFor('user'));
+
+store.unloadAll();
+store.unloadAll('user');
diff --git a/types/ember__object/internals.d.ts b/types/ember__object/internals.d.ts
index e920311d45..518d777a46 100644
--- a/types/ember__object/internals.d.ts
+++ b/types/ember__object/internals.d.ts
@@ -1,4 +1,4 @@
-import { UnwrapComputedPropertyGetter } from '@ember/object/-private/types';
+import { UnwrapComputedPropertyGetter } from "@ember/object/-private/types";
/**
* Returns the cached value for a property, if one exists.
@@ -13,6 +13,11 @@ export function cacheFor(
/**
* Creates a shallow copy of the passed object. A deep copy of the object is
* returned if the optional `deep` argument is `true`.
+ *
+ * @deprecated as of Ember 3.3, to be removed in Ember 4.0. See how to migrate
+ * [here][deprecation].
+ *
+ * [deprecation]: https://emberjs.com/deprecations/v3.x#toc_ember-runtime-deprecate-copy-copyable
*/
export function copy(obj: T, deep: true): T;
export function copy(obj: any, deep?: boolean): any;
diff --git a/types/es6-shim/package.json b/types/es6-shim/package.json
new file mode 100644
index 0000000000..c1f0c68752
--- /dev/null
+++ b/types/es6-shim/package.json
@@ -0,0 +1,11 @@
+{
+ "private": true,
+ "types": "index",
+ "typesVersions": {
+ ">=3.1.0-0": {
+ "*": [
+ "ts3.1/*"
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/types/es6-shim/ts3.1/es6-shim-tests.ts b/types/es6-shim/ts3.1/es6-shim-tests.ts
new file mode 100644
index 0000000000..87f6fba0e5
--- /dev/null
+++ b/types/es6-shim/ts3.1/es6-shim-tests.ts
@@ -0,0 +1,234 @@
+declare const require: (module: string) => Object;
+if (require !== null) {
+ require('es6-shim');
+}
+
+interface Point { x: number; y: number; }
+interface Point3D extends Point { z: number; }
+
+let a: any;
+let s: string = '';
+let i: number = 2;
+let iOrUndef: number | undefined;
+let b: boolean;
+let f: () => void = () => {};
+let o: Object;
+let r: RegExp = /a/;
+let sym: symbol = {} as symbol;
+let e: Error = new Error();
+let date: Date;
+let key: PropertyKey;
+let point: Point = { x: 1, y: 2 };
+let point3d: Point3D = { x: 1, y: 2, z: 3 };
+let point3dOrUndef: Point3D | undefined;
+let pointOrUndef: Point | undefined;
+let arrayOfPoint: Point[] = [];
+let arrayOfPoint3D: Point3D[];
+let arrayOfSymbol: symbol[];
+let arrayOfPropertyKey: PropertyKey[];
+let arrayOfAny: any[];
+let arrayOfStringAny: [string, any][];
+let arrayLikeOfAny: ArrayLike = [];
+let iterableOfPoint: IterableShim = [];
+let iterableOfStringPoint: IterableShim<[string, Point]> = [];
+let iterableOfPointPoint3D: IterableShim<[Point, Point3D]> = [];
+let iterableIteratorOfPoint: IterableIteratorShim;
+let iterableIteratorOfNumberPoint: IterableIteratorShim<[number, Point]>;
+let iterableIteratorOfNumber: IterableIteratorShim;
+let iterableIteratorOfString: IterableIteratorShim;
+let iterableIteratorOfPointPoint: IterableIteratorShim<[Point, Point]>;
+let iterableIteratorOfNode: IterableIteratorShim;
+let iterableIteratorOfStringPoint: IterableIteratorShim<[string, Point]>;
+let iterableIteratorOfAny: IterableIteratorShim;
+let iterableIteratorOfPropertyKey: IterableIteratorShim;
+let iterableIteratorOfPropertyKeyPoint: IterableIteratorShim<[PropertyKey, Point]>;
+let nodeList: NodeList;
+let pd: PropertyDescriptor = {};
+let pdm: PropertyDescriptorMap = {};
+let map: Map = new Map();
+let set: Set = new Set();
+let weakMap: WeakMap = new WeakMap();
+let weakSet: WeakSet = new WeakSet();
+let promiseLikeOfPoint: PromiseLike = Promise.resolve(point);
+let promiseLikeOfPoint3D: PromiseLike = Promise.resolve(point3d);
+let promiseOfPoint: Promise = Promise.resolve(point);
+let promiseOfPoint3D: Promise = Promise.resolve(point3d);
+let promiseOfArrayOfPoint: Promise;
+let promiseOfVoid: Promise;
+
+point = Object.assign(point, point);
+b = Object.is(point, point);
+Object.setPrototypeOf(point, {});
+pointOrUndef = arrayOfPoint.find(p => b);
+i = arrayOfPoint.findIndex(p => b);
+arrayOfPoint = arrayOfPoint.fill(point, i, arrayOfPoint.length);
+arrayOfPoint = arrayOfPoint.copyWithin(i, i, i);
+arrayOfPoint = Array.from(arrayOfPoint);
+arrayOfPoint = Array.from(iterableOfPoint);
+arrayOfPoint3D = Array.from(arrayOfPoint, point => point3d);
+arrayOfPoint3D = Array.from(arrayOfPoint, point => point3d, a);
+arrayOfPoint3D = Array.from(iterableOfPoint, point => point3d);
+arrayOfPoint3D = Array.from(iterableOfPoint, point => point3d, a);
+arrayOfPoint = Array.of(point, point);
+i = s.codePointAt(i);
+b = s.includes(s, i);
+b = s.endsWith(s, i);
+s = s.repeat(i);
+b = s.startsWith(s, i);
+s = String.fromCodePoint(2 as number, 3 as number);
+s = String.raw`abc`;
+s = r.flags;
+i = Number.EPSILON;
+b = Number.isFinite(i);
+b = Number.isInteger(i);
+b = Number.isNaN(i);
+b = Number.isSafeInteger(i);
+i = Number.MAX_SAFE_INTEGER;
+i = Number.MIN_SAFE_INTEGER;
+i = Number.parseFloat(s);
+i = Number.parseInt(s);
+i = Number.parseInt(s, i);
+i = Math.clz32(i);
+i = Math.imul(i, i);
+i = Math.sign(i);
+i = Math.log10(i);
+i = Math.log2(i);
+i = Math.log1p(i);
+i = Math.expm1(i);
+i = Math.cosh(i);
+i = Math.sinh(i);
+i = Math.tanh(i);
+i = Math.acosh(i);
+i = Math.asinh(i);
+i = Math.atanh(i);
+i = Math.hypot(i, i);
+i = Math.trunc(i);
+i = Math.fround(i);
+i = Math.cbrt(i);
+map.clear();
+map.delete(s);
+map.forEach((value: Point, key: string) => { });
+pointOrUndef = map.get(s);
+b = map.has(s);
+map = map.set(s, point);
+i = map.size;
+map = new Map();
+map = new Map(iterableOfStringPoint);
+set.clear();
+set.delete(point);
+set.forEach((value: Point, key: Point) => { });
+b = set.has(point);
+set = set.add(point);
+i = set.size;
+set = new Set();
+set = new Set(iterableOfPoint);
+weakMap.delete(point);
+point3dOrUndef = weakMap.get(point);
+b = weakMap.has(point);
+weakMap = weakMap.set(point, point3d);
+weakMap = new WeakMap();
+weakMap = new WeakMap(iterableOfPointPoint3D);
+weakSet.delete(point);
+weakSet = weakSet.add(point);
+b = weakSet.has(point);
+weakSet = new WeakSet();
+weakSet = new WeakSet(iterableOfPoint);
+iterableIteratorOfNumberPoint = arrayOfPoint.entries();
+iterableIteratorOfNumber = arrayOfPoint.keys();
+iterableIteratorOfPoint = arrayOfPoint.values();
+iterableIteratorOfPointPoint = set.entries();
+iterableIteratorOfPoint = set.keys();
+iterableIteratorOfPoint = set.values();
+promiseLikeOfPoint.then((point: Point) => { });
+promiseLikeOfPoint = promiseLikeOfPoint.then();
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => point);
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint);
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => point);
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint, e => point);
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => promiseLikeOfPoint);
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => { });
+promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint, e => { });
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d);
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D);
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => point3d);
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D, e => point3d);
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => promiseLikeOfPoint3D);
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => { });
+promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D, e => { });
+promiseOfPoint.then((point: Point) => { });
+promiseOfPoint = promiseOfPoint.then();
+promiseOfPoint = promiseOfPoint.then(p => point);
+promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint);
+promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint);
+promiseOfPoint = promiseOfPoint.then(p => point, e => point);
+promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint, e => point);
+promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint, e => point);
+promiseOfPoint = promiseOfPoint.then(p => point, e => promiseOfPoint);
+promiseOfPoint = promiseOfPoint.then(p => point, e => promiseLikeOfPoint);
+promiseOfPoint = promiseOfPoint.then(p => point, e => { });
+promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint, e => { });
+promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint, e => { });
+promiseOfPoint3D = promiseOfPoint.then(p => point3d);
+promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D);
+promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D);
+promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => point3d);
+promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D, e => point3d);
+promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D, e => point3d);
+promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => promiseOfPoint3D);
+promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => promiseLikeOfPoint3D);
+promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => { });
+promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D, e => { });
+promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D, e => { });
+promiseOfPoint = promiseOfPoint.catch(e => point);
+promiseOfPoint = promiseOfPoint.catch(e => promiseOfPoint);
+promiseOfPoint = promiseOfPoint.catch(e => promiseLikeOfPoint);
+promiseOfPoint = promiseOfPoint.catch(e => { });
+promiseOfPoint3D = promiseOfPoint3D.catch(e => point3d);
+promiseOfPoint3D = promiseOfPoint3D.catch(e => promiseOfPoint3D);
+promiseOfPoint3D = promiseOfPoint3D.catch(e => promiseLikeOfPoint3D);
+promiseOfPoint = new Promise((resolve, reject) => resolve(point));
+promiseOfPoint = new Promise