Socket
Socket
Sign inDemoInstall

@types/countries-and-timezones

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

25

countries-and-timezones/index.d.ts

@@ -1,4 +0,5 @@

// Type definitions for countries-and-timezones 1.0
// Type definitions for countries-and-timezones 2.0
// Project: https://github.com/manuelmhtr/countries-and-timezones#readme
// Definitions by: David Bird <https://github.com/zero51>
// Piotr Okoński <https://github.com/pokonski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,3 +10,3 @@

name: string;
timezones: string[];
timezones: ReadonlyArray<string>;
}

@@ -16,12 +17,14 @@

utcOffset: number;
offsetStr: string;
countries: string[];
utcOffsetStr: string;
dstOffset: number;
dstOffsetStr: string;
aliasOf: string | null;
country: string | null;
}
export function getAllCountries(): {[key: string]: Country};
export function getAllTimezones(): {[key: string]: Timezone};
export function getCountriesForTimezone(timezoneId: string): Country[];
export function getTimezonesForCountry(countryId: string): Timezone[];
export function getCountry(id: string): Country;
export function getTimezone(name: string): Timezone;
export function getAllCountries(): Country[];
export function getAllTimezones(): Timezone[];
export function getCountryForTimezone(name: string): Country;
export function getTimezonesForCountry(id: string): Timezone[];
{
"name": "@types/countries-and-timezones",
"version": "1.0.1",
"version": "2.0.0",
"description": "TypeScript definitions for countries-and-timezones",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "zero51"
},
{
"name": "Piotr Okoński",
"url": "https://github.com/pokonski",
"githubUsername": "pokonski"
}

@@ -23,4 +28,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "11764a2046f692705075aca3854e8ba9d17da4825eb9e1bc4b8c773d71f7c426",
"typesPublisherContentHash": "2084ce63c98ef30e16ad211d186fbd67df2a3bb3d3bcfdc3db82607e4b5765c3",
"typeScriptVersion": "2.0"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for countries-and-timezones ( https://github.com/manuelmhtr/countries-and-timezones#readme ).
This package contains type definitions for countries-and-timezones (https://github.com/manuelmhtr/countries-and-timezones#readme).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Sat, 30 Mar 2019 04:05:29 GMT
* Last updated: Fri, 18 Oct 2019 15:53:56 GMT
* Dependencies: none

@@ -18,2 +18,2 @@ * Global values: none

# Credits
These definitions were written by David Bird <https://github.com/zero51>.
These definitions were written by David Bird <https://github.com/zero51>, and Piotr Okoński <https://github.com/pokonski>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc