# FormulaResult Type

> FormulaResult type alias in the Node.js TypeScript API: A CellValue, a FormulaArray or an error object, 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 > FormulaResult Type
- **211 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formularesult/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formularesult/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/formularesult/llms-full.txt

---

Public type for FormulaResult.

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