# CustomFunctionDefinition Interface

> CustomFunctionDefinition interface in the TX Sheet Control TypeScript API for the browser, with 3 properties and 1 method and a TypeScript example.

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

---

Arbitrary host callback; asynchronous results are recalculated after resolving.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [isVolatile](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctiondefinition/isvolatile-property/llms-full.txt) | The isVolatile value of CustomFunctionDefinition. |
| [maxArguments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/customfunctiondefinition/maxarguments-property/llms-full.txt) | The maxArguments value of CustomFunctionDefinition. |
| [minArguments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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/browser/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 { CustomFunctionDefinition } from '@txtextcontrol/tx-sheet-control';

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

---

## In This Section

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

---

## Nearby

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