npm.io
1.0.4 • Published 2 years ago

@types/genyus__country-code

Licence
MIT
Version
1.0.4
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/**
 * 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: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.