mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	[API] Fix #3097
This commit is contained in:
		
							parent
							
								
									a87c5899c5
								
							
						
					
					
						commit
						d48c25d2c9
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -28,6 +28,8 @@ export default function <T extends IEndpointMeta>(meta: T, cb: (params: Params<T
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
function getParams<T extends IEndpointMeta>(defs: T, params: any): [Params<T>, Error] {
 | 
			
		||||
	if (defs.params == null) return [params, null];
 | 
			
		||||
 | 
			
		||||
	const x: any = {};
 | 
			
		||||
	let err: Error = null;
 | 
			
		||||
	Object.entries(defs.params).some(([k, def]) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue