# checkPhoneInput

Source: https://pakdatakit.dev/api/typescript/input/functions/checkphoneinput/

```ts
function checkPhoneInput(value): InputState;
```

Defined in: [input.ts:119](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/input.ts#L119)

Checks a Pakistani mobile number while the user is typing. The `03XX`
prefix is checked as soon as it is complete. See [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/).

## Parameters

| Parameter | Type |
| :------ | :------ |
| `value` | `string` |

## Returns

[`InputState`](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/)

## Example

```ts
checkPhoneInput('0300 12');     // 'incomplete'
checkPhoneInput('0360');        // 'invalid' (prefix not allocated)
checkPhoneInput('03001234567'); // 'valid'
```
