瀏覽代碼

feat(types): socket

vian 5 年之前
父節點
當前提交
881d2dc73c
共有 3 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      types/package.json
  2. 1 0
      types/src/interface/index.ts
  3. 5 0
      types/src/interface/socket.ts

+ 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',
+}