# FileOperationEvent Interface

> FileOperationEvent interface in the Node.js TypeScript API: An opaque ID correlates events from one file operation, including overlapping requests.

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

---

An opaque ID correlates events from one file operation, including overlapping requests. No file contents are exposed.

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 |
|---|---|
| [byteLength](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/bytelength-property/llms-full.txt) | Input or output byte count, when known. |
| [operation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/operation-property/llms-full.txt) | The operation value of FileOperationEvent. |
| [operationId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/operationid-property/llms-full.txt) | The operationId value of FileOperationEvent. |
| [streamType](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/streamtype-property/llms-full.txt) | The streamType value of FileOperationEvent. |

### Examples

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

```typescript
function inspectFileOperationEventOperationId(fileOperationEvent: { operationId: string }) {
    const value = fileOperationEvent['operationId'];
    console.log('FileOperationEvent.operationId', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt)

---

## In This Section

- [FileOperationEvent.byteLength Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/bytelength-property/llms-full.txt): FileOperationEvent.byteLength property in the TX Sheet Control TypeScript API for Node.js: Input or output byte count, when known.
- [FileOperationEvent.operation Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/operation-property/llms-full.txt): FileOperationEvent.operation property in the TX Sheet Control TypeScript API for Node.js, with its type "load" | "save" and a TypeScript example.
- [FileOperationEvent.operationId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/operationid-property/llms-full.txt): FileOperationEvent.operationId property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.
- [FileOperationEvent.streamType Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/streamtype-property/llms-full.txt): FileOperationEvent.streamType property in the TX Sheet Control TypeScript API for Node.js, with its type StreamType and a TypeScript example.

---

## Nearby

- **Previous:** [FileLoadedEvent.warnings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileloadedevent/warnings-property/llms-full.txt)
- **Next:** [FileOperationEvent.byteLength Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationevent/bytelength-property/llms-full.txt)
