Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API reference with JSDocs #17

Open
4 tasks
MichalLytek opened this issue Jan 28, 2018 · 5 comments
Open
4 tasks

API reference with JSDocs #17

MichalLytek opened this issue Jan 28, 2018 · 5 comments
Assignees
Labels
Documentation 📖 Issues about docs Good First Issue 👋 You can start contributing here Help Wanted 🆘 Extra attention is needed
Milestone

Comments

@MichalLytek
Copy link
Owner

MichalLytek commented Jan 28, 2018

  • create JSDoc for all decorators and public interfaces/functions/etc.
  • create docs section with API Reference (text from JSDoc, samples from item signature)
  • investigate usage of TypeDoc
  • configure website to show API reference
@tradical-allstripes
Copy link

Any update on this? API Reference Documentation has always been key for me, and, as much as I love this project, this may influence our decision about whether to use it.

In the meantime, it would be extremely helpful if you could provide either some links to what you think are the most important definitions, or a strategy to make locating them easier.

@MichalLytek MichalLytek added Good First Issue 👋 You can start contributing here Help Wanted 🆘 Extra attention is needed labels Feb 7, 2021
@MichalLytek
Copy link
Owner Author

The TS definition files are well maintained and acts as an API reference if you forgot about possible decorators options.

TypeGraphQL is more frameworkish so the API reference docs page for e.g. @Resolver decorator could only link to the normal docs page when the resolvers, classes, types, etc. are described.

It's not a library where you can simply describe each function input and output, so there's less demand for such API reference docs page. I have more important tasks and features to do, so it's not on top of my priority list for now.

If anyone from the community want to help and contribute, please feel free to open a PR 😉

@tradical-allstripes
Copy link

Ok, that's understandable. Thank you for the reply!

@MichalLytek
Copy link
Owner Author

If someone is looking for something more user-friendly than jumping through typescript definitions in IDE, you can try to use a tool called Paka 😉
https://www.paka.dev/npm/type-graphql

@tradical-allstripes
Copy link

ah, this is super cool! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📖 Issues about docs Good First Issue 👋 You can start contributing here Help Wanted 🆘 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants