* @types/koa-compose: Add more typed compose cases
Right now if you want typesafe compose, you have to compose composes by
2-element arrays. I.e. if you have 4 middlewares you want to compose
together, and you want to do that in a typesafe way, without losing type
information, you have to do it like this:
```ts
import compose from "koa-compose"
const myMiddleware = compose([
firstMiddleware,
compose([
secondMiddleware,
compose([
thirdMiddleware,
fourthMiddleware
])
])
]);
```
It works, but looks clunky it complicated. Would be cool to still have
type-safe way of composing, but with less clunkiness. Like:
```
import compose from "koa-compose"
const myMiddleware = compose([
firstMiddleware,
secondMiddleware,
thirdMiddleware,
fourthMiddleware
]);
```
It's hard to solve that issue for general case, but we could just add
typesafe compose overrides for up to e.g. 8-element arrays. If it's more
than 8 - you still can compose composes. But in general IMHO it will
reduce clunkiness of it.
* @types/koa-compose: Add Anton Astashov to the list of maintainers
* Params and Payload should have index signatures
* Converted type to interface
* Created Query interface for query parameter object
* added harry hedger to contributors
* Make partition optional (as catbox provided a good default) and make catbox-memory options extend catbox options like other adapters
* Add more tests
* Updated twitter-for-web definitions
* Use a type union instead of an interface
* Slightly simplified type definition
* Simplified type definitions some more
* Fixed prettier broken output on old typescript
checkVersion() is the module export from source package
Updates type definition accordingly and namespaces the config option interface
Updates tests to reference new definition
Updates version to 1.1
* bugfix/DefinitelyTyped : IChartistSeriesData.data is not only an array of number
* bugfix/DefinitelyTyped : IChartistSeriesData.data is not only an array of number cleaner
* test/DefinitelyTyped : IChartistSeriesData.data is not only an array of number - Test
* test/DefinitelyTyped : IChartistSeriesData.data - Test - missing ending new line
* fix: getStoragetSync return value is incorrect.
* fix: The type of return value type of Storage is incorrect
* added parameter for GetStorageOptions.success
* added value parameter for setStorageSync
* fix setStorageSync with value: any
* update types for uni-app
* Allow `type` function to return `Falsy`
As defined in the documentation here: https://github.com/terkelg/prompts#type
The `type` field can be a function which returns a `Falsy` value to disable the prompt, which is currently not allowed by these type definitions:
> If `type` is a falsy value the prompter will skip that question.
* fix validate return type