Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ Person
Class
Person
packages/effect/test/Data.test.ts:28–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
describe(
"Data"
, () => {
27
describe(
"Class"
, () => {
28
class
Person extends Data.Class<{ readonly name: string; readonly age: number }> {}
29
30
it(
"compares instances structurally"
, () => {
31
const
a =
new
Person({ name:
"Bob"
, age: 25 })
Callers
2
makeApp
Function · 0.50
makeApp
Function · 0.50
Calls
no outgoing calls
Tested by
2
makeApp
Function · 0.40
makeApp
Function · 0.40