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
-
You can probably do this with the typescript compiler API https://github.com/microsoft/TypeScript/wiki/Using-the-Compi...
comment by gsuuon · 2023-08-11 · in TypeScript Without Transpilation (2021) -
Programmatically yes: https://github.com/microsoft/TypeScript/blob/28cd1fbd13b8d09... You just need to call this from somewhere like ts-morph.
comment by alexlur · 2023-08-11 · in TypeScript Without Transpilation (2021) -
▲ 2
Why TypeScript Doesnt Have Typed nor Checked Exceptionsstory by nonethewiser · 2023-08-09 · 1 comment
-
…promotions but apparently it was a thing for the TypeScript project to get funding at Microsoft: https://github.com/microsoft/TypeScript/issues/14116#issueco...
comment by azemetre · 2023-08-08 · in Svelte 5 is going to be radical -
…* Interface supports declaration merging, Alias does not. While not an RFP, this may be helpful: https://github.com/microsoft/TypeScript/wiki/Performance#pre...
comment by frankacter · 2023-08-02 · in Ask HN: Does any one know why TypeScript has both Interfaces and Type aliases? -
▲ 1
Throws keyword basically never coming to TypeScript (story by _samjarman · 2023-07-09 · 1 comment
-
https://github.com/microsoft/TypeScript/issues/54163#issueco... >Hundreds of Github comments have been rehashed on this issue over and over again. Import paths are not modified during compilation, and we're not going to modify them during…
comment by tinideiznaimnou · 2023-07-08 · in TypeScript please give us reflection/runtime types -
…they don't support, for example, plain regexes - there is a HUGE discussion on this topic here, https://github.com/microsoft/TypeScript/issues/6579 .
comment by hn_throwaway_99 · 2023-07-07 · in TypeScript please give us reflection/runtime types -
…a bit hairy though, which is why the unofficial typescript-language-server npm package wraps it. https://github.com/microsoft/TypeScript/wiki/Standalone-Serv...
comment by benatkin · 2023-07-07 · in TypeScript please give us reflection/runtime types -
…link to "The 7 year old Github issue" which describes the problem in they way you're asking for. https://github.com/microsoft/TypeScript/issues/3628
comment by spatialaustin · 2023-07-07 · in TypeScript please give us reflection/runtime types -
…runtime functionality or libraries. Instead, use TypeScript to describe existing libraries. [0] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by lolinder · 2023-07-07 · in TypeScript please give us reflection/runtime types -
…behavior of all JavaScript code. > 8. Use a consistent, fully erasable, structural type system. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi...
comment by sk0g · 2023-07-05 · in Functions and algorithms implemented purely with TypeScript's type system -
▲ 3
TypeScripts Type System Is Turing Completestory by behnamoh · 2023-07-03 · 0 comments
-
▲ 1
Rename TypeScript to LintScriptstory by love2read · 2023-06-30 · 0 comments
-
…as `Object.keys`. And that seems unlikely to change[1]. [0]: https://tsplay.dev/N7zKRw [1]: https://github.com/microsoft/TypeScript/issues/38520
comment by matt_kantor · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys? -
There's an old issue open in TypeScript for _exact_ types, which might help in some cases here: https://github.com/microsoft/TypeScript/issues/12936 But there are some problems with that approach, mainly that exact types would be somewhat…
comment by spankalee · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys? -
There's a big discussion about this: https://github.com/microsoft/TypeScript/issues/1897 . The benefit seems extremely limited to me. Valid JSON is obviously a subset of `any`, but I can't think of a situation where that particular…
comment by kristiandupont · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys? -
Runtime type information is against the goals of TypeScript. https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... Edit: Non-goals: … 5. Add or rely on run-time type information in programs, or emit different code based on the…
comment by __ryan__ · 2023-06-24 · in Why doesn't TypeScript properly type Object.keys? -
I agree that it would be nice if it flagged this kind of thing. But TypeScript disagrees. https://github.com/microsoft/TypeScript/wiki/FAQ#why-are-fun...
comment by jjnoakes · 2023-06-23 · in Why [“1”,“2”,“3”].map(parseInt) yields [1, NaN, NaN] in JavaScript (2011) -
…output. .js file extensions have always worked in Typescript (going back to 0.x days). It was not. https://github.com/microsoft/TypeScript/issues/16577 There was proposal and PR, but It was rejected. When writing ESM in typescript, you…
comment by Chyzwar · 2023-06-20 · in ES Modules Are Terrible -
Unless you were using the (yet unimplemented) exact types in TS. https://github.com/Microsoft/TypeScript/issues/12936
comment by littlecranky67 · 2023-06-19 · in TypeScript 5.2's new keyword: 'Using' -
…about that type checker. The Typescript type checker is (or at least was) already Turing-complete ( https://github.com/microsoft/TypeScript/issues/14833 ) without fully supporting dependent types.
comment by Smaug123 · 2023-06-09 · in Free-types: Higher kinded types in TypeScript -
…https://blog.reverberate.org/2013/08/parsing-c-is-literally-... ), as is TypeScript's type system ( https://github.com/microsoft/TypeScript/issues/14833 ).
comment by armchairhacker · 2023-06-05 · in DreamBerd is a perfect programming language -
…[jest ESM support] https://github.com/jestjs/jest/issues/9430 [typescript extensions] https://github.com/microsoft/TypeScript/issues/16577 [typescript exports] https://github.com/microsoft/TypeScript/issues/33079 [node.js issues]…
comment by Chyzwar · 2023-05-31 · in ES modules: A cartoon deep-dive (2018) -
Maybe comment or check out https://github.com/microsoft/TypeScript/issues/54276 that proposes transformer plugins?
comment by re-thc · 2023-05-19 · in Ts-morph – programmatically manipulate TypeScript source code with TypeScript -
…[2] https://twitter.com/buildsghost/status/1301976526603206657 [3] https://github.com/microsoft/TypeScript/issues/14833
comment by Vaguely2178 · 2023-05-15 · in How to sell Elixir again -
…https://stackoverflow.com/questions/64495793/typescript-name... https://github.com/microsoft/TypeScript/issues/30994#issueco... (link to a specific comment) > Namespaces are probably never going away and, simultaneously, y
comment by nosianu · 2023-05-13 · in TypeScript team released an explorer for performance tuning -
How do you type class properties? https://github.com/microsoft/TypeScript/issues/26811
comment by brainzap · 2023-05-11 · in TS to JSDoc Conversion -
…> The spec is now an "archived" artifact and we won't be tracking defects against it anymore. - https://github.com/Microsoft/TypeScript/issues/15711
comment by capableweb · 2023-05-07 · in Ditching TypeScript for JavaScript -
This is an issue open for discussion since 2017 https://github.com/microsoft/TypeScript/issues/13347
comment by sakesun · 2023-04-16 · in Functional Programming with TypeScript's Type System -
…for that has a justification, but in contexts like this, I think it is a WAT-worthy interaction. https://github.com/microsoft/TypeScript/wiki/FAQ#why-are-fun...
comment by jjnoakes · 2023-03-30 · in Wat [video] (2012) -
▲ 29
TypeScript cannot emit valid ES modules due to file extension issue (2020)story by new_user_final · 2023-03-20 · 14 comments
-
▲ 2
TypeScript: Using var in limited contexts to avoid runtime TDZ checksstory by EE84M3i · 2023-03-20 · 0 comments
-
…they're going to start introducing runtime constructs, which is an interesting plot twist [2]. [1] https://github.com/Microsoft/TypeScript/wiki/TypeScript-Desi... [2] https://medium.com/flow-type/clarity-on-flows-direction-and-...
comment by lewisl9029 · 2023-03-16 · in TypeScript 5.0 -
…code but... step by step. This seems like a big step for my personal TypeScript projects. :-D [1]: https://github.com/microsoft/TypeScript/pull/51669#issuecomm...
comment by veidr · 2023-03-16 · in TypeScript 5.0 -
Does Number.isInteger() still not serve as a Type Guard? https://github.com/microsoft/TypeScript/issues/21199#issueco...
comment by benatkin · 2023-03-16 · in TypeScript 5.0 -
From the PR ( https://github.com/microsoft/TypeScript/pull/51669 ): > New compiler options > - allowImportingTsExtensions: Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or…
comment by brundolf · 2023-03-16 · in TypeScript 5.0 -
…"strictest" mode, really). The "who should use this mode" section here I believe is still accurate: https://github.com/microsoft/TypeScript/pull/51669
comment by jakebailey · 2023-03-16 · in TypeScript 5.0 -
There's a full page of API breaks: https://github.com/microsoft/TypeScript/wiki/API-Breaking-Ch... Then, a new error about the deprecations of ancient options to be removed in 5.5: https://github.com/microsoft/TypeScript/issues/51909
comment by jakebailey · 2023-03-16 · in TypeScript 5.0 -
…the type system since template literal types landed, but I found this one particularly amusing. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/microsoft/TypeScript/issues/14833#issueco...
comment by eyelidlessness · 2023-03-12 · in TypeScripting the technical interview -
…more widely known, and which I once heard described as having "accidentally Turing-complete" types: https://github.com/microsoft/TypeScript/issues/14833
comment by cjbprime · 2023-03-12 · in TypeScripting the technical interview -
…you can imagine. This project[1] is one I actually return to frequently for practical ideas. 0: https://github.com/microsoft/TypeScript/issues/14833 1: https://github.com/sindresorhus/type-fest
comment by eyelidlessness · 2023-03-10 · in JavaScript and TypeScript features of the last 3 years -
I just learned that there’s an open issue [0], apparently for introducing a similar feature. [0]: https://github.com/microsoft/TypeScript/issues/43505
comment by Hackbraten · 2023-03-07 · in Parse, don't validate (2019) -
The Boolean one at least is pretty longstanding: https://github.com/microsoft/TypeScript/issues/16655 I imagine there are a lot of edge cases to wade through before mainlining.
comment by lelandfe · 2023-03-03 · in A 'CSS reset' for TypeScript, improving types for common JavaScript API's -
…but it looks it didn't went too far [2] [1]: https://flow.org/en/docs/types/comments/ [2]: https://github.com/microsoft/TypeScript/issues/9694
comment by augusto-moura · 2023-02-05 · in Jsdoc Cheatsheet -
…doable with mapped types in TS, to make it work without a compilation step though is pending on https://github.com/microsoft/TypeScript/issues/32063 Although in practice the mapped types to do this do slow down the typing service non…
comment by meandmycode · 2023-01-31 · in Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees -
…where you have to import a file with the .js extension, despite the actual file being .ts: https://github.com/microsoft/TypeScript/issues/42151 , https://github.com/microsoft/TypeScript/issues/49083 , https://github.com/microsoft/TypeScript…
comment by noahtallen · 2023-01-30 · in Ask HN: Why does every package+module system become a Rube Goldberg machine? -
…specify what you are importing before what you import this from. It can help, and was addressed in https://github.com/microsoft/TypeScript/issues/31658 quite a while ago. Typescript already maps all the exports that are available and what…
comment by jayflux · 2023-01-09 · in Ideas for a JavaScript Stricter Mode -
Counter point - https://github.com/microsoft/TypeScript/blob/main/src/compil... - your task is to just make it a little bit faster. Where do you begin with a 2.65mb source file? It’s easy to miss the point of what the OP is saying here and…
comment by CraigJPerry · 2023-01-03 · in Modules, not microservices