Skip to main content

Types

Types are shared between @syncsnap/react and syncsnap where applicable. Import from the package you use.

JobStatus

Job

CreateJobResponse

Returned when creating a job (POST job).

PresignedUrlResponse

Returned when requesting a presigned upload or download URL.

CompletedJobResponse (React)

When the server is configured with onCompleted, the download response can include a custom payload.

UseSyncsnapJobOptions (React)

Options for useSyncsnapJob. See useSyncsnapJob API.

UseSyncsnapJobResult (React)

Return value of useSyncsnapJob.

WaitForJobOptions (Server)

Options for SyncsnapServer.waitForJobCompletion: