disable-devtool/npm/index.d.ts
2021-07-27 23:40:50 +08:00

28 lines
1.0 KiB
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 type DETECTOR_TYPE = -1 | 0 | 1 | 2;
declare interface optionStatic {
md5?: string; // 绕过禁用的md5值详情见3.2,默认不启用绕过禁用
url?: string; // 关闭页面失败时的跳转页面默认值为localhost
tkName?: string; // 绕过禁用时的url参数名称默认为 ddtk
ondevtoolopen?(type: DETECTOR_TYPE): void; // 开发者面板打开的回调启用时url参数无效
interval?: number; // 定时器的时间间隔 默认200ms
disableMenu?: boolean; // 是否禁用右键菜单 默认为true
stopIntervalTime?: number; // 在移动端时取消监视的等待时长
clearIntervalWhenDevOpenTrigger?: boolean; // 是否在触发之后停止监控
}
declare interface DDTStatic {
(option?: optionStatic): void;
md5(text?: string): string;
DETECTOR_TYPE: {
UNKONW: -1;
TO_STRING: 0;
DEFINE_ID: 1;
SIZE: 2;
// LOG_TIME: 3;
}
version: string;
}
declare const ddt: DDTStatic;
export default ddt;