Globals / "src/renderer/components/input/input_validators"
Module: "src/renderer/components/input/input_validators"#
Index#
Interfaces#
Variables#
Object literals#
Variables#
conditionalValidators#
• Const conditionalValidators: InputValidator[] = [ isRequired, isEmail, isNumber, isUrl, minLength, maxLength]
Defined in src/renderer/components/input/input_validators.ts:74
systemNameMatcher#
• Const systemNameMatcher: RegExp = /^a-z0-9?(.a-z0-9?)*$/
Defined in src/renderer/components/input/input_validators.ts:63
Object literals#
accountId#
▪ Const accountId: object
Defined in src/renderer/components/input/input_validators.ts:69
Properties:
| Name | Type | Value |
|---|---|---|
message |
function | () => any |
validate |
function | (value: string) => false | true | Promise\ |
isEmail#
▪ Const isEmail: object
Defined in src/renderer/components/input/input_validators.ts:20
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { type: string }) => boolean |
message |
function | () => any |
validate |
function | (value: string) => boolean |
isNumber#
▪ Const isNumber: object
Defined in src/renderer/components/input/input_validators.ts:26
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { type: string }) => boolean |
message |
function | () => any |
validate |
function | (value: string, __namedParameters: { max: string | number ; min: string | number }) => boolean |
isPath#
▪ Const isPath: object
Defined in src/renderer/components/input/input_validators.ts:45
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { type: string }) => boolean |
message |
function | () => any |
validate |
function | (value: string) => boolean |
isRequired#
▪ Const isRequired: object
Defined in src/renderer/components/input/input_validators.ts:14
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { required: boolean }) => boolean |
message |
function | () => any |
validate |
function | (value: string) => boolean |
isUrl#
▪ Const isUrl: object
Defined in src/renderer/components/input/input_validators.ts:39
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { type: string }) => boolean |
message |
function | () => any |
validate |
function | (value: string) => boolean |
maxLength#
▪ Const maxLength: object
Defined in src/renderer/components/input/input_validators.ts:57
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { maxLength: number }) => boolean |
message |
function | (value: string, __namedParameters: { maxLength: number }) => any |
validate |
function | (value: string, __namedParameters: { maxLength: number }) => boolean |
minLength#
▪ Const minLength: object
Defined in src/renderer/components/input/input_validators.ts:51
Properties:
| Name | Type | Value |
|---|---|---|
condition |
function | (__namedParameters: { minLength: number }) => boolean |
message |
function | (value: string, __namedParameters: { minLength: number }) => any |
validate |
function | (value: string, __namedParameters: { minLength: number }) => boolean |
systemName#
▪ Const systemName: object
Defined in src/renderer/components/input/input_validators.ts:64
Properties:
| Name | Type | Value |
|---|---|---|
message |
function | () => any |
validate |
function | (value: string) => boolean |