Skip to content

Commit

Permalink
Add explicit return type annotation to avoid circular reference (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
igalshilman authored Sep 19, 2023
1 parent bdb22b3 commit 833aad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/node-services/src/handler_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import * as restate from "@restatedev/restate-sdk";
export const HandlerAPIEchoTestFQN = "handlerapi.HandlerAPIEchoTest";

// These two handlers just test the correct propagation of the input message in the output
const echo = (ctx: restate.RpcContext, msg: any) => {
const echo = (ctx: restate.RpcContext, msg: any): Promise<any> => {

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 6 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
return msg;
};
const echoEcho = async (ctx: restate.RpcContext, msg: any) => {
const echoEcho = async (ctx: restate.RpcContext, msg: any): Promise<any> => {

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type

Check warning on line 9 in services/node-services/src/handler_api.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
return await ctx.rpc(handlerApi).echo(msg);
};

Expand Down

0 comments on commit 833aad7

Please sign in to comment.