Skip to content

Commit

Permalink
Small change for reporting F# issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanayx committed Feb 13, 2024
1 parent ec2cbbb commit f078d24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/Basic/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ let handler3 (a: string) (b: string) (c: string) (d: int) : EndpointHandler =
[<CLIMutable>]
type MyModel = { Name: string; Age: int }
let handler4 (a: MyModel) : EndpointHandler =
fun (ctx: HttpContext) -> ctx.WriteJsonChunked { a with Name = a.Name + "!" }
fun (ctx: HttpContext) ->
task {
return! ctx.WriteJsonChunked { a with Name = a.Name + "!" }
}

let handler5 (test1: string) (test2: string) (a: MyModel) : EndpointHandler =
fun (ctx: HttpContext) ->
Expand Down

0 comments on commit f078d24

Please sign in to comment.