export class Person extends Schema.TaggedClass<Person>()(
"Person",
{
name: Schema.String,
},
) {}
const value: {_tag: string, name: string} = {
_tag: "Person",
name: "John",
}
const person = Schema.decode(Person)(value);
export class Person extends Schema.TaggedClass<Person>()(
"Person",
{
name: Schema.String,
},
) {}
const value: {_tag: string, name: string} = {
_tag: "Person",
name: "John",
}
const person = Schema.decode(Person)(value);