simujs
Version:
Tanzanian phone number detection library based on public TCRA numbering data (not affiliated with TCRA).
18 lines • 477 B
TypeScript
import { ServiceType } from "./enums";
export interface Operator {
name: string;
company: string;
prefixes: string[];
service: ServiceType;
financialService?: string | null;
status: "Operational" | "Not Operational";
}
export type SimuError = "INVALID_NUMBER" | "UNSUPPORTED_COUNTRY" | "UNKNOWN_OPERATOR";
export type SimuResult = {
ok: true;
operator: Operator;
} | {
ok: false;
reason: SimuError;
};
//# sourceMappingURL=types.d.ts.map