KeyContext
KeyContext<
TInput> =object
Defined in: packages/storage/src/types.ts:93
Context passed to the key function when generating an R2 object key.
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = Record<string, unknown>
The shape of caller-provided input data.
Properties
Section titled “Properties”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.
Index Signature
Section titled “Index Signature”[key: string]: unknown
id:
string