Created
April 30, 2020 09:03
-
-
Save Haosvit/80ce3f39aeccceec47bca160e55a03ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Moment from 'momentjs' | |
type PresetTimePoint = 'today' | 'yesterday' | 'lastWeek' | 'lastMonth' | 'lastYear'; | |
type PresetDateRanges = { | |
[k in PresetTimePoint]: { | |
label: string; | |
range: [Moment, Moment]; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment