Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

JoinFn

type JoinFn<THKT extends PgSelectHKTBase, TTableName extends string | undefined, TSelectMode extends SelectMode, TJoinType extends JoinType, TSelection, TNullabilityMap extends Record<string, JoinNullability>> = <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>>;

§Type Parameters

§
TTableName extends string | undefined
[src]
§
TSelectMode extends SelectMode
[src]
§
TJoinType extends JoinType
[src]
§
TSelection
[src]
§
TNullabilityMap extends Record<string, JoinNullability>
[src]

§Type

§
<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>>
[src]