* Add definitions for promise-ftp, promise-ftp-common, and promise-sftp
* Fix linting errors
* Realign some stuff in tsconfig.json
* Add strictFunctionTypes to tsconfig.json
* Use import = in tests
`queryDocuments` already has a type variable but it is not being used in the return type.
This PR simply merges the RetrievedDocument type with the input type.
Fixes #24133 (I know it's closed but as per the discussion there, it wasn't fixed properly before).
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).
If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: N/A
- [ ] Increase the version number in the header if appropriate. N/A
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
* [@types/bson] Updated BSON class definitions
* Updated BSON.serialize (changed the way how options are passed)
* Updated BSON.deserialize (added missing options, removed `isArray` argument)
* Added BSON.serializeWithBufferAndIndex
* Added BSON.deserializeStream
* [@types/bson] Updated BSON types
* Binary: Made static constants 'readonly', added comments
* ObjectID: 'equals' can accept string, added comments
* Code, DBRef, Double, Decimal128, MaxKey, MinKey, ObjectID, BSONRegExp, Symbol: Added comments
* [@types/bson] Updated Long & Timestamp BSON types
* In original js-node@1.0.x code 'Timestamp' is a 100% copy-paste of 'Long'
with 'Long' replaced by 'Timestamp' (changed to inheritance in js-node@2.0.0).
Do avoid duplication in typings a base class 'LongLike' was introduced and both 'Long'
and 'Timestamp' are inherited from 'LongLike'.
* Made static constants 'readonly', fixed return-type for greaterThan and greaterThanOrEqual
(boolean), renamed argument for shiftLeft, shiftRight, shiftRightUnsigned, added comments
* [@types/bson] Changed header version number to 1.0.6
* Fixed Bucket.combine method type.
* Add name to definitions by comment, per readme instructions.
* Bump version in header, per PR template instructions.
* Fix brainfart.
Using undefined means async functions must have a `return undefined;` rather than omitting the return value altogether, as would be the most natural thing to do in such functions.
* Add cookiejar types
At current, it is not existent. It is used by the `superagent` library
but also not being typed therefore omitted.
It's rather lazy adaptation, with copy and pasted documentation and
tests.
A commit will follow, to extend the `superagent` library.
* Extend agent with cookie jar
Now that there are types for `cookiejar` library, we can actually make
sure it also exists here as it is used in the original JS libary[1].
[1]: https://github.com/visionmedia/superagent/blob/master/lib/node/agent.js#L31
* Add initial types for react-copy-write
* render functions can be `null` and fixes for select prop
`selector` is named `select` now. Also I believe it should take an array of selectors.
* Improve react-copy-write typings; bump min TS to 2.8
* Add additional potential solution in comment
* Make RenderFn args DeepReadonly
* Add state param to `MutateFn`
* Add missing semicolon
* Types file for socketio-jwt
I am tired of not having a types file for this package
* Should have left the names alone
* fixed lint findings
Ran the lint test.