Skip to content

Commit

Permalink
Better formatted WrappedScalar method
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Nov 5, 2023
1 parent 5fc1f5d commit eb91858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FSharp.Data.GraphQL.Shared/SchemaDefinitions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ module SchemaDefinitions =
/// <param name="coerceOutput">Function used to cross cast to .NET types.</param>
/// <param name="description">Optional scalar description. Usefull for generating documentation.</param>
static member WrappedScalar(name : string, coerceInput : InputParameterValue -> Result<'Wrapper, string>,
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
{ Name = name
Description = description
CoerceInput = coerceInput >> Result.mapError (fun msg -> { new IGQLError with member _.Message = msg } |> List.singleton)
Expand All @@ -604,7 +604,7 @@ module SchemaDefinitions =
/// <param name="coerceOutput">Function used to cross cast to .NET types.</param>
/// <param name="description">Optional scalar description. Usefull for generating documentation.</param>
static member WrappedScalar(name : string, coerceInput : InputParameterValue -> Result<'Wrapper, string list>,
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
{ Name = name
Description = description
CoerceInput = coerceInput >> Result.mapError (List.map (fun msg -> { new IGQLError with member _.Message = msg }))
Expand All @@ -618,7 +618,7 @@ module SchemaDefinitions =
/// <param name="coerceOutput">Function used to cross cast to .NET types.</param>
/// <param name="description">Optional scalar description. Usefull for generating documentation.</param>
static member WrappedScalar(name : string, coerceInput : InputParameterValue -> Result<'Wrapper, IGQLError>,
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
{ Name = name
Description = description
CoerceInput = coerceInput >> Result.mapError List.singleton
Expand All @@ -632,7 +632,7 @@ module SchemaDefinitions =
/// <param name="coerceOutput">Function used to cross cast to .NET types.</param>
/// <param name="description">Optional scalar description. Usefull for generating documentation.</param>
static member WrappedScalar(name : string, coerceInput : InputParameterValue -> Result<'Wrapper, IGQLError list>,
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
coerceOutput : obj -> 'Primitive option, ?description : string) : ScalarDefinition<'Primitive, 'Wrapper> =
{ Name = name
Description = description
CoerceInput = coerceInput
Expand Down

0 comments on commit eb91858

Please sign in to comment.