Open Design Tokens
    Preparing search index...

    Interface PreparedDocument

    interface PreparedDocument {
        index: Map<string, NodeInfo>;
        parseError?: { reason: string };
        root: unknown;
        spec: "2025.10";
        structuralIssues: StructuralIssue[];
    }
    Index
    index: Map<string, NodeInfo>

    Every token and group in document order, keyed by JSON pointer.

    parseError?: { reason: string }

    Set when a string input was not valid JSON; index is then empty.

    root: unknown

    Parsed JSON, or the object passed in.

    spec: "2025.10"
    structuralIssues: StructuralIssue[]

    Structural problems found while indexing (depth, cycles, throwing getters).