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 34b2731a55
commit 76b5d90248
Signed by: millironx
GPG key ID: B7044A3432851F64

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