This question already has an answer here:
I know that var someModule = require('someModule')
is generally replaced by import * as someModule from 'someModule'
but I can't figure out how to use Typescript/ES6 syntax to express the following Node.js code:
var server = require('http').Server(app);
var io = require('socket.io')(server);
via neoflash
No comments:
Post a Comment