deno.land / x / lightrpc@1.0.0 / example / basic / client / cli.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { defineFuncs } from "../method.ts";import { clientFunc } from "../../../mod.ts";
console.log( await clientFunc<typeof defineFuncs>("http://localhost:8000").add( 123, 456, ),);
console.log( await clientFunc<typeof defineFuncs>("http://localhost:8000").join( "Hello", "World" ),);
lightrpc

Version Info

Tagged at
2 years ago