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/

Access to Gemini Flash and Pro models is now restricted for free users

https://support.google.com/gemini/answer/17004136?hl=en
1•maxloh•2m ago•0 comments

`123456' password used in Danish CPR data breach

https://cphpost.dk/2026-10-10/news/round-up/123456-password-used-in-massive-danish-cpr-data-breach/
1•baal80spam•3m ago•0 comments

GTA V Running on iOS

https://github.com/c22dev/muguet
2•Alifatisk•7m ago•1 comments

JetBrains Advertising Kotlin in London Tube/Subway

https://www.reddit.com/r/Kotlin/comments/1x28h3u/spotted_in_london_tube_northern_line_yesterday/
1•theanonymousone•8m ago•0 comments

DOJ, FBI Seize Chinese State-Sponsored Hackers' Scanning and Phishing Tools

https://www.justice.gov/opa/pr/justice-department-and-fbi-seize-vulnerability-scanning-and-spear-...
2•mgaldys4•11m ago•0 comments

What's It Like to Be a Dolphin?

https://www.skeptic.com/disabled_js/
1•jruohonen•13m ago•0 comments

Show HN: Offline voice assistant, NO dedicated GPU, less 15Gb RAM

https://grigio.org/offline-voice-assistant-no-dedicated-gpu-less-15gb-ram/
1•grigio•14m ago•0 comments

AI Data Centers Not Paying Their Costs, Will Keep Using NDAs and Seek Tax Breaks

https://www.warren.senate.gov/newsroom/press-releases/ai-data-center-companies-reveal-to-warren-b...
2•DeepLogin•25m ago•0 comments

Code Security Review Tool

https://reviewcode.org/
3•cphr•27m ago•0 comments

JetBrains Air

https://www.jetbrains.com/air/
2•ivanjermakov•32m ago•0 comments

Anthropic bans users from needless abusive or cruel behavior towards Claude

https://www.anthropic.com/news/2026-usage-policy-update
2•lopatin•35m ago•0 comments

Lumentum sold out of AI server parts till 2029

https://www.japantimes.co.jp/business/2026/10/09/companies/lumentum-ai-server-sold-out/
3•giuliomagnifico•37m ago•0 comments

WARC (File Format)

https://en.wikipedia.org/wiki/WARC_(file_format)
2•tosh•37m ago•0 comments

Jeyzma is TypeSafeAI minus $850M plus Go/TinyGo/llama.cpp in the browser

https://jeyzma.com/
2•deadprogram•39m ago•0 comments

Haydn-01 – music recognition and text model

https://twitter.com/generativexp/status/2108400091954286910
1•quicheshore2003•41m ago•0 comments

Anonymous Surveys with Authentication Using RSA Blind Signatures

https://blogs.lupyd.com/blog/introducing-noon-anonymous-form-submissions/
2•tenesripranav•43m ago•0 comments

Apple Watch Connector for Android, Linux, Windows

https://github.com/LordixDemon/apple_watch_connector
1•avipars•47m ago•0 comments

Interactive Museum of Windows Media Player Skins

https://wmp-skin-museum.mitpit.com/
1•MitPitt•48m ago•0 comments

WebSocket Servers in JavaScript: Node.js, Bun and Deno in 2026

https://lemire.me/blog/2026/10/10/websocket-servers-in-javascript-node-js-bun-and-deno-in-2026/
3•smilelamp•57m ago•1 comments

Show HN: Save photo, video, and audio from websites in one step

https://menura.download
7•haneboxx•1h ago•0 comments

Ctrl + Shift + A to search tabs on Firefox

https://gist.github.com/radiantly/f18ea1fd06d8dd328b6ae64b6fa7cb36
3•calmingsolitude•1h ago•0 comments

Division by zero in common meadows (nicer fields)

https://arxiv.org/abs/1406.6878
5•fanf2•1h ago•0 comments

GATE – A Godot Engine GDScript Superset

https://github.com/Blade67/GATE
3•liminal-dev•1h ago•0 comments

Senate Investigation Challenges Big Tech's Case for AI Data Centers

https://time.com/article/2026/10/08/senate-investigation-ai-data-centers/
4•snikolaev•1h ago•0 comments

OpenAI's New ChatGPT Watermark Breaks If You Edit One Word in Four

https://rews.cc/a/openai-s-new-chatgpt-watermark-breaks-if-you-edit-one-word-i-37eb4a
5•ojosilva•1h ago•1 comments

I earned $100 from premium subscription of this extension in 30 days

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
5•digitaShida•1h ago•1 comments

Show HN: Open Components – UI Components standard for people, devs and AI agents

https://opencomponents.dev/
3•alexgrozav•1h ago•1 comments

Show HN: Chrome Relay – background tabs in your real Chrome for coding agents

https://github.com/aindeev/agent-chrome-relay
5•alexeyindeev•1h ago•0 comments

Helium Terminal – A tiny macOS terminal for coding agents, built on libghostty

https://helium-terminal.bensarmiento.com/
6•yowmamasita•1h ago•1 comments

Anthropic can't reliably control its AI agents, cuts internet access

https://techcrunch.com/2026/10/09/anthropic-cant-reliably-control-its-ai-agents-its-cutting-off-i...
6•sbulaev•1h ago•3 comments