Metakit / @doeixd/metakit/artifact
decodeExpr
function · packages/metakit/src/artifactDecode.ts:436
function decodeExpr<
Shape extends Readonly<Record<string, Schema.Top>>,
R extends Schema.Top,
>(
raw: unknown,
options: DecodeEnvOptions<Shape, R>,
): Effect.Effect<Expr<EnvOf<Shape>, R['Type']>, ArtifactError>Decode and validate a wire artifact into a typed Expr<EnvOf<Shape>, R['Type']>
over a multi-slice environment { slice: Schema }.