shoelace/src/declaration.d.ts

39 wiersze
864 B
TypeScript

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;
}
/* eslint-disable */
interface CloseWatcher extends EventTarget {
new (options?: CloseWatcherOptions): CloseWatcher;
requestClose(): void;
close(): void;
destroy(): void;
oncancel: (event: Event) => void | null;
onclose: (event: Event) => void | null;
}
declare const CloseWatcher: CloseWatcher;
interface CloseWatcherOptions {
signal: AbortSignal;
}
declare interface Window {
CloseWatcher?: CloseWatcher;
}
/* eslint-enable */