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 1
1
{
2
2
"name" : " vue-api-queries" ,
3
- "version" : " 0.0.7 " ,
3
+ "version" : " 0.0.8 " ,
4
4
"description" : " Elegant and simple way to build requests for REST API" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import type { ValidatorType } from './core/Validator'
2
2
import Validator from './core/Validator'
3
- import _Vue from 'vue'
4
3
5
4
// augment typings of Vue.js
6
5
import './vue'
7
6
8
7
export type Errors = ValidatorType
9
- export type { ValidatorType }
10
8
11
9
class VueApiQueries {
12
- install ( Vue : typeof _Vue ) {
10
+ install ( Vue : any ) {
13
11
Vue . mixin ( {
14
12
beforeCreate ( ) {
15
- this . $options [ ' $errors' ] = { }
16
- Vue . set ( this . $options , '$errors' , Validator )
13
+ this . $options . $errors = { }
14
+ Vue . util . defineReactive ( this . $options , '$errors' , Validator )
17
15
if ( ! this . $options . computed ) {
18
16
this . $options . computed = { }
19
17
}
You can’t perform that action at this time.
0 commit comments