# FormulaResult Type

> FormulaResult 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 > FormulaResult Type
- **237 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formularesult/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formularesult/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formularesult/llms-full.txt

---

Public type for FormulaResult.

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

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

### Syntax

```typescript
type FormulaResult = CellValue | FormulaArray | {
    error: string;
};
```

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

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

const value: FormulaResult = 2;
console.log(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:** [FormulaRequest.sheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/formularequest/sheetname-property/llms-full.txt)
- **Next:** [FunctionValue Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/functionvalue/llms-full.txt)
