mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 04:18:52 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			214 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			214 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/**
 | 
						|
 * A function that evaluates the action only once.
 | 
						|
 * @param action The action to be evaluated to get the result.
 | 
						|
 * Returns the evaluated result.
 | 
						|
 */
 | 
						|
export default function lazy<T>(action: () => T): () => T;
 |