slackapi / slackapi/deno-slack-api

[BUG] Missing definitions for new file upload functions

Open
#119 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
45
Forks
18
PR merge metrics
No merged PRs in 30d

Description

The deno-slack versions

"deno-slack-sdk/": "https://deno.land/x/deno_slack_sdk@2.15.0/",
"deno-slack-api/": "https://deno.land/x/deno_slack_api@2.8.0/",

Deno runtime version

deno 2.1.9 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2

OS info

ProductName:		macOS
ProductVersion:		15.2
BuildVersion:		24C101
Darwin Kernel Version 24.2.0: Fri Dec  6 19:02:41 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6030

Describe the bug

The deno api is missing definitions for the new file upload functions.

Steps to reproduce

Use client.files.getUploadURLExternal() or client.files.completeUploadExternal() functions.

Expected result

deno-ts to show the properties for these functions, and not complain.

Actual result

Property 'getUploadURLExternal' does not exist on type 'FilesAPIType'. deno-ts(2339)

Image

The code itself works fine. There is no actual error.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the FilesAPIType definitions and the existing entries for client.files methods. Check how getUploadURLExternal and completeUploadExternal should be represented, then verify that deno-ts accepts both properties without the reported type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno, typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.