ILevelledTopologicalSorter.ts 425 B

123456789101112131415161718192021
  1. export interface ILevelledTopologicalSorter <TValue extends string = string> {
  2. /**
  3. * @param {TValue} precedent
  4. * @param {TValue | null} consequent
  5. * @returns {this}
  6. */
  7. add (
  8. precedent: TValue,
  9. consequent?: TValue | null
  10. ): this;
  11. /**
  12. * @returns {TValue[]}
  13. */
  14. sort (): TValue[];
  15. /**
  16. * @returns {TValue[][]}
  17. */
  18. sortByGroups (): TValue[][];
  19. }