Commit Graph
51559 Commits
Author SHA1 Message Date
Ron Buckton 829640b173 Merge pull request #23427 from Alorel/patch-1
Add encoding option to node.readdir
2018-02-07 15:32:26 -08:00
Ron Buckton f1687ea588 Merge pull request #23421 from rhysbrettbowen/quill-transform-position-priority
[Quill] Add priority for transformPosition definition
2018-02-07 15:19:20 -08:00
Ron Buckton c636e07c6e Merge pull request #23419 from ffMathy/patch-1
Better strong-typing of unwrap for arrays.
2018-02-07 15:16:07 -08:00
Ron Buckton 2a605f41b1 Merge pull request #23417 from Hayena/patch-1
Fix(VIS) Updated property to the correct type
2018-02-07 15:12:03 -08:00
Ron Buckton 7df273da4e Merge pull request #23412 from thorn0/lodash-readonly-array
lodash: support `ReadonlyArray` for specifying property names
2018-02-07 15:01:39 -08:00
Simon Buchan e43b209621 Fix tests for strictNullChecks: true 2018-02-08 11:59:17 +13:00
David Paz 5cdbe8d38f Add missing compilerOptions["esModuleInterop"] === true 2018-02-07 23:57:06 +01:00
Ron Buckton eaa9ff9367 Merge pull request #23411 from glmdgrielson/require-resolve
[node] require.resolve update v8.9.0
2018-02-07 14:55:12 -08:00
Ron Buckton 2c3081b73c Merge pull request #23405 from ericanderson/patch-1
lodash: Removing myself as an author
2018-02-07 14:40:10 -08:00
Ron Buckton 6a78b6665a Merge pull request #23404 from leak4mk0/bookshelf-collection-method
[bookshelf] Fix return value type of orderBy method.
2018-02-07 14:39:43 -08:00
David Paz be2be3cfbf Add missing tslint.json file 2018-02-07 23:31:53 +01:00
David Paz 4bb00c69f4 Remove path from version 2018-02-07 23:24:56 +01:00
David Paz 27a5413584 Add strict null check 2018-02-07 23:24:56 +01:00
David Paz b2a739c82b Fix path in tsconfig.json 2018-02-07 23:24:56 +01:00
David Paz 60fa737201 Add type definition for jquery.stickem plugin 2018-02-07 23:24:56 +01:00
Ron Buckton e10d9c71ff Merge pull request #23403 from gentoo90/jquery.colorpicker
jquery.colorpicker: make disable field in options optional
2018-02-07 13:53:12 -08:00
Simon Buchan 7bfcc391df Update apex.js to fix CI. 2018-02-08 10:19:46 +13:00
Huw McNamara 289d1294d0 copy paaste RequestOptions 2018-02-07 21:14:52 +00:00
Flarna b0f63edb42 [sinon] allow SinonSpyCall for some asserts 2018-02-07 22:05:33 +01:00
Ilya Radchenko 5bc3f3c96b fix: add null to DrawingManager.setDrawingMode
Notice the docs here https://developers.google.com/maps/documentation/javascript/3.exp/reference#DrawingManager in the description it says `null` is a valid argument
2018-02-07 14:49:30 -05:00
Huw McNamara fb7accbd5e don't use pick. fixed tests 2018-02-07 19:31:40 +00:00
Mathieu Masy 3eb8d0c31a [react-form] Added placeholder prop on Select component 2018-02-07 14:20:16 -05:00
Tine Jozelj 4cc753241a fix(node): updated for v7 and v8 2018-02-07 17:46:35 +01:00
Tine Jozelj 20f76516d5 Merge branch 'master' into mentos1386-node-tty-class-fix 2018-02-07 17:31:26 +01:00
Zev Spitz 0a99ebfbf1 Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into activex-wia 2018-02-07 15:17:39 +02:00
Zev Spitz 6c505cdd78 Missing semicolon 2018-02-07 15:16:16 +02:00
Zev Spitz 83e93604c9 Additional example 2018-02-07 15:14:59 +02:00
V# e63a146766 getInstanceByDom return type should be Echarts 2018-02-07 20:38:03 +08:00
Zev Spitz 8dd4f5d21b Minor fixes 2018-02-07 14:34:12 +02:00
Jaume Sanchez 1863849c3a Fixed types for Mesh: Material is no longer an array of Materials 2018-02-07 11:52:59 +00:00
Alan Agius a418bdb31a style(webpack-dev-server): fix lint issues 2018-02-07 12:46:14 +01:00
Alan Agius 65993d5e6f feat: add missing addDevServerEntrypoints in API 2018-02-07 12:33:20 +01:00
Zev Spitz d7f34a126d tslint disables for no-const-enum; ActiveXObjectNameMap; removed EnumeratorConstructors 2018-02-07 13:10:30 +02:00
Mathias Lykkegaard Lorenzen 88e6900f8f Update index.d.ts 2018-02-07 11:36:00 +01:00
Mathias Lykkegaard Lorenzen f757040364 Update index.d.ts 2018-02-07 11:35:04 +01:00
Bas Luksenburg 7bf711da33 Use ES6 import 2018-02-07 10:40:03 +01:00
Simon Buchan 17e9857f8d [aws-lambda] Add Handler and Callback types for each trigger.
No tests added for the new types yet, I'll get on that tomorrow.

Motivation
---

The connection between the trigger event and the result types can be
confusing sometimes - for example `CloudFormationCustomResourceResponse`
is *not* returned from the lambda, but instead should be sent to the
*Request `ResponseUrl`. This PR tries to help by providing pre-baked
`Handler` types for each of the triggers (that have types already).

There's also a few niggles with naming and the handler signature that
have been bothering me for a while.

Changes
---

This PR:

- Adds defaulted generic parameters to the existing `Handler` and
  `Callback` types. This increases the minimum TS version to 2.3.

- Makes the `callback` parameter to `Handler`s "required" - this
  probably originally was meant to represent the Node 0.10 runtime,
  which did not pass a callback parameter, but that is no longer
  selectable when creating or editing a Lambda and makes the normal,
  recommended usage harder. In case anyone is confused, this doesn't
  break any code: it is required to be provided when being called, your
  handlers don't need to declare it. I'm not removing the legacy node 0.10
  runtime methods `context.done()` etc., since they still work.

- In the spirit of #21874, make the default result type for
  `Handler`, `Callback` `any`, since the only requirement is
  that it be `JSON.stringify()`able, and there are things like
  `.toJSON()`, etc. so there is no meaningful type restriction
  here.

- Revert the definition changes of #22588, which changed the `Handler`
  result types to `void | Promise<void>`, which is misleading: Lambda
  will not accept or wait for a promise result (it by default waits
  for the node event loop to empty). This is not a breaking change for
  code that does return promises, since a `void` result type is
  compatible with any result type, even with strict function types.
  (Which is why the tests still pass.)

- Adds `FooHandler` and `FooCallback` types for all `FooEvent`s and
  `FooResult`s, where possible - sometimes these don't match up.

- Renamed, with aliases to the old name, various types to align them: in
  particular `ProxyResult` -> `APIGatewayProxyResult`.

- `CloudFrontResult` (not the same type as `CloudFrontResponse`!)
  was missing for some reason.
2018-02-07 21:47:58 +13:00
Sriram Thiagarajan 9c4548f8ba add clearRenderer prop 2018-02-07 12:29:29 +05:30
Ryan Cannon 3c3b65a2f0 Merge branch 'master' into patch-2 2018-02-06 21:39:21 -08:00
Garth Kidd 499d248746 Stripe card numbers are strings:
The Stripe API for Node documentation of [Create a card token][cct]
gives the example code:

```
var stripe = require("stripe")(
  "sk_test_BQokikJOvBiI2HlWgH4olfQ2"
);

stripe.tokens.create({
  card: {
    "number": '4242424242424242',
    "exp_month": 12,
    "exp_year": 2019,
    "cvc": '123'
  }
}, function(err, token) {
  // asynchronously called
});
```

[cct]: https://stripe.com/docs/api/node#create_card_token

Relevant typings history:

* @borisyankov first added `StripeTokenData.number: number` in 2013-09

* @codeanimal substantially reworked the typings in 2016-04 with
`ISourceCreationOptions.number: string` but giving it the comment:

  > The card number, as a string without any separators.
2018-02-07 15:26:50 +11:00
s0m3on3 94a0f73c85 [adone] refactoring, additions
* [collections] decomposition, add MapCache, NSCache, RefcountedCache, Set
* [data] add protobuf, base32, basex, base58, base64url, varint, varintSigned
* [is] improve function and asyncFunction, add emitter and asyncEmitter
* add fake
2018-02-07 02:22:11 +02:00
Aluan Haddad bd3ddd8680 document removes_comments parameter based on source README 2018-02-06 15:55:04 -05:00
Aluan Haddad 5f458aeadb add tests for updated signature 2018-02-06 15:48:35 -05:00
Aluan Haddad c240fc8a43 match DefinitelyTyped JSDoc asterisk style 2018-02-06 15:48:18 -05:00
Aluan Haddad 14622de78f lint 2018-02-06 15:35:05 -05:00
Aluan Haddad eb70258db2 improve the type of the stringify function
Update the stringify function based on the declarations in `lib.es5.d.ts` for JSON.parse.

Add the documentation taken from `lib.es5.t.ts`
2018-02-06 15:26:32 -05:00
Huw McNamara 4fb702c02c changed local pick name 2018-02-06 20:03:20 +00:00
Huw McNamara e00c71172a fixed deps, add local pick def 2018-02-06 19:21:36 +00:00
Huw McNamara 673020868e made changes to v9 2018-02-06 18:55:42 +00:00
Huw McNamara 613c514505 actioned comments 2018-02-06 18:40:40 +00:00