Jsonifiable work
Some checks failed
Lint / lint (push) Failing after 11s

This commit is contained in:
Julien Valverdé
2024-06-27 13:53:43 +02:00
parent f119d11e1e
commit 15769c3b2a

View File

@@ -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))
}