Overview
Atomix QRGen provides comprehensive TypeScript types for all supported QR code formats. These types ensure type safety when working with QR data throughout the application.QrTypeKey
Enum defining the supported QR code types.Values
Plain text QR code type identifier
URL QR code type identifier
WiFi network QR code type identifier
vCard contact QR code type identifier
Payment QR code type identifier
Calendar event QR code type identifier
Data Interfaces
TextQrData
Interface for plain text QR codes.The text content to encode in the QR code
UrlQrData
Interface for URL QR codes.The URL to encode. Protocol prefix (http:// or https://) is optional and will be added automatically
WifiQrData
Interface for WiFi network QR codes.Network SSID (name). Maximum 32 characters
Network password. Required for WPA and WEP security types
Network security type. Use “nopass” for open networks
VCardQrData
Interface for vCard contact QR codes.Contact’s first name
Contact’s last name
Landline phone number
Mobile phone number
Email address
Organization or company name
Job title or position
Website URL
Physical address
Additional notes
PaymentQrData
Interface for payment QR codes.Payment method. Use “crypto” for cryptocurrency payments
Recipient’s name
Account number or cryptocurrency address
Bank name or payment platform
Payment amount. Must be greater than 0
Payment reference or memo
EventQrData
Interface for calendar event QR codes.Event title
Event description
Event location
Event start date and time (ISO format)
Event end date and time (ISO format). Must be after start time