Skip to content

Commit bf05736

Browse files
authored
fix(utils): Remove dom is casting (#4451)
1 parent 4edac41 commit bf05736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/is.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function isPlainObject(wat: unknown): wat is Record<string, unknown> {
101101
* @param wat A value to be checked.
102102
* @returns A boolean representing the result.
103103
*/
104-
export function isEvent(wat: unknown): wat is Event {
104+
export function isEvent(wat: unknown): boolean {
105105
return typeof Event !== 'undefined' && isInstanceOf(wat, Event);
106106
}
107107

@@ -112,7 +112,7 @@ export function isEvent(wat: unknown): wat is Event {
112112
* @param wat A value to be checked.
113113
* @returns A boolean representing the result.
114114
*/
115-
export function isElement(wat: unknown): wat is Element {
115+
export function isElement(wat: unknown): boolean {
116116
return typeof Element !== 'undefined' && isInstanceOf(wat, Element);
117117
}
118118

0 commit comments

Comments
 (0)