@automattic/wpcom-checkout
Version:
Functions and components used by WordPress.com checkout.
10 lines • 486 B
TypeScript
import type { CountryListItem } from './types';
/**
* Returns true if postal codes are supported on the specified country code.
*
* NOTE: Will return false if the countries list is empty or if the country
* code is not in the list! Always check that the countries list has loaded
* before calling this.
*/
export declare function getCountryPostalCodeSupport(countries: CountryListItem[], countryCode: string): boolean;
//# sourceMappingURL=get-country-postal-code-support.d.ts.map