@types/aws-regions
TypeScript icon, indicating that this package has built-in type declarations

2.1.5 • Public • Published

Installation

npm install --save @types/aws-regions

Summary

This package contains type definitions for aws-regions (https://github.com/jsonmaur/aws-regions#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-regions.

index.d.ts

interface AwsRegionInfo {
    name: string;
    full_name: string;
    code: string;
    public: boolean;
    zones: readonly string[];
}

interface ListOptions {
    public?: boolean | undefined;
}

interface LookupOptionsCode {
    code: string;
}

interface LookupOptionsName {
    name: string;
}

type LookupOptions = LookupOptionsCode | LookupOptionsName;

interface AwsRegions {
    list: (options?: ListOptions) => AwsRegionInfo[];
    lookup: (options: LookupOptions) => AwsRegionInfo;
}

declare const awsRegions: AwsRegions;

export = awsRegions;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:23 GMT
  • Dependencies: none

Credits

These definitions were written by Alex Lapa.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/aws-regions

Weekly Downloads

606

Version

2.1.5

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types