;
-// TODO: This is really internal, do we need to expose this?
-const all =
- (validators: Validator[]): Validator =>
- async (value: string) => {
- const result = await Promise.all(validators.map((item) => item(value)));
- return result.filter((item) => item !== undefined).flat();
- };
-
/** String must match `regex` */
const matches =
(regex: RegExp, message?: string): Validator =>
@@ -68,7 +60,6 @@ const isInt =
};
export const Validate = {
- all,
matches,
minLength,
maxLength,
diff --git a/web/html/src/components/input/validation/async.stories.tsx b/web/html/src/components/input/validation/async.stories.tsx
index 22a16f9ea5d..313fde4b034 100644
--- a/web/html/src/components/input/validation/async.stories.tsx
+++ b/web/html/src/components/input/validation/async.stories.tsx
@@ -16,7 +16,7 @@ export default () => {
};
return (
-
diff --git a/web/html/src/components/input/validation/helpers.stories.tsx b/web/html/src/components/input/validation/helpers.stories.tsx
index 7a611551a9d..40224d9469f 100644
--- a/web/html/src/components/input/validation/helpers.stories.tsx
+++ b/web/html/src/components/input/validation/helpers.stories.tsx
@@ -6,11 +6,11 @@ export default () => {
const [model, setModel] = useState({ foo: "Foo", bar: "3", tea: "Hi" });
return (
-
);
};
diff --git a/web/html/src/components/input/validation/multiple-messages.stories.tsx b/web/html/src/components/input/validation/multiple-messages.stories.tsx
index 46f8125fb40..43a2518c194 100644
--- a/web/html/src/components/input/validation/multiple-messages.stories.tsx
+++ b/web/html/src/components/input/validation/multiple-messages.stories.tsx
@@ -12,7 +12,7 @@ export default () => {
};
return (
-