forked from Michigan-Tech-Courses/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modules.d.ts
39 lines (31 loc) · 979 Bytes
/
modules.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type {Workbox} from 'workbox-window';
declare module 'jest-next-dynamic'{
const preloadAll: () => Promise<void>;
export default preloadAll;
}
declare module '*.svg' {
import {type ReactElement, type SVGProps} from 'react';
const content: (props: SVGProps<SVGElement>) => ReactElement;
export default content;
}
type ClipboardItem = {
readonly types: string[];
readonly presentationStyle: 'unspecified' | 'inline' | 'attachment';
getType(): Promise<Blob>;
};
type ClipboardItemData = Record<string, Blob | string | Promise<Blob | string>>;
// eslint-disable-next-line @typescript-eslint/no-redeclare
declare const ClipboardItem: {
prototype: ClipboardItem;
new (itemData: ClipboardItemData): ClipboardItem;
};
type Clipboard = {
read(): Promise<DataTransfer>;
write(data: ClipboardItem[]): Promise<void>;
};
export declare global {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface Window {
workbox: Workbox;
}
}