docs: should be asBoolean instead of asNumber (#4023)

It has been used `asNumber` instead of `asBoolean` in the `resolves value to boolean` section. This can lead to confusion.
This commit is contained in:
Sergi Cuenca
2020-07-30 11:00:48 +02:00
committed by GitHub
parent e7b4bb31b0
commit 246ccb0225

View File

@@ -111,7 +111,7 @@ if (awesomeNewFeature.asNumber() === 5) {
// resolves value to boolean
// if value is any of the following: '1', 'true', 't', 'yes', 'y', 'on', it will resolve to true
// if source is 'static', value will be false
if (awesomeNewFeature.asNumber() === true) {
if (awesomeNewFeature.asBoolean() === true) {
enableAwesomeNewFeature();
}
```
@@ -168,4 +168,4 @@ You can also apply a global cache frequency by calling the `setConfigSettings` m
await remoteConfig().setConfigSettings({
minimumFetchIntervalMillis: 30000,
});
```
```