2.1.5 • Published 6 months ago

@types/aws-regions v2.1.5

Weekly downloads
176
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for aws-regions 2.1
// Project: https://github.com/jsonmaur/aws-regions#readme
// Definitions by: Alex Lapa <https://github.com/Deadarius>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7

interface AwsRegionInfo {
    name: string;
    full_name: string;
    code: string;
    public: boolean;
    zones: ReadonlyArray<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: Wed, 07 Jul 2021 21:44:42 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Alex Lapa.

2.1.4

6 months ago

2.1.3

7 months ago

2.1.5

6 months ago

2.1.2

3 years ago

2.1.1

4 years ago

2.1.0

5 years ago