File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 5
5
``` ts
6
6
7
7
import { FirebaseApp } from ' @firebase/app' ;
8
- import { FirebaseError } from ' @firebase/util' ;
9
8
10
9
// @public
11
10
export function connectFunctionsEmulator(functionsInstance : Functions , host : string , port : number ): void ;
@@ -17,12 +16,6 @@ export interface Functions {
17
16
region: string ;
18
17
}
19
18
20
- // @public
21
- export interface FunctionsError extends FirebaseError {
22
- readonly code: FunctionsErrorCode ;
23
- readonly details? : unknown ;
24
- }
25
-
26
19
// @public
27
20
export type FunctionsErrorCode = ` functions/${FunctionsErrorCodeCore } ` ;
28
21
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export class FunctionsError extends FirebaseError {
66
66
readonly details ?: unknown
67
67
) {
68
68
super ( `${ FUNCTIONS_TYPE } /${ code } ` , message || '' ) ;
69
+ // TODO (dlarocque): Set this to be the root of the stack trace.
69
70
}
70
71
}
71
72
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
import { FirebaseApp } from '@firebase/app' ;
18
- import { FirebaseError } from '@firebase/util' ;
19
18
20
19
/**
21
20
* An `HttpsCallableResult` wraps a single result from a function call.
@@ -144,23 +143,6 @@ export type FunctionsErrorCodeCore =
144
143
*/
145
144
export type FunctionsErrorCode = `functions/${FunctionsErrorCodeCore } `;
146
145
147
- /**
148
- * An error returned by the Firebase Functions client SDK.
149
- * @public
150
- */
151
- export interface FunctionsError extends FirebaseError {
152
- /**
153
- * A standard error code that will be returned to the client. This also
154
- * determines the HTTP status code of the response, as defined in code.proto.
155
- */
156
- readonly code : FunctionsErrorCode ;
157
-
158
- /**
159
- * Extra data to be converted to JSON and included in the error response.
160
- */
161
- readonly details ?: unknown ;
162
- }
163
-
164
146
declare module '@firebase/component' {
165
147
interface NameServiceMapping {
166
148
'functions' : Functions ;
You can’t perform that action at this time.
0 commit comments