Commit Graph
57967 Commits
Author SHA1 Message Date
Sheetal Nandi cabafa5bfe Merge pull request #31922 from bonan/types-accept
Add definition for mediaType() in @types/accept
2019-01-07 08:34:06 -08:00
Sheetal Nandi 8444512b1b Merge pull request #31928 from Ciantic/patch-1
@types/chromecast-caf-receiver - breaks, breakClips, metadata, tracks have too strict types
2019-01-07 08:33:42 -08:00
Sheetal Nandi 46025591c4 google-apps-script "January 4, 2019" update (#31927)
* GAS "December 13, 2018" update

* Update google-apps-script.forms.d.ts

* add data-studio, rename card-service, order as per ref page

* January 4, 2019
2019-01-07 08:32:32 -08:00
kimcoder 6dbe9483fc types for 'urlencode' package (#31715)
* first commit

* fixed tsconfig, modify lint error

* declare urlencode function ad namespace

* [@types/urlencode] modify export 

export default urlencode -> exrpot = urlencode;

* esModuleInterop, allowSyntheticDefaultImports
add to tsconfig

* exprot default urlencode

* modify export =
2019-01-07 08:31:28 -08:00
Ari Seyhun 778c0d9771 Add typings for BdApi (BetterDiscordApi) (#31895)
* Add types for bdapi

* Fix typings for bdapi

* Fix typings and project url

* Add documentation link to index.d.ts

* Add bandagedbd scope to bdapi

* Fix bandagedbd_bdapi version

* Rename test file for bandagedbd__bdapi

* Add scope to comment in bandagedbd__bdapi

* Update tsconfig file list for bdapi
2019-01-07 08:30:21 -08:00
Sibelius Seraphini 80a57fc00a feat(types): simplify types 2019-01-07 12:56:09 -02:00
Sibelius Seraphini 2950e9c28d feat(types): make graphql type parameters not required 2019-01-07 12:46:42 -02:00
nasik 20a3ba3a8e Added comments for the domcontentloaded event type. 2019-01-07 19:19:01 +05:30
nasik 55870c87c8 Added domcontentloaded event to page events 2019-01-07 19:11:57 +05:30
Sibelius Seraphini 327548b830 feat(graphql): add tsource and tcontext type parameters to graphql, fix #31941 2019-01-07 11:34:22 -02:00
Kalvis Kalniņš 4fd0ffd900 fix: add default type argument everywhere 2019-01-07 15:20:21 +02:00
Kalvis Kalniņš 62448ddf78 fix(Operation): default to wide type 2019-01-07 15:19:19 +02:00
ryuuji3 ca9a09cf64 Removed unnededed import 'AnySchema' from Joi 2019-01-07 13:11:39 +00:00
Søren Bruus Frank 15c3901e68 tsconfig. 2019-01-07 12:58:21 +01:00
MaikTizziani 37573444ef added contributor name 2019-01-07 12:23:54 +01:00
Søren Bruus Frank c3652f1370 Fixed path mapping for v6. 2019-01-07 12:10:27 +01:00
Søren Bruus Frank 18cad92afe Added files from v6 folder with files from version 6.0. 2019-01-07 12:00:18 +01:00
MaikTizziani 2c69e217c7 added load method definition to Parameters 2019-01-07 11:55:51 +01:00
Søren Bruus Frank 1bf6e46582 Adapted tests to changes. 2019-01-07 11:52:07 +01:00
Søren Bruus Frank d1bd470288 Renamed type of inner value of context. 2019-01-07 11:51:52 +01:00
Søren Bruus Frank a65dcd6f40 Removed createProvider function. 2019-01-07 11:48:33 +01:00
Nicolas Penin 43f9cfc7f1 fixed coding convention 2019-01-07 10:51:47 +01:00
Johan Brook 6528fd7ab1 HLS.js: Bump version to 0.12 2019-01-07 10:49:27 +01:00
Johan Brook 85013ba4f5 HLS.js: Add liveBackBufferLength property to Hls.Config 2019-01-07 10:49:14 +01:00
Johan Brook f968fb1e6c HLS.js: Add support for custom logger object in debug option 2019-01-07 10:41:24 +01:00
Terry Mun 034e6e8e62 The Set.Animate requires support for optional tuples, TS3.0 required 2019-01-07 09:40:23 +01:00
张鹏波 e821f3072d 完善网络,路由部分 2019-01-07 15:49:11 +08:00
Kevin Groat 4ebd738543 Fixed linting errors 2019-01-06 22:58:48 -05:00
Kevin Groat 3781aa7ff3 Fixing relative location import 2019-01-06 22:29:41 -05:00
Kevin Groat ad3a04f91f No longer relying on webpack for plugin definition 2019-01-06 22:23:33 -05:00
Kevin Groat f9da1d1436 Returned TypeScript Version 2019-01-06 22:05:48 -05:00
Kevin Groat cba2526204 fixed test name in tsconfig 2019-01-06 22:01:15 -05:00
Oskar Lindgren 3dd2fd8b75 add deviceName needed for appium
When using webdriverio for appium the DesiredCapability deviceName is 
needed.
2019-01-07 11:42:19 +09:00
Oskar Lindgren 79d1731c9a change browserName to optional
webdriverio Capabiliy browserName is not mandatory when using appium for 
mobile testing
2019-01-07 11:35:49 +09:00
Kevin Groat 7654854150 Fixed linting issues 2019-01-06 21:07:52 -05:00
Kevin Groat cf89ad1507 Renamed tests file 2019-01-06 20:53:53 -05:00
Kevin Groat 9f677e0247 Fixed typescript version line 2019-01-06 20:49:05 -05:00
Kevin Groat eca3ccbfac Fixed compiler & linter issues 2019-01-06 20:41:51 -05:00
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