OptionsType
OptionsType =
object
Defined in: packages/synapse-core/src/sp/upload.ts:116
Properties
Section titled “Properties”data:
File[]
Defined in: packages/synapse-core/src/sp/upload.ts:120
The data to upload.
dataSetId
Section titled “dataSetId”dataSetId:
bigint
Defined in: packages/synapse-core/src/sp/upload.ts:118
The ID of the data set.
onEvent?
Section titled “onEvent?”
optionalonEvent?: <T>(event,data) =>void
Defined in: packages/synapse-core/src/sp/upload.ts:122
The callback to call when an event occurs.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends keyof Events |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event | T |
data | Events[T] |
Returns
Section titled “Returns”void
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/synapse-core/src/sp/upload.ts:124
The signal to abort the SP requests (upload, piece polling and add pieces).