17 lines
327 B
TypeScript
17 lines
327 B
TypeScript
import { Server as NetServer } from 'http';
|
|
import { NextApiRequest } from 'next';
|
|
import { Server as ServerIO } from 'socket.io';
|
|
|
|
export type NextApiResponseServerIO = NextApiRequest & {
|
|
socket: {
|
|
server: NetServer & {
|
|
io?: ServerIO;
|
|
};
|
|
};
|
|
};
|
|
|
|
export const config = {
|
|
api: {
|
|
bodyParser: false,
|
|
},
|
|
}; |