-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScript
Description
People don't understand the difference between these things:
export default class Foo {}
/* or */
class Foo {}
export = Foo;
/* or */
export class Foo { }
People also don't understand the difference between these things:
import x = require('y');
import x from 'y';
import { x } from 'y'
import * as x from 'y';
We need to write a comprehensive answer that explains which import statements correctly acquire which exports, and also describe auto-lifting behavior present in some loaders.
jsgoupil, mitica, diggoran, nntoanbkit, pushkin- and 227 morejanzenz, BSteffaniak, andregs, bendtherules, ryanmitts and 12 moreboyangwang, KonstantinDavidov, andregs, aszmyd, ryanmitts and 16 more
Metadata
Metadata
Assignees
Labels
DocsThe issue relates to how you learn TypeScriptThe issue relates to how you learn TypeScript