Checks the body of PATCH /api/me/settings before routes/me.ts trusts it.

Functions

f
isUpdateSettingsRequest(obj: unknown): obj is UpdateSettingsRequest

Checks whether obj is an UpdateSettingsRequest: an object whose every key is a setting, each with a value that setting takes. An unknown key fails, so a typo doesn't pass for a change.