You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
534 B
TypeScript
30 lines
534 B
TypeScript
declare global {
|
|
interface Window {
|
|
addEventListener(
|
|
type: 'devtoolschange',
|
|
listener: (event: DevToolsEvent) => unknown,
|
|
options?: boolean | AddEventListenerOptions
|
|
): void;
|
|
}
|
|
}
|
|
|
|
export type Orientation = 'vertical' | 'horizontal';
|
|
|
|
export interface DevToolsEvent extends Event {
|
|
detail: typeof devTools;
|
|
}
|
|
|
|
declare const devTools: {
|
|
/**
|
|
Whether DevTools is open.
|
|
*/
|
|
readonly isOpen: boolean;
|
|
|
|
/**
|
|
Orientation of the DevTools if it's open.
|
|
*/
|
|
readonly orientation?: Orientation;
|
|
};
|
|
|
|
export default devTools;
|