@moneko/react 1.7.3 → 1.7.4

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.
@@ -11,7 +11,7 @@ export interface ErrorBoundaryState {
11
11
  }
12
12
  declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, Partial<ErrorBoundaryState>> {
13
13
  constructor(props: ErrorBoundaryProps);
14
- componentDidCatch(error: ErrorBoundaryState['error'], errorInfo: ErrorBoundaryState['errorInfo']);
15
- render();
14
+ componentDidCatch(error: ErrorBoundaryState['error'], errorInfo: ErrorBoundaryState['errorInfo']): void;
15
+ render(): React.ReactNode;
16
16
  }
17
17
  export default ErrorBoundary;
@@ -1,3 +1,3 @@
1
1
  import ReactDOM from 'react-dom';
2
2
  import { injectIntoGlobalHook } from 'react-refresh';
3
- export declare const injectReactRefresh: () => any;
3
+ export declare const injectReactRefresh: () => void;
@@ -5,5 +5,5 @@ export interface IPath extends Partial<Omit<Path, 'search'>> {
5
5
  search?: string | URLSearchParams | string[][] | Record<string, string>;
6
6
  }
7
7
  export type To = string | IPath;
8
- declare const parseToByReservedWord: (to: To, reserved?: string | string[]) => any;
8
+ declare const parseToByReservedWord: (to: To, reserved?: string | string[]) => Partial<Path>;
9
9
  export default parseToByReservedWord;
@@ -1,4 +1,4 @@
1
1
  import { useMemo } from 'react';
2
2
  import { useLocation } from 'react-router-dom';
3
- declare const useQuery: <T>() => any;
3
+ declare const useQuery: <T>() => T;
4
4
  export default useQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {