Interface extraction
parent
c8c6442c74
commit
e761a7024e
|
@ -24,6 +24,10 @@ interface INodeVersionInfo {
|
||||||
fileName: string;
|
fileName: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface INodeRelease extends tc.IToolRelease {
|
||||||
|
lts?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export async function getNode(
|
export async function getNode(
|
||||||
versionSpec: string,
|
versionSpec: string,
|
||||||
stable: boolean,
|
stable: boolean,
|
||||||
|
@ -182,7 +186,7 @@ function isLts(versionSpec: string): boolean {
|
||||||
function findLtsVersionFromManifest(
|
function findLtsVersionFromManifest(
|
||||||
versionSpec: string,
|
versionSpec: string,
|
||||||
stable: boolean,
|
stable: boolean,
|
||||||
candidates: Array<tc.IToolRelease & { lts?: string }>
|
candidates: INodeRelease[]
|
||||||
): string {
|
): string {
|
||||||
const alias = versionSpec.split('lts/')[1]?.toLowerCase();
|
const alias = versionSpec.split('lts/')[1]?.toLowerCase();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue