Which for JS
    Preparing search index...

    Class ResultSet

    Provides convenient access to the stream of search results.

    Index

    Constructors

    Accessors

    Constructors

    • Creates a new result set.

      Parameters

      • command: string

        The searched command.

      • finder: Finder

        The finder used to perform the search.

      Returns ResultSet

    Accessors

    • get all(): Promise<string[]>

      All instances of the searched command.

      Returns Promise<string[]>

    • get first(): Promise<string>

      The first instance of the searched command.

      Returns Promise<string>

    • get stream(): AsyncGenerator<string, void>

      A stream of instances of the searched command.

      Returns AsyncGenerator<string, void>