mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 03:38:36 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			423 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			423 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as core from "@actions/core";
 | |
| 
 | |
| export interface IOutputSetter {
 | |
|     setOutput(key: string, value: string): void;
 | |
|     setState(key: string, value: string): void;
 | |
| }
 | |
| 
 | |
| export class StateOutputSetter implements IOutputSetter {
 | |
|     setOutput = core.setOutput;
 | |
|     setState = core.saveState;
 | |
| }
 | |
| 
 | |
| export class NonStateOutputSetter implements IOutputSetter {
 | |
|     setOutput = core.setOutput;
 | |
|     setState = core.setOutput;
 | |
| }
 | 
