Function: validateAnchor()
function validateAnchor(anchor: PositionAnchor, field?: string): PositionAnchor;
Defined in: packages/media-session/src/validate.ts:118
The anchor is the one payload whose garbage is invisible until a user stares at a lock screen counting backwards, so it is validated hardest.
Parameters
| Parameter | Type | Default value |
|---|---|---|
anchor | PositionAnchor | undefined |
field | string | 'position' |