aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/method.d.ts16
-rw-r--r--dist/types/index.d.ts2
2 files changed, 18 insertions, 0 deletions
diff --git a/dist/method.d.ts b/dist/method.d.ts
new file mode 100644
index 0000000..61c31d6
--- /dev/null
+++ b/dist/method.d.ts
@@ -0,0 +1,16 @@
+import { Description } from "./types";
+import { Message } from "./message";
+
+export declare class Method {
+ public constructor(methodName: string, description: Description);
+
+ public readonly description: Description;
+
+ public readonly name: string;
+
+ public on(event: "request", listener: (message: Message) => void): this;
+
+ public on(event: "cancel", listener: (message: Message) => void): this;
+
+ public on(event: string, listener: Function): this;
+}
diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts
new file mode 100644
index 0000000..92aada8
--- /dev/null
+++ b/dist/types/index.d.ts
@@ -0,0 +1,2 @@
+// eslint-disable-next-line @typescript-eslint/no-type-alias
+export type Description = any;