> ## 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: Other

## `BlockInsertLocation`

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

```ts theme={null}
type BlockInsertLocation = "Before" | "After"
```

## `BodyInsertLocation`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type BodyInsertLocation = Extract<InsertLocation, "Start" | "End">
```

## `BodyUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type BodyUpdateData = WritableProperties<Body> & { font?: FontSetFormat }
```

## `ClientResult`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `value` | `T` | |

## `CompatibilityMode`

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

```ts theme={null}
type CompatibilityMode = "Word2003" | "Word2007" | "Word2010" | "Word2013" | "Current"
```

## `CompatibilityOption`

VBA's WdCompatibility members the layout reads, by their OOXML names; the last two are compatSettings.

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

```ts theme={null}
type CompatibilityOption = "BalanceSingleByteDoubleByteWidth" | "DoNotExpandShiftReturn" | "AdjustLineHeightInTable" | "EnableOpenTypeFeatures" | "SplitPgBreakAndParaMark" | "OverrideTableStyleFontSizeAndJustification"
```

## `CompiledHandle`

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

| Name | Type | Description |
| - | - | - |
| `kind` | `CompiledKind` | |
| `noun` | `string` | |
| `state` | `TocState` | |

## `CompiledKind`

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

```ts theme={null}
type CompiledKind = "TOA" | "INDEX"
```

## `ConditionCode`

The table areas a style can format apart (`w:tblStylePr/@w:type`).

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ConditionCode = typeof ConditionCode[keyof typeof ConditionCode]
```

## `ConditionType`

`w:tblStylePr/@w:type` — the slots a table style can format separately.

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

```ts theme={null}
type ConditionType = "firstRow" | "lastRow" | "firstCol" | "lastCol" | "band1Vert" | "band2Vert" | "band1Horz" | "band2Horz" | "nwCell" | "neCell" | "swCell" | "seCell"
```

## `ConvertNotesTo`

VBA Footnotes.Convert ("Endnotes"), Endnotes.Convert ("Footnotes") and Footnotes.SwapWithEndnotes ("Swap").

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type ConvertNotesTo = "Endnotes" | "Footnotes" | "Swap"
```

## `CustomPropertyType`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type CustomPropertyType = "String" | "Number" | "Boolean" | "Date"
```

## `CustomPropertyUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CustomPropertyUpdateData = WritableProperties<CustomProperty>
```

## `CustomPropertyValue`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type CustomPropertyValue = string | number | boolean | Date
```

## `DocumentPropertiesUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type DocumentPropertiesUpdateData = WritableProperties<DocumentProperties>
```

## `DocxFile`

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

```ts theme={null}
type DocxFile = string | Uint8Array
```

## `DropPosition`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type DropPosition = "None" | "Normal" | "Margin"
```

## `FlatSide`

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

```ts theme={null}
type FlatSide = "Both" | "Left" | "Right" | "Largest"
```

## `HeadingSeparator`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type HeadingSeparator = "None" | "BlankLine" | "Letter" | "LetterLow" | "LetterFull"
```

## `HeadingState`

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

| Name | Type | Description |
| - | - | - |
| `deleted` | `boolean` | |
| `name` | `string` | |
| `toc` | `TocState` | |

## `HorizontalLineOptions`

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

| Name | Type | Description |
| - | - | - |
| `alignment?` | `"Left" \| "Centered" \| "Right"` | |
| `color?` | `string` | RRGGBB or #RRGGBB; default Word's grey A0A0A0. |
| `height?` | `number` | Rule thickness in points; default 1.5, as Word inserts it. |
| `width?` | `number` | Authored width in points; default 0, which spans the column. |

## `InsertLocation`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type InsertLocation = typeof InsertLocation[keyof typeof InsertLocation]
```

## `LayoutMode`

Word.LayoutMode, as w:docGrid/@w:type stores it.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type LayoutMode = "Default" | "Grid" | "LineGrid" | "Genko"
```

## `LocationRelation`

How one range sits relative to another in story order (Range.compareLocationWith).

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type LocationRelation = typeof LocationRelation[keyof typeof LocationRelation]
```

## `MoveLocation`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type MoveLocation = "Before" | "After"
```

## `MoveOptions`

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `through?` | `Paragraph` | Last paragraph of the run to move; it must follow this one in the same body or cell. |

## `NamespaceMappings`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type NamespaceMappings = { [prefix: string]: string }
```

## `PreferredWidthType`

OfficeJS `Word.PreferredWidthType`, the vocabulary `w:tcW/@w:type` maps onto.

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type PreferredWidthType = "Auto" | "Percent" | "Points"
```

## `RangeAnchor`

A live range resolved to its anchor paragraphs and re-anchored offsets.

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

| Name | Type | Description |
| - | - | - |
| `clear` | `() => void` | The range's own Replace path, used to empty it. |
| `ctx` | `FacadeContext` | |
| `end` | `number` | UTF-16 offset in the last paragraph. |
| `endIndex?` | `number` | The struck characters at `end` the span closes after; default none. |
| `mark?` | `boolean` | The span runs past the last paragraph's mark. |
| `paragraphs` | `XElement[]` | |
| `start` | `number` | UTF-16 offset in the first paragraph. |
| `startIndex?` | `number` | The struck characters at `start` the span opens after; default all of them. |

## `RangeLocation`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type RangeLocation = typeof RangeLocation[keyof typeof RangeLocation]
```

## `RangeUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type RangeUpdateData = WritableProperties<Range> & { font?: FontSetFormat; listFormat?: ListFormatUpdateData; shading?: ShadingUniversalUpdateData }
```

## `RelativeHorizontalPosition`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type RelativeHorizontalPosition = keyof typeof RELATIVE_H
```

## `RelativeVerticalPosition`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type RelativeVerticalPosition = keyof typeof RELATIVE_V
```

## `SiblingInsertLocation`

Import from `@reductoai/docx/node`, `@reductoai/docx/officejs`.

```ts theme={null}
type SiblingInsertLocation = Extract<InsertLocation, "After" | "Before">
```

## `WordDocumentClass`

Constructor shape the WordDocument factories build through, so a platform subclass returns itself.

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type WordDocumentClass<T> = (session: DocxSession, options?: WordDocumentOptions) => T
```

## `WordDocumentUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type WordDocumentUpdateData = WritableProperties<WordDocument> & { body?: BodyUpdateData; properties?: DocumentPropertiesUpdateData }
```

## `XmlSetMappingOptions`

Import from `@reductoai/docx/officejs`.

| Name | Type | Description |
| - | - | - |
| `prefixMapping?` | `string` | The prefixes the XPath uses, as `xmlns:ns0='uri'` declarations. |
| `source?` | `CustomXmlPart` | The part to map into; by default the first part where the XPath selects a node. |
