🤖 Merge PR #47744 update(luxon): DATE_MED_WITH_WEEKDAY from 1.25 by @peterblazejewicz

- `DATE_MED_WITH_WEEKDAY`
- version bump

https://github.com/moment/luxon/compare/1.24.1...1.25.0

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2020-09-18 22:54:36 +02:00 committed by GitHub
parent d3aceaabfd
commit 65d65963e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for luxon 1.24
// Type definitions for luxon 1.25
// Project: https://github.com/moment/luxon#readme
// Definitions by: Colby DeHart <https://github.com/colbydehart>
// Hyeonseok Yang <https://github.com/FourwingsY>
@ -160,6 +160,8 @@ export class DateTime {
static readonly DATE_FULL: DateTimeFormatOptions;
static readonly DATE_HUGE: DateTimeFormatOptions;
static readonly DATE_MED: DateTimeFormatOptions;
/** abbreviated date with weekday */
static readonly DATE_MED_WITH_WEEKDAY: DateTimeFormatOptions;
static readonly DATE_SHORT: DateTimeFormatOptions;
static readonly TIME_24_SIMPLE: DateTimeFormatOptions;
static readonly TIME_24_WITH_LONG_OFFSET: DateTimeFormatOptions;

View File

@ -12,6 +12,9 @@ import {
} from 'luxon';
/* DateTime */
DateTime.DATE_MED; // $ExpectType DateTimeFormatOptions
DateTime.DATE_MED_WITH_WEEKDAY; // $ExpectType DateTimeFormatOptions
const dt = DateTime.local(2017, 5, 15, 8, 30);
const now = DateTime.local();