-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace date-fns for hand-rolled date formatting
- Loading branch information
1 parent
fe7b69c
commit 710ee55
Showing
12 changed files
with
946 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// TODO: Delete this file once Typescript has added these. | ||
declare namespace Intl { | ||
interface DateTimeFormatPartTypesRegistry { | ||
yearName: any; | ||
relatedYear: any; | ||
} | ||
|
||
/** | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo | ||
*/ | ||
interface WeekInfo { | ||
firstDay: number; | ||
weekend: readonly number[]; | ||
minimalDays: number; | ||
} | ||
|
||
interface Locale { | ||
readonly weekInfo: WeekInfo; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.