The Firebase `Functions` service interface.

**Signature:**

    export declare class Functions 

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [app](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.functions#functionsapp) |   | App |   |

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [taskQueue(functionName, scope)](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.functions#functionstaskqueue) |   | Creates a reference to a [TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class) for a given function name. The function name can be either:1) A fully qualified function resource name: `projects/{project}/locations/{location}/functions/{functionName}`2) A partial resource name with location and function name, in which case the runtime project ID is used: `locations/{location}/functions/{functionName}`3) A partial function name, in which case the runtime project ID and the default location, `us-central1`, is used: `{functionName}` |
| [taskQueue(functionName, deprecatedExtensionId)](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.functions#functionstaskqueue) |   | Creates a reference to a [TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class) for a given function name. |

## Functions.app

**Signature:**

    readonly app: App;

## Functions.taskQueue()

Creates a reference to a [TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class) for a given function name. The function name can be either:

1) A fully qualified function resource name: `projects/{project}/locations/{location}/functions/{functionName}`

2) A partial resource name with location and function name, in which case the runtime project ID is used: `locations/{location}/functions/{functionName}`

3) A partial function name, in which case the runtime project ID and the default location, `us-central1`, is used: `{functionName}`

**Signature:**

    taskQueue<Args = Record<string, any>>(functionName: string, scope?: FunctionScope): TaskQueue<Args>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| functionName | string | The name of the function. |
| scope | [FunctionScope](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions#functionscope) | Optional `FunctionScope` configuration. Only needed if targeting a scope other than the current one. |

**Returns:**

[TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class)\<Args\>

A promise that fulfills with a `TaskQueue`.

## Functions.taskQueue()

> > [!WARNING]
> > **Warning:** This API is now obsolete.
>
> Use scope parameter instead.

Creates a reference to a [TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class) for a given function name.

**Signature:**

    taskQueue<Args = Record<string, any>>(functionName: string, deprecatedExtensionId: string): TaskQueue<Args>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| functionName | string | The name of the function. |
| deprecatedExtensionId | string | Optional Firebase extension ID. |

**Returns:**

[TaskQueue](https://firebase.google.com/docs/reference/admin/node/firebase-admin.functions.taskqueue#taskqueue_class)\<Args\>

A promise that fulfills with a `TaskQueue`.