fix: narrow Slack outbound blocks opt type
This commit is contained in:
@@ -54,7 +54,7 @@ async function sendSlackOutboundMessage(params: {
|
|||||||
text: string;
|
text: string;
|
||||||
mediaUrl?: string;
|
mediaUrl?: string;
|
||||||
mediaLocalRoots?: readonly string[];
|
mediaLocalRoots?: readonly string[];
|
||||||
blocks?: Parameters<typeof sendMessageSlack>[2]["blocks"];
|
blocks?: NonNullable<Parameters<typeof sendMessageSlack>[2]>["blocks"];
|
||||||
accountId?: string | null;
|
accountId?: string | null;
|
||||||
deps?: { sendSlack?: typeof sendMessageSlack } | null;
|
deps?: { sendSlack?: typeof sendMessageSlack } | null;
|
||||||
replyToId?: string | null;
|
replyToId?: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user