Skip to content

Commit 4ef4882

Browse files
author
Andy
authored
hasProperty doesn't need to be generic (microsoft#16650)
1 parent 47c1563 commit 4ef4882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ namespace ts {
955955
* @param map A map-like.
956956
* @param key A property key.
957957
*/
958-
export function hasProperty<T>(map: MapLike<T>, key: string): boolean {
958+
export function hasProperty(map: MapLike<any>, key: string): boolean {
959959
return hasOwnProperty.call(map, key);
960960
}
961961

0 commit comments

Comments
 (0)