# FileOperationEvent Interface

> FileOperationEvent interface in the browser 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 > Browser Editor > FileOperationEvent Interface
- **428 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationevent/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationevent/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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`. Version: **2.0.0**.

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

### Members

#### Properties

| Property | Description |
|---|---|
| [byteLength](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationevent/bytelength-property/llms-full.txt) | Input or output byte count, when known. |
| [operation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationevent/operation-property/llms-full.txt) | The operation value of FileOperationEvent. |
| [operationId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/fileoperationevent/operationid-property/llms-full.txt) | The operationId value of FileOperationEvent. |
| [streamType](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/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
import type { FileOperationEvent } from '@txtextcontrol/tx-sheet-control';

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

### See Also

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

---

## Nearby

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