mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
fix mistake in constant
* constant returns a function rather than a type
This commit is contained in:
1 parent
9a6d206c5a
commit
9861ba85fd
1 file changed
+1
-1
Vendored
+1
-1
@@ -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