The type of the player's customData. Defaults to
Record<string, unknown>.
Optional ReadonlycustomData?: DeepReadonly<C>Any custom data the caller attached to the request, including the player's own fields.
Optional Readonlyheaders?: Readonly<Record<string, string>>The headers associated with the request.
The media request passed to a report transform, as a read-only view.
The request is context only. A transform reads it to decide what to do with the report. A transform must not mutate the request, which belongs to the caller and may still be in use. Every member is
readonly, andcustomDatais readonly at every depth, so nested values cannot be written either.By default
customDatavalues areunknownrather thanany, because the library cannot know the player's fields. Narrow with a cast or bracket access to read player-specific fields:Supply
Cto describe the player's owncustomDatainstead, and those reads become typed dot access. Annotating one transform is enough: the reporter infersCfor every other transform in the same configuration.This type wraps
Cin DeepReadonly, so a nestedCkeeps both the read-only guarantee and typed reads.Two limits apply. A mutable body such as
FormDataorURLSearchParamshas mutating methods of its own that no type can block. JavaScript callers get no enforcement at all. Both kinds of mutation are unsupported, and the outgoing report may reflect them.