# @types/react-select-country-list

> TypeScript definitions for react-select-country-list

Latest version **2.2.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-select-country-list
pnpm add @types/react-select-country-list
yarn add @types/react-select-country-list
bun add @types/react-select-country-list
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.2.3 |
| Published | 2023-11-07 |
| First published | 2021-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-select-country-list
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-select-country-list
- npm.io page: https://npm.io/package/@types/react-select-country-list

## Recent versions

- 2.2.3 (latest) — 2023-11-07
- 2.2.1 (ts4.1) — 2022-09-21
- 2.2.0 (ts3.4) — 2021-02-17
- 2.2.2 — 2023-10-18

## README

# Installation
> `npm install --save @types/react-select-country-list`

# Summary
This package contains type definitions for react-select-country-list (https://github.com/Chun-Lin/react-select-country-list).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-select-country-list.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-select-country-list/index.d.ts)
````ts
declare namespace ReactSelectCountries {
    interface CountryData {
        label: string;
        value: string;
    }

    interface LabelValueMap {
        [key: string]: string;
    }

    interface Countries {
        data: CountryData[];
        labelMap: LabelValueMap;
        valueMap: LabelValueMap;
    }

    interface NativeCountries extends Countries {
        nativeData: CountryData[];
    }
}

declare class CountryList {
    data: ReactSelectCountries.CountryData[];
    labelMap: ReactSelectCountries.LabelValueMap;
    valueMap: ReactSelectCountries.LabelValueMap;

    getValue(label: string): string;
    getLabel(value: string): string;
    getValues(): string[];
    getLabels(): string[];
    getLabelList(): ReactSelectCountries.LabelValueMap;
    getValueList(): ReactSelectCountries.LabelValueMap;
    getData(): ReactSelectCountries.CountryData[];
    setLabel(value: string, label: string): ReactSelectCountries.Countries;
    setEmpty(label: string): ReactSelectCountries.Countries;
    native(): ReactSelectCountries.NativeCountries;
}

declare function countryList(): CountryList;

export = countryList;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Kieran Roberts](https://github.com/kieran6roberts).

---
_Source: https://npm.io/package/@types/react-select-country-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
