File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-api-queries" ,
3- "version" : " 0.0.10-alpha.0 " ,
3+ "version" : " 0.0.10-alpha.1 " ,
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'
@@ -9,11 +8,11 @@ export type Errors = ValidatorType
98export type { ValidatorType }
109
1110class VueApiQueries {
12- install ( Vue : typeof _Vue ) {
13- Vue . extend ( {
14- beforeCreate ( this : any ) {
11+ install ( Vue : any ) {
12+ Vue . mixin ( {
13+ beforeCreate ( ) {
1514 this . $options . $errors = { }
16- Vue . set ( this . $options , '$errors' , Validator )
15+ Vue . util . defineReactive ( this . $options , '$errors' , Validator )
1716 if ( ! this . $options . computed ) {
1817 this . $options . computed = { }
1918 }
You can’t perform that action at this time.
0 commit comments