File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-api-queries" ,
3- "version" : " 0.0.7 " ,
3+ "version" : " 0.0.8 " ,
44 "description" : " Elegant and simple way to build requests for REST API" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 11import type { ValidatorType } from './core/Validator'
22import Validator from './core/Validator'
3- import _Vue from 'vue'
43
54// augment typings of Vue.js
65import './vue'
76
87export type Errors = ValidatorType
9- export type { ValidatorType }
108
119class VueApiQueries {
12- install ( Vue : typeof _Vue ) {
10+ install ( Vue : any ) {
1311 Vue . mixin ( {
1412 beforeCreate ( ) {
15- this . $options [ ' $errors' ] = { }
16- Vue . set ( this . $options , '$errors' , Validator )
13+ this . $options . $errors = { }
14+ Vue . util . defineReactive ( this . $options , '$errors' , Validator )
1715 if ( ! this . $options . computed ) {
1816 this . $options . computed = { }
1917 }
You can’t perform that action at this time.
0 commit comments