Skip to content

Commit

Permalink
Export public types from functions-exp (#4342)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Jan 26, 2021
1 parent 384846b commit c2bd3db
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
15 changes: 15 additions & 0 deletions common/api-review/functions-exp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
14 changes: 13 additions & 1 deletion packages-exp/functions-exp/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ import { Provider } from '@firebase/component';
import {
Functions,
HttpsCallableOptions,
HttpsCallable
HttpsCallable,
HttpsCallableResult,
FunctionsError,
FunctionsErrorCode
} from '@firebase/functions-types-exp';
import {
FunctionsService,
Expand All @@ -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.
Expand Down

0 comments on commit c2bd3db

Please sign in to comment.