Huggingface.js documentation
Interface: CommitEditFile
Interface: CommitEditFile
Opitmized when only the beginning or the end of the file is replaced
todo: handle other cases
Properties
edits
• edits: { content
: Blob
; end
: number
; start
: number
}[]
Defined in
packages/hub/src/lib/commit.ts:58
operation
• operation: "edit"
Defined in
packages/hub/src/lib/commit.ts:54
originalContent
• originalContent: Blob
Later, will be ContentSource. For now simpler to just handle blobs
Defined in
packages/hub/src/lib/commit.ts:57
path
• path: string
Defined in
packages/hub/src/lib/commit.ts:55
< > Update on GitHub