mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Type LGraphNode.pasteFile (#2455)
This commit is contained in:
@@ -730,8 +730,7 @@ export const ComfyWidgets: Record<string, ComfyWidgetConstructor> = {
|
||||
return handled
|
||||
}
|
||||
|
||||
// @ts-expect-error
|
||||
node.pasteFile = function (file) {
|
||||
node.pasteFile = function (file: File) {
|
||||
if (file.type.startsWith('image/')) {
|
||||
const is_pasted =
|
||||
file.name === 'image.png' && file.lastModified - Date.now() < 2000
|
||||
|
||||
Reference in New Issue
Block a user