mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Interface extraction
This commit is contained in:
		@@ -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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user