validate: (
given?: Record<string, any>,
) => { problems: string[]; values: Record<string, number | boolean> } = ...
Type Declaration
-
- (
given?: Record<string, any>,
): { problems: string[]; values: Record<string, number | boolean> }
-
Parameters
Optionalgiven: Record<string, any>
Returns { problems: string[]; values: Record<string, number | boolean> }
{ values, problems }
Checks a save's body: every field is required, since a save replaces the whole profile.
On the console's own form an absent boolean means false.