-
Notifications
You must be signed in to change notification settings - Fork 271
feat: Add types and type guards for encodeable #201
Conversation
Codecov Report
@@ Coverage Diff @@
## master #201 +/- ##
==========================================
+ Coverage 99.91% 99.92% +<.01%
==========================================
Files 102 107 +5
Lines 1222 1252 +30
Branches 293 309 +16
==========================================
+ Hits 1221 1251 +30
Partials 1 1
Continue to review full report at Codecov.
|
Deploy preview for superset-ui ready! Built with commit cc9c369 |
Deploy preview for superset-ui ready! Built with commit b06e9eb |
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 overall! had a couple of small comments. Thanks for refactoring this to a new package!
@@ -0,0 +1,2 @@ | |||
const x = 1; |
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.
is this intentional?
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.
It was templated. Now removed.
| TextFieldDef; | ||
|
||
/** Channel definitions that are not constant value */ | ||
export type NonValueDef<Output extends Value = Value> = Exclude< |
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.
NonConstantValueDef
for more clear naming?
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.
There is ValueDef
and this one is the opposite of it.
@@ -0,0 +1,6 @@ | |||
// Types directly imported from vega-lite | |||
|
|||
export { ValueDef, Value } from 'vega-lite/build/src/channeldef'; |
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.
types/Vegalite.ts
is more clear to me when seeing these imports elsewhere
@@ -0,0 +1,5 @@ | |||
describe('My Test', () => { |
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.
also not sure if you still need this one?
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.
removed.
9c06c34
to
b06e9eb
Compare
* NPM link docs (hat tip to Krist) * formatting changes in prior commit
🏆 Enhancements
@superset-ui/encodeable
@superset-ui-plugins/preset-chart-xy
. This is a subset original work from feat: add encodeable utilities for chart superset-ui-plugins#15 + revision + unit tests🏠 Internal
private
until completion.