# Function: makeEmptyFormula()

> **makeEmptyFormula**\<`ParamDefsT`>(`definition`): `object` & `object`

Defined in: [api.ts:2985](https://github.com/coda/packs-sdk/blob/b2b4c9dba5ca748bdbb94481cc13b5ca3c328ef6/api.ts#L2985)

Creates the definition of an "empty" formula, that is, a formula that uses a [RequestHandlerTemplate](../../interfaces/RequestHandlerTemplate/) to define an implementation for the formula rather than implementing an actual `execute` function in JavaScript.

## Example

```
sdk.makeEmptyFormula({
   name: "GetWidget",
   description: "Gets a widget.",
   request: {
     url: "https://example.com/widgets/{id}",
     method: "GET",
   },
   parameters: [
     sdk.makeParameter({type: sdk.ParameterType.Number, name: "id", description: "The ID of the widget to get."}),
   ],
 }),
```

## Type Parameters

| Type Parameter | | --- | | `ParamDefsT` *extends* [`ParamDefs`](../../type-aliases/ParamDefs/) |

## Parameters

| Parameter | Type | | --- | --- | | `definition` | [`FormulaOptions`](../../type-aliases/FormulaOptions/)\<`ParamDefsT`, [`EmptyFormulaDef`](../../interfaces/EmptyFormulaDef/)\<`ParamDefsT`>> |

## Returns
