effx
API reference@effx/compilerextensions

core

API reference for @effx/compiler/extensions/core

core.ts overview


Exports Grouped by Category


utils

OperationArgs

The decode Schema of Query and Command options (named: the derived type is not portable across packages).

Signature

declare const OperationArgs: ArgsCodec<
  Definition<
    "Query",
    "operation",
    {
      readonly name: OptionalArg<string, string>
      readonly input: Arg<Schema.Top, SchemaMarker>
      readonly success: Arg<Schema.Top, SchemaMarker>
    },
    undefined
  >
>

core

Signature

declare const core: Extension

notAnOperation

Signature

declare const notAnOperation: (annotation: { readonly name: string }, declaration: Declaration) => Diagnostic

operationIdOf

Shared rule for every extension: which operation a declaration defines.

Signature

declare const operationIdOf: (declaration: Declaration) => Option.Option<StableId.StableId>

On this page