Utility for tracking location in the Matter data model. This location is used for diagnostics.

The path consists of a sequence of IDs, optionally with type information.

interface DataModelPath {
    constructor: any;
    id: string | number;
    parent?: DataModelPath;
    type?: string;
    at(name: string | number, type?: string): DataModelPath;
    toArray(): (string | number)[];
    toString(includeType?: boolean): string;
}

Constructors

Properties

Methods

Constructors

constructor: any

Properties

id: string | number
parent?: DataModelPath
type?: string

Methods

  • Parameters

    • name: string | number
    • Optionaltype: string

    Returns DataModelPath

  • Returns (string | number)[]

  • Parameters

    • OptionalincludeType: boolean

    Returns string