diff options
Diffstat (limited to 'src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp')
-rw-r--r-- | src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs index 81bea2832e..dd9395ae9b 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/ExampleJsInterop.cs @@ -5,7 +5,7 @@ namespace RazorClassLibrary_CSharp { public class ExampleJsInterop { - public static Task<string> Prompt(IJSRuntime jsRuntime, string message) + public static ValueTask<string> Prompt(IJSRuntime jsRuntime, string message) { // Implemented in exampleJsInterop.js return jsRuntime.InvokeAsync<string>( |