Skip to content

Commit

Permalink
- relaxes generic type constraint
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Nov 7, 2023
1 parent 8bb3a5c commit 27b7bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public RequestInformation(Method method, string urlTemplate, IDictionary<string,
/// </summary>
/// <typeparam name="T">Type for the query parameters</typeparam>
/// <param name="requestConfiguration">Callback to configure the request</param>
public void Configure<T>(Action<RequestConfiguration<T>>? requestConfiguration) where T : DefaultQueryParameters, new()
public void Configure<T>(Action<RequestConfiguration<T>>? requestConfiguration) where T : class, new()
{
if(requestConfiguration == null) return;
var requestConfig = new RequestConfiguration<T>();
Expand Down

0 comments on commit 27b7bbc

Please sign in to comment.