Installation
npm install --save @types/jsreport-client
Summary
This package contains type definitions for jsreport-client (https://github.com/jsreport/nodejs-client).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsreport-client.
index.d.ts
import jsreport = require("jsreport");
import JsReport = require("jsreport-core");
import { ServerResponse } from "http";
declare module "jsreport-core" {
interface ClientRenderResponse extends ServerResponse {
body(): Promise<Buffer>;
}
interface Client {
render(req: Partial<Request>, options?: object): Promise<ClientRenderResponse>;
}
}
declare function CreateJsReportClient(url: string, username?: string, password?: string): JsReport.Client;
export = CreateJsReportClient;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/jsreport, @types/jsreport-core
Credits
These definitions were written by pofider.