You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you're doing something like that it's because it's a commonJS module, and isn't export'ing things itself, so you need to just pull down the whole thing.
It's the TS equivalent of var bodyParser = require('body-parser');
DavideViolante
changed the title
NodeJS and TypeScript
Why do you use this import syntax in TypeScript?
Apr 21, 2017
Why do you use :
import * as bodyParser from 'body-parser';
and notimport { * } from './....';
syntax ?Also i dont understand why no
export class
?It looks like it's just a JS to TS transpilation.
The text was updated successfully, but these errors were encountered: