File tree Expand file tree Collapse file tree 8 files changed +22
-7
lines changed
installations-exp/src/api Expand file tree Collapse file tree 8 files changed +22
-7
lines changed Original file line number Diff line number Diff line change 7
7
import { FirebaseApp } from ' @firebase/app-types-exp' ;
8
8
import { FirebaseInstallations } from ' @firebase/installations-types-exp' ;
9
9
10
- // @public (undocumented)
10
+ // @public
11
11
export function deleteInstallations(installations : FirebaseInstallations ): Promise <void >;
12
12
13
- // @public (undocumented)
13
+ // @public
14
14
export function getId(installations : FirebaseInstallations ): Promise <string >;
15
15
16
- // @public (undocumented)
16
+ // @public
17
17
export function getInstallations(app : FirebaseApp ): FirebaseInstallations ;
18
18
19
- // @public (undocumented)
19
+ // @public
20
20
export function getToken(installations : FirebaseInstallations , forceRefresh ? : boolean ): Promise <string >;
21
21
22
- // @public (undocumented)
22
+ // @public
23
23
export type IdChangeCallbackFn = (installationId : string ) => void ;
24
24
25
- // @public (undocumented)
25
+ // @public
26
26
export type IdChangeUnsubscribeFn = () => void ;
27
27
28
28
// @public
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
23
23
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
24
24
25
25
/**
26
+ * Deletes the Firebase Installation and all associated data.
27
+ *
26
28
* @public
27
29
*/
28
30
export async function deleteInstallations (
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
21
21
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
22
22
23
23
/**
24
+ * Creates a Firebase Installation if there isn't one for the app and
25
+ * returns the Installation ID.
26
+ *
24
27
* @public
25
28
*/
26
29
export async function getId (
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import { FirebaseInstallations } from '@firebase/installations-types-exp';
20
20
import { _getProvider } from '@firebase/app-exp' ;
21
21
22
22
/**
23
+ * Returns an instance of FirebaseInstallations associated with the given FirebaseApp instance.
24
+ *
23
25
* @public
24
26
*/
25
27
export function getInstallations ( app : FirebaseApp ) : FirebaseInstallations {
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import {
24
24
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
25
25
26
26
/**
27
+ * Returns an Installation auth token, identifying the current Firebase Installation.
28
+ *
27
29
* @public
28
30
*/
29
31
export async function getToken (
Original file line number Diff line number Diff line change @@ -20,10 +20,14 @@ import { FirebaseInstallationsImpl } from '../interfaces/installation-impl';
20
20
import { FirebaseInstallations } from '@firebase/installations-types-exp' ;
21
21
22
22
/**
23
+ * An user defined callback function that gets called when Installations ID changes.
24
+ *
23
25
* @public
24
26
*/
25
27
export type IdChangeCallbackFn = ( installationId : string ) => void ;
26
28
/**
29
+ * Unsubscribe a callback function previously added via {@link #IdChangeCallbackFn}.
30
+ *
27
31
* @public
28
32
*/
29
33
export type IdChangeUnsubscribeFn = ( ) => void ;
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
/**
19
+ * Public interface of the FirebaseInstallations SDK.
20
+ *
19
21
* @public
20
22
*/
21
23
export interface FirebaseInstallations { }
Original file line number Diff line number Diff line change 30
30
"devDependencies" : {
31
31
"typescript" : " 4.0.2"
32
32
}
33
- }
33
+ }
You can’t perform that action at this time.
0 commit comments