Skip to content

Commit a52c936

Browse files
slowcheetahzloirock
authored andcommitted
DOMException type aligned with pure and global versions
1 parent 802491c commit a52c936

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core-js-types/src/base/web/dom-exception.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
type _DOMException = typeof globalThis extends { onmessage: any } ? {} : DOMException;
22
interface DOMException extends Error {
3+
/**
4+
* @deprecated
5+
*
6+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
7+
*/
38
readonly code: number;
9+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
410
readonly message: string;
11+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
512
readonly name: string;
613
readonly INDEX_SIZE_ERR: 1;
714
readonly DOMSTRING_SIZE_ERR: 2;

0 commit comments

Comments
 (0)