Skip to content

ScopeSessionOptions

ScopeSessionOptions<TData> = object

Defined in: packages/app-report/src/util/open-scope.ts:16

TData

readonly optional attributes?: Attributes

Defined in: packages/app-report/src/util/open-scope.ts:23


readonly optional clock?: () => number

Defined in: packages/app-report/src/util/open-scope.ts:32

Default Date.now.

number


readonly optional key?: string

Defined in: packages/app-report/src/util/open-scope.ts:18

Stable across runs. Defaults to title.


readonly optional onWriteError?: (error, event) => void

Defined in: packages/app-report/src/util/open-scope.ts:38

Called for every failed write. When omitted, failures accumulate and are thrown from disposal as an AggregateError — never silently dropped.

unknown

ReportEvent<TData>

void


readonly optional signal?: AbortSignal | null

Defined in: packages/app-report/src/util/open-scope.ts:29

When aborted at disposal time and neither fail() nor skip() was called, the scope resolves as "cancelled" instead of "ok".


readonly optional total?: number

Defined in: packages/app-report/src/util/open-scope.ts:21

Declared unit count, when known up front.