{ + 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