Merge pull request #868 from skovhus/correct-flow-string-types-part-two
[types] Use literal values for strings
This commit is contained in:
commit
983bbbcada
|
@ -143,11 +143,11 @@ export default class RemoteConfig extends ModuleBase {
|
|||
* "source" : OneOf<String>(remoteConfigSourceRemote|remoteConfigSourceDefault|remoteConfigSourceStatic)
|
||||
* }
|
||||
*/
|
||||
getValues(keys: Array<String>) {
|
||||
getValues(keys: Array<string>) {
|
||||
return getNativeModule(this)
|
||||
.getValues(keys || [])
|
||||
.then(nativeValues => {
|
||||
const values: { [String]: Object } = {};
|
||||
const values: { [string]: Object } = {};
|
||||
for (let i = 0, len = keys.length; i < len; i++) {
|
||||
values[keys[i]] = this._nativeValueToJS(nativeValues[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue