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

Missing documentation in VS Code #22209

Open
Nomad-Soul opened this issue Apr 19, 2024 · 7 comments
Open

Missing documentation in VS Code #22209

Nomad-Soul opened this issue Apr 19, 2024 · 7 comments
Assignees

Comments

@Nomad-Soul
Copy link

Operating System

Windows 11

Programming Languages

JavaScript

CCXT Version

4.3.1

Description

In a NodeJS app, I have installed ccxt with npm i ccxt, and imported ccxt into a script with import ccxt, { Exchange } from 'ccxt';, however while intellisense provides me with a list of types and methods, it does not provide any documentation as to what each argument represents. But I see that the source has documentation showing. There seems to be also no @types/ccxt package like there is with other packages

This is what I see when I type "." on a ccxt exhange object.

image

I haven't seen any other additional steps to follow to get the documentation working in the manual, and all the other packages I am using do have the documentation showing up correctly.

Thanks for any help.

Code

  

@carlosmiei
Copy link
Collaborator

Hello @Nomad-Soul, thanks for reporting it, we will take a look, in the meantime you can access our docs here: https://docs.ccxt.com/#/

@ttodua
Copy link
Member

ttodua commented Apr 20, 2024

@Nomad-Soul just for completeness, could you share reproducible tsconfig.json (if you use ) ?

@ttodua
Copy link
Member

ttodua commented Apr 20, 2024

I get this:
img
as visible, it shows symbols and params

@ttodua
Copy link
Member

ttodua commented Apr 20, 2024

@carlosmiei maybe you can re-assign this to SamGermain, because it would be jsdoc related

@ttodua
Copy link
Member

ttodua commented Apr 20, 2024

We might need https://github.com/TypeStrong/typedoc

@Nomad-Soul
Copy link
Author

I get this: img as visible, it shows symbols and params

That's what I see too, but I meant that there is no documentation for what the parameters do or need.
The same information that is available on docs.ccxt.com:
image

Some methods seem to have jsdoc tags in the source code, but these are not visible through intellisense. Should those tags appear before the function signature? But indeed many of the main methods don't have any documentation.

image

@Nomad-Soul
Copy link
Author

This is my jsconfig.json:

{
  "compilerOptions": {
    "module": "NodeNext",
    "target": "ES6",
    "checkJs": true,
    "moduleResolution": "nodenext",
    "lib": ["ES2022", "DOM"],
    "allowJs": true
  },
}

@ttodua ttodua assigned samgermain and carlosmiei and unassigned ttodua Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants