tool.d.ts 399 B

123456789101112131415
  1. /**
  2. * 处理单个number的超限和异常
  3. * @param {any} value
  4. * @param {number} min
  5. * @param {number} max
  6. * @return {number}
  7. */
  8. export declare const trimSingleValue: (value: any, min: number, max: number) => number;
  9. /**
  10. * 处理超限和异常value
  11. * @param value
  12. * @param props
  13. * @returns
  14. */
  15. export declare const trimValue: (value: number | number[], props: any) => number | number[];