• Converts an object term when needed.

    Parameters

    • object: string

      Object to potentially transform.

    • OptionalpreferLiteral: boolean

      Whether strings are converted to literals or named nodes.

    Returns NamedNode

  • Type Parameters

    • T extends Term

    Parameters

    • object: T
    • OptionalpreferLiteral: boolean

    Returns T

  • Type Parameters

    • T extends Term

    Parameters

    • object: string | T
    • OptionalpreferLiteral: boolean

    Returns T | NamedNode