3.0.4 • Published 2 years ago

@types/jsreport__nodejs-client v3.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/jsreport__nodejs-client

Summary

This package contains type definitions for @jsreport/nodejs-client (https://github.com/jsreport/jsreport/tree/master/packages/nodejs-client).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsreport__nodejs-client.

index.d.ts

// Type definitions for @jsreport/nodejs-client 3.0
// Project: https://github.com/jsreport/jsreport/tree/master/packages/nodejs-client
// Definitions by: reediculous456 <https://github.com/reediculous456>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import JsReport = require('jsreport');
import { ServerResponse } from 'http';

declare namespace createJsReportClient {
    interface ClientRenderResponse extends ServerResponse {
        body(): Promise<Buffer>;
    }

    interface Client {
        /** @async */
        render(req: Partial<JsReport.Request>, options?: object): Promise<ClientRenderResponse>;
    }
}

declare function createJsReportClient(url: string, username: string, password: string): createJsReportClient.Client;
declare function createJsReportClient(url: string): createJsReportClient.Client;
export = createJsReportClient;

Additional Details

  • Last updated: Sat, 19 Mar 2022 19:01:44 GMT
  • Dependencies: @types/jsreport
  • Global values: none

Credits

These definitions were written by reediculous456.

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago