objectModelInterfaces.d.ts 702 B

1234567891011121314151617181920212223242526
  1. /**
  2. * A container with an original object and information about that object.
  3. * on some other object.
  4. */
  5. export interface IObjectInfo<T> {
  6. /**
  7. * The original object.
  8. */
  9. object: any;
  10. /**
  11. * Information about the object.
  12. */
  13. info: T;
  14. }
  15. /**
  16. * Interface for a converter that takes a string path and transforms
  17. * it into an ObjectAccessorContainer.
  18. */
  19. export interface IPathToObjectConverter<T> {
  20. /**
  21. * Convert a path to an object that can be used to access properties of a base object
  22. * @param path the path to convert
  23. * @returns an object that can be used to access properties of a base object
  24. */
  25. convert(path: string): IObjectInfo<T>;
  26. }