pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.97k stars 290 forks source link

fix(docs): Update ut-api.mdx to match type defs #728

Closed FortyGazelle700 closed 5 months ago

FortyGazelle700 commented 5 months ago

Looking at uploadthing/packages/uploadthing/src/sdk/types.ts lines 83-85 I see the following lines of code that do not match the documentation.

type KeyRename = { key: string; newName: string };
type CustomIdRename = { customId: string; newName: string };
export type RenameFileUpdate = KeyRename | CustomIdRename;
changeset-bot[bot] commented 5 months ago

⚠️ No Changeset found

Latest commit: e0f3681af4b85cc46f7607d81d9397ee62c975f9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-uploadthing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 23, 2024 8:00pm