mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-06 12:30:10 +08:00
Make 'partial' generic
This commit is contained in:
1 parent
54f064352a
commit
34cf33dfb4
2 files changed
+2294
-14
No files matched your search
@@ -169,6 +169,10 @@ var exclaim = function (statement) { return statement + "!"; };
|
||||
var welcome = _.compose(exclaim, greet);
|
||||
welcome('moe');
|
||||
|
||||
var partialApplicationTestFunction = (a: string, b: number, c: boolean, d: string, e: number, f: string) => { }
|
||||
var partialApplicationResult = _.partial(partialApplicationTestFunction, "", 1);
|
||||
var parametersCanBeStubbed = _.partial(partialApplicationResult, _, _, _, "");
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
_.keys({ one: 1, two: 2, three: 3 });
|
||||
@@ -336,7 +340,7 @@ function chain_tests() {
|
||||
.flatten()
|
||||
.find(num => num % 2 == 0)
|
||||
.value();
|
||||
|
||||
|
||||
var firstVal: number = _.chain([1, 2, 3])
|
||||
.first()
|
||||
.value();
|
||||
|
||||
Vendored
+2289
-13
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user