Skip to content

KeyContext

KeyContext<TInput> = object

Defined in: packages/storage/src/types.ts:93

Context passed to the key function when generating an R2 object key.

TInput = Record<string, unknown>

The shape of caller-provided input data.

input: TInput

Defined in: packages/storage/src/types.ts:97

Caller-provided input data (e.g. a postId).


user: object

Defined in: packages/storage/src/types.ts:95

The authenticated user performing the upload.

[key: string]: unknown

id: string