Returns a function for getting a generator that fetches places from the given data context.

Error if a data context is not provided

  • Parameters

    Returns (
        placeType: Readonly<{ contactType: string }>,
    ) => AsyncGenerator<Place.v1.Place, null>

    a function for getting a generator that fetches places

      • (
            placeType: Readonly<{ contactType: string }>,
        ): AsyncGenerator<Place.v1.Place, null>
      • Returns a generator for fetching all places with the given type

        Parameters

        • placeType: Readonly<{ contactType: string }>

          the type of places to return

        Returns AsyncGenerator<Place.v1.Place, null>

        a generator for fetching all places with the given type

        InvaidArgumentError if no type is provided or if the type is not for a place