Brian Bugh 32d1f7568e fix(ts): Add full test coverage for TypeScript hook types & fix missing overloads (#895)
* fix: add apollo-composable type overloads + tests

There were a lot of TypeScript edge cases, where calling functions with
certain argument options would result in `any` being expressed as a
type, or where the variables/options were not strictly requiring the
desired inputs.

This adds TypeScript function overloads for all hook edge cases so that
all types are correct. This does not change any behavior.

This also adds almost complete coverage for types, excepting the cases
where `strict` is required, or where a failure is expected, which
TypeScript does not currently support. See:
https://github.com/microsoft/TypeScript/issues/29394

* chore: run type tests on prepublish

* chore: code style
2020-01-11 00:16:51 +01:00
2019-10-21 13:12:31 +02:00
2019-11-08 20:12:33 +01:00
2019-10-21 13:15:59 +02:00
2019-12-17 12:13:01 +01:00
2018-12-21 17:20:30 +01:00
2019-11-29 11:39:15 +01:00
2019-12-02 03:29:57 +01:00

Apollo and GraphQL for Vue.js

npm npm vue1 vue1 vue2 CircleCI branch


Become a Patreon


Documentation


Contributing guide


Sponsors

Gold

sum.cumo logo

Vue Mastery logo

Silver

VueSchool logo

Bronze

Description
🚀 Apollo/GraphQL integration for VueJS
Readme MIT 17 MiB
Languages
TypeScript 42.9%
JavaScript 36.5%
Vue 19.3%
HTML 1.2%