mozambique-utils
Version:
Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.
12 lines (11 loc) • 536 B
TypeScript
import { NDC, NetworkOperatorSpec } from "./type/types";
/**
* Get the network operator from any mozambican valid `ndc` (National Destination Code),
* which can be, for example, 21, 293, 84, 85, 86, etc...
*
* @param ndc The national destination code (E.g: 82, 84 or 293) to check for.
* @throws if the provided ndc is not of type string
* @returns {NetworkOperatorSpec} network operator information.
*/
declare const ndc_to_operator: (ndc: NDC | string) => NetworkOperatorSpec | null;
export default ndc_to_operator;