Update src/@types/hcaptcha.d.ts
This commit is contained in:
		
							parent
							
								
									b2c703c173
								
							
						
					
					
						commit
						f57888eb4b
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		
							
								
								
									
										6
									
								
								src/@types/hcaptcha.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								src/@types/hcaptcha.d.ts
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,9 +1,11 @@
 | 
			
		|||
declare module 'hcaptcha' {
 | 
			
		||||
	export function verify(secret: string, token: string): Promise<{
 | 
			
		||||
  interface IVerifyResponse {
 | 
			
		||||
		success: boolean;
 | 
			
		||||
		challenge_ts: string;
 | 
			
		||||
		hostname: string;
 | 
			
		||||
		credit?: boolean;
 | 
			
		||||
		'error-codes'?: unknown[];
 | 
			
		||||
	}>;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
	export function verify(secret: string, token: string): Promise<IVerifyResponse>;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue