Sfoglia il codice sorgente

docs(typert): sync Gateway type excerpt

imccyu 2 settimane fa
parent
commit
c5efa5ce9c

+ 2 - 2
docs/subsystems/typert.i18n.yaml

@@ -2,5 +2,5 @@
 # side as of the last confirmed-consistent state. Both languages carry equal authority;
 # after editing either side, bring the other along and re-record with:
 #   pnpm run verify-translation-pairing --write docs/subsystems/typert.md
-typert.md: 04610aebf22ae16e77411757a4d1b8c501d70cea
-typert.zh.md: 5dc379d10ba6bb0f446440fb4fe898d87a347db0
+typert.md: bf43280f7fa01e6300caeaadeadb2c6c8f78cdd2
+typert.zh.md: c50663ad2546d864efc5648059dde735ae4de5bd

+ 2 - 2
docs/subsystems/typert.md

@@ -191,14 +191,14 @@ interface TypertGateway {
   /**
    * Invoke one live Remote method without assuming a carrier or response envelope.
    * @param request - decoded endpoint and named wire arguments.
-   * @returns the validated business result.
+   * @returns the business result without output decoding.
    * @throws {@link TypertGatewayError} for dispatch, provider, or boundary failures; lookup-policy and business errors retain identity.
    */
   invoke(request: InvokeRemoteRequest): Promise<unknown>
   /**
    * Open one live stream Remote method without assuming a physical carrier.
    * @param request - decoded endpoint and named wire arguments.
-   * @returns an iterable whose items have passed the generated result codec.
+   * @returns a cancellation-aware iterable over the business results.
    */
   stream(request: InvokeRemoteRequest): Promise<AsyncIterable<unknown>>
 }

+ 2 - 2
docs/subsystems/typert.zh.md

@@ -191,14 +191,14 @@ interface TypertGateway {
   /**
    * Invoke one live Remote method without assuming a carrier or response envelope.
    * @param request - decoded endpoint and named wire arguments.
-   * @returns the validated business result.
+   * @returns the business result without output decoding.
    * @throws {@link TypertGatewayError} for dispatch, provider, or boundary failures; lookup-policy and business errors retain identity.
    */
   invoke(request: InvokeRemoteRequest): Promise<unknown>
   /**
    * Open one live stream Remote method without assuming a physical carrier.
    * @param request - decoded endpoint and named wire arguments.
-   * @returns an iterable whose items have passed the generated result codec.
+   * @returns a cancellation-aware iterable over the business results.
    */
   stream(request: InvokeRemoteRequest): Promise<AsyncIterable<unknown>>
 }