Trying to make strictFunctionTypes work (#21206).

Wrapper assignability is fixed, but tests are failing due to GC error.
This commit is contained in:
AJ Richardson
2017-11-11 21:18:26 -05:00
parent 1a051f0000
commit 49f2d7ce15
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -10723,7 +10723,7 @@ declare namespace _ {
/**
* @see _.toArray
*/
toArray(): LoDashImplicitWrapper<Array<TValue[keyof TValue]>>;
//toArray(): LoDashImplicitWrapper<Array<TValue[keyof TValue]>>;
}
interface LoDashExplicitWrapper<TValue> {
@@ -10735,7 +10735,7 @@ declare namespace _ {
/**
* @see _.toArray
*/
toArray(): LoDashExplicitWrapper<Array<TValue[keyof TValue]>>;
//toArray(): LoDashExplicitWrapper<Array<TValue[keyof TValue]>>;
}
//_.toPlainObject
@@ -16078,14 +16078,18 @@ declare namespace _ {
/**
* @see _.constant
*/
constant(): LoDashImplicitWrapper<() => TValue>;
constant<T>(this: LoDashImplicitWrapper<T>): LoDashImplicitWrapper<() => T>;
// Note: we can't use TValue here because of an issue with dtslint. Using T as a workaround; change back to TValue once dtsLint is working.
// constant(): LoDashImplicitWrapper<() => TValue>;
}
interface LoDashExplicitWrapper<TValue> {
/**
* @see _.constant
*/
constant(): LoDashExplicitWrapper<() => TValue>;
constant<T>(this: LoDashExplicitWrapper<T>): LoDashExplicitWrapper<() => T>;
// Note: we can't use TValue here because of an issue with dtslint. Using T as a workaround; change back to TValue once dtsLint is working.
// constant(): LoDashExplicitWrapper<() => TValue>;
}
//_.defaultTo
+1 -1
View File
@@ -7,7 +7,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"