mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-02-18 13:29:36 +01:00
24 lines
371 B
TypeScript
24 lines
371 B
TypeScript
interface Document {
|
|
fonts?: {
|
|
ready?: Promise<void>;
|
|
};
|
|
}
|
|
|
|
interface Window {
|
|
ClipboardItem: any;
|
|
}
|
|
|
|
interface Clipboard extends EventTarget {
|
|
write(data: any[]): Promise<void>;
|
|
}
|
|
|
|
type Mutable<T> = {
|
|
-readonly [P in keyof T]: T[P];
|
|
};
|
|
|
|
type ResolutionType<T extends (...args: any) => any> = T extends (
|
|
...args: any
|
|
) => Promise<infer R>
|
|
? R
|
|
: any;
|