@jiaozhiye/qm-design-react 1.9.9 → 1.9.11

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.
@@ -73,7 +73,6 @@ declare class QmForm extends Component<IProps, IState> {
73
73
  onFinishFailed: () => void;
74
74
  onReset: () => void;
75
75
  onCollapse: () => void;
76
- onFormItemsChange: () => void;
77
76
  };
78
77
  private provide;
79
78
  private _initialValues;
@@ -365,5 +365,4 @@ export declare const defaultProps: {
365
365
  onFinishFailed: () => void;
366
366
  onReset: () => void;
367
367
  onCollapse: () => void;
368
- onFormItemsChange: () => void;
369
368
  };
@@ -1,3 +1,2 @@
1
- type noop = (...args: any[]) => any;
2
- export default function useDebounce<T extends noop>(fn: T, delay?: number): (...args: any[]) => void;
3
- export {};
1
+ import type { AnyFunction } from '../_utils/types';
2
+ export default function useDebounce<T extends AnyFunction<any>>(fn: T, delay?: number): (...args: Parameters<T>) => void;
@@ -0,0 +1,2 @@
1
+ import type { AnyFunction } from '../_utils/types';
2
+ export default function useThrottle<T extends AnyFunction<any>>(fn: T, delay: number): (...args: Parameters<T>) => void;