Packages:
Select all that apply:
Reproducible in:
The Slack SDK version
^7.9.0
Node.js runtime version
v22.12.0
OS info
ProductName: macOS
ProductVersion: 15.3.2
BuildVersion: 24D81
Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6031
Steps to reproduce:
(Share the commands to run, source code, and project settings)
- Call
web.files.completeUploadExternal and pass in blocks. Cursor IDE complains about this.
- Run
tsc --noEmit
Expected result:
Type-check doesn't complain nor the IDE.
Currently I am commenting above arg.
const completeUploadResponse = await web.files.completeUploadExternal({
token: SLACK_BOT_TOKEN,
files: [{ id: fileId, title: 'qr-code.png' }],
channel_id: channelId,
// @ts-expect-error
blocks: [
{
type: 'section',
text: { type: 'mrkdwn', text: " QR Code' },
},
],
});
Actual result:
Type check fail for blocks arg inside web.files.completeUploadExternal
Inside IDE:
Object literal may only specify known properties, and 'blocks' does not exist in type 'FilesCompleteUploadExternalArguments'.ts(2353)
In terminal:
app-ux-buildkite:type-check: pipelines/scheduled-builds/src/slack/post.ts:76:7 - error TS2353: Object literal may only specify known properties, and 'blocks' does not exist in type 'FilesCompleteUploadExternalArguments'.
app-buildkite:type-check:
app-buildkite:type-check: 76 blocks: [
app-buildkite:type-check: ~~~~~~
app-buildkite:type-check:
app-buildkite:type-check:
app-buildkite:type-check: Found 1 error in pipelines/scheduled-builds/src/slack/post.ts:76
app-buildkite:type-check:
app-buildkite:type-check: ELIFECYCLE Command failed with exit code 2.
app-buildkite:type-check: ERROR: command finished with error: command (/Users/USER/code/ux/.buildkite) /Users/USER/.nvm/versions/node/v22.12.0/bin/pnpm run type-check exited (2)
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
Packages:
Select all that apply:
@slack/web-api@slack/rtm-api@slack/webhooks@slack/oauth@slack/socket-mode@slack/typesReproducible in:
The Slack SDK version
^7.9.0
Node.js runtime version
v22.12.0
OS info
Steps to reproduce:
(Share the commands to run, source code, and project settings)
web.files.completeUploadExternaland pass inblocks. Cursor IDE complains about this.tsc --noEmitExpected result:
Type-check doesn't complain nor the IDE.
Currently I am commenting above arg.
Actual result:
Type check fail for blocks arg inside
web.files.completeUploadExternalInside IDE:
In terminal:
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.