From 3c53a7d12de16b18d7706d48865ed54ec33549ca Mon Sep 17 00:00:00 2001 From: Fabian Frank Date: Fri, 22 Nov 2024 16:05:13 -0800 Subject: [PATCH] Export Extras, Columns and LateralOption --- src/db/shortcuts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/db/shortcuts.ts b/src/db/shortcuts.ts index c033bc0..805ebfb 100644 --- a/src/db/shortcuts.ts +++ b/src/db/shortcuts.ts @@ -53,12 +53,12 @@ export type ExtrasResult> = E[K] extends SQLFragment ? RunResultForSQLFragment : E[K] extends keyof JSONSelectableForTable ? JSONSelectableForTable[E[K]] : never; }; -type ExtrasOption = SQLFragmentOrColumnMap | undefined; -type ColumnsOption = readonly ColumnForTable[] | undefined; +export type ExtrasOption = SQLFragmentOrColumnMap | undefined; +export type ColumnsOption = readonly ColumnForTable[] | undefined; type LimitedLateralOption = SQLFragmentMap | undefined; type FullLateralOption = LimitedLateralOption | SQLFragment; -type LateralOption< +export type LateralOption< C extends ColumnsOption, E extends ExtrasOption
, > =