-
Notifications
You must be signed in to change notification settings - Fork 410
Define type-specific getters for SSRC #2519
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
Changes from 1 commit
5732ea9
a59da2f
9bb2303
fbecfe7
a4b78f3
b6bbe9d
f2509b4
f0d4e53
9e0cb44
fac1259
a28252c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -633,4 +633,4 @@ export type ValueSource = 'static' | 'default' | 'remote'; | |
| /** | ||
| * Defines the format for in-app default parameter values. | ||
| */ | ||
| export type DefaultConfig = { [key: string]: string | number | boolean }; | ||
| export type DefaultConfig = { [key: string]: string | number | boolean }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could this also contain
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could add I don't think |
||
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.
should we have a 'DEFAULT_VALUE_FOR_BOOLEAN' for the static behavior? Similar to https://github.com/firebase/firebase-js-sdk/blob/master/packages/remote-config/src/value.ts#L36-L39?
Uh oh!
There was an error while loading. Please reload this page.
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.
I agree it's inconsistent, but given the default value is an empty string when the source is static,
BOOLEAN_TRUTHY_VALUES.indexOf(this.value.toLowerCase())will return false, so I'm not seeing a technical need ... That said, I can imagine how explicitly defining the default value for boolean would make our system easier to understand, so I'll make the change.