mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
448 B
TypeScript
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;
|