This repository was archived by the owner on Jun 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ Check the example below:
299299<!-- App.vue -->
300300<script>
301301import { Options, Vue } from 'vue-class-component';
302- import { Socket } from 'vue-socket.io-extended'
302+ import Socket from 'vue-socket.io-extended/decorator';
303303
304304@Options({})
305305export default class App extends Vue {
Original file line number Diff line number Diff line change 99 "import" : " ./dist/vue-socket.io-ext.esm.js" ,
1010 "default" : " ./dist/vue-socket.io-ext.min.js"
1111 },
12- "./decorator/ " : " ./dist/vue-socket.io-ext.decorator.esm.js"
12+ "./decorator" : " ./dist/vue-socket.io-ext.decorator.esm.js"
1313 },
1414 "scripts" : {
1515 "test" : " jest" ,
2727 " types/"
2828 ],
2929 "typings" : " types/index.d.ts" ,
30+ "typesVersions" : {
31+ "*" : {
32+ "decorator" : [" types/decorator.d.ts" ]
33+ }
34+ },
3035 "keywords" : [
3136 " vuejs" ,
3237 " socket" ,
Original file line number Diff line number Diff line change 1+ import { VueDecorator } from 'vue-class-component' ;
2+
3+ declare const Socket : ( eventName ?: string ) => VueDecorator ;
4+
5+ export default Socket ;
Original file line number Diff line number Diff line change 11// @ts -ignore
22import { PluginInstallFunction } from 'vue' ;
3- import { VueDecorator } from 'vue-class-component' ;
43import * as SocketIOClient from 'socket.io-client' ;
54// augment typings of Vue.js
65import "./vue"
@@ -23,4 +22,3 @@ declare class VueSocketIOExt {
2322}
2423
2524export default VueSocketIOExt ;
26- export const Socket : ( eventName ?: string ) => VueDecorator ;
You can’t perform that action at this time.
0 commit comments