@kevisual/kv-login 0.0.9 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ declare const loginEmitter: any;
2
+
1
3
  interface KvMessageOptions {
2
4
  type?: 'success' | 'error' | 'loading';
3
5
  message: string;
@@ -48,68 +50,4 @@ declare global {
48
50
  }
49
51
  }
50
52
 
51
- declare const clearCode: () => void;
52
- declare const checkPluginLogin: () => Promise<void>;
53
-
54
- interface EventData<T = any> {
55
- type: string;
56
- data: T;
57
- }
58
- type EventHandler<T = any> = (event: EventData<T>) => void;
59
- declare class EventEmitter {
60
- private events;
61
- /**
62
- * 监听事件
63
- * @param type 事件类型
64
- * @param handler 事件处理函数
65
- */
66
- on<T = any>(type: string, handler: EventHandler<T>): void;
67
- /**
68
- * 移除事件监听器
69
- * @param type 事件类型
70
- * @param handler 事件处理函数 (可选,如果不提供则移除该类型的所有监听器)
71
- */
72
- off<T = any>(type: string, handler?: EventHandler<T>): void;
73
- /**
74
- * 触发事件
75
- * @param event 事件对象,包含 type 和 data
76
- */
77
- emit<T = any>(event: EventData<T>): void;
78
- /**
79
- * 触发事件(简化版本,直接传递type和data)
80
- * @param type 事件类型
81
- * @param data 事件数据
82
- */
83
- emitSimple<T = any>(type: string, data: T): void;
84
- /**
85
- * 清空所有事件监听器
86
- */
87
- clear(): void;
88
- /**
89
- * 获取指定类型的监听器数量
90
- * @param type 事件类型
91
- * @returns 监听器数量
92
- */
93
- listenerCount(type: string): number;
94
- /**
95
- * 获取所有事件类型
96
- * @returns 事件类型数组
97
- */
98
- eventNames(): string[];
99
- /**
100
- * 检查是否有指定类型的监听器
101
- * @param type 事件类型
102
- * @returns 是否有监听器
103
- */
104
- hasListeners(type: string): boolean;
105
- /**
106
- * 只监听一次事件
107
- * @param type 事件类型
108
- * @param handler 事件处理函数
109
- */
110
- once<T = any>(type: string, handler: EventHandler<T>): void;
111
- }
112
-
113
- declare const loginEmitter: EventEmitter;
114
-
115
- export { checkPluginLogin, clearCode, loginEmitter };
53
+ export { loginEmitter };