frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•8mo ago

Comments

bastawhiz•8mo ago
Is this a problem that people actually have?
xeromal•8mo ago
Fun side project man!
primitivesuave•8mo ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•8mo ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•8mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•8mo ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•8mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: Enforcing time-bounded technical debt with Git history

https://github.com/jobin-404/debtbomb
1•jjdev8157•5m ago•0 comments

Skills in the 21st Century

https://twitter.com/levie/status/2010055953157357622
1•ReDeiPirati•5m ago•0 comments

KaraDAV – Lightweight Nextcloud compatible WebDAV server

https://github.com/kd2org/karadav
1•indigodaddy•7m ago•0 comments

GM's new world headquarters: Modernized midcentury designs with artifacts

https://www.cnbc.com/2026/01/11/gm-hq-detroit-artifacts-company-history.html
1•cebert•7m ago•0 comments

Hello everyone, and welcome to Niji 7

https://nijiv7.com
1•BruceWok•8m ago•1 comments

George Gabriel Stokes in love (1857)

https://skullsinthestars.com/2013/06/04/george-gabriel-stokes-in-love-1857/
1•Kotlopou•11m ago•0 comments

Amazon Layoffs – In My Own Words

https://substack.com/inbox/post/177599139
1•turrini•12m ago•0 comments

LLM poetry and the "greatness" question: Experiments by Gwern and Mercor

https://hollisrobbinsanecdotal.substack.com/p/llm-poetry-and-the-greatness-question
4•networked•13m ago•0 comments

Show HN: Machine Learning Interactive Visualizations

https://www.mlmaxima.xyz/
1•bmusuku•13m ago•0 comments

You have 24 hours: log 03–[Claude AI]

https://inabsentia.blog/
1•ghostinshell515•14m ago•0 comments

Tempest Home: finding radio frequency side channels

https://duo.com/blog
1•fanf2•15m ago•0 comments

India proposes forcing smartphone makers to give source code

https://www.reuters.com/world/china/india-proposes-forcing-smartphone-makers-give-source-code-sec...
3•alabhyajindal•17m ago•0 comments

Iran Shuts Down Starlink Internet for First Time

https://www.forbes.com/sites/zakdoffman/2026/01/11/kill-switch-iran-shuts-down-starlink-internet-...
4•neom•19m ago•0 comments

Ask HN: Manus.im (Meta) left me hanging for 7 days – is this normal?

1•ebikebilly•25m ago•0 comments

Show HN: Weekly code audits for vibe coders

https://pyscn.ludo-tech.org/
1•d-yoda•25m ago•1 comments

Recreate Pluribus Intro from Scratch

https://medium.com/@skewcy/recreate-pluribus-intro-from-scratch-8f64c7ff50a3
2•skewcy•31m ago•0 comments

Google: Don't make "bite-sized" content for LLMs

https://arstechnica.com/google/2026/01/google-dont-make-bite-sized-content-for-llms-if-you-care-a...
4•cebert•35m ago•1 comments

NPM-agentskills – Bundle AI agent documentation with NPM packages

https://github.com/onmax/npm-agentskills
1•onmax•38m ago•2 comments

Show HN: A tiny free job application tracker so you stop forgetting follow-ups

https://applytrack.netlify.app/
2•p-stanchev•39m ago•1 comments

A Python Integration of Asset Allocation Based on Modern Portfolio Theory

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5915004
3•7777777phil•39m ago•0 comments

Recommended sources to read up on new tech and thinking

2•wnscooke•41m ago•0 comments

Show HN: UebGuard – Email Protection to Stop Phishing Before Users Click

https://www.uebguard.com/
2•arlindb•42m ago•0 comments

A coder considers the waning days of the craft (2023)

https://www.newyorker.com/magazine/2023/11/20/a-coder-considers-the-waning-days-of-the-craft
1•jsomers•45m ago•0 comments

Designing a Design Contract for AI

https://askcodi.substack.com/p/designing-a-design-contract-for-ai
1•himalayansailor•46m ago•0 comments

Is the Iranian Regime About to Collapse?

https://www.theatlantic.com/international/2026/01/iran-revolution-protests-collapse/685578/
7•mpweiher•51m ago•1 comments

Why Object of Arrays beat interleaved arrays: a JavaScript performance issue

https://www.royalbhati.com/posts/js-array-vs-typedarray
2•howToTestFE•52m ago•0 comments

Tiny Coder – AI coding agent in ~300 LOC writing itself

https://github.com/xrip/tinycode
1•xrip•52m ago•0 comments

Will LLMs Help or Hurt New Programming Languages?

https://blog.flix.dev/blog/will-llms-help-or-hurt-new-programming-languages/
5•appliku•53m ago•0 comments

BasiliskII Macintosh 68k Emulator Ported to ESP32-P4 / M5Stack Tab5

https://github.com/amcchord/M5Tab-Macintosh
2•rcarmo•54m ago•0 comments

Show HN: Meshii – Open-source AI tool to generate 3D meshes for game development

https://github.com/sciences44/meshii
2•sciences44•57m ago•1 comments