Skip to content

Commit 4a732f7

Browse files
committed
fix: type errors on description block and match method name to docs
1 parent 3a5344a commit 4a732f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/web-api/src/types/request/slacklists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Block, KnownBlock } from '@slack/types';
1+
import type { RichTextBlock } from '@slack/types';
22

33
import type { TokenOverridable } from './common';
44

packages/web-api/test/types/methods/slacklists.test-d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const web = new WebClient('TOKEN');
66

77
// slackLists.create
88
// -- sad path
9-
expectError(web.slacklists.create()); // lacking argument
10-
expectError(web.slacklists.create({})); // missing name
9+
expectError(web.slackLists.create()); // lacking argument
10+
expectError(web.slackLists.create({})); // missing name
1111

1212
// -- happy path
13-
expectAssignable<Parameters<typeof web.slacklists.create>>([
13+
expectAssignable<Parameters<typeof web.slackLists.create>>([
1414
{
1515
name: 'Backlog',
1616
},

0 commit comments

Comments
 (0)