File tree Expand file tree Collapse file tree 3 files changed +22
-23
lines changed Expand file tree Collapse file tree 3 files changed +22
-23
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-api-queries" ,
3
- "version" : " 0.0.3 " ,
3
+ "version" : " 0.0.4 " ,
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'
3
+ import type _Vue from ' vue'
4
4
5
5
export type Errors = ValidatorType
6
6
@@ -25,3 +25,23 @@ export { default as BaseProxy } from './core/BaseProxy'
25
25
export { default as BaseTransformer } from './core/BaseTransformer'
26
26
export { default as PaginationTransformer } from './core/PaginationTransformer'
27
27
export default new VueApiQuery ( )
28
+
29
+ declare module '@nuxt/types' {
30
+ interface Context {
31
+ $errors : Errors
32
+ }
33
+ interface NuxtAppOptions {
34
+ $errors : Errors
35
+ }
36
+ }
37
+ declare module 'vue/types/vue' {
38
+ interface Vue {
39
+ $errors : Errors
40
+ }
41
+ }
42
+ declare module 'vue/types/options' {
43
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
44
+ interface ComponentOptions < V extends _Vue > {
45
+ $errors : Errors
46
+ }
47
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments