Commit Graph
7 Commits
Author SHA1 Message Date
Andy Hanson 21065fcb6b Enable "esModuleInterop" in all tsconfigs 2018-02-05 09:49:31 -08:00
Léo Gillot-Lamure 26e0d2c226 Parameter in callback should not be optionnal
Using `?` in this situation would mean that you may, *or may not*, pass the `done` parameter to the callback. It does not mean that the callback can use it or not. You probably always pass the `done` parameter to the callback.

See https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html#optional-parameters-in-callbacks

Having `?` here is annoying for the caller when they use --strictNullChecks because they have to use `!` (the non-null assertion) whenever they use `done` to tell the compiler that it actually will never be null.
2017-11-29 09:55:37 +00:00
Andy 19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Thomas Corbière 2ce5a2ef2d Adds the agenda property to Job. 2017-08-25 11:26:51 +02:00
Federico Caselli 7fc1644080 [mongodb] Added support for default generic types (#16198)
* Added support for ts2.3 default generic types

* Updated find and findOne

* Capitalized TypeScript Version

* Added missing TypeScript Version: 2.3

* Added TypeScript Version: 2.3 to express-brute-mongo; removed easy-jsend test dependency on mongoose
2017-06-07 10:41:33 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00