Skip to content

Commit a340b80

Browse files
authored
Add back ClientRect (#112)
1 parent d384b28 commit a340b80

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3496,6 +3496,10 @@ interface ChildNode {
34963496
replaceWith(...nodes: (Node | string)[]): void;
34973497
}
34983498

3499+
/** @deprecated */
3500+
interface ClientRect extends DOMRect {
3501+
}
3502+
34993503
interface Clipboard extends EventTarget {
35003504
read(): Promise<ClipboardItems>;
35013505
readText(): Promise<string>;

inputfiles/addedTypes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,14 @@
557557
}
558558
}
559559
},
560+
// This is used in many DT libraries, via ckeditor
561+
"ClientRect": {
562+
"name": "ClientRect",
563+
"exposed": "Window",
564+
"deprecated": true,
565+
"extends": "DOMRect",
566+
"noInterfaceObject": true
567+
},
560568
/*
561569
Keeping EventListener and EventListenerObject isn't the most elegant way to handle
562570
the event listeners, but we need to keep the EventListener as an extendable interface

0 commit comments

Comments
 (0)