I haven't been able to find a worthwhile NodeJS with Typescript tutorial out there so I'm diving in unguided and sure enough I have a question.
I don't understand the difference between these two lines:
import * as http from 'http';
// and
import http = require('http');
They seem to function the same way but I imagine there's probably some nuance to their behavior or else one of them probably wouldn't exist.
I do understand that the first approach could let me selectively import from a module but if I'm importing all of the module then is there a difference between the two? Is there a preferred way? What if I'm importing from my own files, does that change anything?