Source: types/country-code.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

import IsoCountries from 'i18n-iso-countries'
import {makeValidator} from './validators'

/**
 * @memberOf module:types
 * @typedef {String} CountryCode
 */
export const CountryCode = makeValidator(IsoCountries.isValid, 'Not a valid Country Code.')