MapLayr
    Preparing search index...

    Interface PathProvider

    An interface for objects that provide a path.

    This interface allows objects to provide a path that can change over time, with subscribers being notified of changes.

    interface PathProvider {
        currentPath: Path | null;
        subscribeToPath(callback: (path: Path | null) => void): () => void;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    currentPath: Path | null

    The current path, or null if no path is available.

    Methods

    • Subscribes to path updates.

      Parameters

      • callback: (path: Path | null) => void

        The callback to call when the path changes.

      Returns () => void

      A function to unsubscribe from the path updates.