We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559b09c commit 57cc34bCopy full SHA for 57cc34b
1 file changed
packages/cody-types/src/index.ts
@@ -1,5 +1,23 @@
1
import {List, Map} from "immutable";
2
3
+export type ReplyCallback<T = any> = (reply: T) => Promise<CodyResponse>;
4
+
5
+export interface CodyResponse {
6
+ cody: string | string[];
7
+ details?: string | string[];
8
+ type?: CodyResponseType;
9
+ reply?: ReplyCallback;
10
+}
11
12
+export enum CodyResponseType {
13
+ Info = 'Info',
14
+ Error = 'Error',
15
+ Warning = 'Warning',
16
+ Question = 'Question',
17
+ SyncRequired = 'SyncRequired',
18
+ Empty= 'Empty',
19
20
21
export type NodeMap = Map<string, Node>;
22
export type NodeId = string;
23
export type NodeName = string;
0 commit comments