(TypeScript) 自订类名修订:File -> FileInfo by cyfung1031 · Pull Request #1174 · scriptscat/scriptcat
Navigation Menu
{{ message }}
scriptscat / scriptcat Public
- Notifications You must be signed in to change notification settings
- Fork 322
Merged
CodFrm merged 1 commit intoscriptscat:mainfrom
Feb 1, 2026Merged
(TypeScript) 自订类名修订:File -> FileInfo#1174
CodFrm merged 1 commit intoscriptscat:mainfrom
(TypeScript) 自订类名修订:File -> FileInfo#1174
CodFrm merged 1 commit intoscriptscat:mainfrom
Conversation
Copy link Copy Markdown
Collaborator
cyfung1031
commented
Feb 1, 2026
cyfung1031
commented
Browser本身就有一个 extend Blob 的 File class
https://developer.mozilla.org/en/docs/Web/API/File
因此ScriptCat自订的「File」不应使用同一名字
cyfung1031 commented Feb 1, 2026
| meta?: File; | ||
| } | ||
| >(); | ||
| const uuidMap = new Map<string, Partial<SyncFiles>>(); |
Copy link Copy Markdown
Collaborator Author
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注:这里直接改成了 Partial<SyncFiles>
cyfung1031
deleted the
pr-type-rename-1901
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment