# Occurrence (@salmonui/scheduler)

> The Occurrence interface of @salmonui/scheduler: One rendered instance of an event (a plain event, or an occurrence of a series).

Canonical: https://salmonui.dev/docs/reference/scheduler/Occurrence

```ts
import type { Occurrence } from '@salmonui/scheduler';
```

Entry index: https://salmonui.dev/docs/reference/scheduler (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/scheduler.md).

## Reference

Kind: interface

```ts
interface Occurrence<Row = unknown> {
    readonly key: string;
    readonly eventId: EventId;
    readonly start: number;
    readonly end: number;
    readonly allDay: boolean;
    readonly generated: boolean;
    readonly seriesId: EventId | undefined;
    readonly event: EventRecord<Row>;
}
```

One rendered instance of an event (a plain event, or an occurrence of a series).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key: string;` |  | Stable key: the event id, plus `@start` for generated occurrences. |
| `eventId` | `readonly eventId: EventId;` |  |  |
| `start` | `readonly start: number;` |  |  |
| `end` | `readonly end: number;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `generated` | `readonly generated: boolean;` |  | True for an occurrence generated from a recurrence rule. |
| `seriesId` | `readonly seriesId: EventId \| undefined;` |  | For occurrences of a series (generated or edited): the series event id. |
| `event` | `readonly event: EventRecord<Row>;` |  |  |
