@trackunit/react-form-components 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,4 +2,4 @@ export type UrlValidationErrorCode = "REQUIRED" | "INVALID_HEX_CODE" | undefined
|
|
|
2
2
|
/**
|
|
3
3
|
* Validates a url
|
|
4
4
|
*/
|
|
5
|
-
export declare const validateColorCode: (colorCode
|
|
5
|
+
export declare const validateColorCode: (colorCode?: string | number | readonly string[], required?: boolean | undefined) => UrlValidationErrorCode;
|
|
@@ -2,4 +2,4 @@ export type EmailValidationErrorCode = "REQUIRED" | "INVALID_EMAIL" | undefined;
|
|
|
2
2
|
/**
|
|
3
3
|
* Validates a email id
|
|
4
4
|
*/
|
|
5
|
-
export declare const validateEmailId: (emailId
|
|
5
|
+
export declare const validateEmailId: (emailId?: string | number | readonly string[], required?: boolean | undefined) => EmailValidationErrorCode;
|
|
@@ -2,4 +2,4 @@ export type UrlValidationErrorCode = "REQUIRED" | "INVALID_URL" | undefined;
|
|
|
2
2
|
/**
|
|
3
3
|
* Validates a url
|
|
4
4
|
*/
|
|
5
|
-
export declare const validateUrl: (url
|
|
5
|
+
export declare const validateUrl: (url?: string | number | readonly string[], required?: boolean | undefined) => UrlValidationErrorCode;
|