Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ toJSON
Function
toJSON
packages/effect/src/internal/option.ts:43–49 ·
view source on GitHub ↗
(this: Option.Some<A>)
Source
from the content-addressed store, hash-verified
41
return
`some(${format(this.value)})`
42
},
43
toJSON<A>(this: Option.Some<A>) {
44
return
{
45
_id:
"Option"
,
46
_tag: this._tag,
47
value: toJson(this.value)
48
}
49
}
50
}),
51
"valueOrUndefined"
,
52
{
Callers
nothing calls this directly
Calls
1
toJson
Function · 0.90
Tested by
no test coverage detected