UNPKG

test-numbers-generator

Version:

Generate and validate European test phone numbers (mobile and landline) in safe, non-existent ranges.

8 lines (7 loc) 478 B
export type PhoneNumberType = 'mobile' | 'landline'; export type SupportedCountry = 'Netherlands' | 'Germany' | 'Belgium' | 'France' | 'UnitedKingdom' | 'Spain' | 'Italy' | 'Austria' | 'Switzerland' | 'Sweden'; export declare const generateTestMobileNumber: Record<SupportedCountry, () => string>; export declare function generateTestLandlineNumber(): string; export declare const testNumbersGenerator: { generateTestMobileNumber: Record<SupportedCountry, () => string>; };