Commit Graph
57723 Commits
Author SHA1 Message Date
Kevin Groat 84b76bf1eb Made manifestTransforms accept a ReadonlyArray 2019-01-06 20:40:59 -05:00
Kevin Groat 279827ac2f Added typings for workbox-webpack-plugin 2019-01-06 20:28:38 -05:00
Jari Pennanen b47a234907 trailing spaces huh 2019-01-07 00:44:49 +02:00
Jari Pennanen 23625dac03 typo... 2019-01-07 00:37:49 +02:00
Jari Pennanen 4d6fe35d64 this is also optional according to Google documentation. 2019-01-07 00:35:45 +02:00
Jari Pennanen f000c4700c removed my reformatting hassle, sorry. 2019-01-07 00:32:08 +02:00
Matías Olivera 385bb50a98 Add type RegisterAsyncCallback 2019-01-06 19:11:42 -03:00
Anton Astashov 4de11f4fb3 [@types/koa-router]: Parameterize Router
After #31704 it would be useful to specify what is `Context.State` and
`Context` inside the `Router`'s handlers. For that, we could provide
a way to parameterize `Router` (also fallbacking to default `any` and
`{}` in case the generic type params are omitted).

So it would work like that:

```ts
type MyState = {foo: string}
type MyContext = {bar: string}

const app = new Koa<{}, {}>();
const router = new Router<MyState, MyContext>();
router.get('/', (ctx, next) => {
    // ctx here is Koa.ParameterizedContext<MyState, MyContext & IRouterContext<MyState, MyContext>>
    console.log(ctx.state.foo);
    ctx.body = 'Hello World!';
});
app.use<MyState, MyContext>(async (ctx, next) => {
        ctx.state.foo = "foo"
        ctx.bar = "bar";
        await next();
    })
    .use(router.routes())
    .use(router.allowedMethods())
    .use(async (ctx, next) => {
        // ctx here is Koa.ParameterizedContext<MyState, MyContext & IRouterContext<MyState, MyContext>>
        console.log(ctx.router);
        console.log(ctx.bar);
        await next();
    })
    .listen(3000);
```

But if we don't parameterize `Router`, it will work as before:

```ts
const app = new Koa();
const router = new Router();
router.get('/', (ctx, next) => {
    // ctx here is Koa.ParameterizedContext<any, IRouterContext>
    ctx.body = 'Hello World!';
});
app.use(async (ctx, next) => {
        ctx.state.foo = "foo"
        ctx.bar = "bar";
        await next();
    })
    .use(router.routes())
    .use(router.allowedMethods())
    .listen(3000);
```

What do you think?
2019-01-06 16:11:24 -06:00
Jari Pennanen b77685931d breaks, breakClips, metadata
These values have too strict definitions, they are defined in https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages.MediaInformation#metadata as undefined.

My vscode ran the file through prettier, not sure if it added extra changes I didn't intend.
2019-01-07 00:05:23 +02:00
PopGoesTheWza 4c81248b90 January 4, 2019 2019-01-06 22:56:22 +01:00
Matías Olivera 0f3459152d Make optional the argument "message" 2019-01-06 18:56:00 -03:00
Matías Olivera 7f0b66c459 Add type RegisterCallback 2019-01-06 18:50:41 -03:00
PopGoesTheWza b8332e14d5 Merge pull request #2 from DefinitelyTyped/master
sync
2019-01-06 22:30:31 +01:00
Matías Olivera f5a867e210 Use interface Rules in Validator
Related with commit 1e6edecd00
2019-01-06 18:06:26 -03:00
Matías Olivera 7e6e4d7915 Correct the return value of the first method
It return the first error message or false. It never returns true.
2019-01-06 18:00:03 -03:00
Matías Olivera 70385fd6e6 Fix interface ValidationErrors 2019-01-06 17:51:44 -03:00
Matías Olivera da6d526cb0 Use ES6 syntax 2019-01-06 17:43:31 -03:00
Matías Olivera d79a32cd8c Separate the tests with comments 2019-01-06 17:40:38 -03:00
Matías Olivera 1e6edecd00 Add interface Rules 2019-01-06 17:20:06 -03:00
Matías Olivera 19d40360f8 Code formatting with Prettier 2019-01-06 16:49:16 -03:00
Matías Olivera 20adc13e50 Delete the interface ParsedRule
It isn't used in any place.
2019-01-06 16:22:52 -03:00
Jason Killian 3ad75fac4d [expo] Add types for SecureStore keychain item accessibility constants (#31840)
* [expo] Add types for SecureStore constants

* add use of keychainService; improve options types for getItemAsync and deleteItemAsync; test all SecureStore constants
2019-01-06 11:07:43 -08:00
Justin Hall f1762ec1a7 Remove typings for hibp (#31912) 2019-01-06 11:06:50 -08:00
Tomas Carnecky 08c13378e4 react-intl: change the FormattedMessage tagName prop to accept any ReactType (#31906)
In the react-intl source the prop is defined as follows:

    tagName: PropTypes.oneOfType([PropTypes.string, PropTypes.element])

But it's actually passed straight to React.createElement(tagName, …),
so any type that is accepted by createElement should be allowed here.

It is useful to allow passing custom components to FormattedMessage,
for example when you use styled components, eg.

    const FancyHeading = styled('h1')`font-size: 32px`;
    <FormattedMessage … tagName={FancyHeading} />
2019-01-06 11:04:11 -08:00
Dimitri Benin 6a45a1d60e [request-stats] Add types 2019-01-06 20:02:44 +01:00
Mark Polak 1ff633d518 Add missing require types (#31911) 2019-01-06 11:01:12 -08:00
Max Harris 8ee6e76a06 update skipEmptyLines option to allow 'greedy' (#31898) 2019-01-06 10:59:58 -08:00
Matías Olivera 1dc5761b46 Update version to 3.15.0 2019-01-06 15:59:11 -03:00
Jasmin Bom a152a7963b Update to firefox 65.0b8 (#31920) 2019-01-06 10:55:14 -08:00
cwomack ef09a8002a feat(react-content-loader): add ariaLabel property 2019-01-06 10:21:59 -08:00
bonan c4a9538c17 Add definition for mediaType() in @types/accept 2019-01-06 18:23:58 +01:00
Mihail Novikov 3d96c9aa59 [@react-simple-maps] Fix test errors 2019-01-06 12:31:37 +03:00
Mihail Novikov 7524d5a22b [@types/react-simple-maps] Fix types 2019-01-06 12:16:24 +03:00
Mihail Novikov 15f532b2e5 [@types/react-simple-maps] Fix types 2019-01-06 12:10:16 +03:00
Zhicheng WANG d1023c2e81 fix: add parameter HTMLParser to makeMarkdown 2019-01-06 11:44:05 +08:00
mAAdhaTTah e6873eba9f Improve kefir types
Add proper type refinement to the `filter` method. Combine the operators
on the base Observable class. Add staticLand exports. Add default export.
2019-01-05 22:07:46 -05:00
Dan Vanderkam f991d75a0a simplify test 2019-01-05 21:51:54 -05:00
Dan Vanderkam 4103015e81 rework test 2019-01-05 21:42:50 -05:00
Dan Vanderkam 58e01e780d Add test for type aliases 2019-01-05 16:26:04 -05:00
antoinebrault 0ccaf36b05 add jest-when type inference 2019-01-05 15:16:49 -05:00
antoinebrault 68242a43a8 merge master 2019-01-05 14:40:43 -05:00
Dominic Fallows 2d45354af5 Export BaseLine to fix cannot be named ts4023
Export the `BaseLine` interface to fix TS `cannot be named errors`, for example: 

```bash
Exported variable 'scale' has or is using name 'BaseLine' from external module "node_modules/@types/typography/index" but cannot be named.ts(4023)
```
2019-01-05 16:59:47 +00:00
Dan Vanderkam 76eda5dc1b Refactor GeoJSON to make Geometry = GeometryObject 2019-01-05 11:42:21 -05:00
denis 4dc4f8a0d3 Lint finles: remove most exceptions.
Add few JsDoc.
Remove old 'Env' properties.
2019-01-05 14:50:46 +01:00
Terry Mun c38f3d2767 Minor spelling changes, whitespace removal, and improvement to Snap.set() API
This commit includes ensuring methods exposed by the Set API is typed in a
consistent manner as per documentation:

* `.attr()` always returns `Snap.set`
* `.getBBox()`, `.insertAfter()` is added
2019-01-05 12:53:07 +01:00
kimcoder-bm a150058ab4 removed urlencode types 2019-01-05 16:30:19 +09:00
kimcoder-bm 7af0053a0b add @types/body-scroll-lock 2019-01-05 16:27:38 +09:00
kimcoder-bm 656fa06c9a modify export = 2019-01-05 11:15:09 +09:00
Igor Oleinikov 48f49d955e Comment out some tests which only fails on lower versions of TS 2019-01-04 17:12:06 -08:00
Igor Oleinikov a2c314c5de [styled-components] Add support of defaultProps 2019-01-04 16:30:02 -08:00