diff --git a/src/effect/schema/Jsonifiable.ts b/src/effect/schema/Jsonifiable.ts index 347190f..1d055a3 100644 --- a/src/effect/schema/Jsonifiable.ts +++ b/src/effect/schema/Jsonifiable.ts @@ -17,10 +17,12 @@ expectStruct(s2) export function Jsonifiable< A, I, R, - JsonifiableFields extends Schema.Struct.Fields + JsonifiableA extends I, JsonifiableI, JsonifiableR, + // JsonifiableFields extends Schema.Struct.Fields >( schema: Schema.Schema, - jsonifiable: Schema.Struct & { readonly Type: I }, + // jsonifiable: Schema.Struct & { readonly Type: I }, + jsonifiable: Schema.Schema ) { - return jsonifiable.pipe(schema) + return jsonifiable.pipe(Schema.compose(schema)) }