test-numbers-generator
Version:
Generate and validate European test phone numbers (mobile and landline) in safe, non-existent ranges.
7 lines (6 loc) • 499 B
TypeScript
export type PhoneNumberType = 'mobile' | 'landline';
export type SupportedCountry = 'Netherlands' | 'Germany' | 'Belgium' | 'France' | 'UnitedKingdom' | 'Spain' | 'Italy' | 'Austria' | 'Switzerland' | 'Sweden' | 'Norway' | 'Denmark' | 'Finland' | 'Portugal' | 'Ireland' | 'Turkey' | 'Morocco';
export declare const generateTestMobileNumber: Record<SupportedCountry, () => string>;
export declare const testNumbersGenerator: {
generateTestMobileNumber: Record<SupportedCountry, () => string>;
};