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

@types/luxon

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/luxon - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

2

luxon/index.d.ts

@@ -16,4 +16,6 @@ // Type definitions for luxon 3.2

// Minimum TypeScript Version: 4.3
export * from './src/luxon';
export as namespace luxon;

4

luxon/package.json
{
"name": "@types/luxon",
"version": "3.2.1",
"version": "3.2.2",
"description": "TypeScript definitions for luxon",

@@ -73,4 +73,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/luxon",

"dependencies": {},
"typesPublisherContentHash": "3448652d486181d57834410bff9a92b0069db98b8f3c53abfa99b7f7239bea58",
"typesPublisherContentHash": "d42dffbee44bf8f0a5a7599305d1178db044ab77d80021b6d4fdcd8f974e6e49",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Mon, 03 Apr 2023 19:03:25 GMT
* Last updated: Mon, 03 Apr 2023 20:33:03 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `luxon`

@@ -204,11 +204,5 @@ import {

export interface ToObjectOutput extends DateTimeJSOptions {
year: number;
month: number;
day: number;
hour: number;
minute: number;
second: number;
millisecond: number;
}
export type ToObjectOutput<IncludeConfig extends boolean | undefined = true> =
& Record<Exclude<DateTimeUnit, 'quarter' | 'week'>, number>
& (IncludeConfig extends true ? LocaleOptions : unknown);

@@ -1401,3 +1395,3 @@ export interface ToRelativeOptions extends Omit<ToRelativeCalendarOptions, 'unit'> {

*/
toObject(opts?: {
toObject<IncludeConfig extends boolean | undefined>(opts?: {
/**

@@ -1407,4 +1401,4 @@ * Include configuration attributes in the output

*/
includeConfig?: boolean | undefined;
}): ToObjectOutput;
includeConfig?: IncludeConfig;
}): ToObjectOutput<IncludeConfig>;

@@ -1411,0 +1405,0 @@ /**

@@ -479,3 +479,3 @@ import { NumberingSystem } from './misc';

*/
get invalidReason(): string;
get invalidReason(): string | null;

@@ -485,3 +485,3 @@ /**

*/
get invalidExplanation(): string;
get invalidExplanation(): string | null;

@@ -488,0 +488,0 @@ /**

@@ -98,3 +98,3 @@ import { DateObjectUnits, DateTime, DateTimeOptions, DiffOptions, LocaleOptions, ToISOTimeOptions } from './datetime';

*/
get invalidReason(): string;
get invalidReason(): string | null;

@@ -104,3 +104,3 @@ /**

*/
get invalidExplanation(): string;
get invalidExplanation(): string | null;

@@ -107,0 +107,0 @@ /**

@@ -26,47 +26,27 @@ import { Zone } from './zone';

* The default value is the system's time zone (the one set on the machine that runs this code).
* Getting this property always returns a Zone object.
*/
static defaultZone: Zone | string;
static get defaultZone(): Zone;
static set defaultZone(zone: Zone | string);
/**
* Get the default locale to create DateTimes with. Does not affect existing instances.
* The default locale to create DateTimes with. Does not affect existing instances.
*/
static get defaultLocale(): string;
static defaultLocale: string;
/**
* Set the default locale to create DateTimes with. Does not affect existing instances.
* The default numbering system to create DateTimes with. Does not affect existing instances.
*/
static set defaultLocale(locale: string);
static defaultNumberingSystem: string;
/**
* Get the default numbering system to create DateTimes with. Does not affect existing instances.
* The default output calendar to create DateTimes with. Does not affect existing instances.
*/
static get defaultNumberingSystem(): string;
static defaultOutputCalendar: string;
/**
* Set the default numbering system to create DateTimes with. Does not affect existing instances.
* Whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
*/
static set defaultNumberingSystem(numberingSystem: string);
static throwOnInvalid: boolean;
/**
* Get the default output calendar to create DateTimes with. Does not affect existing instances.
*/
static get defaultOutputCalendar(): string;
/**
* Set the default output calendar to create DateTimes with. Does not affect existing instances.
*/
static set defaultOutputCalendar(outputCalendar: string);
/**
* Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
*/
static get throwOnInvalid(): boolean;
/**
* Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
*/
static set throwOnInvalid(t: boolean);
/**
* Reset Luxon's global caches. Should only be necessary in testing scenarios.

@@ -73,0 +53,0 @@ */

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