From a6880a00a90064e36f7d3bf93b9a2b79774253a8 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhus Date: Fri, 9 Mar 2018 05:16:40 +0100 Subject: [PATCH] [types] Use literal values for strings --- lib/modules/config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/config/index.js b/lib/modules/config/index.js index 9f5136f2..777ddecc 100644 --- a/lib/modules/config/index.js +++ b/lib/modules/config/index.js @@ -143,11 +143,11 @@ export default class RemoteConfig extends ModuleBase { * "source" : OneOf(remoteConfigSourceRemote|remoteConfigSourceDefault|remoteConfigSourceStatic) * } */ - getValues(keys: Array) { + getValues(keys: Array) { 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]); }