mirror of
https://github.com/SillyTavern/transformers.js.git
synced 2026-10-15 18:12:06 +00:00
[PR #4] [CLOSED] Fix build: suppress Jimp 1.6.0 type incompatibilities in image.js #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/transformers.js#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SillyTavern/transformers.js/pull/4
Author: @Copilot
Created: 3/15/2026
Status: ❌ Closed
Base:
main← Head:copilot/fix-npm-build-command📝 Commits (2)
df1585fInitial plan30bb1ffFix build: add @ts-ignore for Jimp type incompatibilities in image.js📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
packages/transformers/src/utils/image.js(+5 -0)📄 Description
tsc --build(typegen step) fails with 5 type errors insrc/utils/image.jsdue to Jimp 1.6.0's complex generic return types..resize()and.crop()returnJimpInstanceMethods<...>which TS won't assign back to the instance variable, despite being the same type at runtime.write(path)expects`${string}.${string}`template literal but receivesstringAdded
@ts-ignorecomments on all 5 lines, consistent with 80+ existing suppressions for similar library type issues throughout the codebase.📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.