LogContextEntry
Este conteúdo não está disponível em sua língua ainda.
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).
Type Parameters
Section titled “Type Parameters”TItem
Properties
Section titled “Properties”context
Section titled “context”
readonlycontext:LogContextData
Defined in: src/LogContext.ts:71
readonlyitem:TItem
Defined in: src/LogContext.ts:72
