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/

Step 5 Preview: StepFun's flagship model for agentic work

https://huggingface.co/stepfun-ai/Step-5-Preview
1•Philpax•26s ago•0 comments

FBI disrupts North Korean 'laptop farm' used to infiltrate US companies

https://www.nextgov.com/cybersecurity/2026/10/fbi-disrupts-north-korean-laptop-farm-used-infiltra...
1•WaitWaitWha•43s ago•0 comments

Is this the best inference for agents?

https://runinfra.ai
2•OsamaJaber•44s ago•0 comments

The Grid Died of Too Much Voltage

https://omnilenscodex.substack.com/p/the-grid-died-of-too-much-voltage
1•brandonshinnamo•1m ago•0 comments

DeepSeek Outage

https://status.deepseek.com/incidents/7116348214287
1•ksymph•4m ago•0 comments

Show HN: Bokal – Open-source cookie editor without the "tabs" permission

https://github.com/yuvibabbar-dev/bokal
1•bolalapp•6m ago•0 comments

2026.3 release in November, Air will ship as part of JetBrains IDEs

https://blog.jetbrains.com/ai/2026/10/air-in-ides-eap/
1•Sn0wCoder•7m ago•1 comments

Local AI Benchmarking, Minisforum MS-S1

https://www.meauxsoft.com/News/AI_Benchmark.html
1•dyslexicthumbs•8m ago•1 comments

SK Hynix conditions new US factory on more US chip equipment exports to China

https://www.reuters.com/world/asia-pacific/sk-hynix-conditions-new-us-factory-more-us-chip-equipm...
2•mfiguiere•8m ago•0 comments

The Verifiability Gap in Quantized LLM Supply Chains

https://arxiv.org/abs/2610.19498
1•msgchainhq•11m ago•0 comments

Nvidia CEO Says He Would Cut Off Buyers Who Build Unsafe AI

https://www.bloomberg.com/news/articles/2026-10-14/nvidia-ceo-says-he-would-cut-off-customers-who...
1•mfiguiere•13m ago•0 comments

Symmetries in Boolean Scan

https://ap29600.github.io/boolean_scans.html
2•g0xA52A2A•17m ago•0 comments

Show HN: Visual Scripting for Golang

https://symphony.q3k.app
1•jaitaiwan•17m ago•0 comments

The Double Headed Stack Allocator

https://blog.demofox.org/2026/10/03/the-double-headed-stack-allocator/
5•g0xA52A2A•18m ago•0 comments

Show HN: TowerPanic – a family party game on a small FastAPI realtime engine

https://towerpanic.com/
2•ms209495•22m ago•1 comments

Performance Goals That Survive the Roadmap

https://wakamoleguy.com/p/performance-goals-2026
1•wakamoleguy•25m ago•0 comments

Kalshi CEO says state-led oversight of US prediction markets would push them out

https://www.coindesk.com/policy/2026/10/14/kalshi-ceo-says-state-led-oversight-of-u-s-prediction-...
1•WaitWaitWha•25m ago•0 comments

Bipartisan coalition of states sues OpenAI over user safety

https://www.politico.com/news/2026/10/14/openai-user-safety-lawsuits-01119138
2•reasonableklout•26m ago•0 comments

State attorneys general seize on AI as Washington stalls

https://www.politico.com/news/2026/10/09/attorneys-general-ai-regulation-01112328
2•reasonableklout•26m ago•0 comments

DOJ announces charges in first nationwide tax fraud enforcement operation [video]

https://www.youtube.com/watch?v=s4sAQPXj0MU
2•Bender•28m ago•0 comments

Ask HN: How do you find good developer tools quickly?

1•ritualdevin•28m ago•0 comments

Show HN: Give (low vRAM) local sLLMs codebase-wide context with SQLite (attempt)

https://github.com/govindgcoder/arcKode
2•iamgovindg•28m ago•0 comments

US arrests Saudi employee of OpenAI for allegedly bugging its offices

https://www.ft.com/content/2c3b583a-3ddc-4920-a350-9698c119435c
1•Alien1Being•29m ago•0 comments

Saudi National Arrested for Installing Surreptitious Recording Device at OpenAI

https://www.justice.gov/opa/pr/saudi-national-arrested-installing-surreptitious-audio-recording-d...
1•Alien1Being•29m ago•1 comments

16-bit fully functional DIY magnetic core memory

https://www.youtube.com/watch?v=OJ1WYyO2jdY
1•oliculipolicula•33m ago•0 comments

For Walmart, Replacing Humans with Robots Is a Multibillion-Dollar Struggle

https://www.wsj.com/business/logistics/walmart-automation-robots-warehouses-65f016b2
1•gmays•38m ago•0 comments

Lgit: Source Control for the AI Era

https://nicobrenner.github.io/lossy-git/
1•nico•42m ago•0 comments

Show HN: I'll Call You Later, an interactive 3D browser short film

https://film.jashtechno.com
2•Jashwanth_13•43m ago•0 comments

Linux kernel devs drop obligatory confession of AI tool usage

https://www.theregister.com/ai-and-ml/2026/10/14/linux-kernel-devs-drop-obligatory-confession-of-...
2•ernsheong•43m ago•0 comments

Thinking Machines Ships Dimuon Optimizer

https://tinker-docs.thinkingmachines.ai/tinker/optimizers/
1•boldi•47m ago•0 comments