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.
This commit is contained in:
Thomas A. Christensen II 2024-02-02 10:42:29 -06:00
parent 1c4afed1ea
commit 214ce026da

View file

@ -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