# OperationEvent

Source: /tuil/docs/reference/packages/operations/api/operation-event
Locale: en

interface exported by @mwillbanks/tuil-operations.



{/* Generated by tooling/docs/generate-reference.ts. */}

## interface [#interface]

Public interface exported by `@mwillbanks/tuil-operations`.

```ts
export interface OperationEvent {
  readonly operation: OperationSnapshot;
  readonly previousStatus?: OperationStatus;
  readonly at: number;
}
```

## Members [#members]

| Member           | Type                           | Required | Description                                                                   | Related types                                                                     |
| ---------------- | ------------------------------ | -------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `operation`      | `OperationSnapshot<unknown>`   | Yes      | The `operation` member uses the `OperationSnapshot<unknown>` contract.        | [`OperationSnapshot`](/tuil/docs/reference/packages/operations/api/operation-snapshot) |
| `previousStatus` | `OperationStatus \| undefined` | No       | The `previousStatus` member uses the `OperationStatus \| undefined` contract. | [`OperationStatus`](/tuil/docs/reference/packages/operations/api/operation-status)     |
| `at`             | `number`                       | Yes      | The `at` member uses the `number` contract.                                   | —                                                                                 |

## Parameters [#parameters]

This declaration has no public members.

## Returns [#returns]

This declaration does not return a value.

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

* [`OperationSnapshot`](/tuil/docs/reference/packages/operations/api/operation-snapshot)
* [`OperationStatus`](/tuil/docs/reference/packages/operations/api/operation-status)

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/operations/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-operations](/tuil/docs/reference/packages/operations)
