@lovrabet/sdk 1.1.7-beta.0 → 1.1.8
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 浏览器环境检测工具
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 检测是否在浏览器环境中运行
|
|
6
|
+
* @returns {boolean} 如果在浏览器环境中返回 true,否则返回 false
|
|
7
|
+
*/
|
|
8
|
+
export declare function isBrowser(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 在浏览器环境中使用 accessKey 时显示安全警告
|
|
11
|
+
* @param message - 自定义警告消息(可选)
|
|
12
|
+
*/
|
|
13
|
+
export declare function warnBrowserAccessKey(message?: string): void;
|