mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
fix mistake in constant
* constant returns a function rather than a type
This commit is contained in:
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