This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: type check & generate defs from jsdoc #3281
feat: type check & generate defs from jsdoc #3281
Changes from 1 commit
4c13ab8
aecf4aa
f35a83e
bb8e833
65fa5da
38e3d1d
7ae81dc
d5a8668
398e7dd
3d9ef4d
c5fd61f
59b3aff
affabd9
7d508ff
c20b6fa
671a50b
73012d0
98fa7b2
6724379
a22eae1
94b3b2c
504ee49
9c297e2
313c214
0f3aee9
f74e95b
993b25e
80df297
f7f6a64
2dd670e
58eaaea
758172a
f90d012
55e9525
e991bcb
ef75e21
e05ff3f
711af52
b06699a
7e10999
02e919f
d26fc1d
5b2fd65
8c77086
a72541b
b4f8289
23a30be
9a15ce9
692b00f
4c8da56
81c08b6
8c7d587
456f34e
44b0328
2dc6d02
a0a43fa
0a69a5d
5069eeb
c35838e
b0786c8
311941c
27679d3
326ab5c
e6f6873
4f75b44
e8943d4
0b86462
7f37144
05291fc
eb81175
3379ae7
849850c
5b2b0d4
0c89bff
173fc1b
88770f9
edb367a
265555a
e6f3541
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Would it be better here to specify the encoding as
utf8
tofs.readFileSync
? Then it will return a string.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 following would work if you'd prefer that:
The reason I did not do it is I was not confident that
initConfig
may not haveencoding
in it.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.
argv.initConfig
is a string so it would need to be: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.
Is this a good thing? If
_httpApi
is undefined the next line will fail.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.
Should it be? Can you PR
prom-client
to add it?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.
Stop should be present, but it should throw.