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

2.8.5 • Public • Published

Installation

npm install --save @types/jsreport-docx

Summary

This package contains type definitions for jsreport-docx (https://github.com/jsreport/jsreport-docx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsreport-docx.

index.d.ts

import { ExtensionDefinition, TemplateBase } from "jsreport-core";

declare namespace JsReportDocx {
    interface DocxTemplateModifier extends TemplateBase {
        docx?: DocxTemplate | undefined;
    }

    interface Configuration {
        preview?: {
            enabled: true;
            publicUri: string;
            showWarning: false;
        } | undefined;
    }

    interface DocxTemplate {
        templateAsetShortid?: string | undefined;
        templateAsset?: {
            content: string;
            encoding: string;
        } | undefined;
    }
}

declare module "jsreport-core" {
    interface TemplateRegistry {
        DocxTemplateModifier: JsReportDocx.DocxTemplateModifier;
    }
}

declare function JSReportDocx(cfg?: JsReportDocx.Configuration): ExtensionDefinition;

export = JSReportDocx;

Additional Details

Credits

These definitions were written by pofider.

/@types/jsreport-docx/

    Package Sidebar

    Install

    npm i @types/jsreport-docx

    Weekly Downloads

    746

    Version

    2.8.5

    License

    MIT

    Unpacked Size

    4.31 kB

    Total Files

    5

    Last publish

    Collaborators

    • types