Skip to content

ScopeInput

ScopeInput<TColumns> = (columns) => readonly AnyColumn[]

Defined in: packages/contracts/src/registry.ts:339

The scope declaration for a SHARED-tier shape (ADR-0055), authored from the built, typed columns — the columns whose values key the shape family, in the order they parameterize it.

Returning real column objects rather than names is what makes the family rename-safe: a renamed column moves the scope with it, where a string would have gone on naming a column that no longer exists and silently produced a predicate over nothing.

TColumns extends Record<string, ColumnBuilderBase>

PgBuildExtraConfigColumns<TColumns>

readonly AnyColumn[]