Checks the rows settings-service.ts reads from user_settings, and turns them into the UserSettings the settings endpoints answer.

Functions

f
isUserSettingsRow(obj: unknown): obj is UserSettingsRow

Checks whether obj, a row getSettings selected, is a UserSettingsRow.

f
settingsRowToApi(row: UserSettingsRow): UserSettings

Converts a row to the UserSettings the client gets. A style or scheme the code no longer knows, as after one is removed, reads as unset.

Interfaces

I
UserSettingsRow

Stored by updateSettings and read back by getSettings. A user without a row has the defaults.

Variables

v
SETTINGS_COLUMNS: Record<keyof UserSettings, string>

Names the column of each setting, for the queries that pick users by one, as digest-service.ts does by its digest's switch.