[types] Use literal values for strings

This commit is contained in:
Kenneth Skovhus 2018-03-09 05:16:40 +01:00
parent 44e005b58d
commit a6880a00a9
1 changed files with 2 additions and 2 deletions

View File

@ -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]);
}