type PartialSchema<T> = Schema.Schema<Partial<T>>
// v Type 'Partial<{ foo: string; bar: { bin: string; }; }>' is not assignable to type '{ readonly foo: string; }'.
const ps: PartialSchema<{ foo: string; bar: { bin: string } }> = Schema.struct({
foo: Schema.string,
})
type PartialSchema<T> = Schema.Schema<Partial<T>>
// v Type 'Partial<{ foo: string; bar: { bin: string; }; }>' is not assignable to type '{ readonly foo: string; }'.
const ps: PartialSchema<{ foo: string; bar: { bin: string } }> = Schema.struct({
foo: Schema.string,
})