iya-sts
    Preparing search index...
    validate: (
        given?: Record<string, any>,
        name?: unknown,
    ) => {
        problems: string[];
        values: Record<string, string | number | boolean>;
    } = ...

    Type Declaration

      • (
            given?: Record<string, any>,
            name?: unknown,
        ): { problems: string[]; values: Record<string, string | number | boolean> }
      • 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.

        Parameters

        • Optionalgiven: Record<string, any>

          the posted fields

        • Optionalname: unknown

          the profile being saved, whose stored value an optional row left out keeps; default when absent

        Returns { problems: string[]; values: Record<string, string | number | boolean> }

        { values, problems }