@@ -29,85 +29,6 @@ import { App as AppCore, AppOptions } from './app/index';
2929
3030export * from './app/index' ;
3131
32- /**
33- * `FirebaseError` is a subclass of the standard JavaScript `Error` object. In
34- * addition to a message string and stack trace, it contains a string code.
35- */
36- export interface FirebaseError {
37-
38- /**
39- * Error codes are strings using the following format: `"service/string-code"`.
40- * Some examples include `"auth/invalid-uid"` and
41- * `"messaging/invalid-recipient"`.
42- *
43- * While the message for a given error can change, the code will remain the same
44- * between backward-compatible versions of the Firebase SDK.
45- */
46- code : string ;
47-
48- /**
49- * An explanatory message for the error that just occurred.
50- *
51- * This message is designed to be helpful to you, the developer. Because
52- * it generally does not convey meaningful information to end users,
53- * this message should not be displayed in your application.
54- */
55- message : string ;
56-
57- /**
58- * A string value containing the execution backtrace when the error originally
59- * occurred.
60- *
61- * This information can be useful to you and can be sent to
62- * {@link https://firebase.google.com/support/ Firebase Support} to help
63- * explain the cause of an error.
64- */
65- stack ?: string ;
66-
67- /**
68- * @return A JSON-serializable representation of this object.
69- */
70- toJSON ( ) : object ;
71- }
72-
73- /**
74- * Composite type which includes both a `FirebaseError` object and an index
75- * which can be used to get the errored item.
76- *
77- * @example
78- * ```javascript
79- * var registrationTokens = [token1, token2, token3];
80- * admin.messaging().subscribeToTopic(registrationTokens, 'topic-name')
81- * .then(function(response) {
82- * if (response.failureCount > 0) {
83- * console.log("Following devices unsucessfully subscribed to topic:");
84- * response.errors.forEach(function(error) {
85- * var invalidToken = registrationTokens[error.index];
86- * console.log(invalidToken, error.error);
87- * });
88- * } else {
89- * console.log("All devices successfully subscribed to topic:", response);
90- * }
91- * })
92- * .catch(function(error) {
93- * console.log("Error subscribing to topic:", error);
94- * });
95- *```
96- */
97- export interface FirebaseArrayIndexError {
98-
99- /**
100- * The index of the errored item within the original array passed as part of the
101- * called API method.
102- */
103- index : number ;
104-
105- /**
106- * The error object.
107- */
108- error : FirebaseError ;
109- }
110-
11132// eslint-disable-next-line @typescript-eslint/no-namespace
11233export namespace app {
11334 /**
0 commit comments