@@ -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<A, I, R>,
|
||||
jsonifiable: Schema.Struct<JsonifiableFields> & { readonly Type: I },
|
||||
// jsonifiable: Schema.Struct<JsonifiableFields> & { readonly Type: I },
|
||||
jsonifiable: Schema.Schema<JsonifiableA, JsonifiableI, JsonifiableR>
|
||||
) {
|
||||
return jsonifiable.pipe(schema)
|
||||
return jsonifiable.pipe(Schema.compose(schema))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user