next-recomponents 1.1.2 → 1.1.3

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.mts CHANGED
@@ -78,6 +78,7 @@ interface Props {
78
78
  baseURI: string;
79
79
  authURI?: string;
80
80
  endpoints: Record<string, Partial<ItemsRecord>>;
81
+ onError?: (error: any) => void;
81
82
  }
82
83
  interface ShowOptions {
83
84
  limit?: number;
@@ -105,7 +106,7 @@ type EnhancedEndpoints<T extends Record<string, ItemsRecord>> = {
105
106
  };
106
107
  };
107
108
 
108
- declare function useResources<T extends Record<string, ItemsRecord>>({ baseURI, authURI, endpoints, }: Props): EnhancedEndpoints<T>;
109
+ declare function useResources<T extends Record<string, ItemsRecord>>({ baseURI, authURI, endpoints, onError, }: Props): EnhancedEndpoints<T>;
109
110
 
110
111
  interface CustomSelectProps extends React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
111
112
  label?: string;
package/dist/index.d.ts CHANGED
@@ -78,6 +78,7 @@ interface Props {
78
78
  baseURI: string;
79
79
  authURI?: string;
80
80
  endpoints: Record<string, Partial<ItemsRecord>>;
81
+ onError?: (error: any) => void;
81
82
  }
82
83
  interface ShowOptions {
83
84
  limit?: number;
@@ -105,7 +106,7 @@ type EnhancedEndpoints<T extends Record<string, ItemsRecord>> = {
105
106
  };
106
107
  };
107
108
 
108
- declare function useResources<T extends Record<string, ItemsRecord>>({ baseURI, authURI, endpoints, }: Props): EnhancedEndpoints<T>;
109
+ declare function useResources<T extends Record<string, ItemsRecord>>({ baseURI, authURI, endpoints, onError, }: Props): EnhancedEndpoints<T>;
109
110
 
110
111
  interface CustomSelectProps extends React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
111
112
  label?: string;