DefinitelyTyped/types/crpc/index.d.ts
2019-03-12 09:35:43 -07:00

13 lines
448 B
TypeScript

// Type definitions for crpc 0.2
// Project: https://github.com/billinghamj/crpc
// Definitions by: Alexander Forbes-Reed <https://github.com/0xdeafcafe>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
declare namespace crpc {
type Client = <TRes>(path: string, body: any, options?: {} | null) => Promise<TRes>;
}
export = crpc;
declare function crpc(baseUrl: string, options?: {}): crpc.Client;