top-level awaitpic.twitter.com/XyLg4D3tH5
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Wait TS alive ?
-
More like, are you finally awake?

- 5 more replies
New conversation -
-
-
Top-level await is a cool feature I didn’t know that I wanted!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Top level await!
End of conversation
New conversation -
-
-
Thanks for catching this!
End of conversation
New conversation -
-
-
Before typescript 3.8 is released some of developers are using special type and interface naming to explain what we are importing (type or interface) It looks like « import { IFoo, TBar } from "component.ts" » IFoo is a interfase, TBar is a type. What do you think about now?
-
We’ve never done that on the TypeScript team itself, and personally I don’t think you need the convention. It’s a style choice though, as long as your team likes it, it’s fine.
End of conversation
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.
Now with
- type-only imports/exports
- private fields
- 'export * as ns' syntax
- top-level 'await'
- convert to template string
- call hierarchy
and more! Try it today!