Monday 5 June 2017

Typescript ES6 import syntax for var server = require('http').Server(app) and var io = require('socket.io')(server); [duplicate]

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