Function
transcode
(
from: From,
to: To,
input: Schema.Schema.Type<From>
)
Source from the content-addressed store, hash-verified
| 115 | |
| 116 | /** @internal */ |
| 117 | export const transcode = < |
| 118 | From extends Schema.Constraint, |
| 119 | To extends Schema.Constraint |
| 120 | >( |
| 121 | from: From, |
| 122 | to: To, |
| 123 | input: Schema.Schema.Type<From> |
| 124 | ) => |
| 125 | Schema.encodeEffect(from)(input).pipe( |
| 126 | Effect.flatMap(Schema.decodeUnknownEffect(to)) |
| 127 | ) |
| 128 | |
| 129 | /** @internal */ |
| 130 | export const makeNotificationProjector = Effect.fn(function*( |
Callers
nothing calls this directly
Tested by
no test coverage detected