@types/jsreport-client
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

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

Credits

These definitions were written by pofider.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsreport-client

Weekly Downloads

345

Version

1.2.3

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • types