[types][database] fix setPersistenceEnabled message - is per app

This commit is contained in:
Salakar
2019-07-22 09:46:45 +01:00
parent 559ad34fd0
commit 09043da602
3 changed files with 4 additions and 4 deletions

View File

@@ -13258,7 +13258,7 @@
"kindString": "Call signature",
"flags": {},
"comment": {
"shortText": "Sets whether persistence is enabled for all database calls across all app\ninstances.",
"shortText": "Sets whether persistence is enabled for all database calls for the current app\ninstance.",
"text": "> Ensure this is called before any database calls are performed, otherwise\npersistence will only come into effect when the app is next started.\n\n#### Example\n\n```js\nfirebase.database().setPersistenceEnabled(true);\n\nasync function bootstrap() {\n // Bootstrapping application\n const snapshot = await firebase.database().ref('settings').once('value');\n}\n```\n"
},
"parameters": [

File diff suppressed because one or more lines are too long

View File

@@ -1146,8 +1146,8 @@ export namespace Database {
goOffline(): Promise<void>;
/**
* Sets whether persistence is enabled for all database calls across all app
* instances.
* Sets whether persistence is enabled for all database calls for the current app
* instance.
*
* > Ensure this is called before any database calls are performed, otherwise
* persistence will only come into effect when the app is next started.