# PhoneDetails Type documentation

## TypeScript declaration

### [PhoneDetails](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L38-L51>)

**Kind:** interface

```
import type { PhoneDetails } from '@siemens/element-ng/phone-number';
```

Describes the phone number, its validity and associated country information.

```
interface PhoneDetails
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [country](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L42-L42>) (optional) | `CountryInfo` | CountryInfo object containing name, countryCode and isoCode of the phone number. |
| [isValid](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L50-L50>) | `boolean` | Confirms if the phone number is valid or not |
| [phoneNumber](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L46-L46>) (optional) | `string` | Phone number entered by the user. |

### Types Documentation

### [CountryInfo](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L20-L33>)

**Kind:** interface

```
import type { CountryInfo } from '@siemens/element-ng/phone-number';
```

Describes the country information of the phone number.

```
interface CountryInfo
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [countryCode](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L28-L28>) | `number` | The country dial code |
| [isoCode](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L32-L32>) | `string` | The country ISO code. |
| [name](<https://github.com/siemens/element/blob/main/projects/element-ng/phone-number/si-phone-number-input.models.ts#L24-L24>) | `string` | The name of the country. |
