algorithmUtil.d.ts 541 B

12345678910111213141516171819202122
  1. /**
  2. * Get index with specific start index one by one. e.g.
  3. * min: 3, max: 9, start: 6
  4. *
  5. * Return index is:
  6. * [0]: 6
  7. * [1]: 7
  8. * [2]: 5
  9. * [3]: 8
  10. * [4]: 4
  11. * [5]: 9
  12. * [6]: 3
  13. */
  14. export function getIndexByStartLoc(min: any, max: any, start: any, index: any): any;
  15. /**
  16. * We assume that 2 list has only 1 item diff and others keeping the order.
  17. * So we can use dichotomy algorithm to find changed one.
  18. */
  19. export function findListDiffIndex(originList: any, targetList: any, getKey: any): {
  20. index: number;
  21. multiple: boolean;
  22. };