mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-11 08:04:30 +00:00
fix mistake in constant
* constant returns a function rather than a type
This commit is contained in:
2
lodash/lodash.d.ts
vendored
2
lodash/lodash.d.ts
vendored
@@ -6329,7 +6329,7 @@ declare module _ {
|
||||
/**
|
||||
* Creates a function that returns value..
|
||||
**/
|
||||
constant<T>(value: T): T;
|
||||
constant<T>(value: T): () => T;
|
||||
}
|
||||
|
||||
//_.create
|
||||
|
||||
Reference in New Issue
Block a user