tuil
ReferencePackages@mwillbanks/tuil-coreAPI

CommandContext

interface exported by @mwillbanks/tuil-core.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-core.

export interface CommandContext {
  readonly services: ServiceContainer;
  readonly signal: AbortSignal;
  readonly source?: string;
  readonly metadata: Readonly<Record<string, unknown>>;
}

Members

MemberTypeRequiredDescriptionRelated types
servicesServiceContainerYesThe services member uses the ServiceContainer contract.ServiceContainer
signalAbortSignalYesThe signal member uses the AbortSignal contract.
sourcestring | undefinedNoThe source member uses the string | undefined contract.
metadataReadonly<Record<string, unknown>>YesThe metadata member uses the Readonly<Record<string, unknown>> contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-core

On this page