remult 0.9.27 → 0.9.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.9.27",
3
+ "version": "0.9.28",
4
4
  "description": "remult core lib",
5
5
  "homepage": "https://remult.dev/",
6
6
  "repository": {
package/src/data-api.d.ts CHANGED
@@ -30,4 +30,4 @@ export interface DataApiRequest {
30
30
  get(key: string): any;
31
31
  }
32
32
  export declare function determineSort(sortUrlParm: string, dirUrlParam: string): any;
33
- export declare function serializeError(data: ErrorInfo): ErrorInfo;
33
+ export declare function serializeError(data: ErrorInfo): ErrorInfo<any>;
@@ -1,6 +1,6 @@
1
1
  import { Sort } from './sort';
2
2
  import { Filter } from './filter/filter-interfaces';
3
- import { EntityMetadata } from './remult3';
3
+ import { EntityMetadata, OmitEB } from './remult3';
4
4
  export interface DataProvider {
5
5
  getEntityDataProvider(entity: EntityMetadata): EntityDataProvider;
6
6
  transaction(action: (dataProvider: DataProvider) => Promise<void>): Promise<void>;
@@ -26,10 +26,12 @@ export interface RestDataProviderHttpProvider {
26
26
  get(url: string): Promise<any>;
27
27
  }
28
28
  export declare function extractSort(sort: any): Sort;
29
- export interface ErrorInfo {
29
+ export interface ErrorInfo<entityType = any> {
30
30
  message?: string;
31
31
  modelState?: {
32
32
  [key: string]: string;
33
+ } & {
34
+ [Properties in keyof Partial<OmitEB<entityType>>]?: string;
33
35
  };
34
36
  stack?: string;
35
37
  exception?: any;