MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / getAll

Method getAll

integrations/replicate/src/index.ts:139–150  ·  view source on GitHub ↗

Auto-paginate and return all results.

(
    task: (key: string) => Promise<Page<T>>,
    key: IntegrationTaskKey
  )

Source from the content-addressed store, hash-verified

137
138 /** Auto-paginate and return all results. */
139 async getAll<T>(
140 task: (key: string) => Promise<Page<T>>,
141 key: IntegrationTaskKey
142 ): ReplicateReturnType<T[]> {
143 const allResults: T[] = [];
144
145 for await (const results of this.paginate(task, key)) {
146 allResults.push(...results);
147 }
148
149 return allResults;
150 }
151
152 /** Make a request to the Replicate API. */
153 request<T = any>(

Callers

nothing calls this directly

Calls 1

paginateMethod · 0.95

Tested by

no test coverage detected