-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create package "@eventespresso/config" #1302
Conversation
Rebased and force-pushed due to merging of #1298 into trunk |
Current local commit sha is
|
// TODO: consolidate data types | ||
// LATER: consolidate data types |
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 a separate GH issue now for this and related LATER
s - #1301
@@ -1,5 +1,6 @@ | |||
module.exports = [ | |||
/* LEVEL 0 */ ['types'], | |||
/* LEVEL -1 */ ['types'], |
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.
Basement!
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.
FYI... those indexes are just for display purposes... you could have just changed them to go from 1 - 10, or 1 - 11, or whatever
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.
Yeah, I figured that. Didn't want to introduce unnecessary change to PR hence -1
.
decimalPlaces: 2, | ||
decimalMark: '.', | ||
thousandsSeparator: ',', | ||
subunits: 100, // Math.pow(10, 2); |
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.
Explanation at how we arrive at number 100
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.
right, based on the decimal places
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.
My interpretation of the default value came from here:
subunits: config?.subunits >= 0 ? config.subunits : Math.pow(10, config?.decimalPlaces || 2), |
By default value, I mean when the config
and all subsequent properties are undefined.
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.
AWESOME !!! 🍎 👏🏻
@@ -1,5 +1,6 @@ | |||
module.exports = [ | |||
/* LEVEL 0 */ ['types'], | |||
/* LEVEL -1 */ ['types'], |
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.
FYI... those indexes are just for display purposes... you could have just changed them to go from 1 - 10, or 1 - 11, or whatever
decimalPlaces: 2, | ||
decimalMark: '.', | ||
thousandsSeparator: ',', | ||
subunits: 100, // Math.pow(10, 2); |
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.
right, based on the decimal places
3846093
to
49162e8
Compare
Re-tested with commit sha
|
Wait for PR #1298 to be mergedFix #1299