-
Notifications
You must be signed in to change notification settings - Fork 195
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
Add void type #242
Add void type #242
Conversation
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.
This is great. Thank you for the PR. Just one comment.
], | ||
"additionalProperties": false | ||
}, | ||
"MyGeneric<number>": { |
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.
Why is this number, not void?
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.
Add a test case that checks the pair of ts and schema file. There is already a file that runs test cases. We don’t pick up just the files.
Added Also I noticed that coverage isn't getting picked up:
I wonder if that would that have caught it? |
The coverage would maybe have caught it. I should see what's going wrong. Thank you for adding the test. |
Hmm, the coverage upload works on my branches: https://app.circleci.com/jobs/github/vega/ts-json-schema-generator/192. |
Ahh, @codecov doesn't work well with circleci. They don't allow coverage unless you run on the same fork. |
No doubt I can't access the token or something. No worries!
I haven't had much time to keep working on the actual problem (lsp
schema)... No doubt I'll uncover more things when I do. A thing they do a
lot is define an enum, and then a separate type that shares there same
values. Kind of maddening, from a schema point of view, but I guess it
keeps people honest.
…On Wed, Oct 23, 2019, 18:51 Dominik Moritz ***@***.***> wrote:
Hmm, the coverage upload works on my branches:
https://app.circleci.com/jobs/github/vega/ts-json-schema-generator/192.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#242?email_source=notifications&email_token=AAALCRB2YMHDPMS2K4HBS3LQQDIOLA5CNFSM4JCSCBT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECDD5LI#issuecomment-545668781>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALCRBKGA4GUNQRXNKENODQQDIOLANCNFSM4JCSCBTQ>
.
|
Thank you! |
Thanks again for the great tool! Over on The Quest for LSP, I finally made some progress, and am now generating 227 (minus 51 i made up, and one that wasn't exported) types, including |
Actually, that worked out much better than I could have hoped, and is basically done: thanks for making it possible! https://gist.github.com/bollwyvl/7a128978b8ae89ab02bbd5b84d07a4b7 There's a nagging issue, no doubt with my kludgy generated typescript around a |
Thanks for the great tool!
This adds a
VoidType(|Formatter|Parser)
.Some background:
I'm looking into microsoft/language-server-protocol#67, basically reconciling the reference implementation types with the (separately maintained) specification. The good news: tsjsg handles the
protocol.ts
without complaint. Hooray 🎉!But... I've been running into a fair number of things that aren't getting pulled in to fully describe/validate what's in the markdown spec, and am having to expand my
--paths
, thereby encountering new issues. I assume it's failing after the first problem, so this is no doubt going to be one of those epic yak shaves.The very first one is an interesting use of
void
:which yields
This fixes the void problem (hooray)...
Yak shave n+1:
...revealing the next thing:
Onward!