Skip to content

Commit

Permalink
Merge pull request slackapi#788 from stevengill/main
Browse files Browse the repository at this point in the history
Release v3.2.0
  • Loading branch information
stevengill authored Feb 10, 2021
2 parents 5e2db65 + 5f461da commit be7ff68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slack/bolt",
"version": "3.1.1",
"version": "3.2.0",
"description": "A framework for building Slack apps, fast.",
"author": "Slack Technologies, Inc.",
"license": "MIT",
Expand Down
20 changes: 10 additions & 10 deletions types-tests/message.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { expectError, expectType } from 'tsd';
import { expectType } from 'tsd';
import { App, MessageEvent, BotMessageEvent } from '../';

const app = new App({ token: 'TOKEN', signingSecret: 'Signing Secret' });

expectType<void>(app.message(async ({ message }) => {
expectType<MessageEvent>(message);
expectType<void>(
app.message(async ({ message }) => {
expectType<MessageEvent>(message);

if (message.subtype === undefined) {
expectError(message.channel_type);
} else if (message.subtype === 'bot_message') {
expectType<BotMessageEvent>(message);
}
if (message.subtype === 'bot_message') {
expectType<BotMessageEvent>(message);
}

await Promise.resolve(message);
}));
await Promise.resolve(message);
}),
);

0 comments on commit be7ff68

Please sign in to comment.