[config] Remove redundant function in docs

This commit is contained in:
Elliot Hesp 2017-05-23 14:31:16 +01:00
parent b30ff24426
commit d8a0ebb084
1 changed files with 0 additions and 23 deletions

View File

@ -46,29 +46,6 @@ Thrown errors can be one of the following:
}); });
``` ```
### fetchWithExpirationDuration(duration: `int`): `Promise<String>`
Same as `fetch`, however defines (in seconds) how long fetched data is available in the active config.
Thrown errors can be one of the following:
* config/failure - Config fetch failed.
* config/no_fetch_yet - Config has never been fetched.
* config/throttled - Config fetch was throttled.
Default duration is 12 hours (43200 seconds):
```js
firebase.config()
.fetchWithExpirationDuration(1337)
.then(() => {
console.log('Successfully fetched data for 1337 seconds');
})
.catch((error) => {
console.error('Unable to fetch remote config data: ', error);
});
```
### activateFetched(): `Promise<Boolean>` ### activateFetched(): `Promise<Boolean>`
Moves fetched data in the apps active config. Always successfully resolves with a boolean value. Moves fetched data in the apps active config. Always successfully resolves with a boolean value.