Function isRefType

  • Check if the document is of type "refType"

    Type Parameters

    Parameters

    • doc: Ref<T, S>

      The Ref with uncretain type

    • refType: AllowedRefTypes

      The Expected Reference Type (this is required because this type is only known at compile time, not at runtime)

    Returns doc is NonNullable<S>

Generated using TypeDoc