# Function getPhoneNumberValidationError

- getPhoneNumberValidationError(failIfValueFalsy, options?): ((value) => ErrorId)

- #### Parameters

  - failIfValueFalsy: boolean
  - `Optional` options: {
    country: keyof Countries;
    }

    - ##### country: keyof Countries

  #### Returns ((value) => ErrorId)

  - - (value): ErrorId

    - #### Parameters

      - value: string

      #### Returns ErrorId

  - Defined in src/lib/validators/validators.ts:313