-
Notifications
You must be signed in to change notification settings - Fork 272
feat: make time formatter handle number and fix formatters type warnings #358
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/superset/superset-ui/la9j0u5gi |
Codecov Report
@@ Coverage Diff @@
## master #358 +/- ##
==========================================
+ Coverage 51.78% 52.69% +0.90%
==========================================
Files 122 122
Lines 2636 2693 +57
Branches 388 417 +29
==========================================
+ Hits 1365 1419 +54
+ Misses 1242 1241 -1
- Partials 29 33 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Didn't know you can mix interface and class definition like this. A new trick learned!
Bumps [@vx/scale](https://github.com/hshoff/vx) from 0.0.192 to 0.0.194. - [Release notes](https://github.com/hshoff/vx/releases) - [Changelog](https://github.com/hshoff/vx/blob/master/CHANGELOG.md) - [Commits](airbnb/visx@v0.0.192...v0.0.194) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
✨ Enhancement
Add support for time formatter to handle
number
, it will treat the number as timestamp and convert toDate
. This is consistent with howd3-time-format
usually works.🐛 Bug Fix
Fix this warning for
NumberFormatter
andTimeFormatter
via type augmentation.