Skip to content

Commit

Permalink
Missing option None codec name added
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegenhausen authored and gcanti committed Oct 10, 2022
1 parent 332b497 commit 3d99e52
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
import { Option } from 'fp-ts/lib/Option'
import * as t from 'io-ts'

const None = t.strict({
_tag: t.literal('None')
})
const None = t.strict(
{
_tag: t.literal('None')
},
'None'
)

const someLiteral = t.literal('Some')

Expand Down

0 comments on commit 3d99e52

Please sign in to comment.