Installation
npm install --save @types/myanmar-phonenumber
Summary
This package contains type definitions for myanmar-phonenumber (https://github.com/kaungmyatlwin/myanmar-phonenumber-js#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/myanmar-phonenumber.
index.d.ts
/*~ If this module is a UMD module that exposes a global variable 'myLib' when
*~ loaded outside a module loader environment, declare that global here.
*~ Otherwise, delete this declaration.
*/
export as namespace myanmarPhoneNumber;
/*~ If this module has methods, declare them as functions like so.
*/
export function normalizeInput(phoneNumber: string): string;
export function isValidMMPhoneNumber(phoneNumber: string): boolean;
export function getTelecomName(phoneNumber: string): Operator;
export function getPhoneNetworkType(phoneNumber: string): NetworkType;
/*~ You can declare types that are available via importing the module */
export type Operator = "Ooredoo" | "Telenor" | "MPT" | "MEC" | "MyTel" | "Unknown";
export type NetworkType = "GSM" | "WCDMA" | "CDMA 450 MHz" | "CDMA 800 MHz" | "Unknown";
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Htet Oo Wai Yan.