diff --git a/httpServer.d.ts b/httpServer.d.ts new file mode 100644 index 0000000..83771dc --- /dev/null +++ b/httpServer.d.ts @@ -0,0 +1,21 @@ +declare module "react-native-http-bridge"; + +export declare function start( + port: number, + serviceName: string, + callback: (request: { + requestId: string; + postData?: {}; + type: string; + url: string; + }) => void +): void; + +export declare function stop(): void; + +export declare function respond( + requestId: string, + code: number, + type: string, + body: string +): void;