export const selectClause = tsql.SelectClauseUtil.select(
fromClause,
undefined,
columns => (
/**
* The two `SelectsT` have different `usedRef` but the first
* is a subset of the second.
*/
Math.random() > 0.5 ?
[
tsql.eq(columns.myTable.myTableId, columns.myTable.myTableId).as("eq")
] :
[
tsql.eq(columns.myTable.myTableId, columns.otherTable.otherTableId).as("eq")
]
)
)
export declare const selectClause: [tsql.IExprSelectItem<{
mapper: tm.Mapper<unknown, boolean>; /**
* The two `SelectsT` have different `usedRef` but the first
* is a subset of the second.
*/
tableAlias: "__aliased";
alias: "eq";
usedRef: tsql.IUsedRef<never>;
}>];
TypeScript Version: 3.5.1
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
TODO Minimal repro
Related Issues:
TODO