News for hackers. Stuff that matters.
Re:Show HN: API Typegen – Generate TypeScript types from API... by gladwindos on Saturday July 27, 2024 @07:08AM (#41085762)
Tbh, there is no benefit of using this package if the API you are working with has an openapi spec, as there are other great libraries to help you generate accurate types such as https://github.com/openapi-ts/openapi-typescript. But I made this package to use when working with external apis that don't have an available spec.
Re:Show HN: API Typegen – Generate TypeScript types from API... by beeman on Saturday July 27, 2024 @09:16AM (#41086389)
Got it, that makes sense.

Maybe good to describe that use case in the README.

Re:Show HN: API Typegen – Generate TypeScript types from API... by gladwindos on Saturday July 27, 2024 @10:04AM (#41086676)
Yeah I think that’s a good idea as a few people have thought the same thing. Thanks for the feedback!