Игорь Рожков Asked:2020-11-05 18:49:45 +0800 CST2020-11-05 18:49:45 +0800 CST 2020-11-05 18:49:45 +0800 CST jsdoc socket.io @param 772 如何告诉 ide io 是 Server javascript 1 个回答 Voted Best Answer Dmitry 2020-02-13T12:53:50+08:002020-02-13T12:53:50+08:00 正确类型import('socket.io').Server: /** @param {import('socket.io').Server} io */ module.exports = (io) => { io.on() }
正确类型
import('socket.io').Server
: