mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Allow nodeFn.apply to accept an IArguments in addition to arrays
This commit is contained in:
@@ -380,6 +380,10 @@ example = function () {
|
||||
|
||||
promise = nodefn.apply(nodeFn2, [1, '2']);
|
||||
|
||||
example = function() {
|
||||
nodefn.apply(fs.read, arguments);
|
||||
}
|
||||
|
||||
example = function () {
|
||||
var loadPasswd = nodefn.apply(fs.readFile, ['/etc/passwd']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user