interfaces.ts 450 B

12345678910111213141516171819202122
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. /**
  4. * A generic interface for change emitter payloads.
  5. */
  6. export interface IChangedArgs<T, OldT = T, U extends string = string> {
  7. /**
  8. * The name of the changed attribute.
  9. */
  10. name: U;
  11. /**
  12. * The old value of the changed attribute.
  13. */
  14. oldValue: OldT;
  15. /**
  16. * The new value of the changed attribute.
  17. */
  18. newValue: T;
  19. }