mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix mistake in constant
* constant returns a function rather than a type
This commit is contained in:
parent
9a6d206c5a
commit
9861ba85fd
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user