UNPKG

rpc_ts

Version:

Remote Procedure Calls in TypeScript made simple

30 lines (29 loc) 825 B
/** * @license * Copyright (c) Aiden.ai * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export declare type BankingService = typeof bankingServiceDefinition; /** Defines the banking service, giving all the methods and the request and response types. */ export declare const bankingServiceDefinition: { /** Get the balance for the authenticated user. */ getBalance: { request: {}; response: { value: number; }; }; /** * Transfer funds from the authenticated user to another user. The authenticated * user must have sufficient funds. */ transfer: { request: { toUserId: string; amount: number; }; response: {}; }; };