Guillaume Chau
b7642cd2a5
fix(ts): DataDef not defined error?!?
2019-10-20 01:36:08 +02:00
Guillaume Chau
d88249204f
fix(ts): import gql files, closes https://github.com/Akryum/vue-cli-plugin-apollo/issues/180
2019-10-20 01:17:19 +02:00
Guillaume Chau
16d4f431aa
chore(types): update type tests/examples
2019-09-20 00:11:12 +02:00
Guillaume Chau
c5ac6d9c34
fix(types): Variables generic argument
2019-09-20 00:10:50 +02:00
Guillaume Chau
1ddcfe83d4
fix(types): revert to ThisType
2019-09-19 19:30:27 +02:00
Guillaume Chau
ff4ea950de
chore: remove semis
2019-09-19 17:56:58 +02:00
Guillaume Chau
26d52fb932
fix(types): use DeepApplyThisType, closes #780
2019-09-19 17:49:06 +02:00
Guillaume Chau
f22c3f8061
fix(types): apollo methods generics, fixes #773
2019-09-16 11:28:02 +02:00
Guillaume Chau
fdf3e51ef1
fix(types): missing client on subscribe
2019-09-13 01:24:44 +02:00
Guillaume Chau
ae2e2a30d7
refactor(types): rewritten most types
2019-09-12 19:58:42 +02:00
Guillaume Chau
af677888e6
fix(types): use current instance on $apollo
2019-09-11 16:34:45 +02:00
Damir Vandic
f1449a9e3e
feat(types): Add ErrorResponse type definition ( #763 )
2019-09-11 16:11:41 +02:00
Guillaume Chau
0adc1ad0ff
Revert "Fix VariableFn<V> type returns Object instead of V" ( #764 )
...
This reverts commit faba67762d .
2019-09-11 16:10:07 +02:00
Taku Fukada
9e6d936418
fix(types): $apolloProvider should not be optional ( #705 )
2019-09-03 17:58:27 +02:00
Brian Bugh
faba67762d
fix(types): VariableFn<V> type returns Object instead of V ( #726 )
...
The `VariableFn<V>` type incorrectly returns any `Object` type, rather than the type specified by `V`.
2019-09-03 17:27:50 +02:00
Mordechai Zuber
91a5f42d47
fix(types): The typings for DollarApollo where missing getClient ( #727 )
...
* fix(types): add getClient to DollarApollo
* Add documentation for `DollarApollo.getClient`
2019-09-03 17:22:39 +02:00
Guillaume Chau
0254d85180
fix(types): use ApolloQueryResult & FetchResult
2019-06-20 07:55:57 +02:00
Harman Pannu
9e3b2bfc83
fix(types): optimisticResponse typing issue ( #627 )
...
* Typescript compilation error with latest apollo package
Fixed a bug
* fix: better optimisticResponse typing
2019-06-20 07:38:42 +02:00
Kyle Rose
db95e91f07
fix(types): add client to mutation options ( #644 )
2019-06-20 07:30:40 +02:00
Taku Fukada
e633f8d3ad
fix(ts): Add missing declarations to $apolloProvider ( #493 )
2019-05-02 18:03:42 +02:00
Markus Lanthaler
b5b546c26d
fix(ts): VueApolloSubscriptionOptions typing ( #499 )
2019-05-02 18:03:22 +02:00
Daniel Hritzkiv
db1904d97b
fix(ts): skip and prefetch query options definitions ( #556 )
...
`(context: any) => any | boolean` was technically `(context: any) => (any | boolean)` which ultimately resolves to `(context: any) => any`.
`skip` and `prefetch` can take a plain boolean, so this fixes that issue.
2019-05-02 17:52:51 +02:00
joe-re
563c932fe5
fix: update typings ( #447 )
...
* add clients and defaultClient property to ApolloProvider
* remove client property from DollerApollo
* enable to specity client name to query
2019-01-09 09:36:00 +01:00
Guillaume Chau
f27a54ee61
test(ts): class decorator
2018-09-07 22:57:25 +02:00
Guillaume Chau
97d317e765
fix(ts): typings
2018-09-07 22:36:49 +02:00
Anton Kudryavtsev
438743a43e
fix: apollo option in TypeScript definitions ( #383 )
...
Fixes apollo option in TypeScript definitions by renaming it to apolloProvider
2018-09-07 21:02:45 +02:00
LachlanStuart
4b8219735d
fix: Add missing TypeScript declarations to $apollo ( #367 )
...
* Add TypeScript interface to $apollo
* Add missing documentation
* Fix query/mutate/subscribe type signatures
2018-08-30 14:01:28 +02:00
Hugo Alliaume
986d590e2e
feat(typescript): specify "this" type for "watchLoading" ( #360 )
2018-08-30 13:56:05 +02:00
Guillaume Chau
56f317af07
docs: big update
2018-06-18 18:11:46 +02:00
Guillaume Chau
ae6390b7ed
feat(ts): improve types
2018-06-18 13:24:26 +02:00
bảo.thiên.ngô
1a813c9574
fix: Updating Diff/Omit property to support numbers and symbols per TypeScript 2.9 breaking changes. ( #306 )
2018-06-18 12:02:16 +02:00
Frank Dugan III
937094cfcc
Add Typescript type for addSmartQuery() ( #230 )
...
Currently, there are no Typescript definitions for `addSmartQuery`. This PR adds one line to cover that edge case.
2018-05-21 19:45:17 +02:00
joe-re
2cbf10db78
Update typed apollo provider ( #273 )
...
* upgrade @types/graphql
* refactor type definition
* remove unused property
* update apollo-provider type definition
ref: #66504309599ce9d4a31feb8fd5f065d790349c86
2018-05-21 19:44:50 +02:00
Jake Ho
7be557987c
make the clients parameter optional and use the 'ApolloClient' type
2018-01-31 09:40:56 +08:00
Jake Ho
13c522f659
fix TypeScript error when multiple clients are used
2018-01-24 11:45:30 +08:00
joe-re
8dcdb9299f
TypeScript support ( #160 )
...
* TypeScript support
* set defaultOptions key to VueApollo constructor
2017-12-22 14:38:05 +01:00