Commit Graph

39 Commits

Author SHA1 Message Date
John Vilk
666cd33fe8 In many fs functions, mode is optional, which means that the argument that takes its slot becomes the callback.
Adding alternative definitions to account for this.
2013-09-27 15:43:28 -04:00
John Vilk
d39e7a3125 In fs's truncate functions, 'len' is optional (and defaults to 0). 2013-09-27 15:20:58 -04:00
John Vilk
b6874ee014 fs.realpath's cache is an *object literal*, not a string or a boolean. 2013-09-27 15:00:04 -04:00
John Vilk
e442870348 Whoops. fd is a *string*, not a *number*. 2013-09-27 14:51:25 -04:00
John Vilk
aed3e0fc50 Adding missing method signatures and fixing incorrect method signatures.
The following missing methods were added:
* fs.readlinkSync
* fs.ftruncate
* fs.ftruncateSync

The following method signatures were fixed:
* path.resolve: Takes an array of arbitrary length. This does not necessarily need to be a string array; resolve skips any non-string elements.
* process.cwd: Returns a string, not void.
2013-09-27 14:46:39 -04:00
basarat
d0139df89d node : readable stream pipe can be piped further closes #1030 2013-09-10 19:32:21 +10:00
damianog
1c1e096228 options is optional
http://nodejs.org/api/zlib.html#zlib_options
2013-09-09 19:57:57 +02:00
damianog
7b74efd634 ServerRequest headers is an object
http://nodejs.org/api/http.html#http_message_headers
2013-09-07 20:31:45 +02:00
Chris Scribner
95b783e972 Update node type definitions to compile under -noImplicitAny 2013-09-04 18:11:20 -04:00
anti.veeranna
c1d25c84f1 describe stream.Readable class 2013-09-04 06:17:10 -04:00
damianog
0ad9432d61 Node.js util.inspect must return a string
As explained here:

http://nodejs.org/api/util.html#util_util_inspect_object_options

util.inspect return a string
2013-08-29 21:16:11 +02:00
Diullei Gomes
7234449d22 Merge pull request #914 from cybrown/master
Extending EventEmitter interface on FSWatcher interface
2013-08-24 20:50:24 -07:00
Jed Hunsaker
8c6e74ce37 Untabify 2013-08-22 21:56:17 -07:00
Cy Brown
bd9fc8c260 Extending EventEmitter interface on FSWatcher interface 2013-08-22 22:47:06 +02:00
Hans Malherbe
59c20e38fd Add optional time argument for process.hrtime 2013-08-21 17:45:32 +02:00
Cary Haynie
1a95e29af3 update connect() calls to correctly return NodeSocket object. 2013-08-19 10:49:44 -04:00
Ty
c2a7c36945 Fixed type mistake 2013-08-17 15:22:54 -07:00
Panu Pitkämäki
dc5453adbd Fixed typo in listener removal method, now conforms to interface. 2013-08-07 18:00:11 +03:00
Panu Pitkämäki
bd6ddbdce2 Migrated a breaking change between Typescript 0.8 and 0.9: Syntax of external module imports now uses 'require'. 2013-08-07 15:49:36 +03:00
Boris Yankov
d1f801dd39 Fix node removeAllListeners method definition 2013-08-06 22:02:46 +03:00
basarat
79dc2f4c35 path.resolve
It can take a single "to" parameter : http://nodejs.org/docs/latest/api/path.html#path_path_resolve_from_to and in fact that is *the* way you get "Absolute paths" in node
2013-08-04 16:07:49 +10:00
Diullei Gomes
274667b760 bug fix - node test 2013-07-19 12:11:20 -03:00
NN
184bda7faf Update according to TS 0.9
'export = internal' is illegal.
2013-07-05 22:05:25 +03:00
Poul Sørensen
bb5d20d333 Update node.d.ts 2013-06-24 23:39:56 +02:00
Andrew Gaspar
3d190b9b50 Made assert module a fundule. 2013-06-19 23:06:03 -07:00
Andrew Gaspar
1aac9b3436 Updated node definition to make assert a fundule. 2013-06-19 23:03:20 -07:00
Niklas Mollenhauer
cc96a71a98 bool -> boolean 2013-06-19 01:47:21 +03:00
Niklas Mollenhauer
038becceff removed console type since it is included in the lib.d.ts standard definition file (TypeScript 0.9) 2013-06-19 00:45:24 +02:00
karlw4
63f3e198fe missing global functions setImmediate and clearImmediate,
see documentation at http://nodejs.org/api/timers.html
2013-06-15 14:51:05 +02:00
Bart van der Schoor
c084481b2e replaced tab withs spaces 2013-06-09 23:23:51 +03:00
Bartvds
0eb892ba53 added missing require.main 2013-06-09 22:20:11 +02:00
Bartvds
79d3a4e648 require.resolve - added id argument 2013-04-26 18:30:15 +02:00
AntonAM
fd01ace516 Added overloaded version of setgid and setuid.
Instead of making argument's type 'any' we have overloaded version for number and string parameters.
2013-04-11 00:40:58 +04:00
AntonAM
f9a66f3984 setuid and setgid accept string as a parameter.
Both process.setuid and process.setgid can accept either a numerical ID or a username\groupname string.
2013-04-09 17:01:12 +04:00
Andrew Gaspar
9c35a42514 Updated events module to include exported EventEmitter CLASS so it can be extended, like in the Azure library. 2013-03-31 02:08:09 -05:00
Andrew Gaspar
1f852afe5d Moved old node defs to node-0.8.8 and separated tests for each version. 2013-03-25 23:40:36 -05:00
Andrew Gaspar
70fd40a1aa Added default assert definition and a second definition for writeFile. Also added a basic test file. Will be expanded more later. 2013-03-24 22:52:11 -05:00
Crwth
ac8b309bca Update node/node.d.ts
All parameters to NodeBuffer.toString() are optional.
2013-02-15 20:14:54 -07:00
Boris Yankov
c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00