orchid-orm 1.43.1 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -463,7 +463,10 @@ interface ORMTableInput {
|
|
|
463
463
|
type Queryable<T extends ORMTableInput> = ShallowSimplify<{
|
|
464
464
|
[K in keyof T['columns']['shape']]?: T['columns']['shape'][K]['queryType'];
|
|
465
465
|
}>;
|
|
466
|
-
type
|
|
466
|
+
type DefaultSelect<T extends ORMTableInput> = ShallowSimplify<Pick<ColumnShapeOutput<T['columns']['shape']>, DefaultSelectColumns<T['columns']['shape']>>>;
|
|
467
|
+
type Selectable<T extends ORMTableInput> = T['computed'] extends ComputedOptionsFactory<never, never> ? ShallowSimplify<ColumnShapeOutput<T['columns']['shape']> & {
|
|
468
|
+
[K in keyof ReturnType<T['computed']>]: ReturnType<T['computed']>[K]['result']['value']['outputType'];
|
|
469
|
+
}> : ShallowSimplify<ColumnShapeOutput<T['columns']['shape']>>;
|
|
467
470
|
type Insertable<T extends ORMTableInput> = ShallowSimplify<ColumnShapeInput<T['columns']['shape']>>;
|
|
468
471
|
type Updatable<T extends ORMTableInput> = ShallowSimplify<ColumnShapeInputPartial<T['columns']['shape']>>;
|
|
469
472
|
type BeforeHookMethod = (cb: QueryBeforeHook) => void;
|
|
@@ -717,4 +720,4 @@ declare const createRepo: <T extends Query, Methods extends MethodsBase<T>>(tabl
|
|
|
717
720
|
shape: T['shape'];
|
|
718
721
|
}>(q: Q) => Query & Q & MapMethods<T, Methods>) & T, Methods>;
|
|
719
722
|
|
|
720
|
-
export { type BaseTableClass, type BaseTableInstance, type Insertable, type MapMethods, type MapQueryMethods, type MethodsBase, type ORMTableInput, type ORMTableInputToQueryBuilder, type OrchidORM, type Queryable, type Repo, type Selectable, type SetColumnsResult, type Table, type TableClass, type TableClasses, type TableInfo, type TableToDb, type Updatable, createBaseTable, createRepo, orchidORM };
|
|
723
|
+
export { type BaseTableClass, type BaseTableInstance, type DefaultSelect, type Insertable, type MapMethods, type MapQueryMethods, type MethodsBase, type ORMTableInput, type ORMTableInputToQueryBuilder, type OrchidORM, type Queryable, type Repo, type Selectable, type SetColumnsResult, type Table, type TableClass, type TableClasses, type TableInfo, type TableToDb, type Updatable, createBaseTable, createRepo, orchidORM };
|