|
Nathan Shively-Sanders
@
sanders_n
|
|
Programmer, linguist, dad, Christian. Expect tweets on type systems, video games or dialectology. Tweets are my own. Always bet on Javascript. He/him.
|
|
|
569
Tweetovi
|
51
Pratim
|
428
Osobe koje vas prate
|
| Tweetovi |
|
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!
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
22. sij |
|
When @bterlson tried it he kept saying “I wish I could just read the spec” until I brought a Spanish grammar+dictionary into the office.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
22. sij |
|
Wasn’t Apple Podcasts part of iTunes once upon a time? Sounds like it’s an idiom that got updated, but was sensible before.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
22. sij |
|
Tip: blocking the bus to get out of your car when you’re late does NOT guarantee you a seat, even if you’re super late.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
16. sij |
|
You brought up a lot of good issues to consider. thanks!
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
16. sij |
|
downlevel-dts now downlevels Typescript 3.8 d.ts files so you can
*write* TS 3.8 code but
*ship* types that are compatible with 3.5 and earlier.
Check out the source at github.com/sandersn/downl…
If you're interested in using it, please tell me. I need usability feedback!
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
15. sij |
|
This is a wishlist item, not a bug: Coverage-based testing. But it's a tall order because istanbul coverage runs out of memory on typescript. It's the #1 reason I've been following jest's progress with v8-native code coverage.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
8. sij |
|
I think it's on their roadmap.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
8. sij |
|
It's been pretty smooth for me, with the big limitation that package installation requires github authentication.
Also the UI isn't as usable as npm's (and it's buggier).
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
6. sij |
|
Can you point me to your {}-vs-unknown code? I don't know how hard it would be to detect that downlevelling would need to occur in that case.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
6. sij |
|
I forgot, you can browse all 6,300+ packages with GH's UI: github.com/orgs/types/pac…
It's pretty barebones and a bit buggy right now.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
6. sij |
|
Eventually, VS Code's Automatic Type Acquisition will use Github Packages to acquire @types for JS projects.
Full details are here: github.com/microsoft/Type…
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
6. sij |
|
@types packages are now mirrored on Github Packages.
This is not used for anything just yet, but you can try it out:
npm install @types/q --registry=npm.pkg.github.com
For now you have to authenticate with Github; full instructions here: help.github.com/en/github/mana…
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
6. sij |
|
This sounds like exactly the kind of workflow I was planning for downlevel-dts. My first guess is that you want the tool to generate a ts3.3/ directory and copy over a 3.3-compatible d.ts from the 3.7 d.ts. Or do you already have a d.ts file in ts3.3/?
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
31. pro |
|
@types/got -- why doesn't this package have anything to do with games or thrones?
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
31. pro |
|
Google's starting to shame me because I can't remember URLs: pic.twitter.com/rZk3h4vdBH
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
30. pro |
|
A quick reading of the example on the issue makes it look like we just need to make `@implements` behave exactly like the implement clause in TS.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
30. pro |
|
I would love to get chrome-devtools-frontend onto Typescript, so it's a good idea to support them. However, I don't understand the Closure semantics of @interface and @implements. You should figure those out first.
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
30. pro |
|
Follow-up to @private and @protected: typescript@next now supports @readonly in Javascript, which behaves the same as readonly in Typescript:
class C {
/** @readonly */
x = 1
}
|
||
|
|
||
|
Nathan Shively-Sanders
@sanders_n
|
19. pro |
|
Or Slack. Sometimes they think I work on Microsoft Slack.
|
||
|
|
||