Function formatDocumentsAsString

  • Given a list of documents, this util formats their contents into a string, separated by newlines.

    Parameters

    • documents: Document<Record<string, any>>[]
    • separator: string = "\n\n"

    Returns string

    A string of the documents page content, separated by newlines.

Generated using TypeDoc