effx
API reference@effx/compilerlift

decisions

API reference for @effx/compiler/lift/decisions

decisions.ts overview


Exports Grouped by Category


utils

OperationDecisions (interface)

Signature

export interface OperationDecisions {
  readonly recognized: Recognized
  readonly input: ChosenInput
  /** The suggestion's export for the operation, and the module the suggestion lives in. */
  readonly operation: string
  readonly module: string
  /** Where the declaration sits in the analyzed source. */
  readonly at: SourceRange
  /** Every export the endpoint's refactors plan. */
  readonly planned: ReadonlyArray<PlannedExport>
}

Reviewed (interface)

One decision with the warning that asks for its review.

Signature

export interface Reviewed {
  readonly decision: Decision
  readonly diagnostic: Diagnostic
}

groupDecision

The export name chosen for the group declaration.

Signature

declare const groupDecision: (group: string, name: string, module: string, at: SourceRange) => Reviewed

operationDecisions

The kind, input and export-name decisions of one recognized endpoint.

Signature

declare const operationDecisions: (parts: OperationDecisions) => ReadonlyArray<Reviewed>

refactorDecisions

The export-name decisions of a refactor planned outside any one endpoint (a wrapper's header schema).

Signature

declare const refactorDecisions: (refactor: Refactor) => ReadonlyArray<Reviewed>

On this page