MCPcopy Create free account
hub / github.com/Effect-TS/effect / schema

Method schema

packages/effect/src/unstable/cluster/Reply.ts:323–331  ·  view source on GitHub ↗

* Builds a terminal reply schema from the exit schema of an RPC. * * @since 4.0.0

(
    rpc: R
  )

Source from the content-addressed store, hash-verified

321 * @since 4.0.0
322 */
323 static schema<R extends Rpc.Any>(
324 rpc: R
325 ): Schema.declareConstructor<
326 WithExit<R>,
327 WithExit<R>,
328 readonly [Schema.Exit<Rpc.SuccessExitSchema<R>, Rpc.ErrorExitSchema<R>, Rpc.DefectSchema>]
329 > {
330 return this.schemaFrom(Rpc.exitSchema(rpc))
331 }
332
333 /**
334 * Builds a terminal reply schema that validates the encoded exit value.

Callers

nothing calls this directly

Calls 1

schemaFromMethod · 0.95

Tested by

no test coverage detected