1.0.4 • Published 2 years ago

@types/genyus__country-code v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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.

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago