Skip to content
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

change BaseRegistry to only have one type parameter #1474

Merged
merged 4 commits into from
Nov 23, 2020

Conversation

Nokel81
Copy link
Collaborator

@Nokel81 Nokel81 commented Nov 20, 2020

Signed-off-by: Sebastian Malton sebastian@malton.name

I noticed recently that there was an as I[] call in the BaseRegistry's add method, which seemed odd to me. After some more investigation, it seemed to have been added as a way for the registry to capture its child's type requirements for the shadowing of the add method.

Therefore I propose this simplification. Since child types can just use whatever signature they want. I personally don't see a downside to having this as the system.

Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 added the area/extension Something to related to the extension api label Nov 20, 2020
@Nokel81 Nokel81 requested review from jakolehm, ixrock and a team November 20, 2020 18:27
@Nokel81 Nokel81 self-assigned this Nov 20, 2020
Signed-off-by: Sebastian Malton <sebastian@malton.name>
src/extensions/registries/kube-object-detail-registry.ts Outdated Show resolved Hide resolved
src/extensions/registries/kube-object-menu-registry.ts Outdated Show resolved Hide resolved
src/extensions/registries/page-menu-registry.ts Outdated Show resolved Hide resolved
src/extensions/registries/page-registry.ts Outdated Show resolved Hide resolved
src/extensions/registries/page-menu-registry.ts Outdated Show resolved Hide resolved
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@jakolehm jakolehm added this to the 4.0.0 milestone Nov 23, 2020
@Nokel81 Nokel81 merged commit 5005d34 into master Nov 23, 2020
@Nokel81 Nokel81 deleted the refactor-BaseRegistry branch November 23, 2020 17:54
@jakolehm jakolehm mentioned this pull request Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants