import { type JoinFn } from "https://deno.land/x/drizzle@v0.23.85/pg-core.ts";
Type Parameters
THKT extends PgSelectHKTBase
TSelectMode extends SelectMode
TJoinType extends JoinType
TNullabilityMap extends Record<string, JoinNullability>
definition: <TJoinedTable extends AnyPgTable | Subquery | SQL, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable, on: ((aliases: TSelection) => SQL | undefined) | SQL | undefined) => PgSelectKind<THKT, TTableName, AppendToResult<TTableName, TSelection, TJoinedName, TJoinedTable extends AnyPgTable ? TJoinedTable["_"]["columns"] : TJoinedName extends Subquery ? Assume<TJoinedName["_"]["selectedFields"], SelectedFields> : never, TSelectMode>, TSelectMode extends "partial" ? TSelectMode : "multiple", AppendToNullabilityMap<TNullabilityMap, TJoinedName, TJoinType>>