@dialstack/sdk-dev / js/src / ParseProblemReason
Type Alias: ParseProblemReason
TypeScript
type ParseProblemReason = "invalid" | "not_us" | "toll_free" | "ambiguous" | "has_extension";
Defined in: sdk/js/src/utils/phone-list.ts:12
Why a line could not be turned into a number.
invalid— a single number that is not a real US numbernot_us— parses and is valid, but belongs to another countrytoll_free— a US toll-free number, which cannot be portedambiguous— digits that do not divide cleanly into whole numbershas_extension— an extension is present, which we refuse to strip silently