@jomkv/keybud-v2-contracts 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +4 -98
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +3 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/ws/auth/event-names.d.ts +7 -0
  7. package/dist/ws/auth/event-names.d.ts.map +1 -0
  8. package/dist/ws/auth/event-names.js +6 -0
  9. package/dist/ws/auth/event-names.js.map +1 -0
  10. package/dist/ws/auth/events.d.ts +10 -0
  11. package/dist/ws/auth/events.d.ts.map +1 -0
  12. package/dist/ws/auth/events.js +2 -0
  13. package/dist/ws/auth/events.js.map +1 -0
  14. package/dist/ws/auth/index.d.ts +4 -0
  15. package/dist/ws/auth/index.d.ts.map +1 -0
  16. package/dist/ws/auth/index.js +4 -0
  17. package/dist/ws/auth/index.js.map +1 -0
  18. package/{src/ws/auth/payloads.ts → dist/ws/auth/payloads.d.ts} +7 -7
  19. package/dist/ws/auth/payloads.d.ts.map +1 -0
  20. package/dist/ws/auth/payloads.js +2 -0
  21. package/dist/ws/auth/payloads.js.map +1 -0
  22. package/dist/ws/messages/event-names.d.ts +6 -0
  23. package/dist/ws/messages/event-names.d.ts.map +1 -0
  24. package/dist/ws/messages/event-names.js +5 -0
  25. package/dist/ws/messages/event-names.js.map +1 -0
  26. package/{src/ws/messages/events.ts → dist/ws/messages/events.d.ts} +9 -10
  27. package/dist/ws/messages/events.d.ts.map +1 -0
  28. package/dist/ws/messages/events.js +2 -0
  29. package/dist/ws/messages/events.js.map +1 -0
  30. package/dist/ws/messages/index.d.ts +4 -0
  31. package/dist/ws/messages/index.d.ts.map +1 -0
  32. package/dist/ws/messages/index.js +4 -0
  33. package/dist/ws/messages/index.js.map +1 -0
  34. package/dist/ws/messages/payloads.d.ts +12 -0
  35. package/dist/ws/messages/payloads.d.ts.map +1 -0
  36. package/dist/ws/messages/payloads.js +2 -0
  37. package/dist/ws/messages/payloads.js.map +1 -0
  38. package/package.json +23 -8
  39. package/src/index.ts +0 -2
  40. package/src/ws/auth/event-names.ts +0 -8
  41. package/src/ws/auth/events.ts +0 -14
  42. package/src/ws/auth/index.ts +0 -3
  43. package/src/ws/messages/event-names.ts +0 -7
  44. package/src/ws/messages/index.ts +0 -3
  45. package/src/ws/messages/payloads.ts +0 -12
  46. package/tsconfig.json +0 -48
package/README.md CHANGED
@@ -1,10 +1,11 @@
1
1
  # KeyBud V2 Contracts
2
2
 
3
- Shared TypeScript contracts and type definitions for KeyBud V2, providing type-safe communication between frontend and backend applications.
3
+ Shared TypeScript contracts and type definitions for KeyBud V2.
4
4
 
5
5
  ## Overview
6
6
 
7
- This package contains shared contracts for WebSocket events, payloads, and other common types used across the KeyBud V2 ecosystem. It ensures type safety and consistency between the frontend and backend implementations.
7
+ This package contains shared contracts for WebSocket events, payloads, and other common types used across the KeyBud V2 ecosystem. It ensures type safety and consistency between the
8
+ two repositories.
8
9
 
9
10
  ## Installation
10
11
 
@@ -39,102 +40,7 @@ Handles authentication-related WebSocket events:
39
40
 
40
41
  - **Events**:
41
42
  - `AuthClientToServerEvents` - Client-to-server event types
42
- - `ServerToClientEvents` - Server-to-client event types
43
-
44
- - **Payloads**: `AuthSubscribePayload`, `AuthSubscribeSuccessPayload`
45
-
46
- #### Messages (`ws/messages`)
47
-
48
- Handles messaging-related WebSocket events:
49
-
50
- - **Event Names**: `MESSAGE_EVENT_NAMES`
51
- - `SUBSCRIBE` - Client subscribes to messages
52
- - `NEW_MESSAGE` - Server sends new message
53
-
54
- - **Events**:
55
- - `MessageClientToServerEvents` - Client-to-server event types
56
- - `MessageServerToClientEvents` - Server-to-client event types
57
-
58
- - **Payloads**: `MessageSubscribePayload`, `NewMessagePayload`
59
-
60
- ## Development
61
-
62
- ### Prerequisites
63
-
64
- - Node.js >= 14.17
65
- - pnpm 10.17.0
66
-
67
- ### Scripts
68
-
69
- ```sh
70
- # Run tests (not yet implemented)
71
- pnpm test
72
- ```
73
-
74
- ### Project Configuration
75
-
76
- - **TypeScript**: Strict mode enabled with modern module resolution
77
- - **Package Manager**: pnpm with workspace support
78
- - **Module System**: ES Modules
79
-
80
- ## Contributing
81
-
82
- 1. Fork the repository
83
- 2. Create your feature branch
84
- 3. Add your contracts to the appropriate directory under `src/`
85
- 4. Export new contracts from `src/index.ts`
86
- 5. Submit a pull request
87
-
88
- ## License
89
-
90
- MIT © Jom Karlo Verzosa
91
-
92
- ## Repository
93
-
94
- [https://github.com/jomkv/keybud-v2-contracts](https://github.com/jomkv/keybud-v2-contracts)
95
-
96
- ````# KeyBud V2 Contracts
97
-
98
- Shared TypeScript contracts and type definitions for KeyBud V2, providing type-safe communication between frontend and backend applications.
99
-
100
- ## Overview
101
-
102
- This package contains shared contracts for WebSocket events, payloads, and other common types used across the KeyBud V2 ecosystem. It ensures type safety and consistency between the frontend and backend implementations.
103
-
104
- ## Installation
105
-
106
- ```sh
107
- pnpm add @jomkv/keybud-v2-contracts
108
- ````
109
-
110
- ## Usage
111
-
112
- ```typescript
113
- import {
114
- AUTH_EVENT_NAMES,
115
- MESSAGE_EVENT_NAMES,
116
- type AuthClientToServerEvents,
117
- type MessageServerToClientEvents,
118
- type NewMessagePayload,
119
- } from "@jomkv/keybud-v2-contracts";
120
- ```
121
-
122
- ## Structure
123
-
124
- ### WebSocket Contracts
125
-
126
- #### Authentication (`ws/auth`)
127
-
128
- Handles authentication-related WebSocket events:
129
-
130
- - **Event Names**: `AUTH_EVENT_NAMES`
131
- - `SUBSCRIBE` - Client subscribes to auth events
132
- - `SUBSCRIBE_SUCCESS` - Server confirms subscription
133
- - `COMPLETE` - Client completes login
134
-
135
- - **Events**:
136
- - `AuthClientToServerEvents` - Client-to-server event types
137
- - `ServerToClientEvents` - Server-to-client event types
43
+ - `AuthServerToClientEvents` - Server-to-client event types
138
44
 
139
45
  - **Payloads**: `AuthSubscribePayload`, `AuthSubscribeSuccessPayload`
140
46
 
@@ -0,0 +1,3 @@
1
+ export * from "./ws/auth/index";
2
+ export * from "./ws/messages/index";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./ws/auth/index";
2
+ export * from "./ws/messages/index";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const AUTH_EVENT_NAMES: {
2
+ readonly SUBSCRIBE: "auth:subscribe";
3
+ readonly SUBSCRIBE_SUCCESS: "auth:subscribe_success";
4
+ readonly COMPLETE: "auth:complete";
5
+ };
6
+ export type AuthEventName = (typeof AUTH_EVENT_NAMES)[keyof typeof AUTH_EVENT_NAMES];
7
+ //# sourceMappingURL=event-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-names.d.ts","sourceRoot":"","sources":["../../../src/ws/auth/event-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const AUTH_EVENT_NAMES = {
2
+ SUBSCRIBE: "auth:subscribe",
3
+ SUBSCRIBE_SUCCESS: "auth:subscribe_success",
4
+ COMPLETE: "auth:complete", // client completes login
5
+ };
6
+ //# sourceMappingURL=event-names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/auth/event-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE,gBAAgB;IAC3B,iBAAiB,EAAE,wBAAwB;IAC3C,QAAQ,EAAE,eAAe,EAAE,yBAAyB;CAC5C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { AUTH_EVENT_NAMES } from "./event-names.ts";
2
+ import type { AuthSubscribePayload, AuthSubscribeSuccessPayload } from "./payloads.js";
3
+ export interface AuthClientToServerEvents {
4
+ [AUTH_EVENT_NAMES.SUBSCRIBE]: AuthSubscribePayload;
5
+ }
6
+ export interface AuthServerToClientEvents {
7
+ [AUTH_EVENT_NAMES.SUBSCRIBE_SUCCESS]: AuthSubscribeSuccessPayload;
8
+ [AUTH_EVENT_NAMES.COMPLETE]: {};
9
+ }
10
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/ws/auth/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,wBAAwB;IACvC,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CACpD;AAED,MAAM,WAAW,wBAAwB;IACvC,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,2BAA2B,CAAC;IAClE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/ws/auth/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./event-names";
2
+ export * from "./events";
3
+ export * from "./payloads";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ws/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./event-names";
2
+ export * from "./events";
3
+ export * from "./payloads";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
- export interface AuthSubscribePayload {
2
- sessionId: string;
3
- }
4
-
5
- export interface AuthSubscribeSuccessPayload {
6
- sessionId: string;
7
- }
1
+ export interface AuthSubscribePayload {
2
+ sessionId: string;
3
+ }
4
+ export interface AuthSubscribeSuccessPayload {
5
+ sessionId: string;
6
+ }
7
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../src/ws/auth/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../src/ws/auth/payloads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare const MESSAGE_EVENT_NAMES: {
2
+ readonly SUBSCRIBE: "message:subscribe";
3
+ readonly NEW_MESSAGE: "message:new";
4
+ };
5
+ export type MessageEventName = (typeof MESSAGE_EVENT_NAMES)[keyof typeof MESSAGE_EVENT_NAMES];
6
+ //# sourceMappingURL=event-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-names.d.ts","sourceRoot":"","sources":["../../../src/ws/messages/event-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export const MESSAGE_EVENT_NAMES = {
2
+ SUBSCRIBE: "message:subscribe",
3
+ NEW_MESSAGE: "message:new",
4
+ };
5
+ //# sourceMappingURL=event-names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-names.js","sourceRoot":"","sources":["../../../src/ws/messages/event-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,mBAAmB;IAC9B,WAAW,EAAE,aAAa;CAClB,CAAC"}
@@ -1,10 +1,9 @@
1
- import type { MESSAGE_EVENT_NAMES } from "./event-names.ts";
2
- import type { MessageSubscribePayload, NewMessagePayload } from "./payloads.js";
3
-
4
- export interface MessageClientToServerEvents {
5
- [MESSAGE_EVENT_NAMES.SUBSCRIBE]: MessageSubscribePayload;
6
- }
7
-
8
- export interface MessageServerToClientEvents {
9
- [MESSAGE_EVENT_NAMES.NEW_MESSAGE]: NewMessagePayload;
10
- }
1
+ import type { MESSAGE_EVENT_NAMES } from "./event-names.ts";
2
+ import type { MessageSubscribePayload, NewMessagePayload } from "./payloads.js";
3
+ export interface MessageClientToServerEvents {
4
+ [MESSAGE_EVENT_NAMES.SUBSCRIBE]: MessageSubscribePayload;
5
+ }
6
+ export interface MessageServerToClientEvents {
7
+ [MESSAGE_EVENT_NAMES.NEW_MESSAGE]: NewMessagePayload;
8
+ }
9
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/ws/messages/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEhF,MAAM,WAAW,2BAA2B;IAC1C,CAAC,mBAAmB,CAAC,SAAS,CAAC,EAAE,uBAAuB,CAAC;CAC1D;AAED,MAAM,WAAW,2BAA2B;IAC1C,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACtD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/ws/messages/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./event-names";
2
+ export * from "./events";
3
+ export * from "./payloads";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ws/messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./event-names";
2
+ export * from "./events";
3
+ export * from "./payloads";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ws/messages/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface NewMessagePayload {
2
+ id: number;
3
+ senderId: number;
4
+ conversationId: number;
5
+ content: string;
6
+ createdAt: Date;
7
+ readAt?: Date;
8
+ }
9
+ export interface MessageSubscribePayload {
10
+ userId: number;
11
+ }
12
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../src/ws/messages/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../src/ws/messages/payloads.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@jomkv/keybud-v2-contracts",
3
- "version": "1.0.0",
4
- "description": "",
5
- "keywords": [],
3
+ "version": "1.0.2",
4
+ "description": "Shared TypeScript contracts for KeyBud V2",
5
+ "keywords": [
6
+ "keybud",
7
+ "contracts",
8
+ "typescript",
9
+ "websocket"
10
+ ],
6
11
  "homepage": "https://github.com/jomkv/keybud-v2-contracts#readme",
7
12
  "bugs": {
8
13
  "url": "https://github.com/jomkv/keybud-v2-contracts/issues"
@@ -14,14 +19,24 @@
14
19
  "license": "MIT",
15
20
  "author": "Jom Karlo Verzosa",
16
21
  "type": "module",
17
- "main": "index.js",
18
- "scripts": {
19
- "test": "echo \"Error: no test specified\" && exit 1"
22
+ "main": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ }
20
29
  },
30
+ "files": [
31
+ "dist"
32
+ ],
21
33
  "devDependencies": {
22
34
  "@types/node": "^25.0.8",
23
35
  "ts-node": "^10.9.2",
24
36
  "typescript": "^5.9.3"
25
37
  },
26
- "packageManager": "pnpm@10.17.0"
27
- }
38
+ "scripts": {
39
+ "build": "tsc",
40
+ "test": "echo \"Error: no test specified\" && exit 1"
41
+ }
42
+ }
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./ws/auth/index.ts";
2
- export * from "./ws/messages/index.ts";
@@ -1,8 +0,0 @@
1
- export const AUTH_EVENT_NAMES = {
2
- SUBSCRIBE: "auth:subscribe",
3
- SUBSCRIBE_SUCCESS: "auth:subscribe_success",
4
- COMPLETE: "auth:complete", // client completes login
5
- } as const;
6
-
7
- export type AuthEventName =
8
- (typeof AUTH_EVENT_NAMES)[keyof typeof AUTH_EVENT_NAMES];
@@ -1,14 +0,0 @@
1
- import type { AUTH_EVENT_NAMES } from "./event-names.ts";
2
- import type {
3
- AuthSubscribePayload,
4
- AuthSubscribeSuccessPayload,
5
- } from "./payloads.js";
6
-
7
- export interface AuthClientToServerEvents {
8
- [AUTH_EVENT_NAMES.SUBSCRIBE]: AuthSubscribePayload;
9
- }
10
-
11
- export interface ServerToClientEvents {
12
- [AUTH_EVENT_NAMES.SUBSCRIBE_SUCCESS]: AuthSubscribeSuccessPayload;
13
- [AUTH_EVENT_NAMES.COMPLETE]: {};
14
- }
@@ -1,3 +0,0 @@
1
- export * from "./event-names.ts";
2
- export * from "./events.ts";
3
- export * from "./payloads.ts";
@@ -1,7 +0,0 @@
1
- export const MESSAGE_EVENT_NAMES = {
2
- SUBSCRIBE: "message:subscribe",
3
- NEW_MESSAGE: "message:new",
4
- } as const;
5
-
6
- export type MessageEventName =
7
- (typeof MESSAGE_EVENT_NAMES)[keyof typeof MESSAGE_EVENT_NAMES];
@@ -1,3 +0,0 @@
1
- export * from "./event-names.ts";
2
- export * from "./events.ts";
3
- export * from "./payloads.ts";
@@ -1,12 +0,0 @@
1
- export interface NewMessagePayload {
2
- id: number;
3
- senderId: number;
4
- conversationId: number;
5
- content: string;
6
- createdAt: Date;
7
- readAt?: Date;
8
- }
9
-
10
- export interface MessageSubscribePayload {
11
- userId: number;
12
- }
package/tsconfig.json DELETED
@@ -1,48 +0,0 @@
1
- {
2
- // Visit https://aka.ms/tsconfig to read more about this file
3
- "compilerOptions": {
4
- // File Layout
5
- // "rootDir": "./src",
6
- // "outDir": "./dist",
7
-
8
- // Environment Settings
9
- // See also https://aka.ms/tsconfig/module
10
- "module": "nodenext",
11
- "target": "esnext",
12
- "types": [],
13
- // For nodejs:
14
- // "lib": ["esnext"],
15
- // "types": ["node"],
16
- // and npm install -D @types/node
17
-
18
- // Other Outputs
19
- "sourceMap": true,
20
- "declaration": true,
21
- "declarationMap": true,
22
-
23
- // Stricter Typechecking Options
24
- "noUncheckedIndexedAccess": true,
25
- "exactOptionalPropertyTypes": true,
26
-
27
- // Style Options
28
- // "noImplicitReturns": true,
29
- // "noImplicitOverride": true,
30
- // "noUnusedLocals": true,
31
- // "noUnusedParameters": true,
32
- // "noFallthroughCasesInSwitch": true,
33
- // "noPropertyAccessFromIndexSignature": true,
34
-
35
- // Recommended Options
36
- "strict": true,
37
- "jsx": "react-jsx",
38
- "verbatimModuleSyntax": true,
39
- "isolatedModules": true,
40
- "noUncheckedSideEffectImports": true,
41
- "moduleDetection": "force",
42
- "skipLibCheck": true,
43
-
44
- // Custom
45
- "allowImportingTsExtensions": true,
46
- "noEmit": true
47
- }
48
- }