# CustomFunctionDefinition Interface

> CustomFunctionDefinition interface in the TX Sheet Control TypeScript API for Node.js: Arbitrary host callback. Includes the syntax and a TypeScript example.

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

---

Arbitrary host callback; asynchronous results are recalculated after resolving.

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.

### Members

#### Properties

| Property | Description |
|---|---|
| [isVolatile](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/isvolatile-property/llms-full.txt) | The isVolatile value of CustomFunctionDefinition. |
| [maxArguments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/maxarguments-property/llms-full.txt) | The maxArguments value of CustomFunctionDefinition. |
| [minArguments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/minarguments-property/llms-full.txt) | The minArguments value of CustomFunctionDefinition. |

#### Methods

| Method | Description |
|---|---|
| [evaluate](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/evaluate-method/llms-full.txt) | The evaluate operation of CustomFunctionDefinition. |

### Examples

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

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

function inspectCustomFunctionDefinitionMinArguments(
    customFunctionDefinition: Parameters<ServerSheetControl['workbook']['calculation']['registerFunction']>[1],
) {
    const value = customFunctionDefinition['minArguments'];
    console.log('CustomFunctionDefinition.minArguments', 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)

---

## In This Section

- [CustomFunctionDefinition.evaluate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/evaluate-method/llms-full.txt): CustomFunctionDefinition.evaluate method in the Node.js TypeScript API, with the return type FunctionValue | Promise<FunctionValue> and a TypeScript example.
- [CustomFunctionDefinition.isVolatile Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/isvolatile-property/llms-full.txt): CustomFunctionDefinition.isVolatile property in the TX Sheet Control TypeScript API for Node.js, with its type boolean | undefined and a TypeScript example.
- [CustomFunctionDefinition.maxArguments Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/maxarguments-property/llms-full.txt): CustomFunctionDefinition.maxArguments property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.
- [CustomFunctionDefinition.minArguments Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/minarguments-property/llms-full.txt): CustomFunctionDefinition.minArguments property in the TX Sheet Control TypeScript API for Node.js, with its type number | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [CustomFunctionContext.signal Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctioncontext/signal-property/llms-full.txt)
- **Next:** [CustomFunctionDefinition.evaluate Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/customfunctiondefinition/evaluate-method/llms-full.txt)
