
* improve & granularize ExcalidrawElement types * fix incorrectly passing type * fix tests * fix more tests * fix unnecessary spreads & refactor * add comments
12 lines
183 B
TypeScript
12 lines
183 B
TypeScript
interface Window {
|
|
ClipboardItem: any;
|
|
}
|
|
|
|
interface Clipboard extends EventTarget {
|
|
write(data: any[]): Promise<void>;
|
|
}
|
|
|
|
type Mutable<T> = {
|
|
-readonly [P in keyof T]: T[P];
|
|
};
|