Synchronously registers all metadata from a bundle. Use this when you import a bundle directly.
The metadata bundle to register
import DACH from "ts-phonenumber/metadata/bundles/DACH"import { registerBundle } from "ts-phonenumber"// Register all DACH countries at onceregisterBundle(DACH)// Now use sync APIconst parsed = parseSync("+49 170 1234567") Copy
import DACH from "ts-phonenumber/metadata/bundles/DACH"import { registerBundle } from "ts-phonenumber"// Register all DACH countries at onceregisterBundle(DACH)// Now use sync APIconst parsed = parseSync("+49 170 1234567")
Synchronously registers all metadata from a bundle. Use this when you import a bundle directly.