Commit Graph
62172 Commits
Author SHA1 Message Date
David Ruisinger 93fb2ef1ff Adds tests for ReactNativeThemedStyledComponentsModule 2019-02-23 22:56:48 +01:00
David Ruisinger 1d6edf7767 Added isStyledComponent 2019-02-23 22:31:07 +01:00
David Ruisinger 14d234420f Fix linting errors 2019-02-23 21:36:39 +01:00
Filip Skokan 7722461e17 generateKeyPair(Sync) types for returning KeyObjects 2019-02-23 21:28:29 +01:00
David Ruisinger e652c53a43 Fixed typo 2019-02-23 21:22:56 +01:00
Anton Astashov 1645790bef @types/koa-router: Typesafe middlewares prepending
It's sometimes useful to prepend middlewares to the route handler, when
we want to register some middlewares only for particular routes.
Like:

```ts
router.get("/foo",
  (ctx: Koa.Middleware<IFoo>, next) => {
    ctx.state.foo = "foo";
    return next();
  },
  (ctx, next) => {
    // ctx here knows `ctx.state.foo` is `string`
    // ...
  }
);
```

Unfortunately, currently we can't infer that `ctx` there would have
`state.foo`. All middlewares/route-handlers should have the same type
currently.

It seems to be impossible to do that in the general case (for any number
of prepended middlewares), but we could have a special case for 2
middlewares, and if we have to prepend several middlewares - we could
use `koa-compose` to combine them into one, and still do that in a
typesafe way.

Like:

```ts
router.get("/foo",
  compose([
    (ctx: Koa.Middleware<IFoo>, next) => {
      ctx.state.foo = "foo";
      return next();
    },
    (ctx: Koa.Middleware<IBar>, next) => {
      ctx.state.bar = "bar";
      return next();
    }
  ]),
  (ctx, next) => {
    // ctx here knows `ctx.state.foo` is `string`
    // and `ctx.state.bar` is `string`.
  }
);
```

Changes in this PR add that special case for one prepended middleware
for all route methods (`get`, `post`, `head`, etc).

It's not a breaking change - we keep old types here, we only add a
special more type-correct way of prepending one middleware before a
route handler.

What do you think?
2019-02-23 13:36:22 -06:00
Roman Paradeev e59a868253 Make sinon Bluebird-friendly 2019-02-23 23:50:35 +05:00
Colin 7c723a81c5 Update aws-iot-device-sdk for version 2.2.0
Lifted documentioned directly from the readme:
 https://github.com/aws/aws-iot-device-sdk-js#job
Code change is here:
 https://github.com/aws/aws-iot-device-sdk-js/commit/234d170c865586f4e49e4b0946100d93f367ee8f
2019-02-23 11:22:48 -06:00
Daniel Plisetsky 21c6d6dd52 Add types for date-and-time 2019-02-23 18:20:35 +02:00
David Ruisinger 0dd2283a1c Added interface to re-export module with theme interface 2019-02-23 16:14:42 +01:00
Antoine Rousseau f13a292ddf update "lite" version too 2019-02-23 14:40:54 +01:00
breeze9527 8d0a6d8bbc Adding types for amap-js-api 2019-02-23 21:39:43 +08:00
Haseeb Majid 05a76b557f Added screenProps
Added screenProps to DrawerItemsProps.
2019-02-23 12:55:12 +00:00
Benjamin Giesinger c337e699a8 Added position to TextBracket which I missed the last commit 2019-02-23 12:50:07 +01:00
Florian Keller 29cf216fe9 Add types for npm-list-author-packages 2019-02-23 12:29:47 +01:00
dandelany a946cf447e update driftless interval and timeout functions to also allow strings 2019-02-23 03:00:51 -08:00
Hugues Stefanski b30c0e0679 Fixed merge conflict 2019-02-23 11:11:03 +01:00
dandelany d010dabaf4 Added type definitions for driftless 2019-02-23 01:48:08 -08:00
Jiayu Liu 78915c9333 [weixin-app] add defs for observers 2019-02-23 17:07:41 +08:00
Mick Dekkers 52f566fbbc Fix progress-stream's ProgressStream by extending stream.Transform
This works around the issue described in Microsoft/TypeScript#30031

Unfortunately, we have to redeclare all on/once overloads from
stream.Transform in order to extend stream.Transform correctly.
2019-02-23 09:31:38 +01:00
Xiao Liang f99cf3aee2 solidity-parser-antlr: rename TypeString to ASTNodeTypeString
I think `ASTNodeTypeString` is a better name.
2019-02-23 14:16:50 +08:00
Nick Roberts 9669d70829 ⚡ Have Cluster extend EventEmitter and Command 2019-02-23 00:48:00 -05:00
Andrew Casey 8816e2e88c Merge pull request #33333 from airhorns/react-resizable
Add typings for react-resizable
2019-02-22 19:47:36 -08:00
Andrew Casey 6704f912d5 Merge pull request #33332 from petekp/patch-2
[Theo]: Fix registerTransform generic typing error
2019-02-22 19:46:27 -08:00
okampfer 1c99f14c41 Update required typescript version for parcel-bundler 2019-02-23 11:09:53 +08:00
okampfer cb8c9e50d2 Remove package.json for parcel-bundler 2019-02-23 10:50:16 +08:00
okampfer 02cc1be2cc Remove license field from package.json 2019-02-23 10:39:30 +08:00
Pete a9193f42af Edit registerTransform typing 2019-02-22 18:38:54 -08:00
okampfer ac86761a62 Merge branch 'master' into update_parcel_bundler_typings 2019-02-23 10:35:40 +08:00
Andrew Casey ca7a19671f Merge pull request #33253 from adamzerella/types/is-natural-number
[is-natural-number] Add is-natural-number typing
2019-02-22 18:31:35 -08:00
Andrew Casey 3c66534763 Merge pull request #33255 from adamzerella/types/is-odd
[is-odd] Add is-odd typing
2019-02-22 18:31:27 -08:00
Andrew Casey 40270251b1 Merge pull request #33299 from fluggo/feature/pg-copy-streams
[pg-copy-streams] New module
2019-02-22 18:28:53 -08:00
Adam Zerella 3c7f7a0ece Added type string for isOdd param 2019-02-23 13:25:20 +11:00
okampfer 62c031fefa Add additional dependency for parcel-bundler and correct middleware method definition. 2019-02-23 10:23:33 +08:00
Andrew Casey fbe974ea56 Merge pull request #33320 from oBusk/sha-3
[@types/sha] Bump version to 3.0
2019-02-22 18:23:24 -08:00
Andrew Casey 8d4e0ccd1f Merge pull request #33252 from feinoujc/pollyjs2
[@pollyjs/core] v2.2 updates
2019-02-22 18:22:04 -08:00
Andrew Casey 53683db09f Merge pull request #33233 from Vinnl/deprecate-detect-browser
Remove detect-browser - it now includes its own typings
2019-02-22 18:19:20 -08:00
Adam Zerella 695a83f2fd Added type defs for is-natural-number 2019-02-23 13:08:47 +11:00
Nick Roberts 1ab5816356 🎨 Remove excess format changes 2019-02-22 20:01:24 -05:00
Harry Brundage 8be301717e Add typings for react-resizable
- Package structure created via dtsgen
 - Initial typings generated from package version 1.7 using flow2ts
 - Types and tests edited by me to be nice and crispy
 - I am using this in a project myself and I figured it's time to upstream!
2019-02-22 19:53:36 -05:00
Jordi Oliveras Rovira 6998de30c1 @types/node (v11): add transcode function to buffer module. 2019-02-23 01:45:42 +01:00
Jordi Oliveras Rovira 3a08ee731e @types/node (v10): add transcode function to buffer module. 2019-02-23 01:45:32 +01:00
Jordi Oliveras Rovira a9b3a2b5a8 @types/node (v9): add transcode function to buffer module. 2019-02-23 01:45:07 +01:00
Jordi Oliveras Rovira c1875f5bce @types/node (v8): add transcode function to buffer module. 2019-02-23 01:44:50 +01:00
Jordi Oliveras Rovira 83ab12ea97 @types/node (v7): add transcode function to buffer module. 2019-02-23 01:44:35 +01:00
Andrew Casey 15aeb546fc Merge pull request #33123 from ikokostya/lru-cache5
[lru-cache] Introduce 5.1 version
2019-02-22 16:28:13 -08:00
ikokostya 6c9ace64ad revert import statement in ejs-tests.ts 2019-02-23 03:22:11 +03:00
Alex Jerabek 7c691f029e Remove space 2019-02-22 16:17:30 -08:00
Andrew Casey 80944957d0 Merge pull request #33187 from screendriver/enzyme
[enzyme] Add renderProp() function
2019-02-22 16:14:12 -08:00
Elizabeth Samuel 4e4141faab merge from master 2019-02-22 15:45:47 -08:00