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/

Nix and Lix local root-privilege-escalation vulnerabilities

https://lwn.net/Articles/1100247/
1•debo_•2m ago•0 comments

Investing in Short AI Timelines

https://cambrianmanagement.ai/
1•lukaspetersson•3m ago•0 comments

Climate change driving child marriages and teen pregnancies

https://www.rfi.fr/en/environment/20261005-climate-change-driving-child-marriages-teen-pregnancie...
1•bilsbie•3m ago•0 comments

The lowest level of programming isn't assembly or machine code, it's microcode

https://www.reddit.com/user/SufianDira/comments/1wujz80/the_lowest_level_of_programming_isnt_asse...
1•SufianDira•6m ago•0 comments

OpenAI engineer accused of planting listening device inside company's office

https://www.cbc.ca/news/world/open-ai-listening-device-fbi-9.7379357
2•uladzislau•7m ago•0 comments

Investigating unintended model actions in our evaluations and internal use

https://www.anthropic.com/research/investigating-unintended-model-actions
1•gmays•11m ago•0 comments

The Planner's Pledge

https://plannerspledge.org/
1•thomasjb•12m ago•0 comments

Musk now working on the "Distributed Inference Cloud"

https://twitter.com/SawyerMerritt/status/2110118022988058637
2•bigwheels•13m ago•1 comments

TV's Kill Voice Agents

https://twitter.com/_josh_meyer_/status/2110043334182043658
1•jrm-veris•14m ago•0 comments

AlphaNIST

https://alpha-nist.github.io/
1•jasonjmcghee•16m ago•0 comments

Physical Intelligence API Beta: Frontier Models for Every Robot

https://www.pi.website/blog/api-beta
1•modeless•18m ago•0 comments

Show HN: Florida HOAs are stealing homes

https://hoaspy.com/hoa/fl/south-florida-hoa-statistics.html
3•lovewins•19m ago•0 comments

Nexus-Q: un motor open source de Rust para PQC

https://nexus-q.link/
2•ManuelAxiom•19m ago•0 comments

Digital Money, Cash, Silver, and Gold as of 2015

https://www.grandpappy.org/edigital.htm
2•Eaglo•20m ago•1 comments

Cornell Bans Fraternity Parties

https://www.nytimes.com/2026/10/13/nyregion/cornell-sexual-assault-fraternity-party-ban.html
2•paaloeye•21m ago•1 comments

Show HN: UpDown – free multiplayer Markdown documents

https://updown.laravel.cloud/059a14a0-9113-4fad-a9db-e8ef2d2e830c
1•simonhamp•24m ago•1 comments

Open source Scion – Anthropic's Git alternative in open source

https://github.com/tinyhumansai/openscion
3•gafoor•27m ago•0 comments

Chained Exploitation of Ivanti Connect Secure Zero-Days

https://www.volexity.com/blog/2026/10/13/a-series-of-unauthenticated-events-chained-exploitation-...
1•wondersky•31m ago•0 comments

New 'Super Ice' 10 Times Stronger, Bringing It Close to the Strength of Concrete

https://www.sciencealert.com/a-new-super-ice-is-10-times-stronger-bringing-it-close-to-the-streng...
3•andrewl•31m ago•0 comments

To Save on Rent, Some Dutch College Students Are Living in Nursing Homes

https://www.theatlantic.com/business/archive/2015/10/dutch-nursing-home-college-students/408976/
2•jameslk•32m ago•0 comments

Player Piano (Kurt Vonnegut)

https://en.wikipedia.org/wiki/Player_Piano_(novel)
1•_doctor_love•33m ago•1 comments

Data everywhere, but are they fit for purpose?

https://www.science.org/doi/10.1126/science.ael8349
1•andsoitis•34m ago•0 comments

Improving Upon Traditional Music Notation

https://musicnotation.org/
2•bmacho•35m ago•1 comments

New dataset connects OpenStreetMap to Wikimedia data

https://enterprise.wikimedia.com/blog/geospatial-wikidata-dataset/
2•pizzaiolo•35m ago•0 comments

Sid Meier's Alpha Centauri (WASM/WebPort)

https://alpha-centauri.online/
2•S-E-P•37m ago•1 comments

Saudi national charged with planting recording device in OpenAI office

https://www.bbc.co.uk/news/articles/cwg5jq4vlddzo
3•dash2•38m ago•0 comments

Show HN: Railspike, a coding agent prompting system I've been using for 2 years

https://railspike.dev/
2•forgotmypw17•38m ago•0 comments

Anthropic warns models 'months away' from self-replication on smart devices

https://www.theguardian.com/technology/2026/oct/13/anthropic-ai-replicators-warning
3•skor•40m ago•1 comments

Show HN: Keep your eyes in one place while typing

https://claude.ai/artifact/XrdjCJXgerVYbG75qzv3HB
2•willthefirst•42m ago•0 comments

OpenSign – Free, self-hosted DocuSign alternative

https://github.com/Rafail-Vasilakis/opensign
1•deserthawk•43m ago•0 comments