1.0.4 • Published 2 years ago
@types/genyus__country-code v1.0.4
Installation
npm install --save @types/genyus__country-code
Summary
This package contains type definitions for @genyus/country-code (https://github.com/lwhiteley/cc#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/genyus__country-code.
index.d.ts
// Type definitions for @genyus/country-code 1.0
// Project: https://github.com/lwhiteley/cc#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Country Code utility Library
*/
export function find(opts: Options): Country | undefined;
export function nameIncludes(name: string, opts?: Options): Country[];
export interface Country {
readonly name: string;
readonly alpha2: string;
readonly alpha3: string;
isoNumeric: string;
}
export interface Options {
/**
* number from 0 - 1, a percentage of accuracy for the search
* @default 1
*/
accuracy?: number | undefined;
name?: string | undefined;
}
export const countries: {
[key: string]: Country;
};
Additional Details
- Last updated: Thu, 08 Jul 2021 12:02:02 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.