mirror of
https://gitea.com/actions/setup-node.git
synced 2024-11-22 01:59:32 +01:00
Interface extraction
This commit is contained in:
parent
c8c6442c74
commit
e761a7024e
1 changed files with 5 additions and 1 deletions
|
@ -24,6 +24,10 @@ interface INodeVersionInfo {
|
|||
fileName: string;
|
||||
}
|
||||
|
||||
interface INodeRelease extends tc.IToolRelease {
|
||||
lts?: string;
|
||||
}
|
||||
|
||||
export async function getNode(
|
||||
versionSpec: string,
|
||||
stable: boolean,
|
||||
|
@ -182,7 +186,7 @@ function isLts(versionSpec: string): boolean {
|
|||
function findLtsVersionFromManifest(
|
||||
versionSpec: string,
|
||||
stable: boolean,
|
||||
candidates: Array<tc.IToolRelease & { lts?: string }>
|
||||
candidates: INodeRelease[]
|
||||
): string {
|
||||
const alias = versionSpec.split('lts/')[1]?.toLowerCase();
|
||||
|
||||
|
|
Loading…
Reference in a new issue