https.CallableFunction interface

Creates a callable method for clients to call using a Firebase SDK.

Signature:

export interface CallableFunction<T, Return> extends HttpsFunction 

Extends: HttpsFunction

Methods

Method Description
run(data) Executes the handler function with the provided data as input. Used for unit testing.

https.CallableFunction.run()

Executes the handler function with the provided data as input. Used for unit testing.

Signature:

run(data: CallableRequest<T>): Return;

Parameters

Parameter Type Description
data CallableRequest<T> An input for the handler function.

Returns:

Return

The output of the handler function.