UNPKG

@nestlab/google-recaptcha

Version:
7 lines (6 loc) 433 B
import { ContextType } from '@nestjs/common'; export type RecaptchaResponseProvider = (req: any) => string | Promise<string>; export type RecaptchaRemoteIpProvider = (req: any) => string | Promise<string>; export type ScoreValidator = number | ((score: number) => boolean); export type SkipIfValue = boolean | (<Req = unknown>(request: Req) => boolean | Promise<boolean>); export type RecaptchaContextType = ContextType | 'graphql';