hasProperty doesn't need to be generic (#16650)

This commit is contained in:
Andy
2017-06-20 12:13:05 -07:00
committed by GitHub
parent 47c1563649
commit 4ef4882b42

View File

@@ -955,7 +955,7 @@ namespace ts {
* @param map A map-like.
* @param key A property key.
*/
export function hasProperty<T>(map: MapLike<T>, key: string): boolean {
export function hasProperty(map: MapLike<any>, key: string): boolean {
return hasOwnProperty.call(map, key);
}