bt-core-app 2.0.88 → 2.0.90

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
@@ -807,7 +807,7 @@ export declare interface DoActionOptions {
807
807
  errorMsg?: string;
808
808
  loadingMsg?: string;
809
809
  onFinished?: () => void;
810
- onError?: (err: any) => void;
810
+ onError?: (err: any) => any;
811
811
  requireConfirmation?: boolean;
812
812
  stringifyError?: (err: any) => string;
813
813
  throwError?: boolean;
@@ -1058,7 +1058,7 @@ export declare interface ItemProps<T, TSave, TReturn> {
1058
1058
  onCanSaveAsync?: OnCanDoAsync<TReturn | TSave>;
1059
1059
  onDeleteAsync?: OnDoActionAsync<TReturn>;
1060
1060
  onDeleteSuccessAsync?: OnDoMaybeSuccessAsync<TReturn, TReturn>;
1061
- onError?: (err: any) => void;
1061
+ onError?: (err: any) => any;
1062
1062
  onGetAsync?: OnGetAsync<T>;
1063
1063
  onGetListAsync?: OnGetAllAsync<T>;
1064
1064
  onGetListSuccessAsync?: OnGetAllSuccessAsync<T, TReturn>;
@@ -1102,7 +1102,7 @@ declare interface IterateThroughOptions<T> {
1102
1102
  getLoadingMsg?: (ind: number, total: number) => string;
1103
1103
  iterationCount?: number;
1104
1104
  listToIterate: T[];
1105
- onError?: (err: any) => void;
1105
+ onError?: (err: any) => any;
1106
1106
  onFinished?: () => void;
1107
1107
  throwError?: boolean;
1108
1108
  }
@@ -1168,7 +1168,7 @@ export declare interface ListProps<T, TSave, TReturn> {
1168
1168
  onCanSelectItem?: (item: TReturn) => boolean;
1169
1169
  onDeleteAsync?: OnDoActionAsync<TReturn>;
1170
1170
  onDeleteSuccessAsync?: OnDoMaybeSuccessAsync<TReturn, TReturn>;
1171
- onError?: (err: any) => void;
1171
+ onError?: (err: any) => any;
1172
1172
  onFilter?: (list: TReturn[]) => TReturn[];
1173
1173
  onFinished?: (items: any) => void;
1174
1174
  onGetAsync?: OnGetAllAsync<T>;
@@ -2301,7 +2301,7 @@ export declare function useItem<T, TSave, TReturn>(props: ItemProps<T, TSave, TR
2301
2301
 
2302
2302
  export declare interface UseItemOptions {
2303
2303
  onGetItem?: (item: any) => void;
2304
- onError?: (err: any) => void;
2304
+ onError?: (err: any) => any;
2305
2305
  storeKey?: string;
2306
2306
  storeMode?: StoreMode;
2307
2307
  storageMode?: StorageMode;
@@ -2486,7 +2486,7 @@ declare interface UseListOptions {
2486
2486
  /**used to select item. Default to x => x.id */
2487
2487
  idSelector?: <T>(item: T) => string;
2488
2488
  isNotSetup?: boolean;
2489
- onError?: (err: any) => void;
2489
+ onError?: (err: any) => any;
2490
2490
  onFinished?: (items: any) => void;
2491
2491
  onFinishedAsync?: (items: any) => Promise<void>;
2492
2492
  router?: Router;