-
Notifications
You must be signed in to change notification settings - Fork 734
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
Refactor index.tsx
(and config.ts
) to pass strict-null checks
#249
Refactor index.tsx
(and config.ts
) to pass strict-null checks
#249
Conversation
🦋 Changeset detectedLatest commit: d218f2e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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 looking good, dropped a couple of notes. If you could bring back the snip
comments I'd be happy to approve and land this and work on it further. thank you!
07f95fd
to
e4855b8
Compare
e4855b8
to
6512193
Compare
6512193
to
e277a4b
Compare
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.
approving with one last note. thanks!
e277a4b
to
3a58042
Compare
This actually slightly changes the processing of the environment configuration. Previously there were corner cases where the configuration might just crash. These are now handled more cleanly with more appropriate warnings. The yargs commands have been refactored slightly to be more consistent. Now each command that can be either in local or remote mode is structured the same way. The `config` is extracted from the args, then there is an `if-then-else` statement that handles the local and remote cases. This ensures that the `account_id` has the correct typings in remote mode as needed.
3a58042
to
d218f2e
Compare
This actually slightly changes the processing of the environment configuration.
Previously there were corner cases where the configuration might just crash.
These are now handled more cleanly with more appropriate warnings.
The yargs commands have been refactored slightly to be more consistent.
Now each command that can be either in local or remote mode is structured the same way.
The
config
is extracted from the args, then there is anif-then-else
statement that handles the local and remote cases.This ensures that the
account_id
has the correct typings in remote mode as needed.