diff --git a/common/api-review/functions-exp.api.md b/common/api-review/functions-exp.api.md index 4f719b67983..9a30b103cc0 100644 --- a/common/api-review/functions-exp.api.md +++ b/common/api-review/functions-exp.api.md @@ -6,15 +6,30 @@ import { FirebaseApp } from '@firebase/app-types-exp'; import { Functions } from '@firebase/functions-types-exp'; +import { FunctionsError } from '@firebase/functions-types-exp'; +import { FunctionsErrorCode } from '@firebase/functions-types-exp'; import { HttpsCallable } from '@firebase/functions-types-exp'; import { HttpsCallableOptions } from '@firebase/functions-types-exp'; +import { HttpsCallableResult } from '@firebase/functions-types-exp'; + +export { Functions } + +export { FunctionsError } + +export { FunctionsErrorCode } // @public export function getFunctions(app: FirebaseApp, regionOrCustomDomain?: string): Functions; +export { HttpsCallable } + // @public export function httpsCallable(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable; +export { HttpsCallableOptions } + +export { HttpsCallableResult } + // @public export function useFunctionsEmulator(functionsInstance: Functions, host: string, port: number): void; diff --git a/packages-exp/functions-exp/src/api.ts b/packages-exp/functions-exp/src/api.ts index c6dc36073b4..aabed4e3539 100644 --- a/packages-exp/functions-exp/src/api.ts +++ b/packages-exp/functions-exp/src/api.ts @@ -23,7 +23,10 @@ import { Provider } from '@firebase/component'; import { Functions, HttpsCallableOptions, - HttpsCallable + HttpsCallable, + HttpsCallableResult, + FunctionsError, + FunctionsErrorCode } from '@firebase/functions-types-exp'; import { FunctionsService, @@ -32,6 +35,15 @@ import { httpsCallable as _httpsCallable } from './service'; +export { + Functions, + HttpsCallableOptions, + HttpsCallable, + HttpsCallableResult, + FunctionsError, + FunctionsErrorCode +}; + /** * Returns a Functions instance for the given app. * @param app - The FirebaseApp to use.