shoelace/src/declaration.d.ts

39 wiersze
864 B
TypeScript

2021-08-04 22:03:24 +00:00
declare module '*.css' {
const styles: string;
export default styles;
}
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>;
}
}
interface HTMLInputElement {
showPicker: () => void;
}
2024-01-23 16:12:47 +00:00
2024-01-23 16:12:30 +00:00
/* eslint-disable */
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;
}
declare const CloseWatcher: CloseWatcher;
interface CloseWatcherOptions {
signal: AbortSignal;
}
declare interface Window {
CloseWatcher?: CloseWatcher;
}
2024-01-23 16:12:30 +00:00
/* eslint-enable */