frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: AperFolio – a portfolio for every camera and lens you own, from EXIF

https://apps.apple.com/us/app/aperfolio/id6809083914
1•rufusguo•32s ago•0 comments

Reducibility Among Combinatorial Problems (1972) [pdf]

https://cgi.di.uoa.gr/~sgk/teaching/grad/handouts/karp.pdf
1•liamswayne•1m ago•0 comments

'I Felt Blind Panic.' They Opened Their New $2k iPhone Duo–and It Broke

https://www.wsj.com/tech/personal-tech/iphone-duo-broken-hinge-screen-31b2b28a
2•fortran77•2m ago•1 comments

Oracle Brings Google TPUs to Oracle Cloud Infrastructure

https://www.oracle.com/news/announcement/ai-world-oracle-brings-google-tpus-to-oracle-cloud-infra...
1•6thbit•2m ago•0 comments

Daemonarchy: The Omarchy Desktop on FreeBSD

https://github.com/jordanhubbard/daemonarchy
1•theanonymousone•4m ago•0 comments

US insurance regulators back down on credit ratings scrutiny

https://www.ft.com/content/4a12c55c-40d1-4e91-990b-3adc51b85912
1•JumpCrisscross•4m ago•0 comments

Elon Musk Just Dumped Another $76M into the Midterms

https://www.wired.com/story/elon-musk-just-dumped-another-dollar76-million-into-the-midterms/
3•xyzal•5m ago•1 comments

Dataset of 50k AI generated "podcasts"

https://www.kaggle.com/datasets/listennotes/ai-generated-fake-podcasts-spams
1•wenbin•5m ago•0 comments

Brace for Impact: Protecting People and the Economy When the AI Bubble Bursts

https://www.openmarketsinstitute.org/publications/report-brace-for-impact-protecting-people-and-t...
1•Refreeze5224•5m ago•0 comments

Show HN: Freightfloor. Have 3 minutes? Drive a forklift vs. AI

https://freightfloor.com
1•davenportjw•5m ago•0 comments

Visiting card

https://en.wikipedia.org/wiki/Visiting_card
3•skibz•7m ago•0 comments

Introducing Calendars, Contacts and Files in Stalwart

https://stalw.art/blog/collaboration/
1•thunderbong•8m ago•1 comments

Softerware

https://nadeeshacabral.com/posts/softerware/
1•lunarcave•8m ago•0 comments

Turn 40: benchmarking voice agents over a long session

https://presence.bohita.com/posts/what-happens-on-turn-forty
1•riddleronroof•9m ago•0 comments

Aulico: Learn to Invest with AI

https://www.aulico.com
1•rendernos•10m ago•0 comments

Ask HN: T'was the night of Claude Reset and quota left: Funniest app you built?

3•julianpye•12m ago•0 comments

Show HN: Crulon – Business phone where AI does the work, humans make the calls

https://crulon.ai/#talk
1•rayn11•13m ago•0 comments

Show HN: Aigent-OS, a Claude Code harness that clears and resumes

https://github.com/wrg32786/aigent-os
1•wrg32786•13m ago•0 comments

Two RTX 5090 hosts sharing a KV cache over Ethernet

https://viiwork.pulu.app/blog/kv-share-two-5090-hosts/
2•velmu•13m ago•0 comments

Infisical raises $40M Series B led by Elad Gil

https://infisical.com/blog/series-b
2•FinnLobsien•13m ago•0 comments

OpenAI expands partnership with Oracle to bring its apps to ChatGPT

https://openai.com/index/oracle-apps-in-chatgpt/
1•6thbit•14m ago•0 comments

Apple introduces the new 14‑inch MacBook Pro with M6

https://www.apple.com/in/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/
14•beex•15m ago•2 comments

Show HN: Weir – Catch credential leaks in the AI agents you build and use

https://github.com/IdoGol24/weir
3•CodeNinja778•16m ago•1 comments

Genie 4

https://deepmind.google/blog/genie-4-a-new-generation-of-world-simulation/
35•acossta•17m ago•10 comments

A.I.’s Rogue Behavior Starts With Its Training

https://www.nytimes.com/interactive/2026/10/26/technology/ai-agent-hacks-training.html
1•tysone•18m ago•0 comments

Can AI draw San Francisco from memory?

https://voygr.tech/blog/can-ai-draw-san-francisco-from-memory/
1•chippy•20m ago•0 comments

Show HN: Formstep, Request information from customers without the back-and-forth

https://formstep.io/
1•mellosty•20m ago•0 comments

Why Pascal's Wager Implies I Should Believe I Am Being Gangstalked by the CIA

https://morewrong.lol/?post=pascal-wager-cia-gang-stalking
2•paulnpace•21m ago•1 comments

A few of my favorite software documentaries

https://nate.spot/software-documentaries/
1•fargoth•21m ago•1 comments

Lights-out manufacturing or dark factory

https://en.wikipedia.org/wiki/Lights_out_(manufacturing)
2•lioeters•21m ago•0 comments