lodash types compatibility with TypeScript 2.2

TypeScript 2.2 changed the built-in type of WeakMap to use the new object type in its generic subtype.
Updated compat for target es5 and mark file as requiring TS2.2
This commit is contained in:
Avi Vahl
2017-02-22 21:02:51 +02:00
parent 4be2d41193
commit a256a3c106
+2 -2
View File
@@ -2,7 +2,7 @@
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
// TypeScript Version: 2.2
/**
### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog)
@@ -19446,5 +19446,5 @@ declare global {
interface Set<T> { }
interface Map<K, V> { }
interface WeakSet<T> { }
interface WeakMap<K, V> { }
interface WeakMap<K extends object, V> { }
}