-
Notifications
You must be signed in to change notification settings - Fork 36
Add details about how to use #39
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
base: main
Are you sure you want to change the base?
Conversation
|
This will simply not work if some random package in node_modules uses |
|
|
||
| **Steps** | ||
|
|
||
| 1. Add library as a dependency. | ||
| ```bash | ||
| npm i chrome-types --save-dev | ||
| ``` | ||
| 3. Update compiler options in `tsconfig.json` | ||
|
|
||
| ```patch | ||
| { | ||
| "compilerOptions": { | ||
| ... | ||
| + "types": ["chrome-types"] | ||
| ... | ||
| }, | ||
| } | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice to include either the default node_modules directly, or a note that you need to do that. Would you be ok adding that @tusharmath?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be nice to include either the default node_modules directly, or a note that you need to do that. Would you be ok adding that @tusharmath?
I agree that a note is appropriate.
oliverdunk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! I've left a few bits of feedback.
| ```bash | ||
| npm i chrome-types --save-dev | ||
| ``` | ||
| 3. Update compiler options in `tsconfig.json` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should be two 2 (or 1 if you want to rely on Markdown handling the increment)
| This has only been tested on Linux and macOS. | ||
| Python is used to convert Chromium's internal IDL format to JSON. | ||
|
|
||
| **Steps** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we put this under a new ### As a dependency header? Steps seems a bit weird since the rest of the text above is talking about how to build.
|
|
||
| 1. Add library as a dependency. | ||
| ```bash | ||
| npm i chrome-types --save-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| npm i chrome-types --save-dev | |
| npm install --save-dev chrome-types |
It's useful to use/suggest canonical command forms in documentation
No description provided.