Skip to content

Conversation

@keithamus
Copy link
Contributor

This PR is a small type cleanup that @khiga8 and I did, which simplifies the types we have in the codebase by using Partial<>. It also renames the confusingly named ContainerConfig to Options. We've also upgraded TypeScript while working on this.

This is a small change, there's no real need to release this as it is functionally identical, just a small cleanup.

keithamus and others added 3 commits November 1, 2021 09:02
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
`ConfigOptions` was the same type as `ContainerConfig` but with all
properties optional. TypeScript's `Partial<>` helper does this for us,
simplifying things.

Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
This is a much easier name to grok than ContainerConfig, which implies
options are bound to each container (which is only incidentally true)!

Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
@keithamus keithamus requested a review from a team as a code owner November 1, 2021 09:59
Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial<Type> looks to be very useful for option objects like this 👀

@keithamus keithamus merged commit b39b74a into main Nov 1, 2021
@keithamus keithamus deleted the type-cleanup branch November 1, 2021 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants