class SomeSchema extends Schema.TaggedRequest<SomeSchema>()("DoStuff", Schema.void, ThingSchema, {
id: Schema.string,
foo: Schema.string,
}) { }
// Property '_tag' is missing in type '{ id: string; foo: string; }' but required in type '{ readonly _tag: "DoStuff"; readonly id: string; readonly foo: string; }'
const bar = Schema.decodeSync(SomeSchema)({ id: "asdf", foo: "bar" })
class SomeSchema extends Schema.TaggedRequest<SomeSchema>()("DoStuff", Schema.void, ThingSchema, {
id: Schema.string,
foo: Schema.string,
}) { }
// Property '_tag' is missing in type '{ id: string; foo: string; }' but required in type '{ readonly _tag: "DoStuff"; readonly id: string; readonly foo: string; }'
const bar = Schema.decodeSync(SomeSchema)({ id: "asdf", foo: "bar" })