Skip to content

Commit f4e347f

Browse files
committed
:chore: Tighten the errors type (#2446)
1 parent 178bf4a commit f4e347f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/types/auth_forms.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type AuthFormConstraints = {
2929
* @property {Object} data - The form input data
3030
* @property {string} data.username - The username field value
3131
* @property {string} data.password - The password field value
32-
* @property {Record<string, unknown>} errors - Collection of validation errors keyed by field name
32+
* @property {Record<string, string[]>} errors - Collection of validation errors keyed by field name
3333
* @property {AuthFormConstraints} [constraints] - Optional validation constraints for the form
3434
* @property {Record<string, unknown>} [shape] - Optional form schema or structure definition
3535
* @property {string} message - General message associated with the form (success, error, etc.)
@@ -39,7 +39,7 @@ export type AuthForm = {
3939
valid: boolean;
4040
posted: boolean;
4141
data: { username: string; password: string };
42-
errors: Record<string, unknown>;
42+
errors: Record<string, string[]>;
4343
constraints?: AuthFormConstraints;
4444
shape?: Record<string, unknown>;
4545
message: string;

0 commit comments

Comments
 (0)