Skip to content

Conversation

@ycdzj
Copy link
Contributor

@ycdzj ycdzj commented Nov 14, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 14, 2025 07:20
Copilot finished reviewing on behalf of ycdzj November 14, 2025 07:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors file-related interfaces by splitting the generic FileInfo interface into two more specific, context-aware interfaces: UploadFileInfo and DownloadFileInfo. This improves type safety and code clarity by distinguishing between upload and download operations.

  • Split FileInfo into UploadFileInfo (with id, post_url, post_fields) and DownloadFileInfo (with url)
  • Updated all imports and usages across affected files

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/interface.ts Replaced FileInfo interface with two new interfaces: UploadFileInfo and DownloadFileInfo
src/lib/upload-files.ts Updated import and variable type from FileInfo to UploadFileInfo
src/lib/download-file.ts Updated import and variable type from FileInfo to DownloadFileInfo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ycdzj ycdzj merged commit 4029c7d into main Nov 14, 2025
9 checks passed
@ycdzj ycdzj deleted the refactor/resources branch November 14, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants