// Error: Recursive type `Person` 👇
class Person extends S.Class<Person>()({
id: S.number,
name: S.string.pipe(S.nonEmpty()),
}) {
get upperName() {
return this.name.toUpperCase();
}
}
// Error: Recursive type `Person` 👇
class Person extends S.Class<Person>()({
id: S.number,
name: S.string.pipe(S.nonEmpty()),
}) {
get upperName() {
return this.name.toUpperCase();
}
}