Przeglądaj źródła

feat(types): socket

vian 5 lat temu
rodzic
commit
881d2dc73c

+ 1 - 1
types/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sc/types",
-  "version": "1.0.23",
+  "version": "1.0.24",
   "description": "共用类型文件",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",

+ 1 - 0
types/src/interface/index.ts

@@ -15,3 +15,4 @@ export * from './option';
 export * from './quantityDetail';
 export * from './report';
 export * from './configMaterial';
+export * from './socket';

+ 5 - 0
types/src/interface/socket.ts

@@ -0,0 +1,5 @@
+/* eslint-disable import/prefer-default-export */
+export enum SocketEvent {
+  TEST = 'test',
+  JOIN = 'join',
+}