Skip to content

feat: add generic fx.AsType[T] helper - #1303

Open
AdamMagued wants to merge 1 commit into
uber-go:masterfrom
AdamMagued:fix-issue-1285
Open

AdamMagued wants to merge 1 commit into
uber-go:masterfrom
AdamMagued:fix-issue-1285

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #1285

Summary

  • Added generic fx.AsType[T]() annotation helper wrapping fx.As(new(T)) cleanly.
  • Added unit tests validating generic interface binding.

Verified via container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Feature: fx.AsType[T] as generic wrapper over fx.As(new(T))

1 participant