Function isRefOfType

  • Checks if a ref object is of a given ref type.

    Type Parameters

    • T extends object

    Parameters

    Returns ref is Ref<T>

    true if it is of the given type, false otherwise.

    Typeparam

    T Referenced object type.