|
John Reilly
@
johnny_reilly
London / Twickenham
|
|
MacGyver turned Dev 🌻❤️ TypeScript / ts-loader / fork-ts-checker-webpack-plugin / DefinitelyTyped: The Movie github.com/johnnyreilly
|
|
|
2.803
Tweetovi
|
728
Pratim
|
661
Osobe koje vas prate
|
| Tweetovi |
| John Reilly proslijedio/la je tweet | ||
|
Nathan Shively-Sanders
@sanders_n
|
20 h |
|
downlevel-dts now converts #private fields into name-mangled normal privates.
downlevel-dts now supports all the new 3.8 features, so try it out and let me know if it works for you!
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
21 h |
|
Challenge that. If you look at the history of TypeScript it makes sense they exist. They were added early on before string literals existed and before the JS + types strategy was more defined. Intentions were good. That they still exist is good too; don't break existing code 🤗
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
3. velj |
|
Because they aren't JavaScript. I really like that TypeScript is JavaScript + gradual static typing. Enums are not; they're a TypeScript construct. Messes with my mental model. Also object literals and string literals fill that role admirably anyways.
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
2. velj |
|
Hear, hear! I have discovered the limits of how many claps Medium allows such is my dislike for TypeScript enums 😉
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
2. velj |
|
What are ways in which people can give meaningful help to you? I predict (as you've likely already clocked) no shortage of offers 🥰
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
2. velj |
|
Just use netlify; it's super simple. I did it for the first time here: blog.logrocket.com/from-create-re…
It was a completely plug and play experience 🥰
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
1. velj |
|
True. And optimising for what's easier to understand is really what matters in code.
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
1. velj |
|
@OliverJAsh given our chat about project references support in ts-loader, you might find this interesting: github.com/TypeStrong/ts-…
@wSokra has been good enough to put some thought in around how support could be improved. Sounds like @sheetalkamat may take a look too! ❤️🌻
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
1. velj |
|
And presumably
let mod = await (condition
? import('id')
: import('other')
)
too? (My DRY twitch has kicked in; given the additional brackets this pattern requires I appreciate the benefit is arguable)
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
30. sij |
|
Recently started my Linux journey too. I really like it. It's so nice!
|
||
|
|
||
| John Reilly proslijedio/la je tweet | ||
|
Sarah Olney
@sarahjolney1
|
29. sij |
|
Attending Westminster Hall debate by @munirawilson who is giving an excellent opening speech on SEND funding
|
||
|
|
||
| John Reilly proslijedio/la je tweet | ||
|
LogRocket
@LogRocket
|
28. sij |
|
Integrating web workers in a React app with Comlink #reactjs #typescript #google
blog.logrocket.com/integrating-we…
|
||
|
|
||
| John Reilly proslijedio/la je tweet | ||
|
Lenz Weber
@phry
|
28. sij |
|
This #TypeScriptTuesday, we're going to take a look at #TypeScript's interfaces.
Interfaces are different from types and both have their strengths in different situations.
Let's take a look.
This is just some interface definition - again an example from the #redux types:
🧵👇 pic.twitter.com/HjW09PHIlJ
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
28. sij |
|
If you're interested in webworkers, TypeScript and React hooks then do I have the post for you!
blog.logrocket.com/integrating-we…
Thanks to @_developit @DasSurma and @jaffathecake whose help (direct and indirect via Squoosh) made this possible 🤗❤️🌻
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
27. sij |
|
To be proved right can be the most terrible thing
|
||
|
|
||
| John Reilly proslijedio/la je tweet | ||
|
Kevin Gosse
@KooKiz
|
27. sij |
|
We're in the middle of migrating one of our biggest apps (5000+ servers) to .net core. In yellow is CPU usage for .net framework + asp.net. In green is .net core 3.1 + aspnetcore. We've migrated other apps but it's the first time we see such a dramatic improvement pic.twitter.com/Ka6zg4Zjds
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
27. sij |
|
TIL that clock drift can occur between Docker for Windows and the Windows host. It's caused by sleeping your machine a bunch (AKA closing the lid). It can manifest as container build failures.
The fix? Turn your machine off and on again. Yes. I know... Yes. pic.twitter.com/Ek904ggLVY
|
||
|
|
||
| John Reilly proslijedio/la je tweet | ||
|
Matthew
@MatthewGerstman
|
27. sij |
|
Give me your best real world use cases of conditional types and inference types in TypeScript. Can be open source or not.
Retweets appreciated.
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
26. sij |
|
I wrote a blog post last week called "LICENSE to kill your PWA". I'm happy to say that I've now been able to publish an update "LICENSE to kill - revoked!"
blog.johnnyreilly.com/2020/01/licens…
|
||
|
|
||
|
John Reilly
@johnny_reilly
|
24. sij |
|
Well done!
|
||
|
|
||