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, null, unknown>)

    a function for getting a generator that fetches places

      • (placeType): AsyncGenerator<Place, null, unknown>
      • 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, null, unknown>

        a generator for fetching all places with the given type

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