secure-action
Version:
Secure Action 是一个基于行为的验证码组件,适用于 Vue 3。
12 lines (11 loc) • 415 B
TypeScript
import { SecureActionInstance } from '../index';
import { type Ref } from 'vue';
/**
* useBehavioralCaptcha
* 在 withInterceptor 方法中, 先执行一个 验证方法,成功后再执行 fn 方法。
* @param fn 需要执行的方法
* @returns
*/
export declare function useBehavioralCaptcha(instance: Ref<SecureActionInstance | undefined>, fn: Function): {
withInterceptor: () => Promise<void>;
};