2021-08-04 22:03:24 +00:00
|
|
|
declare module '*.css' {
|
|
|
|
const styles: string;
|
|
|
|
export default styles;
|
|
|
|
}
|
2022-01-16 05:47:14 +00:00
|
|
|
|
|
|
|
declare namespace Chai {
|
|
|
|
interface Assertion {
|
|
|
|
// chai-a11y-axe returns a promise-like object and should be awaited but the types are incorrect
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
|
|
accessible: (options?: Object) => PromiseLike<Assertion>;
|
|
|
|
}
|
|
|
|
}
|
2022-11-21 17:41:09 +00:00
|
|
|
|
|
|
|
interface HTMLInputElement {
|
|
|
|
showPicker: () => void;
|
|
|
|
}
|
2024-01-23 16:12:47 +00:00
|
|
|
|
2024-01-23 16:12:30 +00:00
|
|
|
/* eslint-disable */
|
2024-01-23 16:07:46 +00:00
|
|
|
interface CloseWatcher extends EventTarget {
|
|
|
|
new (options?: CloseWatcherOptions): CloseWatcher;
|
|
|
|
requestClose(): void;
|
|
|
|
close(): void;
|
|
|
|
destroy(): void;
|
|
|
|
|
2024-01-23 16:10:09 +00:00
|
|
|
oncancel: (event: Event) => void | null;
|
|
|
|
onclose: (event: Event) => void | null;
|
2024-01-23 16:07:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare const CloseWatcher: CloseWatcher;
|
|
|
|
|
|
|
|
interface CloseWatcherOptions {
|
|
|
|
signal: AbortSignal;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare interface Window {
|
|
|
|
CloseWatcher?: CloseWatcher;
|
|
|
|
}
|
2024-01-23 16:12:30 +00:00
|
|
|
/* eslint-enable */
|