interface VerificationField {
    codePlaceholder?: string;
    label?: string;
    name: string;
    onConfirm: ((value, code, onSuccess) => void | Promise<void>);
    onSend: ((value) => void | Promise<void>);
    sendFieldPattern?: RegExp;
    sendFieldPlaceholder?: string;
    timeoutSecond?: number;
    type: "code";
}

Properties

codePlaceholder?: string
label?: string
name: string
onConfirm: ((value, code, onSuccess) => void | Promise<void>)

Type declaration

    • (value, code, onSuccess): void | Promise<void>
    • Parameters

      • value: string
      • code: string
      • onSuccess: (() => void)
          • (): void
          • Returns void

      Returns void | Promise<void>

onSend: ((value) => void | Promise<void>)

Type declaration

    • (value): void | Promise<void>
    • Parameters

      • value: string

      Returns void | Promise<void>

sendFieldPattern?: RegExp
sendFieldPlaceholder?: string
timeoutSecond?: number
type: "code"

Generated using TypeDoc