(
method: string,
key: ResultPersistence.Key<R, IE, E, IA, A>,
value: Exit.Exit<A, E>
)
| 250 | (_) => PersistenceParseError.make(method, _.issue) |
| 251 | ) |
| 252 | const encode = <R, IE, E, IA, A>( |
| 253 | method: string, |
| 254 | key: ResultPersistence.Key<R, IE, E, IA, A>, |
| 255 | value: Exit.Exit<A, E> |
| 256 | ) => |
| 257 | Effect.mapError( |
| 258 | Schema.serializeExit(key, value), |
| 259 | (_) => PersistenceParseError.make(method, _.issue) |
| 260 | ) |
| 261 | const makeKey = <R, IE, E, IA, A>( |
| 262 | key: ResultPersistence.Key<R, IE, E, IA, A> |
| 263 | ) => key[PrimaryKey.symbol]() |