-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix a regression issue that caused the re-login dialog reason and proxy errors to not be displayed #38664
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
Fix a regression issue that caused the re-login dialog reason and proxy errors to not be displayed #38664
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I believe this affects all types of connections, doesn't it? Maybe something like:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Much better, thanks :) |
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 wish protobuf-ts had some kind of a switch to tell it that strict null checks are off. AFAIK the only reason we need these helper methods is because the generated type looks like this:
I know that there are some issues with
strictNullChecksturned off and boolean fields (microsoft/TypeScript#10564). But I don't get why something like this doesn't narrow the type:Since
request.reason.oneofKindis"gatewayCertExpired", it cannot be undefined.The moment I remove the
{oneofKind: undefined}variant, type narrowing seems to work.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.
Yeah, I was wondering why the type narrowing doesn't work, I forgot about that
undefinedthing :/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.
Same, it's the only downside to the library