File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed
Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 4343 "typescript" : " 5.1.*"
4444 },
4545 "files" : [
46- " dist" ,
47- " vue-kuzzle.d.ts"
46+ " dist"
4847 ]
4948}
Original file line number Diff line number Diff line change 1- import '../vue-kuzzle.d' ;
21export * from './composables' ;
32export * from './helpers' ;
43export * from './types' ;
Original file line number Diff line number Diff line change 11import { PluginFunction } from 'vue' ;
2+ import type { Kuzzle } from 'kuzzle-sdk' ;
3+
24import { instantiateKuzzleSDK } from './helpers' ;
3- import { Backends , SDKOptions } from './types' ;
5+ import type { Backends , SDKOptions } from './types' ;
46
57export interface VueKuzzleOptions {
68 backends : Backends ;
79 sdkOptions : SDKOptions ;
810}
911
12+ /**
13+ * Augment the typings of Vue.js
14+ *
15+ * ? Needed to add type for `$kuzzle` on Vue type
16+ */
17+ declare module 'vue/types/vue' {
18+ interface Vue {
19+ $kuzzle : Kuzzle ;
20+ }
21+ }
22+
1023/**
1124 * The VueKuzzle plugin. Makes the Kuzzle SDK available in Vue components as
1225 * `this.$kuzzle`.
Original file line number Diff line number Diff line change 3131 },
3232 "include" : [
3333 " ./src/**/*.ts" ,
34- " ./vue-kuzzle.d.ts"
3534 ],
3635 "exclude" : [
3736 " node_modules"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments