@theredhead — Frontend Library - v1.0.0
    Preparing search index...
    • Check if a datasource is a tree datasource.

      Tests for the presence of the three methods that define ITreeDatasource: getRootNodes, getChildren, and hasChildren.

      Type Parameters

      • T

        The item type (used for type narrowing).

      Parameters

      • datasource: unknown

        The datasource to check.

      Returns datasource is ITreeDatasource<T>

      true if datasource implements ITreeDatasource<T>; false otherwise.