работаем бля работаем
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import type { FastifyPluginAsync } from 'fastify'
|
||||
import type { Type } from 'typebox'
|
||||
import type { UserSchema } from '../schemas/auth.ts'
|
||||
import type { ChatMessageSchema } from '../schemas/chat.ts'
|
||||
import type { Channel } from '../prisma/generated-client/client.ts'
|
||||
import type { UserSchema } from './schemas/auth.ts'
|
||||
import type { ChatMessageSchema } from './schemas/chat.ts'
|
||||
import { EventEmitter } from 'node:events'
|
||||
import fp from 'fastify-plugin'
|
||||
|
||||
@@ -14,6 +15,8 @@ declare module 'fastify' {
|
||||
interface EventMap {
|
||||
'chat:new-message': [Type.Static<typeof ChatMessageSchema>]
|
||||
'user:profile-updated': [Type.Static<typeof UserSchema>]
|
||||
'channel:created': [Channel]
|
||||
'channel:removed': [Channel]
|
||||
}
|
||||
|
||||
const plugin: FastifyPluginAsync = fp(async (fastify) => {
|
||||
|
||||
Reference in New Issue
Block a user