mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-01 08:36:38 +08:00
fix: migrate frontend to Vite 7 and resolve lint warnings
This commit is contained in:
Vendored
+8
-5
@@ -2,7 +2,7 @@
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
TAC: typeof TAC;
|
||||
TAC: TACConstructor;
|
||||
currentCaptcha?: any;
|
||||
currentCaptchaRes?: any;
|
||||
}
|
||||
@@ -42,13 +42,16 @@ interface CaptchaStyle {
|
||||
moveTrackMaskBorderColor?: string;
|
||||
}
|
||||
|
||||
declare class TAC {
|
||||
constructor(config: CaptchaConfig, style?: CaptchaStyle);
|
||||
|
||||
init(): TAC;
|
||||
interface TACInstance {
|
||||
init(): TACInstance;
|
||||
reloadCaptcha(): void;
|
||||
destroyWindow(): void;
|
||||
openCaptcha(): void;
|
||||
}
|
||||
|
||||
type TACConstructor = new (
|
||||
config: CaptchaConfig,
|
||||
style?: CaptchaStyle,
|
||||
) => TACInstance;
|
||||
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user