> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: OfficeJS: Formulas and names

## `Fn`

Not exported by name. You get it from the API.

```ts theme={null}
type Fn = (args: FunctionArg[]) => FunctionResult
```

## `FunctionArg`

An argument: a value, a 2-D array, a range, `{ address }` or an earlier result.

Import from `@reductoai/xlsx/officejs`.

```ts theme={null}
type FunctionArg = Value | null | undefined | Value[][] | ExcelRange | { address: string } | FunctionResult
```

## `NamedItemType`

Not exported by name. You get it from the API.

```ts theme={null}
type NamedItemType = "Range" | "String" | "Integer" | "Double" | "Boolean" | "Error" | "Array"
```

## `ScenarioOptions`

Options of `ScenarioCollection.add`.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `comment?` | `string` | |
| `hidden?` | `boolean` | |
| `locked?` | `boolean` | Prevent changes; true by default, as Excel's dialog has it. |
| `user?` | `string` | Who the comment and `user` name; "User" by default. |
