跳转到内容
简体中文

LogContextEntry

此内容尚不支持你的语言。

LogContextEntry<TItem> = object

Defined in: src/LogContext.ts:70

One queued item paired with the context that was current when it was enqueued — the input to LogContext.runEach. A plain structural shape rather than a class, so a caller can build one inline ({ context: LogContext.get(), item }) without importing anything.

Building one inline was once the reason this type stayed out of the package root. That held only for the throwaway case: runEach exists for work deferred to a later turn, so the entries are normally held in a field between the enqueue and the drain — and a field has to be typed (#1062).

TItem

readonly context: LogContextData

Defined in: src/LogContext.ts:71


readonly item: TItem

Defined in: src/LogContext.ts:72