Hacker News new | ask | show | jobs
by beeman 692 days ago
Is there any benefit over using this versus an industry standard like OpenAPI/Swagger?

Does it add any new features?

1 comments

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.
Got it, that makes sense.

Maybe good to describe that use case in the README.

Yeah I think that’s a good idea as a few people have thought the same thing. Thanks for the feedback!