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
…
2016-06-27 16:08:01 -07:00
2016-03-17 15:13:35 +00:00
2016-06-30 17:29:16 +02:00
2016-05-23 13:00:18 +09:00
2016-06-25 20:17:08 +02:00
2016-02-20 03:15:34 -05:00
2016-07-06 06:19:20 -04:00
2016-06-21 21:58:37 +00:00
2016-07-01 04:33:56 +02:00
2016-06-20 23:12:04 +00:00
2016-02-29 15:19:45 -08:00
2016-06-08 17:27:56 +09:00
2016-05-21 08:15:52 -07:00
…
2016-07-02 15:26:16 +01:00
2016-07-06 01:01:17 +02:00
2016-06-19 12:42:22 +09:00
2016-06-14 00:57:46 +09:00
2016-04-03 17:28:02 +03:00
2016-03-09 16:07:06 -08:00
…
2016-07-04 11:46:19 +09:00
2016-06-19 11:59:36 +09:00
2016-06-08 14:01:32 +03:00
2016-05-10 00:36:07 +09:00
2016-06-28 13:41:59 +03:00
2016-06-03 00:49:58 +09:00
2016-03-18 13:37:27 +05:30
2016-05-21 08:19:17 -07:00
2016-03-27 16:16:27 +03:00
2016-04-13 00:50:34 +09:00
2016-04-09 22:44:19 +08:00
2016-05-24 23:00:38 +09:00
2016-06-21 14:06:42 +02:00
2016-05-23 13:09:47 +09:00
2016-02-16 13:32:52 +10:30
2016-03-15 17:23:30 -04:00
2016-06-20 23:58:06 +00:00
2016-03-22 12:58:42 +09:00
2016-06-29 09:49:20 +08:00
2016-04-13 00:15:57 +09:00
2016-06-19 02:55:31 +09:00
2016-05-24 10:42:05 +02:00
2016-06-23 09:32:47 +02:00
2016-06-19 02:55:31 +09:00
2016-04-03 14:44:05 +02:00
2016-03-27 01:48:20 +01:00
2016-05-17 15:13:59 +03:00
2016-03-30 20:47:41 -07:00
2016-06-27 10:17:58 +10:00
2016-04-13 00:38:22 +09:00
2016-06-19 12:43:23 +09:00
2016-06-22 12:41:01 +09:00
2016-06-24 10:50:47 +02:00
2016-03-28 09:28:02 -05:00
2016-05-06 03:12:02 +09:00
2016-04-23 23:53:25 +09:00
2016-04-18 00:18:47 +09:00
2016-02-23 17:56:02 +01:00
2016-03-17 02:18:10 +09:00
2016-06-23 01:46:28 +01:00
2016-05-02 00:53:03 +09:00
2016-07-05 19:23:07 +08:00
2016-06-29 11:34:13 +09:00
2016-03-17 02:18:10 +09:00
2016-07-04 17:42:40 +01:00
2016-03-05 11:26:59 -03:00
2016-04-13 00:34:44 +09:00
2016-03-28 22:43:14 +02:00
2016-06-14 00:58:06 +09:00
2016-05-26 23:22:13 +09:00
2016-03-14 18:48:30 -07:00
2016-04-14 21:44:59 +09:00
2016-04-01 11:52:15 +02:00
2016-06-20 13:33:55 -06:00
2016-07-05 09:42:23 -04:00
2016-05-12 15:09:47 +02:00
2016-04-13 09:34:38 +08:00
2016-04-23 16:43:36 +09:00
2016-04-01 15:34:54 +08:00
2016-06-19 10:36:16 +09:00
2016-06-29 10:45:17 +03:00
2016-05-26 23:23:49 +09:00
…
2016-06-28 12:13:03 +08:00
2016-06-04 18:52:02 +02:00
…
2016-02-17 15:35:51 +00:00
2016-04-04 15:58:07 +01:00
2016-03-27 14:00:36 +02:00
2016-07-01 14:58:13 -07:00
2016-04-06 21:07:32 +09:00
2016-06-14 01:04:05 +09:00
2016-03-23 20:59:18 +01:00
2016-06-28 11:37:25 +01:00
2016-06-20 11:49:21 -07:00
2016-06-25 01:31:15 +04:30
2016-03-16 22:28:45 -07:00
2016-06-28 09:30:33 +02:00
2016-03-22 03:12:47 +02:00
2016-07-09 15:08:57 +09:00
2016-03-20 01:43:54 +09:00
2016-04-04 13:45:53 +02:00
2016-05-15 00:03:34 +09:00
2016-03-22 00:33:08 +01:00
2016-06-08 20:09:10 +09:00
2016-07-06 21:00:53 -04:00
2016-03-22 13:58:57 +11:00
2016-03-17 17:26:29 +08:00
2016-02-16 01:20:30 +09:00
2016-06-21 09:41:34 +01:00
2016-07-08 12:26:48 +09:00
2016-04-03 17:21:19 +03:00
2016-05-24 22:52:21 +09:00
2016-04-26 00:45:01 +09:00
2016-07-07 09:51:22 +02:00
2016-07-05 21:32:26 +02:00
2016-07-07 09:54:14 +02:00
2016-07-07 10:04:22 +02:00
2016-07-08 12:23:48 +02:00
2016-04-13 00:03:52 +09:00
2016-06-19 11:30:14 +09:00
2016-06-19 10:21:16 +09:00
2016-07-06 21:01:33 +02:00
2016-07-06 21:03:38 +02:00
2016-07-08 17:11:34 +08:00
2016-05-15 02:12:32 +09:00
2016-06-20 23:29:04 +02:00
2016-06-22 10:10:16 +01:00
2016-04-13 00:51:40 +09:00
2016-05-20 15:12:55 -03:00
2016-07-04 11:39:46 +09:00
2016-03-17 02:18:10 +09:00
2016-06-07 00:30:14 +09:00
2016-06-08 14:42:19 +09:00
2016-06-19 12:41:51 +09:00
2016-06-22 13:42:14 +08:00
2016-06-08 19:20:04 +09:00
2016-02-23 13:46:46 +01:00
2016-06-23 10:18:31 +08:00
2016-06-19 12:32:02 +09:00
2016-05-12 13:48:50 +09:00
…
2016-03-31 00:40:48 +09:00
2016-06-28 08:36:42 +08:00
2016-03-21 16:52:08 +09:00
2016-06-19 12:21:54 +09:00
2016-06-08 15:25:18 +09:00
2016-05-25 13:01:45 -05:00
…
2016-07-04 23:30:36 +09:00
2016-06-19 11:44:49 +09:00
2016-05-15 02:06:50 +09:00
2016-05-10 11:04:35 +10:00
2016-05-06 03:59:22 +09:00
2016-06-29 03:58:15 +02:00
2016-06-08 19:21:53 +09:00
2016-06-08 17:27:20 +09:00
2016-06-19 12:29:54 +09:00
2016-06-22 08:28:53 +02:00
2016-06-22 14:08:40 +09:00
2016-03-24 00:17:44 +09:00
2016-06-27 11:21:03 +02:00
2016-04-26 00:51:34 +09:00
2016-04-23 23:32:48 +09:00
2016-06-21 22:28:32 +00:00
2016-06-22 09:13:51 +02:00
2016-06-19 12:21:39 +09:00
2016-03-17 02:18:10 +09:00
2016-04-03 00:57:50 +03:00
2016-04-18 00:30:52 +09:00
2016-05-06 02:02:41 +09:00
2016-06-22 23:15:53 +03:00
2016-05-10 00:33:44 +09:00
2016-03-12 09:13:02 -08:00
2016-04-06 20:56:36 +09:00
2016-06-22 10:44:06 +02:00
2016-02-16 01:20:30 +09:00
2016-02-27 11:45:39 +09:00
…
2016-03-12 22:14:11 +09:00
2016-03-12 22:14:11 +09:00

DefinitelyTyped Build Status

Join the chat at https://gitter.im/borisyankov/DefinitelyTyped

The repository for high quality TypeScript type definitions.

For more information see the definitelytyped.org website.

Usage

Include a line like this:

/// <reference path="jquery.d.ts" />

Contributions

DefinitelyTyped only works because of contributions by users like you!

Please see the contribution guide on how to contribute to DefinitelyTyped.

How to get the definitions

List of definitions

Requested definitions

Here are the currently requested definitions.

License

This project is licensed under the MIT license.

Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.

Analytics

S
Description
No description provided
Readme MIT
395 MiB
Languages
TypeScript 100%