feat(rpc): scaffold the package and shared contract types

This commit is contained in:
2026-08-05 09:52:48 +05:30
parent 63e6148cdb
commit e1fca3eddf
6 changed files with 137 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* @wrnexus/rpc — typed request/response between workspace apps.
*
* A contract lives in the workspace's shared package and is imported by both
* sides: the callee `implement`s it, the caller gets a typed proxy. Types flow
* through a normal import, so there is no code generator and no generated file
* to go stale.
*/
export type {
AnyProcedures,
InferInput,
InputSchema,
InferProcedureInput,
InferProcedureOutput,
ProcedureDef,
ServiceContract,
ServiceResult,
} from "./types.ts";