Files
DefinitelyTyped/types
Sander de Waal b0ff189fbb ftpd typings: error and result can both be undefined for readdir, open, stat in FtpFileSystem. (#28707)
Please fill in this template.

- [X] Use a meaningful title for the pull request. Include the name of the package modified.
- [X] Test the change in your own code. (Compile and run.)
- [X] Add or edit tests to reflect the change. (Run with `npm test`.)
- [X] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [X] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [X] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If changing an existing definition:
- [X] Provide a URL to documentation or source code which provides context for the suggested changes: 

```
import * as fs from "fs";

fs.readdir("./non-existing-dir", (error, files) => {
	// Will print "error: ..."
	console.log("error: ", error);
	// Will print "files: undefined"
	console.log("files: ", files);
});
fs.readdir("./existing-dir", (error, files) => {
	// Will print "error: null"
	console.log("error: ", error);
	// Will print "files: ..."
	console.log("files: ", files);
});
```

- [X] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-09-10 14:51:48 -07:00
..
2018-09-06 23:53:18 +02:00
2018-09-07 13:22:49 +08:00
2018-09-05 15:17:56 -07:00
2018-09-05 23:25:24 +05:30
2018-09-07 16:09:20 +08:00
2018-09-05 17:17:50 -07:00
2018-09-07 13:13:28 -04:00
2018-09-10 22:31:21 +01:00
2018-09-08 18:30:18 +03:00
2018-09-05 15:44:20 -04:00
2018-09-06 13:39:45 +01:00
2018-09-07 13:07:19 -04:00