mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
add types of devtools-detect
This commit is contained in:
16
devtools-detect/devtools-detect.d.ts
vendored
Normal file
16
devtools-detect/devtools-detect.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type definitions for ajv
|
||||
// Project: https://github.com/sindresorhus/devtools-detect
|
||||
// Definitions by: York Yao <https://github.com/plantain-00/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type DevTools = {
|
||||
open: boolean;
|
||||
orientation: "vertical" | "horizontal";
|
||||
}
|
||||
interface DevToolsEvent extends Event {
|
||||
detail: DevTools;
|
||||
}
|
||||
interface Window {
|
||||
devtools: DevTools;
|
||||
addEventListener(type: "devtoolschange", listener: (ev: DevToolsEvent) => any, useCapture?: boolean): void;
|
||||
}
|
||||
Reference in New Issue
Block a user