0.1.4 #5
@@ -12,15 +12,15 @@ import type * as TF from "type-fest"
|
||||
// return jsonifiable.pipe(S.compose(schema))
|
||||
// }
|
||||
|
||||
export function Jsonifiable<A, I, R>(
|
||||
schema: S.Schema<A, I, R>,
|
||||
) {
|
||||
return <
|
||||
export function Jsonifiable<
|
||||
JsonifiableA extends I,
|
||||
JsonifiableI extends TF.Jsonifiable,
|
||||
JsonifiableR,
|
||||
>(
|
||||
jsonifiable: S.Schema<JsonifiableA, JsonifiableI, JsonifiableR>
|
||||
) {
|
||||
return <A, I, R>(
|
||||
schema: S.Schema<A, I, R>
|
||||
) =>
|
||||
jsonifiable.pipe(S.compose(schema))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user