mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 12:03:39 +00:00 
			
		
		
		
	typescript: Migrate params-util.js to typescript.
This commit is contained in:
		
				
					committed by
					
						 Akash Nimare
						Akash Nimare
					
				
			
			
				
	
			
			
			
						parent
						
							4d679acb0c
						
					
				
				
					commit
					aa2c55538f
				
			
							
								
								
									
										11
									
								
								app/renderer/js/utils/params-util.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								app/renderer/js/utils/params-util.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| // This util function returns the page params if they're present else returns null | ||||
| export function isPageParams(): null | object { | ||||
| 	let webpageParams = null; | ||||
| 	try { | ||||
| 		// eslint-disable-next-line no-undef, @typescript-eslint/camelcase | ||||
| 		webpageParams = page_params; | ||||
| 	} catch (_) { | ||||
| 		webpageParams = null; | ||||
| 	} | ||||
| 	return webpageParams; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user