We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Callback
1 parent f273cfe commit f05ebf2Copy full SHA for f05ebf2
src/types/index.d.ts
@@ -60,7 +60,10 @@ export interface ValidatorJSAsserts {
60
/** Valid Canadian ZIP code (postal code). */
61
caZipCode(): AssertInstance;
62
63
- /** Run a custom callback function, passing a custom class name. */
+ /**
64
+ * Run a custom callback function, passing a custom class name.
65
+ * - Class names must match the pattern `/^[a-zA-Z\d]+$/`.
66
+ */
67
callback(fn: (value: unknown) => boolean, customClass: string): AssertInstance;
68
69
/** Valid Brazilian CPF number. @requires cpf */
0 commit comments