Skip to content

Commit 7f42994

Browse files
ktmudph-fritsche
authored andcommitted
Fix type error and warnings
1 parent aeb2080 commit 7f42994

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/_helpers/listeners.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ export function addListeners(
145145
}
146146
}
147147

148-
function hasProperty<T extends {}, K extends PropertyKey>(
148+
function hasProperty<T extends {}, K extends PropertyKey, V = string>(
149149
obj: T,
150150
prop: K,
151-
): obj is T & {[k in K]: unknown} {
151+
): obj is T & {[k in K]: V} {
152152
return prop in obj
153153
}
154154

0 commit comments

Comments
 (0)