@lntvow/utils 1.8.11 → 1.8.13
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/index.cjs +932 -1
- package/dist/index.d.ts +34 -0
- package/dist/index.mjs +9448 -145
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,30 @@ export declare const hasChanged: (oldValue: unknown, newValue: unknown) => boole
|
|
|
63
63
|
|
|
64
64
|
export declare const hasOwn: <T extends object, U extends keyof T>(target: T, key: U) => boolean;
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* @description 初始化
|
|
68
|
+
* @param options 初始化配置
|
|
69
|
+
*/
|
|
70
|
+
declare function initConsole(options?: InitConsoleOptions): void;
|
|
71
|
+
|
|
72
|
+
declare interface InitConsoleOptions {
|
|
73
|
+
/**
|
|
74
|
+
* @description 缓存的key
|
|
75
|
+
* @default LNTVOW_CONSOLE
|
|
76
|
+
*/
|
|
77
|
+
name?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @description 显示console的时间 单位s
|
|
80
|
+
* @default 3600 一个小时
|
|
81
|
+
*/
|
|
82
|
+
time?: number;
|
|
83
|
+
/**
|
|
84
|
+
* @description 显示console的事件触发次数
|
|
85
|
+
* @default 20
|
|
86
|
+
*/
|
|
87
|
+
count?: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
66
90
|
export declare const isArray: (arg: any) => arg is any[];
|
|
67
91
|
|
|
68
92
|
export declare function isBoolean(val: unknown): val is boolean;
|
|
@@ -160,6 +184,11 @@ export declare function isUppercaseOrNumbersOrUnderline(value: string): boolean;
|
|
|
160
184
|
|
|
161
185
|
export declare const log: (...arg: any[]) => void;
|
|
162
186
|
|
|
187
|
+
export declare const nConsole: {
|
|
188
|
+
initConsole: typeof initConsole;
|
|
189
|
+
showConsole: typeof showConsole;
|
|
190
|
+
};
|
|
191
|
+
|
|
163
192
|
export declare const objectToString: () => string;
|
|
164
193
|
|
|
165
194
|
declare interface Options {
|
|
@@ -170,6 +199,11 @@ declare interface Options {
|
|
|
170
199
|
isDeepClone: boolean;
|
|
171
200
|
}
|
|
172
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @description 触发显示事件
|
|
204
|
+
*/
|
|
205
|
+
declare function showConsole(): void;
|
|
206
|
+
|
|
173
207
|
/**
|
|
174
208
|
* @description 节流函数
|
|
175
209
|
* @param target 目标函数
|