disable-devtool/npm/index.d.ts
2020-12-17 10:20:50 +08:00

19 lines
825 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

declare interface optionStatic {
md5?: string; // 绕过禁用的md5值详情见3.2,默认不启用绕过禁用
url?: string; // 关闭页面失败时的跳转页面默认值为localhost
tkName?: string; // 绕过禁用时的url参数名称默认为 ddtk
ondevtoolopen?(): void; // 开发者面板打开的回调启用时url参数无效
debugDelay?: number; // debug模式时的延迟 默认200ms
interval?: number; // 定时器的时间间隔 默认200ms
disableMenu?: boolean; // 是否禁用右键菜单 默认为true ie下无效
stopIntervalTime?: number; // 在移动端时取消监视的等待时长
}
declare interface DDTStatic {
(option?: optionStatic): void;
md5(text?: string): string;
version: string;
}
declare const ddt: DDTStatic;
export default ddt;