Giter VIP home page Giter VIP logo

Comments (9)

Ishmam156 avatar Ishmam156 commented on August 15, 2024 1

I would like to take this on!

from diff.

aayushmau5 avatar aayushmau5 commented on August 15, 2024 1

Awesome.

@Ishmam156 Assigning to you.

Also, one more thing. There might be some difficulties getting the Typescript types into jsdoc, be sure to let us know if you face any problem :)

from diff.

Ishmam156 avatar Ishmam156 commented on August 15, 2024 1

Thank you! Will definitely do reach out if I struggle with it - will try to provide an overall response by this weekend :)

from diff.

ron-debajyoti avatar ron-debajyoti commented on August 15, 2024 1

@Ishmam156 are you still trying to solve this? If not I would like to take a shot at it as well, if that's fine with you @aayushmau5

from diff.

aayushmau5 avatar aayushmau5 commented on August 15, 2024 1

@ron-debajyoti sure, go ahead. Though I did try to fix this issue, but I did not succeed, and to be honest, I don't think this can be done without adding more configuration and including additional JSDoc comments.
But feel free to give it a try, and see what you can come up with. Otherwise, I will close this issue.

from diff.

ron-debajyoti avatar ron-debajyoti commented on August 15, 2024 1

But feel free to give it a try, and see what you can come up with. Otherwise, I will close this issue.

Give me 2 days nad I will update the status by then @aayushmau5

from diff.

ron-debajyoti avatar ron-debajyoti commented on August 15, 2024 1

Hey @aayushmau5 ,
I was looking into this and idk maybe this might be leading somewhere and thought to give you an update.

I think one root cause for this problem is that the compiled js obtained after build/tsc can't resolve types. You can try it out yourself by first running the build and then checking out any jsdoc comments in lib/asyncapidiff.js, for example, and they point to unresolved/any.

To solve this I changed the syntax of jsdoc comments. Taking the above example, I tried changing @returns {Array<DiffOutputItem>} to @returns {Array<import('./types').DiffOutputItem>} in src/asyncapidiff.ts. This solves the above problem, but then jsdoc2md got issues parsing this tag.

I'm still gonna try looking into it. Let me know your views on this.

from diff.

Ishmam156 avatar Ishmam156 commented on August 15, 2024

@ron-debajyoti Thank you so much for taking this up! I honestly tried following the current instructions of JSDoc but just couldn't get this to work - ofcourse might have missed something so good luck to you! :)

from diff.

asyncapi-bot avatar asyncapi-bot commented on August 15, 2024

🎉 This issue has been resolved in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from diff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.