mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Trying to make strictFunctionTypes work (#21206).
Wrapper assignability is fixed, but tests are failing due to GC error.
This commit is contained in:
Vendored
+8
-4
@@ -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
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
|
||||
Reference in New Issue
Block a user