Skip to content

Commit

Permalink
feat: adds null value encoder
Browse files Browse the repository at this point in the history
chore: bump version
  • Loading branch information
AngelMunoz committed Nov 22, 2024
1 parent 51d0af5 commit 8293568
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<WarnOn>3390;$(WarnOn)</WarnOn>
<LangVersion>preview</LangVersion>
<Nullable>true</Nullable>
<Version>1.0.0-beta-005</Version>
<Version>1.0.0-beta-006</Version>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\LICENSE" Pack="true" PackagePath="\"/>
Expand Down
1 change: 1 addition & 0 deletions JDeck/Encoding.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Encoder<'T> = 'T -> JsonNode
module Encoding =

module Encode =
let inline Null(): JsonNode = null

let inline string (value: string) = JsonValue.Create(value) :> JsonNode

Expand Down
1 change: 1 addition & 0 deletions JDeck/Encoding.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Encoder<'T> = 'T -> JsonNode
module Encoding =
/// <summary>Provides functions for encoding values to JSON nodes.</summary>
module Encode =
val inline Null: unit -> JsonNode
val inline string: value: string -> JsonNode
val inline boolean: value: bool -> JsonNode
val inline char: value: char -> JsonNode
Expand Down

0 comments on commit 8293568

Please sign in to comment.