Rahel Lüthy
8e9a1d4417
Fix ascending vs descending copy/paste error
2019-01-31 18:18:59 +01:00
Eloy Durán
dbf023fcf9
Merge pull request #32652 from mattkrick/getRequest
...
add support for getRequest
2019-01-31 18:16:54 +01:00
Tom Spencer
9da338ad53
add useNativeValidation to MDC textfield
2019-01-31 17:08:27 +00:00
Matthew Bull
c03d9fd272
Fix linting
2019-01-31 16:11:46 +00:00
Matthew Bull
2be1aea0d0
Add support for joi schema type
2019-01-31 16:11:26 +00:00
Anton Astashov
66001ee764
[@types/koa-compose]: Provide way for typesafe compose
...
Right now it's impossible to compose a bunch of middlewares, and
preserve their state/context type. It will be either erased and
converted to `any`, or will show an error.
For example, we have 3 middlewares:
```ts
type FooCtx = { foo: string };
type BarCtx = { bar: string };
type WooCtx = { woo: string };
const fooMiddleware: Koa.Middleware<FooCtx, {}> = async (ctx, next) => {
ctx.state.foo = 'foo';
await next();
};
const barMiddleware: Koa.Middleware<BarCtx, {}> = async (ctx, next) => {
ctx.state.bar = 'bar';
await next();
};
const wooMiddleware: Koa.Middleware<WooCtx, {}> = async (ctx, next) => {
ctx.state.woo = 'woo';
await next();
};
```
If we try to compose them together, we'll get an error:
```ts
const composed = compose([fooMiddleware, barMiddleware, wooMiddleware]);
// types of params context and context are incompatible
// Type ParameterizedContext<FooCtx, {}> is not assignable to
// ParameterizedContext<BarCtx, {}>
```
We can shut it up by providing `<any>` type parameter, but that will
erase their types:
```ts
const composed = compose<any>([fooMiddleware, barMiddleware, wooMiddleware]);
// `composed` type is `compose.ComposedMiddleware<any>`.
```
As a solution, I don't think there's a way to do typesafe `compose` for
variable number of middlewares, but we can overload `compose` and make a
typesafe one for 2 middlewares. You can then compose `compose`s to
compose more than 2 middleares :) Like, instead of:
```ts
compose([fooMiddleware, barMiddleware, wooMiddleware])
```
It will be:
```ts
compose([fooMiddleware, compose([barMiddleware, wooMiddleware]))
// `composed` type is `Middleware<ParameterizedContext<FooCtx & BarCtx & WooCtx, {}>`
```
What do you think?
2019-01-31 09:57:41 -06:00
Spencer Elliott
1097fb71fc
[styled-components] Add ServerStyleSheet.seal()
...
https://github.com/styled-components/styled-components/blob/c3eedbeb79621acd668e15ed2d63107528ed81c3/packages/styled-components/src/models/ServerStyleSheet.js#L27-L38
2019-01-31 10:34:58 -05:00
Spencer Elliott
e7bf02f943
Use an array of React nodes for Next.js Document.getInitialProps().styles
...
This `styles` property is always an array. See:
https://github.com/zeit/next.js/blob/3a059688a8a0e10342ce697c89a7faebbeca9629/server/document.js#L18
https://www.npmjs.com/package/styled-jsx#styled-jsxserver
2019-01-31 10:26:00 -05:00
gretzky
d65aee8864
[styled-system] increment version number
2019-01-31 10:20:44 -05:00
gretzky
83accda487
[styled-system] re-add number[] for posterity
2019-01-31 10:18:53 -05:00
gretzky
b1ffb3b01f
[styled-system] add object type to breakpoints
2019-01-31 10:17:48 -05:00
gretzky
b0e7a55053
[styled-system] fix breakpoints type
2019-01-31 10:13:59 -05:00
licui
5dfa87b3f1
Fix path issue
2019-01-31 09:59:27 -05:00
licui
150df3dc1e
Remove unused file
2019-01-31 09:50:49 -05:00
denis
80ac20f080
Update to 1.3.3
...
Add d3.stackOrderAppearance.
2019-01-31 15:27:32 +01:00
Jessica Franco
e6e55443f8
Merge pull request #32511 from AOHUA/master
...
Add types for redux-state-sync
2019-01-31 23:23:25 +09:00
AOHUA MU
f423c53701
fix type issue
2019-01-31 22:14:37 +08:00
AOHUA MU
feed7babde
remove unused types as addressed by Jessidhia
2019-01-31 22:12:42 +08:00
denis
828f081238
Update to 1.2
...
Add iterations argument to `simulation.tick`.
2019-01-31 15:07:01 +01:00
Jessica Franco
e7a5287d64
Merge pull request #32650 from markdreyer/master
...
@types/papaparse: Update ParseConfig dynamicTyping configuration option.
2019-01-31 22:13:26 +09:00
Jessica Franco
f9f7ebd3bf
Merge pull request #32654 from bettermarks/master
...
[@types/react-beautiful-dnd] Added missing property to DroppableStateSnapshot
2019-01-31 22:02:09 +09:00
Jessica Franco
021562ddf5
Merge pull request #32664 from Jessidhia/update-credits
...
Update contributor credits
2019-01-31 22:01:42 +09:00
Jessica
4bdc8452ac
Update contributor credits
2019-01-31 22:01:05 +09:00
Dominik Palo
e03522fe2a
Remove the unnecessary console declaration
2019-01-31 13:52:56 +01:00
Dominik Palo
a1185d5d5b
Merge pull request #4 from DefinitelyTyped/master
...
Sync
2019-01-31 13:49:49 +01:00
andrewroyburk
450ce9d682
pickaday: add explicit null types to match usage for clearing min/max dates
2019-01-31 13:48:05 +01:00
andrewroyburk
ec2f9a6164
pickaday: correct naming of boolean method parameter on setDate
2019-01-31 13:48:05 +01:00
MutterPedro
05bddbd67c
fix required export/import modification
2019-01-31 10:43:46 -02:00
MutterPedro
03aabe8cc0
fix required export modification
2019-01-31 10:35:06 -02:00
Alex Brick
2bcbb3d221
[content-range] Adding types for content-range module
2019-01-31 13:06:43 +01:00
Robert Ying
60fd6dcb11
[expo/vector-icons] omit patch version
2019-01-31 19:45:05 +08:00
Robert Ying
04f251145f
[expo/vector-icons] add AntDesign type
2019-01-31 18:56:27 +08:00
Ahmed Abdelmotey
c4c2c7095e
Updated IChartistData type
...
Bar charts and line charts needs to be two dimensional arrays, this was not available in the allowed types
2019-01-31 12:40:11 +02:00
Ahmed Abdelmotey
4ecff00717
Update chartist-tests.ts
...
Added simple tests to verify types changes
2019-01-31 12:25:31 +02:00
Lee Henson
af0e0c5c31
[http-aws-es] type awsConfig as AWS.Config instead of handcrafted subset
2019-01-31 10:12:00 +00:00
amirfuhaira
d40ad92baf
[cron] update types to 1.6
2019-01-31 17:34:23 +08:00
fraukesch
67a1afed1e
Added missing property to DroppableStateSnapshot
...
See: https://github.com/atlassian/react-beautiful-dnd#2-snapshot-droppablestatesnapshot
2019-01-31 10:20:23 +01:00
Jessica Franco
ff975a6dc5
Merge pull request #32144 from threepointone/react-rename-imperative-methods-handle
...
@types/react - rename useImperativeMethods -> useImperativeHandle
2019-01-31 17:25:19 +09:00
Dalius Dobravolskas
3b59425df7
Initial State support for reduceReducers.
2019-01-31 10:25:09 +02:00
Bryan Huang
7744edfabc
Fixed Autodesk.Viewing.Load optional arguments
2019-01-31 15:09:50 +08:00
Ming
2787004d9e
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
types/mongoose/index.d.ts
2019-01-30 19:56:13 -08:00
Matt Krick
f044c380f6
add support for getRequest
2019-01-30 18:21:34 -08:00
Derek Kniffin
392300d5f8
Added types for axios-case-converter
2019-01-30 20:51:22 -05:00
Pranav Senthilnathan
68c12a1edb
Merge pull request #32644 from mjomble/nodegit-create-blob-from-buffer
...
nodegit: Fix return type of Repository#createBlobFromBuffer
2019-01-30 17:42:34 -08:00
Ming
6471e30652
mongoose: Fix ConnectionOptionsBase.
...
- Fix type for keepAlive: should be boolean instead of number.
- Add optional field keepAliveInitialDelay.
- Fix numbers in comment.
2019-01-30 17:09:14 -08:00
markdreyer
c8cdd4b998
Add tests for ParseConfig.dynamicTyping
2019-01-30 18:57:01 -06:00
Nathan Shively-Sanders
b107cbd243
Merge pull request #32592 from DefinitelyTyped/readme/remove-typesVersions-requirement
...
Update README to make typesVersions optional
2019-01-30 16:28:48 -08:00
Pranav Senthilnathan
fe2a7fa11d
Merge pull request #32485 from small1803/master
...
lory.js: update to match lory.js 2.5.3 API
2019-01-30 16:18:14 -08:00
Pranav Senthilnathan
96237ca203
Merge pull request #32598 from vladshcherbin/rollup-plugin-delete
...
[rollup-plugin-delete] Add types
2019-01-30 16:12:50 -08:00
Pranav Senthilnathan
fe4a0611b0
Merge pull request #32624 from ffflorian/npm-license-crawler
...
Add types for npm-license-crawler
2019-01-30 16:09:07 -08:00