Effect CommunityEC
Effect Community2y ago
4 replies
HerbCaudill

Idiomatic Naming for Schemas & Types

naming question: It seems like it's idiomatic to have the type name be identical to the schema name, as in
const Person = S.Struct({
  name: S.String,
  age: S.NumberFromString,
})
type Person = typeof Person.Type

is that correct?
Was this page helpful?