DefinitelyTyped/node
Ivo Stratev 77b1b17093 Improvement to node type definition (#10037)
case 2. Improvement to existing type definition.

From Node.js API Reference (https://nodejs.org/dist/latest-v6.x/docs/api/fs.html#fs_fs_open_path_flags_mode_callback):

fs.open(path, flags[, mode], callback)#
Added in: v0.0.2
path <String> | <Buffer>
flags <String> | <Number>
mode <Integer>
callback <Function>

Only mode is optional in open. Also instead of pure function overloads definitions can be re-written using union type annotaion for open and openSync.
2016-07-09 20:40:37 +09:00
..
node-0.8.8.d.ts Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
node-0.8.8.d.ts.tscparams normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
node-0.10.d.ts Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
node-0.11-tests.ts Remove unreachable code 2016-05-23 17:27:55 -07:00
node-0.11.d.ts Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
node-0.12-tests.ts Remove unreachable code 2016-05-23 17:27:55 -07:00
node-0.12.d.ts Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
node-4-tests.ts split node-v4 definitions (#9341) 2016-05-15 01:59:20 +09:00
node-4.d.ts Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
node-tests.ts Add extra static members to the Node Error class (#9618) 2016-06-14 00:40:55 +09:00
node.d.ts Improvement to node type definition (#10037) 2016-07-09 20:40:37 +09:00