Skip to content

Commit 178bf4a

Browse files
committed
:chore: Export constraints for reuse (#2446)
1 parent c93bc28 commit 178bf4a

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
@@ -7,14 +7,14 @@
77
* @property {boolean} [required] - Whether the field is mandatory and must have a value
88
* @property {string} [pattern] - Regular expression pattern that the field value must match
99
*/
10-
type FieldConstraints = {
10+
export type FieldConstraints = {
1111
minlength?: number;
1212
maxlength?: number;
1313
required?: boolean;
1414
pattern?: string;
1515
};
1616

17-
type AuthFormConstraints = {
17+
export type AuthFormConstraints = {
1818
username?: FieldConstraints;
1919
password?: FieldConstraints;
2020
};

0 commit comments

Comments
 (0)