Oh jfc they opted not to try to match the direction you all were headed?!
-
-
import Foo from "./foo" What if, inside foo.js you rename class Foo to class Bar Old imports will still work w/ old name: they no like
-
You mean you rename export default class Foo ?
-
Exactly - they dislike that export default class Foo can be imported with a different name, ie import Fooooo from "./foo"
-
Feature not a bug. What if I rename foo.js to bar.js and have export class Foo {}?
-
Yeah I get it guys - as I said the TS community is crazy on this one :)
-
Sounds overly fussy given TS only cares about class interfaces rather than class names.
-
It's about name consistency (even after rename) in large code base / teams, don't call same thing Buffer in one file and Blob in another
- 14 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.