Outdated `Schema` Example on Effect Website Frontpage

I think the example for Schema on the frontpage of effect.website is outdated. It sould be
import {Schema as S} from '@effect/schema'

const User = S.Struct({
  username: S.String
})

S.decodeUnknownSync(User)({username: 'john-doe'})

type User = S.Schema.Type<typeof User>
image.png
Was this page helpful?