We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b57f89 commit 89dd5c8Copy full SHA for 89dd5c8
apps/meteor/app/api/server/definition.spec.ts
@@ -12,6 +12,11 @@ type Mutable<T> = { -readonly [K in keyof T]: T[K] };
12
interface IChatPostMessageBody {
13
channal: string;
14
text: string;
15
+ attachments?: Array<{
16
+ text: string;
17
+ color?: string;
18
+ image_url?: string;
19
+ }>;
20
}
21
type ChatPostMessageBodyValidator = ValidateFunction<IChatPostMessageBody>;
22
@@ -31,7 +36,7 @@ type ExpectedActionThis = {
31
36
urlParams: never;
32
37
readonly response: Response;
33
38
readonly queryParams: Record<string, string>;
34
- readonly bodyParams: IChatPostMessageBody;
39
+ readonly bodyParams: ChatPostMessageBodyValidator;
35
40
readonly request: Request;
41
readonly queryOperations: never;
42
parseJsonQuery: () => Promise<{
0 commit comments