Skip to content

Commit c2bd3db

Browse files
authored
Export public types from functions-exp (#4342)
1 parent 384846b commit c2bd3db

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

common/api-review/functions-exp.api.md

+15
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,30 @@
66

77
import { FirebaseApp } from '@firebase/app-types-exp';
88
import { Functions } from '@firebase/functions-types-exp';
9+
import { FunctionsError } from '@firebase/functions-types-exp';
10+
import { FunctionsErrorCode } from '@firebase/functions-types-exp';
911
import { HttpsCallable } from '@firebase/functions-types-exp';
1012
import { HttpsCallableOptions } from '@firebase/functions-types-exp';
13+
import { HttpsCallableResult } from '@firebase/functions-types-exp';
14+
15+
export { Functions }
16+
17+
export { FunctionsError }
18+
19+
export { FunctionsErrorCode }
1120

1221
// @public
1322
export function getFunctions(app: FirebaseApp, regionOrCustomDomain?: string): Functions;
1423

24+
export { HttpsCallable }
25+
1526
// @public
1627
export function httpsCallable(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable;
1728

29+
export { HttpsCallableOptions }
30+
31+
export { HttpsCallableResult }
32+
1833
// @public
1934
export function useFunctionsEmulator(functionsInstance: Functions, host: string, port: number): void;
2035

packages-exp/functions-exp/src/api.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ import { Provider } from '@firebase/component';
2323
import {
2424
Functions,
2525
HttpsCallableOptions,
26-
HttpsCallable
26+
HttpsCallable,
27+
HttpsCallableResult,
28+
FunctionsError,
29+
FunctionsErrorCode
2730
} from '@firebase/functions-types-exp';
2831
import {
2932
FunctionsService,
@@ -32,6 +35,15 @@ import {
3235
httpsCallable as _httpsCallable
3336
} from './service';
3437

38+
export {
39+
Functions,
40+
HttpsCallableOptions,
41+
HttpsCallable,
42+
HttpsCallableResult,
43+
FunctionsError,
44+
FunctionsErrorCode
45+
};
46+
3547
/**
3648
* Returns a Functions instance for the given app.
3749
* @param app - The FirebaseApp to use.

0 commit comments

Comments
 (0)