# FormulaProvider Type

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

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

---

Public type for FormulaProvider.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### 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 { FormulaProvider } from '@txtextcontrol/tx-sheet-control';

function inspectFormulaProvider(formulaProvider: FormulaProvider) {
    const value = formulaProvider;
    console.log('FormulaProvider.value', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)

---

## Nearby

- **Previous:** [FORMULA_FUNCTIONS Constant](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formula-functions-constant/llms-full.txt)
- **Next:** [FormulaRequest Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formularequest/llms-full.txt)
