File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 4747 "@types/graphql" : " ^0.12.3" ,
4848 "@types/inflection" : " ^1.5.28" ,
4949 "@types/lodash-es" : " ^4.17.0" ,
50- "@vuex-orm/core" : " ^0.25.4 " ,
50+ "@vuex-orm/core" : " ^0.25.5 " ,
5151 "apollo-cache-inmemory" : " ^1.1.7" ,
5252 "apollo-client" : " ^2.2.2" ,
5353 "apollo-link" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Context from '../common/context';
33import { Store } from '../orm/store' ;
44import { Arguments , Data , DispatchFunction } from '../support/interfaces' ;
55import Model from '../orm/model' ;
6- import State from '@vuex-orm/core/lib/modules/State ' ;
6+ import RootState from '@vuex-orm/core/lib/modules/contracts/RootState ' ;
77import Transformer from '../graphql/transformer' ;
88import NameGenerator from '../graphql/name-generator' ;
99import Schema from '../graphql/schema' ;
@@ -63,10 +63,10 @@ export default class Action {
6363
6464 /**
6565 * Convenience method to get the model from the state.
66- * @param {State } state Vuex state
66+ * @param {RootState } state Vuex state
6767 * @returns {Model }
6868 */
69- protected static getModelFromState ( state : State ) : Model {
69+ protected static getModelFromState ( state : RootState ) : Model {
7070 return Context . getInstance ( ) . getModel ( state . $name ) ;
7171 }
7272
Original file line number Diff line number Diff line change 11import ORMModel from '@vuex-orm/core/lib/model/Model' ;
22import Database from '@vuex-orm/core/lib/database/Database' ;
3- import State from '@vuex-orm/core/lib/modules/State ' ;
3+ import RootState from '@vuex-orm/core/lib/modules/contracts/RootState ' ;
44import { ApolloLink } from 'apollo-link' ;
55
66export type DispatchFunction = ( action : string , data : Data ) => Promise < any > ;
@@ -22,7 +22,7 @@ export interface ActionParams {
2222 getters : any ;
2323 rootGetters : any ;
2424 rootState : any ;
25- state : State ;
25+ state : RootState ;
2626 filter ?: Filter ;
2727 id ?: number ;
2828 data ?: Data ;
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ export default class VuexORMGraphQL {
2828 private static setupActions ( ) {
2929 const context = Context . getInstance ( ) ;
3030
31- context . components . rootActions . simpleQuery = SimpleQuery . call . bind ( SimpleQuery ) ;
32- context . components . rootActions . simpleMutation = SimpleMutation . call . bind ( SimpleMutation ) ;
31+ context . components . RootActions . simpleQuery = SimpleQuery . call . bind ( SimpleQuery ) ;
32+ context . components . RootActions . simpleMutation = SimpleMutation . call . bind ( SimpleMutation ) ;
3333
34- context . components . subActions . fetch = Fetch . call . bind ( Fetch ) ;
35- context . components . subActions . persist = Persist . call . bind ( Persist ) ;
36- context . components . subActions . push = Push . call . bind ( Push ) ;
37- context . components . subActions . destroy = Destroy . call . bind ( Destroy ) ;
38- context . components . subActions . mutate = Mutate . call . bind ( Mutate ) ;
39- context . components . subActions . query = Query . call . bind ( Query ) ;
34+ context . components . Actions . fetch = Fetch . call . bind ( Fetch ) ;
35+ context . components . Actions . persist = Persist . call . bind ( Persist ) ;
36+ context . components . Actions . push = Push . call . bind ( Push ) ;
37+ context . components . Actions . destroy = Destroy . call . bind ( Destroy ) ;
38+ context . components . Actions . mutate = Mutate . call . bind ( Mutate ) ;
39+ context . components . Actions . query = Query . call . bind ( Query ) ;
4040 }
4141
4242 /**
Original file line number Diff line number Diff line change 185185 source-map "^0.5.6"
186186 vue-template-es2015-compiler "^1.6.0"
187187
188- " @vuex-orm/core@^0.25.4 " :
189- version "0.25.4 "
190- resolved "https://registry.yarnpkg.com/@vuex-orm/core/-/core-0.25.4 .tgz#0609e0df8a2ab2b614d53b8ce25e2c2bd562d0d3 "
188+ " @vuex-orm/core@^0.25.5 " :
189+ version "0.25.5 "
190+ resolved "https://registry.yarnpkg.com/@vuex-orm/core/-/core-0.25.5 .tgz#ebdcfbbdb19195fff76309c1a8d4c1a708a23b38 "
191191
192192" @webassemblyjs/ast@1.4.3 " :
193193 version "1.4.3"
You can’t perform that action at this time.
0 commit comments