5 lines
		
	
	
		
			175 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			175 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * Sometimes a non-error is thrown, wrap it as an Error instance to ensure a consistent Error interface.
 | |
|  */
 | |
| export declare function toError(thrownValue: unknown): Error;
 |