2020-01-09 17:37:08 +01:00
|
|
|
interface Window {
|
|
|
|
ClipboardItem: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Clipboard extends EventTarget {
|
|
|
|
write(data: any[]): Promise<void>;
|
|
|
|
}
|
2020-03-17 20:55:40 +01:00
|
|
|
|
|
|
|
type Mutable<T> = {
|
|
|
|
-readonly [P in keyof T]: T[P];
|
|
|
|
};
|
2020-03-26 18:28:26 +01:00
|
|
|
|
|
|
|
type ResolutionType<T extends (...args: any) => any> = T extends (
|
|
|
|
...args: any
|
|
|
|
) => Promise<infer R>
|
|
|
|
? R
|
|
|
|
: any;
|