@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
27 lines (26 loc) • 709 B
TypeScript
/**
* A container with an original object and information about that object.
* on some other object.
*/
export interface IObjectInfo<T, O = any> {
/**
* The original object.
*/
object: O;
/**
* Information about the object.
*/
info: T;
}
/**
* Interface for a converter that takes a string path and transforms
* it into an ObjectAccessorContainer.
*/
export interface IPathToObjectConverter<T> {
/**
* Convert a path to an object that can be used to access properties of a base object
* @param path the path to convert
* @returns an object that can be used to access properties of a base object
*/
convert(path: string): IObjectInfo<T>;
}