Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/timezone-js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/timezone-js - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

17

timezone-js/index.d.ts

@@ -8,3 +8,2 @@ // Type definitions for timezone-js

export declare var timezone: TimezoneJs;

@@ -19,7 +18,16 @@

constructor(time: string, timezone?: string);
constructor(year?: number, month?: number, day?: number, hour?: number, minute?: number, second?: number, millisecond?: number, timezone?: string);
constructor(
year?: number,
month?: number,
day?: number,
hour?: number,
minute?: number,
second?: number,
millisecond?: number,
timezone?: string,
);
setTimezone: (timezone: string) => void;
// regular Date members
toString(format?:string): string;
toString(format?: string): string;
toDateString(): string;

@@ -51,3 +59,3 @@ toTimeString(): string;

// Note the setters have a non-void return type. Date has them as well, according to TypeScript
// Note the setters have a non-void return type. Date has them as well, according to TypeScript
setMilliseconds(ms: number): number;

@@ -72,3 +80,2 @@ setUTCMilliseconds(ms: number): number;

export interface TimezoneJs {

@@ -75,0 +82,0 @@ zoneFileBasePath: string;

{
"name": "@types/timezone-js",
"version": "0.0.30",
"version": "0.0.31",
"description": "TypeScript definitions for timezone-js",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/timezone-js",

"dependencies": {},
"typesPublisherContentHash": "f5ad2949647f0524d6b369861fea7c2aec7ba77b3b17b03d0a97564f7a879f83",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "3b62379c52d20d116950966dd0a242a7aa9722952b376177b784e9d8b65c37de",
"typeScriptVersion": "4.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 02 Jul 2021 19:37:06 GMT
* Last updated: Tue, 12 Sep 2023 12:34:42 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc