pqb 0.36.5 → 0.36.6

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 CHANGED
@@ -5590,7 +5590,9 @@ declare class Union {
5590
5590
  interface UpdateSelf extends PickQueryMetaResultRelationsWithDataReturnTypeShape {
5591
5591
  inputType: RecordUnknown;
5592
5592
  }
5593
- type UpdateData<T extends UpdateSelf> = {
5593
+ type UpdateData<T extends UpdateSelf> = RelationsBase extends T['relations'] ? {
5594
+ [K in keyof T['inputType']]?: UpdateColumn<T, K>;
5595
+ } : {
5594
5596
  [K in keyof T['inputType'] | keyof T['relations']]?: K extends keyof T['inputType'] ? UpdateColumn<T, K> : UpdateRelationData<T, T['relations'][K]['relationConfig']>;
5595
5597
  };
5596
5598
  type UpdateColumn<T extends UpdateSelf, Key extends keyof T['inputType']> = T['inputType'][Key] | QueryOrExpression<T['inputType'][Key]> | ((q: T) => QueryOrExpression<T['inputType'][Key]>);