microsoft/TypeScript
View on GitHub ↗ ★ 111,716 Go
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
617 mentions on Hacker News by 467 people: 78 stories, 539 comments · first 2014-07-23 · latest 2026-10-20
20082026
-
…checking [1]. The best you can do is run using --skipLibCheck to skip checking node_modules. [1] https://github.com/microsoft/TypeScript/issues/29651
comment by trinovantes · 2022-12-27 · in All I want for Christmas is these seven TypeScript improvements -
…types to be supported. There is an issue[1] about this which has been pending for 8 years. 1. https://github.com/microsoft/TypeScript/issues/1213
comment by prmph · 2022-12-26 · in All I want for Christmas is these seven TypeScript improvements -
Are we doing wishlists? All I want is the possibility of doing nominal typing. Hrmph: https://github.com/microsoft/TypeScript/issues/364 - https://github.com/microsoft/TypeScript/issues/4895
comment by scrollaway · 2022-12-26 · in All I want for Christmas is these seven TypeScript improvements -
If you were looking for an issue to subscribe to for the move to file feature, it’s here: https://github.com/microsoft/TypeScript/issues/29988 It’s a TypeScript language server issue
comment by jayflux · 2022-12-24 · in Ask HN: How do you usually handle refactoring in VS Code? -
…declares as a design goal that they don't use the type system to generate different code: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... Meanwhile in Dart, you can write: double d = 1; In Dart, doubles and integers are…
comment by munificent · 2022-11-29 · in Dynamic types have the potential to be more than "no static types" -
…} Caveat is it takes a bit to convince TS this is sound, and you have to manually sync the names. ( https://github.com/microsoft/TypeScript/issues/32098 would help)
comment by jakear · 2022-11-17 · in Sparse array destructuring in JavaScript -
TypeScript has the same; the whole type checker is in one massive file with 46,393 lines: https://github.com/microsoft/TypeScript/blob/main/src/compil... IIRC they cited performance reasons when compiling the compiler for the decision not…
comment by 130e13a · 2022-11-08 · in CS quotes found while browsing Notepad++'s code -
Little mini example in terms of LSP behaviour is fixing this bug: https://github.com/microsoft/TypeScript/issues/37816 I edit the results of gotoDefinition on the way through so I always jump to the one I want.
comment by aidos · 2022-11-06 · in The type system is a programmer's best friend -
…They also talk of this in a design meeting [3] and a member of TS team seems committed to it. [1] https://github.com/microsoft/TypeScript/issues/50457 [2] https://github.com/microsoft/TypeScript/issues/51362 [3]…
comment by conaclos · 2022-11-03 · in PR that converts the TypeScript repo from namespaces to modules -
These days, it's tracked at https://github.com/microsoft/TypeScript/issues/27891 . I have a gameplan to drop this by another 7 MB (by turning our executables into ESM), probably for 5.0 as well if we decide that Node versions older than 12…
comment by jakebailey · 2022-11-03 · in PR that converts the TypeScript repo from namespaces to modules -
…install size issue back in 2018 and changing to modules seemed to have the biggest impact here! https://github.com/microsoft/TypeScript/issues/23339 For anyone curious, TS 1.0 was 7MB and today it’s 65MB.…
comment by styfle · 2022-11-03 · in PR that converts the TypeScript repo from namespaces to modules -
…the PR for it. There are many many issues opened related to this in github, but to give an example https://github.com/microsoft/TypeScript/issues/16577
comment by redox99 · 2022-11-02 · in PR that converts the TypeScript repo from namespaces to modules -
This could change with an ongoing work to allow ts extension [1]. [1] https://github.com/microsoft/TypeScript/issues/37582
comment by conaclos · 2022-11-02 · in PR that converts the TypeScript repo from namespaces to modules -
…It also makes interop between Node and Deno more painful. But there is hope on the horizon. :) See https://github.com/microsoft/TypeScript/issues/37582 which is referenced in the 4.9 Iteration Plan as "Support .ts as a Module Specifier for…
comment by lewisl9029 · 2022-11-02 · in PR that converts the TypeScript repo from namespaces to modules -
…Here's an example of the performance improvement that switching to ES modules alone can bring: https://github.com/microsoft/TypeScript/issues/39247 . [1] This is almost always true. A random exception to this is that some buggy compilers…
comment by constexpr · 2022-11-02 · in PR that converts the TypeScript repo from namespaces to modules -
▲ 338
PR that converts the TypeScript repo from namespaces to modulesstory by Kyza · 2022-11-02 · 196 comments
-
…things like `Range<80, 120>` to clamp to a range. If something like "Negated types" ever happens ( https://github.com/Microsoft/TypeScript/pull/29317 ) it'll make even more options available. Also, if you haven't checked it out,…
comment by dimitropoulos · 2022-10-31 · in Protobuf-ES: Protocol Buffers TypeScript/JavaScript runtime -
…variance like Kotlin is still an open question and requires further investigation. [1]: https://github.com/microsoft/TypeScript/issues/14833 [2]: https://io.livecode.ch/learn/namin/unsound [3]: https://arxiv.org/abs/1605.05274 [4]:…
comment by bmc7505 · 2022-10-25 · in From zero to 10M lines of Kotlin -
…ergonomic, less time, etc) than 3rd party libs. TS devs really should reconsider this feature. https://github.com/microsoft/TypeScript/issues/15265
comment by yazaddaruvala · 2022-10-13 · in Hegel – An advanced static type checker for JavaScript -
I don't understand what you are referring to - the TypeScript compiler has 0 (non-dev) dependencies: https://github.com/microsoft/TypeScript/blob/main/package.js... .
comment by paavohtl · 2022-10-09 · in TypeScript is now officially 10 years old -
…You can snipe all you want, but if you think it’s that easy to resolve maybe I can direct you to https://github.com/microsoft/TypeScript/pulls I’m not affiliated with the team in any way but I’m almost totally certain they’d welcome a…
comment by eyelidlessness · 2022-10-02 · in Ten Years of TypeScript -
…code” principle mentioned in this article). Here’s a good summary of the problems this causes: https://github.com/microsoft/TypeScript/issues/42151 I’m curious, how many people are using TSC only for type-checking, and a different system…
comment by iainmerrick · 2022-10-01 · in Ten Years of TypeScript -
…yet, as you have no way to test whether `property in unknown` or not. Well, until this is released! https://github.com/microsoft/TypeScript/pull/50666
comment by madeofpalk · 2022-09-23 · in Show HN: Ezno, a type checker for JavaScript and optimiser for React -
The type system is Turing-complete, after all… https://github.com/Microsoft/TypeScript/issues/14833
comment by tempodox · 2022-09-22 · in A text adventure game on TypeScript's type system -
…- https://github.com/typescript-eslint/typescript-eslint/issue... - https://github.com/microsoft/TypeScript/issues/21732 - https://github.com/microsoft/TypeScript/pull/50666
comment by lediur · 2022-09-20 · in Learn how to unleash the full potential of the type system of TypeScript -
Why yes it is: https://github.com/microsoft/TypeScript/issues/14833
comment by 9dev · 2022-09-20 · in Learn how to unleash the full potential of the type system of TypeScript -
…The original bug against Typescript was opened in 2016 as well: https://github.com/microsoft/TypeScript/issues/11274
comment by tuukkah · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…LSP support is not a priority (in part because LSP is inadequate in its current form): https://github.com/microsoft/TypeScript/issues/39459
comment by tuukkah · 2022-09-11 · in Ask HN: What's the best source code you've read? -
And the type checker is a single 45k line file! https://github.com/microsoft/TypeScript/blob/main/src/compil...
comment by brandly · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…It's clean, easy on the eyes with well placed white space and just the right amount of comments. https://github.com/microsoft/TypeScript/blob/main/src/compil...
comment by michaelwww · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…Javascript Engine - https://github.com/bellard/quickjs The TypeScript language and compiler - https://github.com/microsoft/TypeScript
comment by lioeters · 2022-09-10 · in Ask HN: What's the best source code you've read? -
▲ 5
bug: TypeScript is not an ECMAScript superset post-ES2015story by merrywhether · 2022-09-01 · 2 comments
-
…just be a semantic checker on top of JS and nothing more. This has been mentioned more than once: https://github.com/microsoft/TypeScript/issues/9202#issuecom... https://github.com/microsoft/TypeScript/issues/10386#issueco...…
comment by maxgraey · 2022-08-25 · in From a WebAssembly Perspective -
Oracle Types did just that (although it was an April Fools joke), it was quite fun to play with. https://github.com/microsoft/TypeScript/pull/43480
comment by webstrand · 2022-08-25 · in Can Types Replace Validation? -
…> A typescript specification What does this mean? We have a pretty clear typescript spec[1]. [1] https://github.com/microsoft/TypeScript/blob/main/doc/spec-A...
comment by dvt · 2022-08-23 · in TypeScript is terrible for library developers -
…by using project references, but not going to downplay that it's an annoying refactor to do ( https://github.com/microsoft/TypeScript-Handbook/blob/master... ) - All of the problems with trpc are inherent of any ts thing that is heavilily…
comment by alexdotjs · 2022-08-15 · in Blitz.js – Fullstack Toolkit for Next.js -
…that is in scope for Javascript itself until the syntax has formally reached a stable state (see: https://github.com/Microsoft/TypeScript/issues/2103#issuecom... ) - so we're far from having a pure operator for this. But `pipe((n: number)…
comment by btown · 2022-08-07 · in A generically typed pipe function in TypeScript -
…checking. Replacing it with the individual packages almost completely eliminated that overhead. [0] https://github.com/microsoft/TypeScript/wiki/Performance#per... [1] https://user-images.githubusercontent.com/2109932/176479729-...
comment by janpot · 2022-08-01 · in What's TypeScript compiling? Use a treemap to find out -
¯\_(ツ)_/¯ used to build Typescript: https://github.com/microsoft/TypeScript/blob/main/Gulpfile.j...
comment by jitl · 2022-07-31 · in The Node ecosystem still has tooling problems -
…giving types a runtime footprint is on the official list of non-goals for the TypeScript project: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by brundolf · 2022-07-28 · in HypeScript: Simplified TypeScript type system in TypeScript's own type system -
▲ 12
Show HN: TypeScript Editor that generates structured forms from TypeScript typesstory by fwouts · 2022-07-27 · 9 comments
-
TS type system is Turing complete. https://github.com/microsoft/TypeScript/issues/14833
comment by int_19h · 2022-07-13 · in Tell HN: We are trying to get tail calls into the WebAssembly standard -
…- which had equally different, but equally frustrating problems. The ecosystem is a disaster. [1] https://github.com/microsoft/TypeScript/issues/40878
comment by josephg · 2022-07-03 · in Reimagining front-end web development with htmx and hyperscript -
arcanis has a PR to patch up the issue that's sat for a year plus now. https://github.com/microsoft/TypeScript/issues/43632 > In addition, if you want to have your app load as smaller chunks rather than a single large bundle, you need to…
comment by kitten_mittens_ · 2022-07-02 · in The new wave of React state management -
…need to be careful to ensure that things work even all the backing reducers aren't yet loaded. 1. https://github.com/microsoft/TypeScript/issues/32523
comment by etimberg · 2022-07-02 · in The new wave of React state management -
…experiment works out and that it gains traction, because it's a massive value add to TS IMO. [0] https://github.com/microsoft/TypeScript/issues/47658
comment by davidatbu · 2022-06-27 · in What's New in Python 3.11? -
…and then decided to publish it publicly. Here is the thread that describes the problem further: https://github.com/microsoft/TypeScript/issues/13618 I hope it can be helpful for someone. I also would like to hear if my approach has been…
comment by ozanyurtsever · 2022-06-23 · in Simple custom hook for React to get the type of the nested child -
…deepkit.io/blog/introducing-deepkit-framework and in very detail in the TypeScript Bytecode proposal: https://github.com/microsoft/TypeScript/issues/47658 . Soon in a new doc/ebook it is explained in great detail how it works and the API…
comment by marcjschmidt · 2022-06-08 · in Deepkit – High-Performance TypeScript Framework -
…blog was published[0]. I do thank you for pointing that out though, as it's totally relevant. [0] https://github.com/microsoft/TypeScript/pull/33294
comment by davidatbu · 2022-05-21 · in Migrating millions of lines of code to TypeScript -
…it (always/sometimes?) assumes function calls won't affect the results of type narrowing tests: https://github.com/microsoft/TypeScript/issues/9998
comment by peterkelly · 2022-05-14 · in Java record pattern matching in JDK 19