effx
API reference@effx/compilergenerate

target

API reference for @effx/compiler/generate/target

target.ts overview


Exports Grouped by Category


utils

Imports

Signature

declare const Imports: (_context?: GenerationContext) => {
  readonly core: "effect"
  readonly http: "effect/http"
  readonly httpApi: "effect/http-api"
  readonly net: "effect/net"
  readonly rpc: "effect/rpc"
  readonly cli: "effect/cli"
  readonly sql: "effect/sql"
}

isTargetModuleSupported

The pipeline checks source modules before rendering; imports remain a total pure projection.

Signature

declare const isTargetModuleSupported: (context: GenerationContext, module: string) => boolean

moduleSpecifier

Map a generated import to the target installation. Explicit .ts paths point to generated siblings; extensionless local refs originated at the canonical source import base and must be rebased before choosing the target TypeScript extension policy.

Signature

declare const moduleSpecifier: (context: GenerationContext, module: string) => string

unsupportedModules

Collect unsupported app symbol modules, including those inside JSON extension payloads.

Signature

declare const unsupportedModules: (ir: ApplicationIR, context: GenerationContext) => ReadonlyArray<string>

On this page