mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
codereview changes
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import * as enigma from "enigma.js";
|
||||
// import enigma = require("enigma.js");
|
||||
|
||||
enigma.create({
|
||||
url: "http://127.0.0.1:4848/",
|
||||
schema: {}
|
||||
}).open().then((global) => {
|
||||
const config: enigmaJS.IConfig = {
|
||||
url: "http://127.0.0.1:4848/",
|
||||
schema: {}
|
||||
};
|
||||
enigma.create(config).open().then((global) => {
|
||||
console.log("connect fine");
|
||||
});
|
||||
|
||||
Vendored
+6
-8
@@ -5,11 +5,15 @@
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
declare module "enigma.js" {
|
||||
const e: IEnigmaJSClass;
|
||||
const e: IEnigmaClass;
|
||||
export = e;
|
||||
}
|
||||
|
||||
interface IEnigmaJSClass {
|
||||
// declare const enigmaJS: IEnigmaClass;
|
||||
// export = enigmaJS;
|
||||
// export as namespace enigmaJS;
|
||||
|
||||
interface IEnigmaClass {
|
||||
/**
|
||||
* Create a session object.
|
||||
* @returns - Returns a session.
|
||||
@@ -94,12 +98,6 @@ declare namespace enigmaJS {
|
||||
}
|
||||
|
||||
interface ISession {
|
||||
/**
|
||||
* Establishes the websocket against the configured URL. Eventually resolved with the QIX global interface when the connection has been established.
|
||||
* @return Promise.
|
||||
*/
|
||||
open(): Promise<IGeneratedAPI>;
|
||||
|
||||
/**
|
||||
* Establishes the websocket against the configured URL. Eventually resolved with the QIX global interface when the connection has been established.
|
||||
* @return Promise.
|
||||
|
||||
Reference in New Issue
Block a user