Skip to content

Commit

Permalink
Made T in IDescriptor<T> and IDescriptorExtension<T> covariant. (#4343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arad Aral authored Oct 28, 2021
1 parent e928189 commit a7617e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace HotChocolate.Types
/// Allows for access to the type definition.
/// </summary>
/// <typeparam name="T">The type definition.</typeparam>
public interface IDescriptorExtension<T> : IHasDescriptorContext
public interface IDescriptorExtension<out T> : IHasDescriptorContext
where T : DefinitionBase
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace HotChocolate.Types
/// <typeparam name="T">
/// The type definition.
/// </typeparam>
public interface IDescriptor<T> : IDescriptor where T : DefinitionBase
public interface IDescriptor<out T> : IDescriptor where T : DefinitionBase
{
/// <summary>
/// Provides access to the underlying configuration. This is useful for extensions.
Expand Down

0 comments on commit a7617e4

Please sign in to comment.