I was not able to find a useful NodeJS with a Typescript tutorial, so I'm immersed in an unmanageable one and I'm sure I have a question.
I do not understand the difference between these two lines:
import * as http from 'http'; // and import http = require('http');
It seems that they function the same, but I think that perhaps there is some nuance in their behavior, or one of them probably will not exist.
I understand that the first approach allowed me to selectively import from the module, but if I import the whole module, is there a difference between them? Is there a preferred way? What if I import from my own files, something changes?
Corey ogburn
source share