feat: Make get_nextflow_release compatible with arrays

Although it seems like we're moving backwards, the new API only supports a
single data dump. I still like the iterative nature rather, so tack on
array support.
pull/77/head
parent 1c4afed1ea
commit 214ce026da

@ -96,7 +96,7 @@ async function get_latest_stable_nextflow_release(
export async function get_nextflow_release(
version: string,
releases: AsyncGenerator<NextflowRelease>
releases: NextflowRelease[] | AsyncGenerator<NextflowRelease>
): Promise<NextflowRelease> {
// First, check to see if we are using a "latest-*" version system, and return
// early

Loading…
Cancel
Save