# FormulaProvider Type

> FormulaProvider type alias in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > FormulaProvider Type
- **321 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formulaprovider/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formulaprovider/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formulaprovider/llms-full.txt

---

Public type for FormulaProvider.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
type FormulaProvider = (request: FormulaRequest) => FormulaResult | undefined;
```

### Examples

Pass the FormulaProvider value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { ServerSheetControlOptions } from '@txtextcontrol/tx-sheet-control-server';

function inspectFormulaProvider(formulaProvider: NonNullable<ServerSheetControlOptions['formulaProvider']>) {
    const value = formulaProvider;
    console.log('FormulaProvider.value', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## Nearby

- **Previous:** [FormulaDefinition.requiresProvider Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formuladefinition/requiresprovider-property/llms-full.txt)
- **Next:** [FormulaRequest Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formularequest/llms-full.txt)
