effx
API reference@effx/compilerlift

success

API reference for @effx/compiler/lift/success

success.ts overview


Exports Grouped by Category


utils

SuccessRead (interface)

Signature

export interface SuccessRead {
  readonly schema: SchemaUse
  readonly status: number | undefined
  readonly responseHeaders: SchemaRef | undefined
  readonly conditional: boolean
  /** The registered wrapper the success is written through, when it is. */
  readonly wrapper: SymbolRef | undefined
}

readSuccess

Reads the success option of an endpoint.

Signature

declare const readSuccess: (scope: Scope, slot: TermSlot) => Option.Option<SuccessRead>

On this page