ScopeSessionOptions
ScopeSessionOptions<
TData> =object
Defined in: packages/app-report/src/util/open-scope.ts:16
Type Parameters
Section titled “Type Parameters”TData
Properties
Section titled “Properties”attributes?
Section titled “attributes?”
readonlyoptionalattributes?:Attributes
Defined in: packages/app-report/src/util/open-scope.ts:23
clock?
Section titled “clock?”
readonlyoptionalclock?: () =>number
Defined in: packages/app-report/src/util/open-scope.ts:32
Default Date.now.
Returns
Section titled “Returns”number
readonlyoptionalkey?:string
Defined in: packages/app-report/src/util/open-scope.ts:18
Stable across runs. Defaults to title.
onWriteError?
Section titled “onWriteError?”
readonlyoptionalonWriteError?: (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.
Parameters
Section titled “Parameters”unknown
ReportEvent<TData>
Returns
Section titled “Returns”void
signal?
Section titled “signal?”
readonlyoptionalsignal?: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".
total?
Section titled “total?”
readonlyoptionaltotal?:number
Defined in: packages/app-report/src/util/open-scope.ts:21
Declared unit count, when known up front.